(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08270d36","chunk-cb8bd570"],{"01cf":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"components-input-demo-presuffix"},[a("a-input",{attrs:{placeholder:"请点击选择部门",readOnly:"",disabled:e.disabled},on:{click:e.openModal},model:{value:e.textVals,callback:function(t){e.textVals=t},expression:"textVals"}},[a("a-icon",{attrs:{slot:"prefix",type:"cluster",title:"部门选择控件"},slot:"prefix"}),e.storeVals?a("a-icon",{attrs:{slot:"suffix",type:"close-circle",title:"清空"},on:{click:e.handleEmpty},slot:"suffix"}):e._e()],1),a("j-select-equipment-depart-modal",{ref:"innerDepartSelectModal",attrs:{"modal-width":e.modalWidth,rootOpened:e.rootOpened,"depart-id":e.value,store:e.storeField,text:e.textField,treeOpera:e.treeOpera},on:{ok:e.handleOK,initComp:e.initComp}})],1)},n=[],i=a("e580"),l=a("a9c5");function o(e,t){var a;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=s(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,o=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return l=e.done,e},e:function(e){o=!0,i=e},f:function(){try{l||null==a.return||a.return()}finally{if(o)throw i}}}}function s(e,t){if(e){if("string"===typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var d={name:"JSelectEquipmentDepart",components:{JSelectEquipmentDepartModal:i["default"]},props:{modalWidth:{type:Number,default:500,required:!1},multi:{type:Boolean,default:!1,required:!1},rootOpened:{type:Boolean,default:!0,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},customReturnField:{type:String,default:""},backDepart:{type:Boolean,default:!1,required:!1},store:{type:String,default:"id",required:!1},text:{type:String,default:"departName",required:!1},treeOpera:{type:Boolean,default:!1,required:!1}},data:function(){return{visible:!1,confirmLoading:!1,storeVals:"",textVals:""}},computed:{storeField:function(){var e=this.customReturnField;return e||(e=this.store),Object(l["c"])(e)},textField:function(){return Object(l["c"])(this.text)}},mounted:function(){this.storeVals=this.value},watch:{value:function(e){this.storeVals=e}},methods:{initComp:function(e){this.textVals=e},backDeparInfo:function(){if(!0===this.backDepart&&this.storeVals&&this.storeVals.length>0){for(var e=this.storeVals.split(","),t=this.textVals.split(","),a=[],r=0;r<e.length;r++)a.push({value:e[r],text:t[r]});this.$emit("back",a)}},openModal:function(){this.$refs.innerDepartSelectModal.show()},handleOK:function(e){if(!e&&e.length<=0)this.textVals="",this.storeVals="";else{var t,a=[],r=[],n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;a.push(i[this.storeField]),r.push(i[this.textField])}}catch(l){n.e(l)}finally{n.f()}this.storeVals=a.join(","),this.textVals=r.join(",")}this.$emit("change",this.storeVals),this.backDeparInfo()},getDepartNames:function(){return this.departNames},handleEmpty:function(){this.handleOK("")}},model:{prop:"value",event:"change"}},u=d,p=(a("050a"),a("2877")),h=Object(p["a"])(u,r,n,!1,null,"7ab9638a",null);t["default"]=h.exports},"050a":function(e,t,a){"use strict";var r=a("c08b"),n=a.n(r);n.a},1108:function(e,t,a){"use strict";var r=a("3e10"),n=a.n(r);n.a},"1aa7":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"components-input-demo-presuffix"},[a("a-input",{attrs:{placeholder:"请点击选择车间",readOnly:"",disabled:e.disabled},on:{click:e.openModal},model:{value:e.textVals,callback:function(t){e.textVals=t},expression:"textVals"}},[a("a-icon",{attrs:{slot:"prefix",type:"cluster",title:"车间选择控件"},slot:"prefix"}),e.storeVals&&!e.disabled?a("a-icon",{attrs:{slot:"suffix",type:"close-circle",title:"清空"},on:{click:e.handleEmpty},slot:"suffix"}):e._e()],1),a("j-select-equipment-production-modal",{ref:"innerDepartSelectModal",attrs:{"modal-width":e.modalWidth,multi:e.multi,rootOpened:e.rootOpened,"production-id":e.value,store:e.storeField,text:e.textField,treeProductOpera:e.treeProductOpera},on:{ok:e.handleOK,initComp:e.initComp}})],1)},n=[],i=a("eb56"),l=a("a9c5");function o(e,t){var a;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=s(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,o=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return l=e.done,e},e:function(e){o=!0,i=e},f:function(){try{l||null==a.return||a.return()}finally{if(o)throw i}}}}function s(e,t){if(e){if("string"===typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var d={name:"JSelectEquipmentProduction",components:{JSelectEquipmentProductionModal:i["default"]},props:{modalWidth:{type:Number,default:500,required:!1},multi:{type:Boolean,default:!1,required:!1},rootOpened:{type:Boolean,default:!0,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},customReturnField:{type:String,default:""},backProduction:{type:Boolean,default:!1,required:!1},store:{type:String,default:"id",required:!1},text:{type:String,default:"productionName",required:!1},treeProductOpera:{type:Boolean,default:!1,required:!1}},data:function(){return{visible:!1,confirmLoading:!1,storeVals:"",textVals:""}},computed:{storeField:function(){var e=this.customReturnField;return e||(e=this.store),Object(l["c"])(e)},textField:function(){return Object(l["c"])(this.text)}},mounted:function(){this.storeVals=this.value},watch:{value:function(e){this.storeVals=e}},methods:{initComp:function(e){this.textVals=e},backProductInfo:function(){if(!0===this.backProduction&&this.storeVals&&this.storeVals.length>0){for(var e=this.storeVals.split(","),t=this.textVals.split(","),a=[],r=0;r<e.length;r++)a.push({value:e[r],text:t[r]});this.$emit("back",a)}},openModal:function(){this.$refs.innerDepartSelectModal.show()},handleOK:function(e){if(!e&&e.length<=0)this.textVals="",this.storeVals="";else{var t,a=[],r=[],n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;a.push(i[this.storeField]),r.push(i[this.textField])}}catch(l){n.e(l)}finally{n.f()}this.storeVals=a.join(","),this.textVals=r.join(",")}this.$emit("change",this.storeVals),this.backProductInfo()},getDepartNames:function(){return this.departNames},handleEmpty:function(){this.handleOK("")}},model:{prop:"value",event:"change"}},u=d,p=(a("1108"),a("2877")),h=Object(p["a"])(u,r,n,!1,null,"5e82f412",null);t["default"]=h.exports},2041:function(e,t,a){"use strict";var r=a("3972"),n=a.n(r);n.a},3972:function(e,t,a){},"3a99":function(e,t,a){"use strict";var r=a("628b"),n=a.n(r);n.a},"3e10":function(e,t,a){},"489e":function(e,t,a){"use strict";var r=a("634a"),n=a.n(r);n.a},"5ec7":function(e,t,a){"use strict";var r=a("6a0e"),n=a.n(r);n.a},"628b":function(e,t,a){},"634a":function(e,t,a){},"6a0e":function(e,t,a){},b9e5:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{staticStyle:{height:"100%",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:e.drawerWidth,visible:e.visible,footer:null},on:{cancel:function(t){e.visible=!1}}},[a("template",{slot:"title"},[a("div",{staticStyle:{width:"100%"}},[a("span",[e._v(e._s(e.title))]),a("span",{staticStyle:{display:"inline-block",width:"calc(100% - 51px)","padding-right":"10px","text-align":"right"}},[a("a-button",{staticStyle:{height:"20px",width:"20px",border:"0px"},attrs:{icon:"appstore"},on:{click:e.toggleScreen}})],1)])]),a("a-spin",{attrs:{spinning:e.confirmLoading}},[a("a-form-model",{ref:"form",attrs:{form:e.form,model:e.model,rules:e.validatorRules}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"统一编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"equipmentId"}},[a("a-input-search",{attrs:{readOnly:!0,disabled:e.disSearch,"enter-button":"",placeholder:"请选择统一编码"},on:{search:e.deviceSearch},model:{value:e.model.equipmentId,callback:function(t){e.$set(e.model,"equipmentId",t)},expression:"model.equipmentId"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"设备名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{attrs:{disabled:e.disSearch,readOnly:e.disableSubmit,"allow-clear":"",placeholder:"请输入设备名称"},model:{value:e.model.equipmentName,callback:function(t){e.$set(e.model,"equipmentName",t)},expression:"model.equipmentName"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[0==e.isDepartType?a("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!e.departDisabled,expression:"!departDisabled"}],attrs:{label:"部门分配",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("j-select-equipment-depart",{attrs:{disabled:e.disableSubmit,multi:!1,backDepart:!0,treeOpera:!0},on:{back:e.backDepartInfo},model:{value:e.model.selectedDeparts,callback:function(t){e.$set(e.model,"selectedDeparts",t)},expression:"model.selectedDeparts"}})],1):e._e(),-1==e.isDepartType?a("a-form-model-item",{attrs:{label:"设备类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-select",{attrs:{disabled:e.disableSubmit,readOnly:e.disableSubmit,placeholder:"请选择设备类型",triggerChange:!0},model:{value:e.model.equipmentType,callback:function(t){e.$set(e.model,"equipmentType",t)},expression:"model.equipmentType"}},e._l(e.selectList,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.equipmentTypeName}},[e._v("\n "+e._s(t.equipmentTypeName)+"\n ")])})),1)],1):e._e()],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!e.productionDisabled,expression:"!productionDisabled"}],ref:"selectedProduction",attrs:{label:"车间分配",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"selectedProduction"}},[a("j-select-equipment-production",{attrs:{disabled:e.disableSubmit,multi:!1,backProduction:!0,treeProductOpera:!0},on:{back:e.backProductionInfo},model:{value:e.model.selectedProduction,callback:function(t){e.$set(e.model,"selectedProduction",t)},expression:"model.selectedProduction"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[-1==e.isDepartType?a("a-form-model-item",{attrs:{label:"系统版本号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{attrs:{disabled:e.disableSubmit,readOnly:e.disableSubmit,"allow-clear":"",placeholder:"请输入系统版本号"},model:{value:e.model.systemVersion,callback:function(t){e.$set(e.model,"systemVersion",t)},expression:"model.systemVersion"}})],1):e._e(),0==e.isDepartType?a("a-form-model-item",{attrs:{label:"设备类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-select",{attrs:{disabled:e.disableSubmit,readOnly:e.disableSubmit,placeholder:"请选择设备类型",triggerChange:!0},model:{value:e.model.equipmentType,callback:function(t){e.$set(e.model,"equipmentType",t)},expression:"model.equipmentType"}},e._l(e.selectList,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.equipmentTypeName}},[e._v("\n "+e._s(t.equipmentTypeName)+"\n ")])})),1)],1):e._e()],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"设备功率(kw)",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{attrs:{disabled:e.disableSubmit,readOnly:e.disableSubmit,"allow-clear":"",placeholder:"请输入设备功率"},model:{value:e.model.devicePower,callback:function(t){e.$set(e.model,"devicePower",t)},expression:"model.devicePower"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"机床IP",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{attrs:{disabled:!0,readOnly:e.disableSubmit,placeholder:"请输入机床IP"},model:{value:e.model.equipmentIp,callback:function(t){e.$set(e.model,"equipmentIp",t)},expression:"model.equipmentIp"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"机床端口",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{attrs:{disabled:!0,readOnly:e.disableSubmit,placeholder:"请输入机床端口"},model:{value:e.model.dataPort,callback:function(t){e.$set(e.model,"dataPort",t)},expression:"model.dataPort"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"驱动类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("j-dict-select-tag",{attrs:{disabled:!0,readOnly:e.disableSubmit,placeholder:"请选择驱动类型",triggerChange:!0,dictCode:"mdc_driveType","allow-clear":""},model:{value:e.model.driveType,callback:function(t){e.$set(e.model,"driveType",t)},expression:"model.driveType"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"设备型号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{attrs:{disabled:!0,readOnly:e.disableSubmit,"allow-clear":"",placeholder:"请输入设备型号"},model:{value:e.model.equipmentModel,callback:function(t){e.$set(e.model,"equipmentModel",t)},expression:"model.equipmentModel"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"系统类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("j-dict-select-tag",{attrs:{placeholder:"请选择系统类型",triggerChange:!0,dictCode:"system_type","allow-clear":""},model:{value:e.model.systemType,callback:function(t){e.$set(e.model,"systemType",t)},expression:"model.systemType"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"设备级别",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("j-dict-select-tag",{attrs:{placeholder:"请选择设备级别",dictCode:"device_level","allow-clear":""},model:{value:e.model.deviceLevel,callback:function(t){e.$set(e.model,"deviceLevel",t)},expression:"model.deviceLevel"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"设备种类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("j-dict-select-tag",{attrs:{placeholder:"请选择设备种类",dictCode:"device_category","allow-clear":""},model:{value:e.model.deviceCategory,callback:function(t){e.$set(e.model,"deviceCategory",t)},expression:"model.deviceCategory"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-model-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{staticStyle:{width:"100%"},attrs:{disabled:e.disableSubmit,readOnly:e.disableSubmit,placeholder:"请输入排序"},model:{value:e.model.sortNo,callback:function(t){e.$set(e.model,"sortNo",t)},expression:"model.sortNo"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[0==e.isDepartType?a("a-form-model-item",{attrs:{label:"系统版本号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{attrs:{disabled:e.disableSubmit,readOnly:e.disableSubmit,"allow-clear":"",placeholder:"请输入系统版本号"},model:{value:e.model.systemVersion,callback:function(t){e.$set(e.model,"systemVersion",t)},expression:"model.systemVersion"}})],1):e._e()],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{labelCol:{span:3},wrapperCol:{span:21},label:"备注"}},[a("a-textarea",{attrs:{disabled:e.disableSubmit,readOnly:e.disableSubmit,placeholder:"请输入备注"},model:{value:e.model.remark,callback:function(t){e.$set(e.model,"remark",t)},expression:"model.remark"}})],1)],1)],1)],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.disableSubmit,expression:"!disableSubmit"}],staticClass:"drawer-bottom-button"},[a("a-popconfirm",{attrs:{title:"确定放弃操作?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[a("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),a("a-button",{attrs:{type:"primary",loading:e.confirmLoading},on:{click:e.handleSubmit}},[e._v("提交")])],1),a("device-list-model",{ref:"deviceListModel",on:{sendSelectionRows:e.getDeviceRows}})],2)},n=[],i=a("88bc"),l=a.n(i),o=a("c1df"),s=a.n(o),c=a("2b0e"),d=a("9fb0"),u=a("0fea"),p=a("4ec3"),h=a("c82c"),m=a("1aa7"),f=a("c318"),y=a("f178"),b=a("01cf"),v=a("2f62");function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach((function(t){w(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function w(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var x={name:"UserModal",components:{JSelectProduction:f["default"],JSelectEquipmentDepart:b["default"],JSelectEquipmentProduction:m["default"],DeviceListModel:y["default"]},data:function(){return{disSearch:!1,departDisabled:!1,productionDisabled:!1,roleDisabled:!1,modalWidth:800,drawerWidth:700,modalToggleFlag:!0,confirmDirty:!1,userId:"",disableSubmit:!0,dateFormat:"YYYY-MM-DD",form:this.$form.createForm(this),validatorRules:{equipmentId:[{required:!0,message:"请选择设备编号!"}],selectedProduction:[{required:!0,message:"请选择车间"}]},departIdShow:!1,title:"操作",visible:!1,model:{equipmentId:"",equipmentName:"",equipmentModel:"",equipmentIp:"",dataPort:"",driveType:"",systemType:"",deviceLevel:"",deviceCategory:""},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:15}},uploadLoading:!1,confirmLoading:!1,headers:{},url:{fileUpload:window._CONFIG["domianURL"]+"/sys/common/upload",userWithDepart:"/mdc/mdcEquipment/equipmentDepartList",userProductionList:"/mdc/mdcEquipment/equipmentProductionList",userId:"/sys/user/generateUserId",syncUserByUserName:"/act/process/extActProcess/doSyncUserByUserName",queryTenantList:"/sys/tenant/queryList",check:"/sys/duplicate/check",queryEquipmentType:"/mdc/mdcEquipmentType/queryEquipmentType"},tenantsOptions:[],rolesOptions:[],nextDepartOptions:[],nextProductionOptions:[],selectList:[],isDepartType:""}},created:function(){var e=c["default"].ls.get(d["a"]);this.headers={"X-Access-Token":e},this.queryGroup(),this.queryTreeData()},computed:{uploadAction:function(){return this.url.fileUpload}},methods:k(k({},Object(v["b"])(["QueryDepartTree"])),{},{queryTreeData:function(){var e=this;this.QueryDepartTree().then((function(t){t.success?e.isDepartType=t.result[0].value:e.$notification.warning({message:"消息",description:t.message})})).finally((function(){}))},queryGroup:function(){var e=this;Object(u["c"])(this.url.queryEquipmentType).then((function(t){t.success?e.selectList=t.result:e.$notification.warning({message:"消息",description:t.message})})).finally((function(){e.loading=!1}))},getDeviceRows:function(e){e.equipmentid&&(this.model.equipmentId=e.equipmentid,this.model.equipmentName=e.equipmentname,this.model.equipmentModel=e.equipmentmodel,this.model.equipmentIp=e.equipmentip,this.model.dataPort=e.dataport,this.model.driveType=e.drivetype,this.model.controlSystem=e.controlsystem,this.model.saveTableName=e.savetablename)},deviceSearch:function(){this.$refs.deviceListModel.openPage(),this.$refs.deviceListModel.title="选择设备",this.$refs.deviceListModel.disableSubmit=!1},add:function(){this.refresh(),this.edit({activitiSync:"1",userIdentity:1,equipmentId:"",equipmentName:"",equipmentModel:"",equipmentIp:"",dataPort:"",driveType:"",controlSystem:"",saveTableName:""})},edit:function(e){var t=this,a=this;a.visible=!0,this.resetScreenSize(),a.model=Object.assign({},e),this.$nextTick((function(){t.form.setFieldsValue(l()(a.model,"selectedDeparts","selectedProduction","equipmentId","equipmentName","equipmentModel","equipmentType","equipmentIp","dataPort","driveType","sortNo","remark","systemVersion","devicePower","controlSystem","saveTableName"))})),e.hasOwnProperty("id")&&a.getUserDeparts(e.id)},isDisabledAuth:function(e){return Object(h["a"])(e)},toggleScreen:function(){this.modalToggleFlag?this.modalWidth=window.innerWidth:this.modalWidth=800,this.modalToggleFlag=!this.modalToggleFlag},resetScreenSize:function(){var e=document.body.clientWidth;this.drawerWidth=e<500?e:700},getUserDeparts:function(e){var t=this;Object(u["c"])(t.url.userWithDepart,{equipmentId:e}).then((function(e){if(e.success){for(var a=[],r=[],n=0;n<e.result.length;n++)r.push(e.result[n].key),a.push({value:e.result[n].key,label:e.result[n].title});t.model.selectedDeparts=r.join(","),t.nextDepartOptions=a}})),Object(u["c"])(t.url.userProductionList,{equipmentId:e}).then((function(e){if(e.success){for(var a=[],r=[],n=0;n<e.result.length;n++)r.push(e.result[n].key),a.push({value:e.result[n].key,label:e.result[n].title});t.model.selectedProduction=r.join(","),t.nextProductionOptions=a}}))},backDepartInfo:function(e){this.model.departIds=this.model.selectedDeparts,this.nextDepartOptions=e.map((function(e,t,a){var r={label:e.text,value:e.value+""};return r}))},backProductionInfo:function(e){this.model.productionIds=this.model.selectedProduction,this.nextProductionOptions=e.map((function(e,t,a){var r={label:e.text,value:e.value+""};return r}))},refresh:function(){this.userId="",this.nextDepartOptions=[],this.nextProductionOptions=[],this.departIdShow=!1},close:function(){this.$emit("close"),this.visible=!1,this.disableSubmit=!1,this.nextDepartOptions=[],this.nextProductionOptions=[],this.departIdShow=!1},moment:s.a,handleSubmit:function(){var e=this,t=this;this.$refs.form.validate((function(a){if(!a)return!1;var r;t.confirmLoading=!0,e.model.id?r=Object(p["r"])(e.model,{id:e.model.id}):(e.model.id=e.userId,r=Object(p["c"])(e.model)),r.then((function(e){e.success?(t.$notification.success({message:"消息",description:e.message}),t.$emit("ok")):t.$notification.warning({message:"消息",description:e.message})})).finally((function(){t.confirmLoading=!1,t.close()}))}))},handleConfirmBlur:function(e){var t=e.target.value;this.confirmDirty=this.confirmDirty||!!t},identityChange:function(e){1===e.target.value?this.departIdShow=!1:this.departIdShow=!0},removeValidate:function(){this.$refs.form.clearValidate()}})},S=x,C=(a("3a99"),a("2877")),O=Object(C["a"])(S,r,n,!1,null,"27d5bb05",null);t["default"]=O.exports},c08b:function(e,t,a){},e580:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("j-modal",{attrs:{title:"选择部门",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,wrapClassName:"j-depart-select-modal",switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleSubmit,cancel:e.handleCancel,"update:fullscreen":e.isFullscreen}},[a("a-spin",{attrs:{tip:"Loading...",spinning:!1}},[a("a-input-search",{staticStyle:{"margin-bottom":"1px"},attrs:{placeholder:"请输入部门名称按回车进行搜索"},on:{search:e.onSearch}}),a("a-tree",{class:e.treeScreenClass,attrs:{checkable:"",treeData:e.treeData,checkStrictly:e.checkStrictly,defaultExpandAll:!0,selectable:e.selectable,autoExpandParent:e.autoExpandParent,expandedKeys:e.expandedKeys,checkedKeys:e.checkedKeys},on:{check:e.onCheck,select:e.onSelect,expand:e.onExpand},scopedSlots:e._u([{key:"title",fn:function(t){var r=t.title;t.isLeaf;return[a("span",[r.indexOf(e.searchValue)>-1?a("span",[e._v("\n "+e._s(r.substr(0,r.indexOf(e.searchValue)))+"\n "),a("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.searchValue))]),e._v("\n "+e._s(r.substr(r.indexOf(e.searchValue)+e.searchValue.length))+"\n ")]):a("span",[e._v(e._s(r))])])]}}])})],1)],1)},n=[],i=a("4ec3"),l=a("0fea");function o(e,t){var a;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=d(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,o=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return l=e.done,e},e:function(e){o=!0,i=e},f:function(){try{l||null==a.return||a.return()}finally{if(o)throw i}}}}function s(e){return p(e)||u(e)||d(e)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return h(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(e,t):void 0}}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var m={name:"JSelectEquipmentDepartModal",props:["modalWidth","multi","rootOpened","departId","store","text","treeOpera"],data:function(){return{visible:!1,confirmLoading:!1,treeData:[],autoExpandParent:!0,expandedKeys:[],allTreeKeys:[],dataList:[],checkedKeys:[],checkedRows:[],searchValue:"",checkStrictly:!0,fullscreen:!1,selectable:!0,url:{queryTreeIdList:"/sys/sysDepart/queryTreeIdList"}}},created:function(){this.loadDepartTree()},watch:{departId:function(){this.initDepartComponent()},visible:{handler:function(){this.initDepartComponent(!0)}}},computed:{treeScreenClass:function(){return{"my-dept-select-tree":!0,fullscreen:this.fullscreen}}},mounted:function(){},methods:{matterTree:function(e){for(var t=0;t<e.length;t++)0==e[t].isLeaf&&(e[t].disabled=!0),e[t].children&&e[t].children.length>0&&this.matterTree(e[t].children);return e},show:function(){this.visible=!0,this.checkedRows=[],this.checkedKeys=[]},loadDepartTree:function(){var e=this;Object(l["c"])(this.url.queryTreeIdList).then((function(t){t.success?(e.allTreeKeys=t.result,e.loadDepart()):e.$notification.warning({message:"消息",description:t.message})})).finally((function(){e.loading=!1}))},loadDepart:function(){var e=this;Object(i["F"])().then((function(t){if(t.success){var a=s(t.result);e.reWriterWithSlot(a),e.treeData=a,e.initDepartComponent(),e.rootOpened&&e.initExpandedKeys(t.result),e.matterTree(e.treeData),e.expandedKeys=e.allTreeKeys}}))},initDepartComponent:function(e){var t=[],a=1==e?"key":this.text;if(this.departId){var r,n=this.departId.split(","),i=o(this.dataList);try{for(i.s();!(r=i.n()).done;){var l=r.value;n.indexOf(l[this.store])>=0&&t.push(l[a])}}catch(s){i.e(s)}finally{i.f()}}1==e?this.checkedKeys=[].concat(t):this.$emit("initComp",t.join(","))},reWriterWithSlot:function(e){var t,a=o(e);try{for(a.s();!(t=a.n()).done;){var r=t.value;if(r.children&&r.children.length>0){this.reWriterWithSlot(r.children);var n=Object.assign({},r);n.children={},this.dataList.push(n)}else this.dataList.push(r),r.scopedSlots={title:"title"}}}catch(i){a.e(i)}finally{a.f()}},initExpandedKeys:function(e){if(e&&e.length>0){var t,a=[],r=o(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.children&&n.children.length>0&&a.push(n.id)}}catch(i){r.e(i)}finally{r.f()}this.expandedKeys=[].concat(a)}else this.expandedKeys=[]},onCheck:function(e,t){var a=this;if(this.multi)this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e,this.checkedRows=this.getCheckedRows(this.checkedKeys);else{var r=e.checked.filter((function(e){return a.checkedKeys.indexOf(e)<0}));this.checkedKeys=s(r),this.checkedRows=0===this.checkedKeys.length?[]:[t.node.dataRef]}},onSelect:function(e,t){if(this.checkStrictly){var a=[];if(a.push(e[0]),this.checkedKeys&&0!==this.checkedKeys.length&&this.multi){var r,n=t.node.dataRef.key;if(this.checkedKeys.indexOf(n)>=0)this.checkedKeys=this.checkedKeys.filter((function(e){return e!==n}));else(r=this.checkedKeys).push.apply(r,a)}else this.checkedKeys=[].concat(a),this.checkedRows=[t.node.dataRef];this.checkedRows=this.getCheckedRows(this.checkedKeys)}},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},handleSubmit:function(){if(this.checkedKeys&&0!=this.checkedKeys.length){var e=this.getCheckedRows(this.checkedKeys),t=this.checkedKeys.join(",");this.$emit("ok",e,t)}else this.$emit("ok","");this.handleClear()},handleCancel:function(){this.handleClear()},handleClear:function(){this.visible=!1,this.checkedKeys=[]},getParentKey:function(e,t){for(var a,r=0;r<t.length;r++){var n=t[r];n.children&&(n.children.some((function(t){return t.key===e}))?a=n.key:this.getParentKey(e,n.children)&&(a=this.getParentKey(e,n.children)))}return a},onSearch:function(e){var t=this,a=this.dataList.map((function(a){return a.title.indexOf(e)>-1?t.getParentKey(a.key,t.treeData):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t}));Object.assign(this,{expandedKeys:a,searchValue:e,autoExpandParent:!0})},getCheckedRows:function(e){var t,a=function e(t,a){var r,n=o(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i.id===a)return i;if(i.children instanceof Array){var l=e(i.children,a);if(null!=l)return l}}}catch(s){n.e(s)}finally{n.f()}return null},r=[],n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,l=a(this.treeData,i);null!=l&&r.push(l)}}catch(s){n.e(s)}finally{n.f()}return r},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},isFullscreen:function(e){this.fullscreen=e}}},f=m,y=(a("5ec7"),a("2877")),b=Object(y["a"])(f,r,n,!1,null,"5b95213c",null);t["default"]=b.exports},eb56:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("j-modal",{attrs:{title:"选择车间",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,wrapClassName:"j-production-select-modal",switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleSubmit,cancel:e.handleCancel,"update:fullscreen":e.isFullscreen}},[a("a-spin",{attrs:{tip:"Loading...",spinning:!1}},[a("a-input-search",{staticStyle:{"margin-bottom":"1px"},attrs:{placeholder:"请输入车间名称按回车进行搜索"},on:{search:e.onSearch}}),a("a-tree",{class:e.treeScreenClass,attrs:{checkable:"",treeData:e.treeData,checkStrictly:e.checkStrictly,autoExpandParent:e.autoExpandParent,expandedKeys:e.expandedKeys,checkedKeys:e.checkedKeys},on:{check:e.onCheck,select:e.onSelect,expand:e.onExpand},scopedSlots:e._u([{key:"title",fn:function(t){var r=t.title;return[r.indexOf(e.searchValue)>-1?a("span",[e._v("\n "+e._s(r.substr(0,r.indexOf(e.searchValue)))+"\n "),a("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.searchValue))]),e._v("\n "+e._s(r.substr(r.indexOf(e.searchValue)+e.searchValue.length))+"\n ")]):a("span",[e._v(e._s(r))])]}}])})],1)],1)},n=[],i=a("4ec3"),l=a("0fea");function o(e,t){var a;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=d(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,o=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return l=e.done,e},e:function(e){o=!0,i=e},f:function(){try{l||null==a.return||a.return()}finally{if(o)throw i}}}}function s(e){return p(e)||u(e)||d(e)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return h(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(e,t):void 0}}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var m={name:"JSelectEquipmentProductionModal",props:["modalWidth","multi","rootOpened","productionId","store","text","treeOpera"],data:function(){return{visible:!1,confirmLoading:!1,treeData:[],autoExpandParent:!0,expandedKeys:[],dataList:[],checkedKeys:[],checkedRows:[],searchValue:"",checkStrictly:!0,fullscreen:!1,allTreeKeys:[],url:{queryTreeIdList:"/mdc/mdcProduction/queryTreeIdList"}}},created:function(){this.loadProductionTree()},watch:{productionId:function(){this.initDepartComponent()},visible:{handler:function(){this.initDepartComponent(!0)}}},computed:{treeScreenClass:function(){return{"my-dept-select-tree":!0,fullscreen:this.fullscreen}}},methods:{loadProductionTree:function(){var e=this;Object(l["c"])(this.url.queryTreeIdList).then((function(t){t.success?(e.allTreeKeys=t.result,e.loadDepart()):e.$notification.warning({message:"消息",description:t.message})})).finally((function(){e.loading=!1}))},matterTree:function(e){for(var t=0;t<e.length;t++)0==e[t].leaf&&(e[t].disabled=!0),e[t].children&&e[t].children.length>0&&this.matterTree(e[t].children);return e},show:function(){this.visible=!0,this.checkedRows=[],this.checkedKeys=[]},loadDepart:function(){var e=this;Object(i["M"])().then((function(t){if(t.success){var a=s(t.result);e.reWriterWithSlot(a),e.treeData=a,e.initDepartComponent(),e.rootOpened&&e.initExpandedKeys(t.result),e.matterTree(e.treeData),e.expandedKeys=e.allTreeKeys}}))},initDepartComponent:function(e){var t=[],a=1==e?"key":this.text;if(this.productionId){var r,n=this.productionId.split(","),i=o(this.dataList);try{for(i.s();!(r=i.n()).done;){var l=r.value;n.indexOf(l[this.store])>=0&&t.push(l[a])}}catch(s){i.e(s)}finally{i.f()}}1==e?this.checkedKeys=[].concat(t):this.$emit("initComp",t.join(","))},reWriterWithSlot:function(e){var t,a=o(e);try{for(a.s();!(t=a.n()).done;){var r=t.value;if(r.children&&r.children.length>0){this.reWriterWithSlot(r.children);var n=Object.assign({},r);n.children={},this.dataList.push(n)}else this.dataList.push(r),r.scopedSlots={title:"title"}}}catch(i){a.e(i)}finally{a.f()}},initExpandedKeys:function(e){if(e&&e.length>0){var t,a=[],r=o(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.children&&n.children.length>0&&a.push(n.id)}}catch(i){r.e(i)}finally{r.f()}this.expandedKeys=[].concat(a)}else this.expandedKeys=[]},onCheck:function(e,t){var a=this;if(this.multi)this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e,this.checkedRows=this.getCheckedRows(this.checkedKeys);else{var r=e.checked.filter((function(e){return a.checkedKeys.indexOf(e)<0}));this.checkedKeys=s(r),this.checkedRows=0===this.checkedKeys.length?[]:[t.node.dataRef]}},onSelect:function(e,t){if(this.checkStrictly){var a=[];if(a.push(e[0]),this.checkedKeys&&0!==this.checkedKeys.length&&this.multi){var r,n=t.node.dataRef.key;if(this.checkedKeys.indexOf(n)>=0)this.checkedKeys=this.checkedKeys.filter((function(e){return e!==n}));else(r=this.checkedKeys).push.apply(r,a)}else this.checkedKeys=[].concat(a),this.checkedRows=[t.node.dataRef];this.checkedRows=this.getCheckedRows(this.checkedKeys)}},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},handleSubmit:function(){if(this.checkedKeys&&0!=this.checkedKeys.length){var e=this.getCheckedRows(this.checkedKeys),t=this.checkedKeys.join(",");this.$emit("ok",e,t)}else this.$emit("ok","");this.handleClear()},handleCancel:function(){this.handleClear()},handleClear:function(){this.visible=!1,this.checkedKeys=[]},getParentKey:function(e,t){for(var a,r=0;r<t.length;r++){var n=t[r];n.children&&(n.children.some((function(t){return t.key===e}))?a=n.key:this.getParentKey(e,n.children)&&(a=this.getParentKey(e,n.children)))}return a},onSearch:function(e){var t=this,a=this.dataList.map((function(a){return a.title.indexOf(e)>-1?t.getParentKey(a.key,t.treeData):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t}));Object.assign(this,{expandedKeys:a,searchValue:e,autoExpandParent:!0})},getCheckedRows:function(e){var t,a=function e(t,a){var r,n=o(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i.id===a)return i;if(i.children instanceof Array){var l=e(i.children,a);if(null!=l)return l}}}catch(s){n.e(s)}finally{n.f()}return null},r=[],n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,l=a(this.treeData,i);null!=l&&r.push(l)}}catch(s){n.e(s)}finally{n.f()}return r},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},isFullscreen:function(e){this.fullscreen=e}}},f=m,y=(a("2041"),a("2877")),b=Object(y["a"])(f,r,n,!1,null,"1128130f",null);t["default"]=b.exports},f178:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:e.title,width:1e3,visible:e.visible,maskClosable:!1,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:7,sm:7}},[a("a-form-item",{attrs:{label:"统一编码"}},[a("a-input",{attrs:{placeholder:"请输入统一编码检索"},model:{value:e.queryParam.equipmentid,callback:function(t){e.$set(e.queryParam,"equipmentid",t)},expression:"queryParam.equipmentid"}})],1)],1),a("a-col",{attrs:{md:7,sm:7}},[a("a-form-item",{attrs:{label:"设备名称"}},[a("a-input",{attrs:{placeholder:"请输入设备名称检索"},model:{value:e.queryParam.equipmentname,callback:function(t){e.$set(e.queryParam,"equipmentname",t)},expression:"queryParam.equipmentname"}})],1)],1),a("a-col",{attrs:{md:3,sm:3}},[a("a-space",[a("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),a("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1)],1),a("div",[a("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",scroll:{y:300},columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:"radio"}},on:{change:e.handleTableChange}})],1)])],1)},n=[],i=(a("4ec3"),a("7b16")),l=a("0fea"),o=a("b65a"),s=a("4349"),c=a("d579"),d=a("f933"),u=a("2dab"),p=(a("c1df"),a("ca00")),h={name:"DeviceListModel",mixins:[o["a"]],components:{JDictSelectTag:i["default"],JEllipsis:c["default"],JInput:s["default"],Tooltip:d["a"],JDate:u["default"]},props:{status:{type:Number,default:1}},data:function(){return{title:"",visible:!1,disableMixinCreated:!0,queryParam:{},columns:[{title:"统一编码",align:"center",dataIndex:"equipmentid"},{title:"设备名称",align:"center",dataIndex:"equipmentname"},{title:"设备型号",align:"center",dataIndex:"equipmentmodel"},{title:"机床IP",align:"center",dataIndex:"equipmentip"},{title:"驱动类型",align:"center",dataIndex:"drivetype"},{title:"端口",align:"center",dataIndex:"dataport"},{title:"数控系统",align:"center",dataIndex:"controlsystem"}],url:{list:"/mdc/equipment/list"}}},created:function(){},methods:{openPage:function(){this.visible=!0,this.onClearSelected(),this.dataSource=[],this.loadData()},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams),e["superQueryMatchType"]=this.superQueryMatchType);var t=Object.assign(e,this.queryParam);return t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,Object(p["d"])(t)},loadData:function(e){var t=this;if(this.url.list){1===e&&(this.ipagination.current=1);var a=this.getQueryParams();if(!a)return!1;this.loading=!0,Object(l["c"])(this.url.list,a).then((function(e){e.success?(t.dataSource=e.result.records||e.result,e.result.total?t.ipagination.total=e.result.total:t.ipagination.total=0):t.$notification.warning({message:"消息",description:e.message})})).finally((function(){t.loading=!1}))}else this.$message.error("请设置url.list属性!")},getQueryField:function(){},modalFormOk:function(e){this.loadData(),this.selectedRowKeys=[e.id]},searchQuery:function(){this.loadData(),this.onClearSelected()},searchReset:function(){this.queryParam={},this.loadData(),this.onClearSelected()},close:function(){this.$emit("close"),this.visible=!1},handleCancel:function(){this.close()},handleOk:function(){this.$emit("sendSelectionRows",this.selectionRows[0]),this.close()}}},m=h,f=(a("489e"),a("2877")),y=Object(f["a"])(m,r,n,!1,null,null,null);t["default"]=y.exports}}]);
|