You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 regels
7.9 KiB

  1. webpackJsonp([76],{FTbb:function(e,t,a){"use strict";var l=a("m0zh");t.a={data:function(){return{list:null,listLoading:!0,listQuery:{startDate:"",endDate:"",strategyName:"",limit:10,offset:0},currPage:1,total:null,status:{0:"可用",1:"已取消"},multipleSelection:[],dialogTableVisible:!1,req:{strategyName:"",strategyList:[],deviceList:[]}}},created:function(){this.fetchData()},filters:{dateF:function(e){return e.Format("yyyy-MM-dd")}},methods:{fetchData:function(){var e=this;this.listLoading=!0,a.i(l.a)(this.listQuery).then(function(t){e.list=t.result.rows,e.total=t.result.total,e.listLoading=!1})},resetForm:function(e){this.$refs[e].resetFields()},handleSizeChange:function(e){this.listQuery.limit=e,this.listQuery.offset=(this.currPage-1)*e,this.fetchData()},handleCurrentChange:function(e){this.currPage=e,this.listQuery.offset=this.listQuery.limit*(e-1),this.fetchData()},showConf:function(e){var t=this;a.i(l.b)(e).then(function(e){t.req.strategyList=e.result.configStrategyList,t.req.deviceList=e.result.deviceList,t.dialogTableVisible=!0})},openUrl:function(e){window.open(e)}}}},m0zh:function(e,t,a){"use strict";function l(e){return a.i(i.a)({url:"/service-device/configStrategyGroups",method:"post",data:e})}function r(e){return a.i(i.a)({url:"/service-device/configStrategyGroup",method:"post",data:e})}function n(e){return a.i(i.a)({url:"/service-device/configStrategy/"+e,method:"get"})}t.a=l,t.c=r,t.b=n;var i=a("Vo7i")},oMJe:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("FTbb"),r=a("r02u"),n=a("VU/8"),i=n(l.a,r.a,null,null,null);t.default=i.exports},r02u:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"listQuery",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery}},[a("el-form-item",{attrs:{label:"开始时间",prop:"startDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"开始时间","value-format":"yyyy-MM-dd"},model:{value:e.listQuery.startDate,callback:function(t){e.$set(e.listQuery,"startDate",t)},expression:"listQuery.startDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"结束时间","value-format":"yyyy-MM-dd"},model:{value:e.listQuery.endDate,callback:function(t){e.$set(e.listQuery,"endDate",t)},expression:"listQuery.endDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"策略名称",prop:"strategyName"}},[a("el-input",{attrs:{placeholder:"策略名称",name:"strategyName"},model:{value:e.listQuery.strategyName,callback:function(t){e.$set(e.listQuery,"strategyName",t)},expression:"listQuery.strategyName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.fetchData}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:function(t){e.resetForm("listQuery")}}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"listbutton"},[a("router-link",{attrs:{to:"add"}},[a("el-button",{attrs:{type:"primary"}},[e._v("添加策略")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:e.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{data:e.list,"element-loading-text":"拼命加载中",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"策略名称",prop:"strategyName"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createdDate",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.createdDate)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态",prop:"status",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.status[t.row.status])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"text"},on:{click:function(a){e.showConf(t.row.id)}}},[e._v("查看\n ")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":e.currPage,"page-sizes":[10,30,50,100],"page-size":e.listQuery.limit,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogTableVisible,"custom-class":"zylist",title:"查看策略",width:"90%"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("h3",{staticStyle:{"margin-top":"-20px"}},[e._v("配置文件列表")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:e.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{data:e.req.strategyList,border:"",fit:"","highlight-current-row":"",size:"mini"}},[a("el-table-column",{attrs:{label:"配置文件名称",align:"center",prop:"configFileName",width:"250px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.configFileName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配置文件编码",align:"center",prop:"configFileCode",width:"250px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.configFileCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配置文件下载路径",align:"center",prop:"configUrl"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"mini",title:t.row.configUrl},on:{click:function(a){e.openUrl(t.row.configUrl)}}},[e._v(e._s(t.row.configUrl)+"\n ")])]}}])})],1),e._v(" "),a("h3",[e._v("设备列表")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:e.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{data:e.req.deviceList,border:"",fit:"",size:"mini"}},[a("el-table-column",{attrs:{label:"序列号",align:"center",prop:"serialNo"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serialNo))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"MAC地址",align:"center",prop:"macAddr"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.macAddr)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"厂商",prop:"serialNo"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.manufacturer)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"deviceType",label:"设备"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deviceType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"deviceModel",label:"型号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deviceModel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"curVersion",label:"版本号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.curVersion))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"region",label:"区域"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.region))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"customer",label:"客户"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customer))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"department",label:"部门"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.department))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"alias"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.alias)+"\n ")]}}])})],1)],1)],1)},r=[],n={render:l,staticRenderFns:r};t.a=n}});
  2. //# sourceMappingURL=76.22ac5bf70b45c7444912.js.map