(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-02e1731c"],{
/***/"2e4c":
/***/function(e,a,t){"use strict";
/* harmony import */t("e612");
/* harmony import */},
/***/"86ba":
/***/function(e,a,t){"use strict";
// ESM COMPAT FLAG
t.r(a);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/dataModel/DLT645/DLT645Data.vue?vue&type=template&id=9e1db33a
var r=t("2909"),o=(t("d9e2"),t("4de4"),t("14d9"),t("b0c0"),t("d3b7"),t("ac1f"),t("00b4"),t("25f0"),t("0643"),t("2382"),t("c7eb")),s=t("1da1"),d=t("7424"),i=t("b775");
// CONCATENATED MODULE: ./src/services/dlt645Model.js
function l(e){return n.apply(this,arguments)}function n(){return(n=Object(s.a)(Object(o.a)().mark((function e(a){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(i.g)(d.DLT645MODELNODEIDADD,i.b.POST,a));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return u.apply(this,arguments)}function u(){return(u=Object(s.a)(Object(o.a)().mark((function e(a){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(i.g)(d.DLT645MODELNODEIDDEL,i.b.POST,a));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return p.apply(this,arguments)}function p(){return(p=Object(s.a)(Object(o.a)().mark((function e(a){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(i.g)(d.DLT645MODELNODEIDEDIT,i.b.POST,a));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return v.apply(this,arguments)}function v(){return(v=Object(s.a)(Object(o.a)().mark((function e(a){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(i.g)(d.DLT645MODELNODEIDLIST,i.b.POST,a));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}
/* harmony default export */var h=t("f2d9"),D=[],R={name:"DLT645ModelNodeID",i18n:t("89fe"),data:function(){return{isEdit:!1,pagination:{pageSize:15,showSizeChanger:!0},DataRecordType:0,importUrl:d.ImportNodeID+"/"+this.$route.params.uid,registerGroupListTable:!0,error:"",NodeIDAccessLevel:[],ShowRegisterLoading:!1,alarmStatus:0,recordStatus:0,EditForm:this.$form.createForm(this),RegisterForm:this.$form.createForm(this),selectDataTableUuid:[],rowSelection:{onSelect:this.onDataTableSelect,onSelectAll:this.onDataTableSelectAll},RegisterVisible:!1,editVisible:!1,messageShowLoad:!1,RegisterMessageShowLoad:!1,json_fields_cn:{"数据名称":"name",
//常规字段
"信息点地址":"DataIdentification","权限(ReadOnly,ReadWrite)":"auth","类型":{field:"type",
//自定义回调函数
callback:function(e){switch(e){case"1":return"Boolean";case"2":return"SByte";case"3":return"Byte";case"4":return"Int16";case"5":return"UInt16";case"6":return"Int32";case"7":return"UInt32";case"8":return"Int64";case"9":return"UInt64";case"10":return"Float";case"11":return"Double";case"12":return"String"}}},"单位":"unit","转换关系":"conversionExpression","是否告警(是,否)":{field:"alarm",
//自定义回调函数
callback:function(e){switch(e){case 0:return"否";case 1:return"是"}}},"告警等级(提示、次要、重要、紧急、致命)":{field:"alarmLevel",
//自定义回调函数
callback:function(e){switch(e){case 0:return"提示";case 1:return"次要";case 2:return"重要";case 3:return"紧急";case 4:return"致命"}}},"告警消息":"AlarmMessage","告警消除消息":"AlarmClearMessage","是否存储(是,否)":{field:"record",
//自定义回调函数
callback:function(e){switch(e){case 0:return"否";case 1:return"是"}}},"存储类型(变化存储、定时存储、即时存储)":{field:"RecordType",
//自定义回调函数
callback:function(e){switch(e){case 0:return"变化存储";case 1:return"定时存储";case 2:return"即时存储"}}},"定时时间":"recordInterval","变化值":"RecordDataCharge","保留小数":"FloatAccuracy","模型类型(勿修改)":"modeltype","数据ID(勿修改)":"uuid"},json_meta:[[{" key ":" charset "," value ":" utf- 8 "}]],exportName:"DLT645数据模板",localUpgradeUrl:d.LOCALUPGATEDATAMODEL+"/"+this.$route.params.uid,registerGroupColumns:[{slotName:this.$t("dataModel.opcuaModel.NodeIDName"),scopedSlots:{customRender:"name",title:this.$t("dataModel.opcuaModel.NodeIDName")},width:"15%",dataIndex:"name"},{slotName:this.$t("dataModel.DLT645Model.DataFlag"),scopedSlots:{customRender:"DataIdentification",title:this.$t("dataModel.DLT645Model.DataFlag")},width:"15%",align:"left",dataIndex:"DataIdentification"},{slotName:this.$t("dataModel.opcuaModel.NodeIDDataType"),scopedSlots:{customRender:"NodeIDDataType",title:this.$t("dataModel.opcuaModel.NodeIDDataType")},width:"15%",align:"center",dataIndex:"type"},{slotName:this.$t("dataModel.opcuaModel.NodeIDAccessLevel"),scopedSlots:{customRender:"NodeIDAccessLevel",title:this.$t("dataModel.opcuaModel.NodeIDAccessLevel")},width:"15%",align:"center",dataIndex:"auth"},{title:this.$t("dataModel.modelTableOpt"),width:"15%",scopedSlots:{customRender:"action"}}],dataSource:D,registerGroupDataSource:[],selectedRows:[]}},created:function(){this.NodeIdList(),this.registerGroupListTable=!0},components:{DownloadExcel:h.a},activated:function(){},mounted:function(){},computed:{},methods:{isSpec:function(e){return/[~!@#$%^&*<>|'-]/gi.test(e)},isValidateTxtNonSpec:function(e,a,t){if(null!=a&&""!==a){var r=a.charAt(0);this.isSpec(a)||-1!==a.indexOf(" ")||!isNaN(parseFloat(r))&&isFinite(r)?t(new Error("不能包含特殊字符或空格")):t()}else t()},localUpgradeCharge:function(e){if(this.dataSource=[],this.messageShowLoad=!0,"done"===e.file.status){var a=e.file.response;this.$message.destroy(),0==a.Code?(this.$message.success("".concat(e.file.name," ")+this.$t("dataModel.importSuccess")),this.NodeIdList()):-2==a.Code?this.$message.error("".concat(e.file.name," ")+this.$t("dataModel.FormatError")):this.$message.error("".concat(e.file.name," ")+this.$t("SystemUpgrade.UpgradeFileSaveError"))}else e.file.status;this.messageShowLoad=!1},chargeDataRecordType:function(e){this.DataRecordType=parseInt(e)},beforeUpload:function(){this.$message.loading({content:this.$t("dataModel.opcuaModel.ImportNodeIDLoading"),loadingKey:"updatable",duration:0})},nodeidImport:function(e){this.dataSource=[];var a=this;(this.messageShowLoad=!0,"done"===e.file.status)&&(0==e.file.response.Code?(this.NodeIdList(),this.$message.success(this.$t("dataModel.opcuaModel.ImportNodeIDSuccess")),setTimeout((function(){a.$message.destroy()}),1e3)):(this.$message.error(this.$t("dataModel.opcuaModel.ImportNodeIDFailed")),setTimeout((function(){a.$message.destroy()}),1e3)));this.messageShowLoad=!1},onClose:function(){this.RegisterVisible=!1},edit:function(e){var a=this;this.isEdit=!0,this.RegisterVisible=!0,this.editingKey=e.uuid,this.alarmStatus=e.alarm,this.recordStatus=e.record,this.ShowRegisterLoading=!0,this.DataRecordType=e.RecordType,0==e.recordInterval&&(e.recordInterval=1),setTimeout((function(){a.RegisterForm.setFieldsValue({NodeIDName:e.name,DataFlag:e.DataIdentification,NodeIDDataType:e.type,NodeIDAccessLevel:e.auth,dataUnit:e.unit,NodeIDDec:e.Description,ConversionExpression:e.conversionExpression}),1==e.alarm?a.RegisterForm.setFieldsValue({dataAlarm:e.alarm.toString(),AlarmLevel:e.alarmLevel.toString(),dataRecord:e.record.toString(),AlarmMessage:e.AlarmMessage,AlarmClearMessage:e.AlarmClearMessage}):1==e.record?a.RegisterForm.setFieldsValue({dataAlarm:e.alarm.toString(),dataRecord:e.record.toString(),dataRecordType:e.RecordType.toString(),dataRecordChargeValue:e.RecordDataCharge.toString(),dataRecordTime:e.recordInterval.toString()}):a.RegisterForm.setFieldsValue({dataRecord:e.record.toString(),dataAlarm:e.alarm.toString()}),a.ShowRegisterLoading=!1}),500),this.editVisible=!0},save:function(){var e=this;this.RegisterForm.validateFields((function(a){if(!a){var t={uuid:e.editingKey,muid:e.$route.params.uid,data:{name:e.RegisterForm.getFieldValue("NodeIDName"),DataIdentification:e.RegisterForm.getFieldValue("DataFlag"),auth:e.RegisterForm.getFieldValue("NodeIDAccessLevel"),type:e.RegisterForm.getFieldValue("NodeIDDataType"),unit:e.RegisterForm.getFieldValue("dataUnit"),conversionExpression:e.RegisterForm.getFieldValue("ConversionExpression"),alarm:parseInt(e.RegisterForm.getFieldValue("dataAlarm")),record:parseInt(e.RegisterForm.getFieldValue("dataRecord")),Description:e.RegisterForm.getFieldValue("NodeIDDec")}};1==t.data.alarm&&(t.data.alarmLevel=parseInt(e.RegisterForm.getFieldValue("AlarmLevel")),t.data.AlarmMessage=e.RegisterForm.getFieldValue("AlarmMessage"),t.data.AlarmClearMessage=e.RegisterForm.getFieldValue("AlarmClearMessage")),1==t.data.record&&(t.data.recordInterval=parseInt(e.RegisterForm.getFieldValue("dataRecordTime")),t.data.RecordType=parseInt(e.RegisterForm.getFieldValue("dataRecordType")),t.data.recordInterval=parseInt(e.RegisterForm.getFieldValue("dataRecordTime")),t.data.RecordDataCharge=e.RegisterForm.getFieldValue("dataRecordChargeValue")?e.RegisterForm.getFieldValue("dataRecordChargeValue").toString():"");var o=e;m(t).then((function(e){if(2002==e.data.code){var a=Object(r.a)(o.registerGroupDataSource),t=a.filter((function(e){return o.editingKey===e.uuid}))[0];t&&(t.name=o.RegisterForm.getFieldValue("NodeIDName"),t.DataIdentification=o.RegisterForm.getFieldValue("DataFlag"),t.auth=o.RegisterForm.getFieldValue("NodeIDAccessLevel"),t.type=o.RegisterForm.getFieldValue("NodeIDDataType"),t.unit=o.RegisterForm.getFieldValue("dataUnit"),t.conversionExpression=o.RegisterForm.getFieldValue("ConversionExpression"),t.alarm=parseInt(o.RegisterForm.getFieldValue("dataAlarm")),t.alarmLevel=parseInt(o.RegisterForm.getFieldValue("AlarmLevel")),t.AlarmMessage=o.RegisterForm.getFieldValue("AlarmMessage"),t.AlarmClearMessage=o.RegisterForm.getFieldValue("AlarmClearMessage"),t.record=parseInt(o.RegisterForm.getFieldValue("dataRecord")),t.RecordType=parseInt(o.RegisterForm.getFieldValue("dataRecordType")),t.recordInterval=parseInt(o.RegisterForm.getFieldValue("dataRecordTime")),t.RecordDataCharge=o.RegisterForm.getFieldValue("dataRecordChargeValue")?o.RegisterForm.getFieldValue("dataRecordChargeValue").toString():"",o.registerGroupDataSource=a),o.$message.success(o.$t("dataModel.saveSuccess")),o.RegisterVisible=!1}else o.$message.error(o.$t("dataModel.saveFailed"))}))}}))},NodeIdList:function(){this.messageShowLoad=!0;var e={muid:this.$route.params.uid};this.RegisterVisible=!1;var a=this;a.registerGroupDataSource=[],g(e).then((function(e){a.messageShowLoad=!1,0==e.data.code&&(a.registerGroupDataSource=e.data.list)})).catch((function(){a.messageShowLoad=!1,a.$message.error(a.$t("loginPage.serverError"),3)}))},AddNodeId:function(){var e=this;this.RegisterForm.validateFields((function(a){if(!a){e.messageShowLoad=!0;var t={muid:e.$route.params.uid,modeltype:30,name:e.RegisterForm.getFieldValue("NodeIDName"),DataIdentification:e.RegisterForm.getFieldValue("DataFlag"),auth:e.RegisterForm.getFieldValue("NodeIDAccessLevel"),type:e.RegisterForm.getFieldValue("NodeIDDataType"),unit:e.RegisterForm.getFieldValue("dataUnit"),conversionExpression:e.RegisterForm.getFieldValue("ConversionExpression"),alarm:parseInt(e.RegisterForm.getFieldValue("dataAlarm")),alarmLevel:parseInt(e.RegisterForm.getFieldValue("AlarmLevel")),AlarmMessage:e.RegisterForm.getFieldValue("AlarmMessage"),AlarmClearMessage:e.RegisterForm.getFieldValue("AlarmClearMessage"),record:parseInt(e.RegisterForm.getFieldValue("dataRecord")),RecordType:e.RegisterForm.getFieldValue("dataRecordType")?parseInt(e.RegisterForm.getFieldValue("dataRecordType")):0,recordInterval:e.RegisterForm.getFieldValue("dataRecordTime")?parseInt(e.RegisterForm.getFieldValue("dataRecordTime")):0,RecordDataCharge:e.RegisterForm.getFieldValue("dataRecordChargeValue")?e.RegisterForm.getFieldValue("dataRecordChargeValue").toString():"",Description:e.RegisterForm.getFieldValue("NodeIDDec")};e.RegisterVisible=!1;var r=e;l(t).then((function(e){r.messageShowLoad=!1,2002==e.data.code?(r.NodeIdList(),r.$message.success(r.$t("dataModel.saveSuccess"))):2001==e.data.code?r.$message.error(r.$t("dataModel.modbusModel.RegisterExist")):r.$message.error(r.$t("dataModel.saveFailed"))})).catch((function(){r.messageShowLoad=!1,r.$message.error(r.$t("loginPage.serverError"),3)}))}}))},deleteRecord:function(e,a){var t=this;c({uuid:e,muid:a}).then((function(e){200==e.data.code?(t.$message.success(t.$t("dataModel.deleteSuccess")),t.NodeIdList()):t.$message.error(t.$t("dataModel.deleteFailed"))}))},onBlackCLK:function(){this.$router.push("/DeviceModel/DLT645Model")},alarmCharge:function(e){this.alarmStatus=parseInt(e);var a=this;this.$nextTick((function(){a.RegisterForm.setFieldsValue({AlarmLevel:"0"})}))},recordCharge:function(e){this.recordStatus=parseInt(e)}}},M=(t("2e4c"),t("2877")),f=Object(M.a)(R,(function(){var e=this,a=e._self._c;return a("div",[a("a-card",{staticStyle:{"min-height":"400px"}},[a("a-space",{staticClass:"operator"},[a("a-button",{attrs:{type:"primary"},on:{click:function(a){e.RegisterVisible=!0,e.isEdit=!1}}},[a("a-icon",{attrs:{type:"plus"}}),e._v(" "+e._s(e.$t("dataModel.DLT645Model.AddData")))],1),a("download-excel",{staticClass:"export-excel-wrapper",attrs:{data:e.registerGroupDataSource,fields:e.json_fields_cn,type:"xls",name:e.exportName}},[a("a-button",{attrs:{type:"link"}},[a("a-icon",{attrs:{type:"export"}}),e._v(e._s(e.$t("dataModel.export")))],1)],1),a("a-upload",{attrs:{name:"file",multiple:!1,action:e.localUpgradeUrl,showUploadList:!1,beforeUpload:e.beforeUpload},on:{change:e.localUpgradeCharge}},[a("a-button",{attrs:{type:"link"}},[a("a-icon",{attrs:{type:"import"}}),e._v(" "+e._s(e.$t("dataModel.import"))+" ")],1)],1),a("a-button",{attrs:{type:"link"},on:{click:function(a){return e.onBlackCLK()}}},[a("a-icon",{attrs:{type:"backward"}}),e._v(" "+e._s(e.$t("dataModel.opcuaModel.Back")))],1)],1),a("a-spin",{staticStyle:{padding:"1px"},attrs:{spinning:e.messageShowLoad,tip:"Loading..."}},[a("a-table",{staticClass:"ant-table-tbody",attrs:{pagination:e.pagination,rowKey:"name",columns:e.registerGroupColumns,"data-source":e.registerGroupDataSource},scopedSlots:e._u([{key:"NodeIDDataType",fn:function(t){return[1==t?a("span",[e._v(" Boolean")]):2==t?a("span",[e._v(" SByte")]):3==t?a("span",[e._v(" Byte ")]):4==t?a("span",[e._v(" Int16")]):5==t?a("span",[e._v(" UInt16")]):6==t?a("span",[e._v(" Int32")]):7==t?a("span",[e._v(" UInt32")]):8==t?a("span",[e._v(" Int64")]):9==t?a("span",[e._v(" UInt64")]):10==t?a("span",[e._v(" Float")]):11==t?a("span",[e._v(" Double")]):12==t?a("span",[e._v(" String")]):e._e()]}},{key:"auth",fn:function(t){return["ReadOnly"==t?a("span",[e._v(" ReadOnly")]):"ReadWrite"==t?a("span",[e._v(" ReadWrite")]):"WriteOnly"==t?a("span",[e._v(" WriteOnly")]):e._e()]}},{key:"action",fn:function(t,r){return[a("div",{staticClass:"editable-row-operations"},[a("span",[a("a",{on:{click:function(){return e.edit(r)}}},[a("a-icon",{attrs:{type:"edit"}}),e._v(" "+e._s(e.$t("dataModel.opcuaModel.NodeIDEdit")))],1)]),a("a-popconfirm",{attrs:{title:e.$t("dataModel.deleteConfirm")},on:{confirm:function(a){return e.deleteRecord(r.uuid,r.muid)}}},[a("a-icon",{staticStyle:{color:"red"},attrs:{slot:"icon",type:"question-circle-o"},slot:"icon"}),a("a-icon",{attrs:{type:"delete",theme:"twoTone","two-tone-color":"#eb2f96"}}),a("a",{staticStyle:{color:"#eb2f96"}},[e._v(e._s(e.$t("dataModel.delete")))])],1)],1)]}}])},[e._l(e.registerGroupColumns,(function(t,r){return a("template",{slot:t.slotName},[a("span",{key:r},[e._v(e._s(e.$t(t.slotName)))])])}))],2)],1)],1),a("a-drawer",{attrs:{title:e.isEdit?e.$t("dataModel.opcuaModel.EditNodeID"):e.$t("dataModel.opcuaModel.AddNodeID"),width:720,visible:e.RegisterVisible,"body-style":{paddingBottom:"80px"}},on:{close:e.onClose}},[a("a-spin",{staticStyle:{padding:"1px"},attrs:{spinning:e.ShowRegisterLoading,tip:"Loading..."}},[a("a-form",{attrs:{form:e.RegisterForm,layout:"vertical"},on:{submit:e.AddNodeId}},[a("a-alert",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticStyle:{"margin-bottom":"24px"},attrs:{type:"error",closable:!0,message:e.error,showIcon:""}}),a("a-row",{attrs:{gutter:16}},[a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.opcuaModel.NodeIDName")}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["NodeIDName",{rules:[{required:!0,validator:e.isValidateTxtNonSpec,message:e.$t("device.deviceNameVal"),whitespace:!0}]}],expression:"['NodeIDName', {rules: [{ required: true, validator: isValidateTxtNonSpec, message: $t('device.deviceNameVal'), whitespace: true}]}]"}],attrs:{autocomplete:"autocomplete"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.DLT645Model.DataFlag")}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["DataFlag",{rules:[{required:!0,message:e.$t("dataModel.DLT645Model.DataFlag"),whitespace:!0}]}],expression:"['DataFlag', {rules: [{ required: true, message: $t('dataModel.DLT645Model.DataFlag'), whitespace: true}]}]"}],attrs:{autocomplete:"autocomplete"}})],1)],1)],1),a("a-row",{attrs:{gutter:16}},[a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.opcuaModel.NodeIDDataType")}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["NodeIDDataType",{initialValue:"10",rules:[{required:!0,message:e.$t("dataModel.opcuaModel.NodeIDDataType"),whitespace:!0}]}],expression:"['NodeIDDataType', {initialValue:'10',rules: [{ required: true, message: $t('dataModel.opcuaModel.NodeIDDataType'), whitespace: true}]}]"}],staticClass:"DataType",attrs:{autocomplete:"autocomplete"}},[a("a-select-option",{attrs:{value:"8"}},[e._v("Int64")]),a("a-select-option",{attrs:{value:"9"}},[e._v("UInt64")]),a("a-select-option",{attrs:{value:"10"}},[e._v("Float")]),a("a-select-option",{attrs:{value:"11"}},[e._v("Double")])],1)],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.opcuaModel.NodeIDAccessLevel")}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["NodeIDAccessLevel",{initialValue:"ReadWrite",rules:[{required:!0,message:e.$t("dataModel.opcuaModel.NodeIDAccessLevel"),whitespace:!0}]}],expression:"['NodeIDAccessLevel', {initialValue:'ReadWrite',rules: [{ required: true, message: $t('dataModel.opcuaModel.NodeIDAccessLevel'), whitespace: true}]}]"}],staticClass:"DataType",attrs:{autocomplete:"autocomplete"}},[a("a-select-option",{attrs:{value:"ReadOnly"}},[e._v("ReadOnly")]),a("a-select-option",{attrs:{value:"ReadWrite"}},[e._v("ReadWrite")]),a("a-select-option",{attrs:{value:"WriteOnly"}},[e._v("WriteOnly")])],1)],1)],1)],1),a("a-row",{attrs:{gutter:16}},[a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.modbusModel.ConversionExpression")}},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[e._v(e._s(e.$t("dataModel.modbusModel.ConversionExpressionTips")))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ConversionExpression",{rules:[{required:!1,message:e.$t("dataModel.modbusModel.ConversionExpression")}]}],expression:"[\n                      'ConversionExpression',\n                      {\n                        rules: [{ required: false, message: $t('dataModel.modbusModel.ConversionExpression') }],\n                      },\n                    ]"}],attrs:{autocomplete:"autocomplete"}})],2)],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.editData.dataUnit")}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataUnit",{rules:[{required:!1,message:e.$t("dataModel.editData.dataUnit")}]}],expression:"[\n                    'dataUnit',\n                    {\n                      rules: [{ required: false, message: $t('dataModel.editData.dataUnit') }],\n                    },\n                  ]"}],attrs:{autocomplete:"autocomplete"}})],1)],1)],1),a("a-row",{attrs:{gutter:16}},[a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.editData.dataAlarm")}},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[e._v(e._s(e.$t("dataModel.editData.dataAlarmTips")))])]),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataAlarm",{initialValue:"0",rules:[{required:!0,message:e.$t("dataModel.editData.dataAlarm")}]}],expression:"[\n                        'dataAlarm',\n                        {\n                         initialValue:'0', rules: [{ required: true, message: $t('dataModel.editData.dataAlarm') }],\n                        },\n                      ]"}],attrs:{autocomplete:"autocomplete"},on:{change:e.alarmCharge}},[a("a-select-option",{attrs:{value:"1"}},[e._v(e._s(e.$t("dataModel.editData.dataAlarmYes")))]),a("a-select-option",{attrs:{value:"0"}},[e._v(e._s(e.$t("dataModel.editData.dataAlarmNo")))])],1)],2)],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.editData.dataRecord")}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataRecord",{initialValue:"0",rules:[{required:!0,message:e.$t("dataModel.editData.dataRecord")}]}],expression:"[\n                    'dataRecord',\n                    {\n                     initialValue:'0', rules: [{ required: true, message: $t('dataModel.editData.dataRecord') }],\n                    },\n                  ]"}],attrs:{autocomplete:"autocomplete"},on:{change:e.recordCharge}},[a("a-select-option",{attrs:{value:"1",selectd:""}},[e._v(e._s(e.$t("dataModel.editData.dataAlarmYes")))]),a("a-select-option",{attrs:{value:"0"}},[e._v(e._s(e.$t("dataModel.editData.dataAlarmNo")))])],1)],1)],1)],1),e.alarmStatus?a("div",[a("a-row",{attrs:{gutter:16}},[a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.AlarmLevel")}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["AlarmLevel",{rules:[{required:!0,message:e.$t("dataModel.AlarmLevel")}]}],expression:"[\n                    'AlarmLevel',\n                    {\n                      rules: [{ required: true, message: $t('dataModel.AlarmLevel') }],\n                    },\n                  ]"}],attrs:{autocomplete:"autocomplete"}},[a("a-select-option",{attrs:{value:"0"}},[e._v(e._s(e.$t("dataModel.alarm.Tips")))]),a("a-select-option",{attrs:{value:"1"}},[e._v(e._s(e.$t("dataModel.alarm.Minor")))]),a("a-select-option",{attrs:{value:"2"}},[e._v(e._s(e.$t("dataModel.alarm.Importance")))]),a("a-select-option",{attrs:{value:"3"}},[e._v(e._s(e.$t("dataModel.alarm.Urgency")))]),a("a-select-option",{attrs:{value:"4"}},[e._v(e._s(e.$t("dataModel.alarm.Deadly")))])],1)],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.editData.AlarmMessage")}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["AlarmMessage",{rules:[{required:!0,message:e.$t("dataModel.editData.AlarmMessage")}]}],expression:"[\n                      'AlarmMessage',\n                      {\n                        rules: [{ required: true, message: $t('dataModel.editData.AlarmMessage') }],\n                      },\n                    ]"}],attrs:{autocomplete:"autocomplete"}})],1)],1),a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.editData.AlarmClearMessage")}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["AlarmClearMessage",{rules:[{required:!1,message:e.$t("dataModel.editData.AlarmClearMessage")}]}],expression:"[\n                    'AlarmClearMessage',\n                    {\n                      rules: [{ required: false, message: $t('dataModel.editData.AlarmClearMessage') }],\n                    },\n                  ]"}],attrs:{autocomplete:"autocomplete"}})],1)],1)],1)],1):a("div",[a("a-row",{attrs:{gutter:16}},[e.recordStatus?a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.dataRecordType")}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataRecordType",{rules:[{required:!0,message:e.$t("dataModel.dataRecordType")}],initialValue:"0"}],expression:"[\n                'dataRecordType',\n                {\n                  rules: [{ required: true, message: $t('dataModel.dataRecordType') }],\n                  initialValue: '0'\n                },\n              ]"}],attrs:{autocomplete:"autocomplete"},on:{change:e.chargeDataRecordType}},[a("a-select-option",{attrs:{value:"1"}},[e._v(e._s(e.$t("dataModel.dataRecordTimely")))]),a("a-select-option",{attrs:{value:"0"}},[e._v(e._s(e.$t("dataModel.dataRecordCharge")))]),a("a-select-option",{attrs:{value:"2"}},[e._v(e._s(e.$t("dataModel.dataRecordNow")))]),a("a-select-option",{attrs:{value:"3"}},[e._v(e._s(e.$t("dataModel.dataRecordChangeRate")))])],1)],1)],1):e._e(),!e.recordStatus||0!=e.DataRecordType&&3!=e.DataRecordType?e._e():a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:0==e.DataRecordType?e.$t("dataModel.dataRecordChargeValue"):e.$t("dataModel.dataRecordChangeRateValue")}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataRecordChargeValue",{rules:[{required:!0,message:e.$t("dataModel.dataRecordChargeValue")}]}],expression:"[\n                'dataRecordChargeValue',\n                {\n                  rules: [{ required: true, message: $t('dataModel.dataRecordChargeValue') }],\n                },\n              ]"}],staticStyle:{width:"100%"},attrs:{min:1,autocomplete:"autocomplete"}})],1)],1),e.recordStatus&&1==e.DataRecordType?a("a-col",{attrs:{span:12}},[a("a-form-item",{attrs:{label:e.$t("dataModel.editData.dataRecordTime")}},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataRecordTime",{rules:[{required:!0,message:e.$t("dataModel.editData.dataRecordTime")}]}],expression:"[\n                'dataRecordTime',\n                {\n                  rules: [{ required: true, message: $t('dataModel.editData.dataRecordTime') }],\n                },\n              ]"}],staticStyle:{width:"100%"},attrs:{min:1,autocomplete:"autocomplete"}})],1)],1):e._e()],1)],1),a("a-row",{attrs:{gutter:16}},[a("a-col",{attrs:{span:24}},[a("a-form-item",{attrs:{label:e.$t("dataModel.opcuaModel.NodeIDDec")}},[a("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["NodeIDDec",{rules:[{required:!1,message:e.$t("dataModel.opcuaModel.NodeIDDec"),whitespace:!0}]}],expression:"['NodeIDDec', {rules: [{ required: false, message: $t('dataModel.opcuaModel.NodeIDDec'), whitespace: true}]}]"}],attrs:{autocomplete:"autocomplete"}})],1)],1)],1)],1)],1),a("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[e.isEdit?a("a-button",{key:"submit",style:{marginRight:"8px"},attrs:{type:"primary"},on:{click:e.save}},[e._v(" "+e._s(e.$t("component.deviceDataModel.Edit"))+" ")]):a("a-button",{key:"submit",style:{marginRight:"8px"},attrs:{type:"primary"},on:{click:e.AddNodeId}},[e._v(" "+e._s(e.$t("component.deviceDataModel.submit"))+" ")]),a("a-button",{key:"back",on:{click:function(a){e.RegisterVisible=!1}}},[e._v(" "+e._s(e.$t("component.deviceDataModel.cancel"))+" ")])],1)],1)],1)}),[],!1,null,null,null)
/* harmony default export */;
// EXTERNAL MODULE: ./node_modules/vue-json-excel/dist/vue-json-excel.esm.js
a.default=f.exports},
/***/e612:
/***/function(e,a,t){
// extracted by mini-css-extract-plugin
/***/}}]);