1 line
46 KiB
JavaScript
1 line
46 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-105a803a","chunk-4261f672"],{"09a1":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("el-dialog",{staticClass:"template-parameter-dialog",attrs:{title:e.$t("template.paramter.038405-0"),visible:e.openEdit,width:"900px","append-to-body":""},on:{"update:visible":function(t){e.openEdit=t}}},[a("el-row",[a("el-col",{staticClass:"model-card",attrs:{span:11}},[a("el-form",{staticClass:"search-form",attrs:{model:e.queryParams,inline:!0,"label-width":"48px",size:"small"}},[a("el-form-item",{attrs:{label:"",prop:"templateName"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:e.$t("template.paramter.038405-1"),clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.templateName,callback:function(t){e.$set(e.queryParams,"templateName",t)},expression:"queryParams.templateName"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleQuery},slot:"append"})],1)],1)],1),a("div",{staticClass:"tip-wrap"},[a("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.$t("template.paramter.038405-3"))+" ")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.templateList,size:"small","highlight-current-row":"",border:!1,"show-header":!1,"row-style":{backgroundColor:"#eee"}},on:{"row-click":e.rowClick}},[a("el-table-column",{attrs:{label:e.$t("template.paramter.038405-4"),width:"30",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("input",{attrs:{type:"radio",disabled:"array"==e.row.datatype||"object"==e.row.datatype,name:"template"},domProps:{checked:e.row.isSelect}})]}}])}),a("el-table-column",{attrs:{label:e.$t("template.paramter.038405-5"),align:"left",prop:"templateName"}}),a("el-table-column",{attrs:{label:e.$t("template.paramter.038405-6"),align:"left",prop:"identifier"}}),a("el-table-column",{attrs:{label:e.$t("template.paramter.038405-7"),align:"center",prop:"datatype",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.iot_data_type,value:t.row.datatype}})]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticStyle:{margin:"0 0 10px","background-color":"#eee"},attrs:{small:"",layout:"prev, pager, next",total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1),a("el-col",{attrs:{span:11,offset:1}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:e.$t("template.paramter.038405-8"),prop:"name"}},[a("el-input",{staticStyle:{width:"290px"},attrs:{placeholder:e.$t("template.paramter.038405-9")},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:e.$t("template.paramter.038405-10"),prop:"id"}},[a("el-input",{staticStyle:{width:"290px"},attrs:{placeholder:e.$t("template.paramter.038405-11")},model:{value:e.form.id,callback:function(t){e.$set(e.form,"id",t)},expression:"form.id"}})],1),a("el-form-item",{attrs:{label:e.$t("template.paramter.038405-12"),prop:"order"}},[a("el-input-number",{staticStyle:{width:"290px"},attrs:{"controls-position":"right",placeholder:e.$t("template.paramter.038405-13"),type:"number"},model:{value:e.form.order,callback:function(t){e.$set(e.form,"order",t)},expression:"form.order"}})],1),a("el-form-item",{attrs:{label:e.$t("template.paramter.038405-14"),prop:"property"}},[a("el-checkbox",{attrs:{name:"isChart",label:e.$t("template.paramter.038405-15"),"true-label":1,"false-label":0},on:{change:e.isChartChange},model:{value:e.form.isChart,callback:function(t){e.$set(e.form,"isChart",t)},expression:"form.isChart"}}),a("el-checkbox",
|