完成签约之后直接添加人员,录入下发凭证
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.

386 lines
11 KiB

  1. webpackJsonp([53],{
  2. /***/ "dZiR":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "ud+D":
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  10. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  11. var stringify = __webpack_require__("mvHQ");
  12. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  13. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  14. var api = __webpack_require__("gyMJ");
  15. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/studentsRoom.vue
  16. //
  17. //
  18. //
  19. //
  20. //
  21. //
  22. //
  23. //
  24. //
  25. //
  26. //
  27. //
  28. //
  29. //
  30. //
  31. //
  32. //
  33. //
  34. //
  35. //
  36. //
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. //
  48. //
  49. //
  50. //
  51. //
  52. //
  53. //
  54. //
  55. //
  56. //
  57. //
  58. //
  59. //
  60. //
  61. //
  62. //
  63. //
  64. //
  65. //
  66. //
  67. //
  68. //
  69. //
  70. //
  71. //
  72. //
  73. //
  74. //
  75. //
  76. //
  77. //
  78. //
  79. //
  80. //
  81. //
  82. //
  83. //
  84. //
  85. //
  86. //
  87. //
  88. //
  89. //
  90. //
  91. //
  92. //
  93. //
  94. //
  95. //
  96. //
  97. //
  98. //
  99. //
  100. //
  101. //
  102. //
  103. //
  104. //
  105. //
  106. //
  107. //
  108. //
  109. //
  110. //
  111. //
  112. //
  113. //
  114. //
  115. //
  116. //
  117. //
  118. //
  119. //
  120. //
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. //
  155. //
  156. //
  157. //
  158. //
  159. //
  160. //
  161. //
  162. //
  163. //
  164. //
  165. //
  166. //
  167. //
  168. //
  169. //
  170. //
  171. //
  172. //
  173. //
  174. //
  175. //
  176. //
  177. //
  178. //
  179. //
  180. //
  181. //
  182. //
  183. //
  184. //
  185. //
  186. //
  187. //
  188. //
  189. //
  190. //
  191. //
  192. //
  193. //
  194. //
  195. //
  196. //
  197. //
  198. //
  199. //
  200. //
  201. //
  202. //
  203. //
  204. //
  205. //
  206. //
  207. //
  208. //
  209. //
  210. //
  211. //
  212. //
  213. //
  214. //
  215. //
  216. /* harmony default export */ var studentsRoom = ({
  217. name: "basetable",
  218. data: function data() {
  219. return {
  220. query: {
  221. address: "",
  222. name: "",
  223. pageIndex: 1,
  224. pageSize: 10,
  225. options: []
  226. },
  227. tableData: [],
  228. multipleSelection: [],
  229. delList: [],
  230. editVisible: false,
  231. pageTotal: 0,
  232. form: {},
  233. idx: -1,
  234. id: -1,
  235. loocksum: 0,
  236. online: 0,
  237. unonline: 0,
  238. abnormal: 0
  239. };
  240. },
  241. created: function created() {
  242. this.getdevice();
  243. },
  244. methods: {
  245. // 获取设备
  246. getdevice: function getdevice() {
  247. var _this = this;
  248. var data = {
  249. pageNum: 1,
  250. pageSize: 20,
  251. q: stringify_default()({
  252. lockType: 1
  253. })
  254. };
  255. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  256. var online = 0,
  257. unonline = 0,
  258. abnormal = 0;
  259. res.data.list.map(function (li) {
  260. if (li.isOnline == 1) {
  261. online++;
  262. } else if (li.isOnline == 0) {
  263. unonline++;
  264. } else if (li.isOnline == 2) {
  265. abnormal++;
  266. }
  267. });
  268. _this.online = online;
  269. _this.unonline = unonline;
  270. _this.abnormal = abnormal;
  271. _this.loocksum = res.data.total;
  272. });
  273. },
  274. handleChange: function handleChange(value) {
  275. console.log(value);
  276. },
  277. // 触发搜索按钮
  278. handleSearch: function handleSearch() {
  279. this.$set(this.query, "pageIndex", 1);
  280. this.getData();
  281. },
  282. // 删除操作
  283. handleDelete: function handleDelete(index) {
  284. var _this2 = this;
  285. // 二次确认删除
  286. this.$confirm("确定要删除吗?", "提示", {
  287. type: "warning"
  288. }).then(function () {
  289. _this2.$message.success("删除成功");
  290. _this2.tableData.splice(index, 1);
  291. }).catch(function () {});
  292. },
  293. // 多选操作
  294. handleSelectionChange: function handleSelectionChange(val) {
  295. this.multipleSelection = val;
  296. },
  297. delAllSelection: function delAllSelection() {
  298. var length = this.multipleSelection.length;
  299. var str = "";
  300. this.delList = this.delList.concat(this.multipleSelection);
  301. for (var i = 0; i < length; i++) {
  302. str += this.multipleSelection[i].name + " ";
  303. }
  304. this.$message.error("\u5220\u9664\u4E86" + str);
  305. this.multipleSelection = [];
  306. },
  307. // 编辑操作
  308. handleEdit: function handleEdit(index, row) {
  309. this.idx = index;
  310. this.form = row;
  311. this.editVisible = true;
  312. },
  313. // 保存编辑
  314. saveEdit: function saveEdit() {
  315. this.editVisible = false;
  316. this.$message.success("\u4FEE\u6539\u7B2C " + (this.idx + 1) + " \u884C\u6210\u529F");
  317. this.$set(this.tableData, this.idx, this.form);
  318. },
  319. // 分页导航
  320. handlePageChange: function handlePageChange(val) {
  321. this.$set(this.query, "pageIndex", val);
  322. this.getData();
  323. }
  324. }
  325. });
  326. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-7a574c54","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/studentsRoom.vue
  327. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-row',{staticClass:"elrow",attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":24}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('el-row',[_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-1"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("xXHN"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("门锁总数")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.loocksum))])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("sFbI"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("在线状态")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.online))])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("BpHi"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("离线状态")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.unonline))])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("BpHi"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("异常状态")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.abnormal))])])])])])],1)],1)],1)],1),_vm._v(" "),_c('div',{staticClass:"container"},[_c('div',{staticClass:"handle-box"},[_c('el-input',{staticClass:"handle-input mr10",attrs:{"placeholder":"名称"},model:{value:(_vm.query.name),callback:function ($$v) {_vm.$set(_vm.query, "name", $$v)},expression:"query.name"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10",attrs:{"placeholder":"序列号"},model:{value:(_vm.query.number),callback:function ($$v) {_vm.$set(_vm.query, "number", $$v)},expression:"query.number"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10",attrs:{"placeholder":"IMEI"},model:{value:(_vm.query.imei),callback:function ($$v) {_vm.$set(_vm.query, "imei", $$v)},expression:"query.imei"}}),_vm._v(" "),_c('el-select',{staticClass:"handle-select mr10",attrs:{"placeholder":"状态"},model:{value:(_vm.query.status),callback:function ($$v) {_vm.$set(_vm.query, "status", $$v)},expression:"query.status"}},[_c('el-option',{key:"1",attrs:{"label":"联机","value":"联机"}}),_vm._v(" "),_c('el-option',{key:"2",attrs:{"label":"脱机","value":"脱机"}}),_vm._v(" "),_c('el-option',{key:"3",attrs:{"label":"异常","value":"异常"}})],1),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","icon":"el-icon-search"},on:{"click":_vm.handleSearch}},[_vm._v("搜索")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableData,"border":"","header-cell-class-name":"table-header"},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55","align":"center"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"id","label":"ID","width":"55","align":"center"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"名称"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"number","label":"序列号"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"ppai","label":"品牌"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"imei","label":"IMEI"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"electricity","label":"电量"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"状态","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-tag',{attrs:{"type":scope.row.state === '成功'
  328. ? 'success'
  329. : scope.row.state === '失败'
  330. ? 'danger'
  331. : ''}},[_vm._v(_vm._s(scope.row.state))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"date","label":"更新时间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"address","label":"绑定房间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"操作","width":"180","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"text","icon":"el-icon-edit"},on:{"click":function($event){return _vm.handleEdit(scope.$index, scope.row)}}},[_vm._v("编辑")]),_vm._v(" "),_c('el-button',{staticClass:"red",attrs:{"type":"text","icon":"el-icon-delete"},on:{"click":function($event){return _vm.handleDelete(scope.$index, scope.row)}}},[_vm._v("删除")])]}}])})],1),_vm._v(" "),_c('div',{staticClass:"pagination"},[_c('el-pagination',{attrs:{"background":"","layout":"total, prev, pager, next","current-page":_vm.query.pageIndex,"page-size":_vm.query.pageSize,"total":_vm.pageTotal},on:{"current-change":_vm.handlePageChange}})],1)],1),_vm._v(" "),_c('el-dialog',{attrs:{"title":"编辑","width":"30%"},scopedSlots:_vm._u([{key:"footer",fn:function(){return [_c('span',{staticClass:"dialog-footer"},[_c('el-button',{on:{"click":function($event){_vm.editVisible = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.saveEdit}},[_vm._v("确 定")])],1)]},proxy:true}]),model:{value:(_vm.editVisible),callback:function ($$v) {_vm.editVisible=$$v},expression:"editVisible"}},[_c('el-form',{ref:"form",attrs:{"model":_vm.form,"label-width":"70px"}},[_c('el-form-item',{attrs:{"label":"用户名"}},[_c('el-input',{model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, "name", $$v)},expression:"form.name"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"地址"}},[_c('el-input',{model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, "address", $$v)},expression:"form.address"}})],1)],1)],1)],1)}
  332. var staticRenderFns = []
  333. var esExports = { render: render, staticRenderFns: staticRenderFns }
  334. /* harmony default export */ var views_studentsRoom = (esExports);
  335. // CONCATENATED MODULE: ./src/views/studentsRoom.vue
  336. function injectStyle (ssrContext) {
  337. __webpack_require__("dZiR")
  338. }
  339. var normalizeComponent = __webpack_require__("VU/8")
  340. /* script */
  341. /* template */
  342. /* template functional */
  343. var __vue_template_functional__ = false
  344. /* styles */
  345. var __vue_styles__ = injectStyle
  346. /* scopeId */
  347. var __vue_scopeId__ = "data-v-7a574c54"
  348. /* moduleIdentifier (server only) */
  349. var __vue_module_identifier__ = null
  350. var Component = normalizeComponent(
  351. studentsRoom,
  352. views_studentsRoom,
  353. __vue_template_functional__,
  354. __vue_styles__,
  355. __vue_scopeId__,
  356. __vue_module_identifier__
  357. )
  358. /* harmony default export */ var src_views_studentsRoom = __webpack_exports__["default"] = (Component.exports);
  359. /***/ })
  360. });