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.
shipin/public/admin/system_static/js/chunk-2d0b99d2.6cfe109b.js

1 line
2.8 KiB

1 year ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d0b99d2"],{3461:function(t,e,a){"use strict";a.r(e);var i=a("c7eb"),n=a("1da1"),r=a("5530"),o=a("2f62"),l=a("6b6c");r={name:"ipc",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,from:{page:1,limit:15},dataList:[],total:0,dialogTableVisible:!1,info:{}}},computed:Object(r.a)(Object(r.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"75px"},labelPosition:function(){return this.isMobile?"top":"left"}}),created:function(){this.getList()},methods:{add:function(t){var e=this;this.$modalForm((t=t,Object(l.a)({url:"ipc/create",method:"get",params:t}))).then((function(){return e.getList()}))},addRecord:function(){var t=this;this.$modalForm(Object(l.a)({url:"ipc/getRecordTime",method:"get"})).then((function(){return t.getList()}))},getList:function(){var t,e=this;this.loading=!0,t=this.from,Object(l.a)({url:"ipc/list",method:"get",params:t}).then(function(){var t=Object(n.a)(Object(i.a)().mark((function t(a){var n;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=a.data,e.dataList=n.list,e.total=n.count,e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))},pageChange:function(t){this.from.page=t,this.getList()}}},o=a("2877"),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt mt16",attrs:{shadow:"never","dis-hover":""}},[e("el-row",{staticClass:"mb14",attrs:{type:"flex"}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addRecord()}}},[t._v("设置录像时间")])],1)],1),e("el-alert",{attrs:{closable:""}},[e("template",{slot:"title"},[t._v("\n 每个被关联的设备只可以关联一个班级"),e("br")])],2),e("el-table",{ref:"table",staticClass:"mt25",attrs:{data:t.dataList,loading:t.loading,"highlight-current-row":""}},[e("el-table-column",{attrs:{prop:"deviceName",label:"设备名称"}}),e("el-table-column",{attrs:{prop:"deviceStatus",label:"设备状态"}}),e("el-table-column",{attrs:{prop:"nickname",label:"班级代码"}}),e("el-table-column",{attrs:{prop:"iotId",label:"设备ID"}}),e("el-table-column",{attrs:{prop:"utcCreate",label:"设备创建时间"}}),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("a",{on:{click:function(e){return t.add(a.row)}}},[t._v("关联班级")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[e("pagination",{attrs:{total:t.total,limit:t.from.limit,page:t.from.page},on:{pagination:t.pageChange,"update:limit":function(e){return t.$set(t.from,"limit",e)},"update:page":function(e){return t.$set(t.from,"page",e)}}})],1)],1)],1)}),[],!1,null,"29b47d3c",null),e.default=a.exports}}]);