FastBee/docker/data/nginx/vue/static/js/chunk-1af3704d.7b89c926.js

1 line
35 KiB
JavaScript
Raw Permalink Normal View History

2025-07-07 09:21:15 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1af3704d","chunk-2d0a3715"],{"01ca":function(e,t,a){"use strict";a.d(t,"f",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"g",(function(){return s})),a.d(t,"a",(function(){return l})),a.d(t,"e",(function(){return n})),a.d(t,"i",(function(){return c})),a.d(t,"c",(function(){return m})),a.d(t,"b",(function(){return d})),a.d(t,"h",(function(){return p}));var r=a("b775");function i(e){return Object(r["a"])({url:"/iot/model/list",method:"get",params:e})}function o(e){return Object(r["a"])({url:"/iot/model/"+e,method:"get"})}function s(e){return Object(r["a"])({url:"/iot/model/permList/"+e,method:"get"})}function l(e){return Object(r["a"])({url:"/iot/model",method:"post",data:e})}function n(e){return Object(r["a"])({url:"/iot/model/import",method:"post",data:e})}function c(e){return Object(r["a"])({url:"/iot/model",method:"put",data:e})}function m(e){return Object(r["a"])({url:"/iot/model/"+e,method:"delete"})}function d(e){return Object(r["a"])({url:"/iot/model/cache/"+e,method:"get"})}function p(e){return Object(r["a"])({url:"/iot/model/synchron",method:"post",data:e})}},1788: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",{staticStyle:{padding:"6px"}},[a("el-card",{staticStyle:{"margin-bottom":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"font-weight":"bold"}},[e._v("变量模板")]),a("el-button",{staticStyle:{float:"right",padding:"5px 15px"},attrs:{size:"mini",type:"info"},on:{click:e.goBack}},[e._v("返回")])],1),a("el-form",{ref:"form",staticStyle:{"margin-bottom":"-20px"},attrs:{inline:"",model:e.content,"label-width":"150px",align:"left"}},[a("el-form-item",{attrs:{label:"模板名称: ",size:"mini"}},[a("span",[e._v(e._s(e.content.templateName))])]),a("el-form-item",{attrs:{label:"采集方式: ",size:"mini"}},[a("dict-tag",{staticStyle:{display:"inline-block"},attrs:{options:e.dict.type.data_collect_type,value:e.content.pollingMethod,size:"small"}})],1)],1)],1),a("el-card",{staticStyle:{padding:"-10px","padding-bottom":"30px"}},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:8}},[a("div",{staticStyle:{border:"1px solid #e6ebf5"}},[a("div",{staticStyle:{padding:"20px 20px 30px 20px","background-color":"#f8f8f9"}},[a("span",{staticStyle:{"font-size":"15px","font-weight":"bold"}},[e._v("从机列表")]),a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"mini"},on:{click:e.addSalve}},[e._v("添加从机")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%",height:"500px"},attrs:{data:e.salveList,size:"mini","highlight-current-row":""},on:{"row-click":e.handleSelectionChange}},[a("el-table-column",{attrs:{label:"选择",width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("input",{attrs:{type:"radio"},domProps:{checked:e.row.isSelect}})]}}])}),a("el-table-column",{attrs:{prop:"slaveName",label:"从机名称","header-align":"center",align:"left","min-width":"120"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["iot:temp:edit"],expression:"['iot:temp:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdateSlave(t.row)}}},[e._v("编辑 ")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["iot:temp:remove"],expression:"['iot:temp:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return e.handleDeleteSalve(t.row)}}},[e._v("删除 ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.slaveTotal>0,expression:"slaveTotal>0"}],attrs:{total:e.slaveTotal,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.q