(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed7f9ec8"],{"32bd":function(t,e,s){},"83e4":function(t,e,s){"use strict";s("32bd")},a20c:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"device-types full"},[e("div",[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.handleClickAdd}},[t._v(t._s(t.$t("systemManage.addParams")))])],1),e("div",{staticClass:"device-types-table"},[e("vxe-table",{attrs:{border:"",resizable:"","show-overflow":"","highlight-hover-row":"",size:"mini",height:"auto",data:t.tableList}},[e("vxe-table-column",{attrs:{field:"keystr",title:"KeyStr"}}),e("vxe-table-column",{attrs:{field:"valuestr",title:"ValueStr"}}),e("vxe-table-column",{attrs:{field:"remark",title:"Remark"}}),e("vxe-table-column",{attrs:{title:t.$t("reportForm.action"),width:"100"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticStyle:{"padding-top":"7px"}},[e("span",{staticStyle:{padding:"0px 10px 0px 0px"}},[e("img",{staticStyle:{width:"20px",cursor:"pointer"},attrs:{src:t.editIcon},on:{click:function(e){return t.handleEdit(s)}}})]),e("el-popconfirm",{attrs:{placement:"top",icon:"el-icon-info","icon-color":"red","confirm-button-text":t.$t("common.confirm"),"cancel-button-text":t.$t("common.cancel"),title:"确定删除吗？"},on:{confirm:function(e){return t.handleDelete(s)}}},[e("span",{attrs:{slot:"reference"},slot:"reference"},[e("img",{staticStyle:{width:"20px",cursor:"pointer"},attrs:{src:t.deleteIcon}})])])],1)]}}])})],1)],1),e("el-dialog",{attrs:{title:t.dialogTitle,center:"","append-to-body":"",visible:t.dialogVisible,width:"560px","close-on-click-modal":!1},on:{close:function(e){t.dialogVisible=!1}}},[e("el-row",{staticClass:"margin_b10"},[e("el-col",{attrs:{span:24}},[e("LabelWrap",{attrs:{label:"KeyStr"}},[e("el-input",{model:{value:t.keystr,callback:function(e){t.keystr=e},expression:"keystr"}})],1)],1)],1),e("el-row",{staticClass:"margin_b10"},[e("el-col",{attrs:{span:24}},[e("LabelWrap",{attrs:{label:"ValueStr"}},[e("el-input",{model:{value:t.valuestr,callback:function(e){t.valuestr=e},expression:"valuestr"}})],1)],1)],1),e("el-row",{staticClass:"margin_b10"},[e("el-col",{attrs:{span:24}},[e("LabelWrap",{attrs:{label:"Remark"}},[e("el-input",{model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}})],1)],1)],1),t.isEdit?e("el-row",[e("el-col",{attrs:{span:8,offset:8}},[e("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onClickEdit}},[t._v(t._s(t.$t("common.determine")))])],1)],1):e("el-row",[e("el-col",{attrs:{span:8,offset:8}},[e("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onClickAdd}},[t._v(t._s(t.$t("common.determine")))])],1)],1)],1)],1)},i=[],r=s("5530"),l=s("b562"),n=s("201d"),o=s("2f62"),c=s("61fc"),d=s("e173"),u={name:"ServerParameter",data:function(){return{editIcon:c,deleteIcon:d,dialogVisible:!1,tableList:[],keystr:"",valuestr:"",remark:"",isEdit:!1}},components:{LabelWrap:n["a"]},computed:Object(r["a"])(Object(r["a"])({},Object(o["b"])(["isZh"])),{},{dialogTitle:function(){return this.isEdit?this.$t("systemManage.editServerParams"):this.$t("systemManage.addServerParams")}}),methods:{handleClickAdd:function(){this.isEdit=!1,this.dialogVisible=!0,this.keystr="",this.valuestr="",this.remark="",this.row=null},handleEdit:function(t){var e=t.row;this.isEdit=!0,this.dialogVisible=!0,this.keystr=e.keystr,this.valuestr=e.valuestr,this.remark=e.remark,this.row=e},handleDelete:function(t){var e=this,s=t.row.serverconfigid,a=t.rowIndex;Object(l["t"])(s).then((function(t){var s=t.status;0==s?(e.$XModal.message({message:e.$t("tips.deleteSucc"),status:"success",zIndex:9999}),e.$delete(e.tableList,a)):e.$XModal.message({message:e.$t("tips.deleteFail"),status:"error",zIndex:9999})}))},onClickEdit:function(){var t=this,e=this.row,s={keystr:this.keystr,valuestr:this.valuestr,remark:this.remark,id:e.serverconfigid};Object(l["C"])(s).then((function(a){var i=a.status;0==i?(e.keystr=s.keystr,e.valuestr=s.valuestr,e.remark=s.remark,t.$XModal.message({message:t.$t("tips.editSucc"),status:"success",zIndex:9999}),t.dialogVisible=!1):t.$XModal.message({message:t.$t("tips.editFail"),status:"error",zIndex:9999})}))},onClickAdd:function(){var t=this,e={keystr:this.keystr,valuestr:this.valuestr,remark:this.remark};Object(l["f"])(e).then((function(e){var s=e.status;0==s?(t.dialogVisible=!1,t.queryServerConfig(),t.$XModal.message({message:t.$t("tips.addSucc"),status:"success",zIndex:9999})):t.$XModal.message({message:t.$t("tips.addFail"),status:"error",zIndex:9999})}))},queryServerConfig:function(){var t=this;Object(l["Y"])().then((function(e){var s=e.configs;s&&(t.tableList=s)}))}},mounted:function(){this.queryServerConfig()}},m=u,p=(s("83e4"),s("2877")),h=Object(p["a"])(m,a,i,!1,null,null,null),f=h.exports;e["default"]=f}}]);