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

362 lines
11 KiB

  1. webpackJsonp([92],{
  2. /***/ "OdYA":
  3. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4. "use strict";
  5. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/books.vue
  7. //
  8. //
  9. //
  10. //
  11. //
  12. //
  13. //
  14. //
  15. //
  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. /* harmony default export */ var books = ({
  208. name: "basetable",
  209. data: function data() {
  210. return {
  211. query: {
  212. address: "",
  213. name: "",
  214. pageIndex: 1,
  215. pageSize: 10,
  216. options: [{
  217. value: "xaxqgy",
  218. label: "雄安新区XXX公寓",
  219. children: [{
  220. value: "1",
  221. label: "1",
  222. children: [{
  223. value: "2",
  224. label: "2"
  225. }, {
  226. value: "1",
  227. label: "1",
  228. children: [{
  229. value: "2",
  230. label: "1"
  231. }, {
  232. value: "1",
  233. label: "2"
  234. }]
  235. }]
  236. }]
  237. }]
  238. },
  239. tableData: [],
  240. multipleSelection: [],
  241. delList: [],
  242. editVisible: false,
  243. pageTotal: 0,
  244. form: {},
  245. idx: -1,
  246. id: -1
  247. };
  248. },
  249. created: function created() {},
  250. methods: {
  251. handleChange: function handleChange(value) {
  252. console.log(value);
  253. },
  254. // 触发搜索按钮
  255. handleSearch: function handleSearch() {
  256. this.$set(this.query, "pageIndex", 1);
  257. this.getData();
  258. },
  259. // 删除操作
  260. handleDelete: function handleDelete(index) {
  261. var _this = this;
  262. // 二次确认删除
  263. this.$confirm("确定要删除吗?", "提示", {
  264. type: "warning"
  265. }).then(function () {
  266. _this.$message.success("删除成功");
  267. _this.tableData.splice(index, 1);
  268. }).catch(function () {});
  269. },
  270. // 多选操作
  271. handleSelectionChange: function handleSelectionChange(val) {
  272. this.multipleSelection = val;
  273. },
  274. delAllSelection: function delAllSelection() {
  275. var length = this.multipleSelection.length;
  276. var str = "";
  277. this.delList = this.delList.concat(this.multipleSelection);
  278. for (var i = 0; i < length; i++) {
  279. str += this.multipleSelection[i].name + " ";
  280. }
  281. this.$message.error("\u5220\u9664\u4E86" + str);
  282. this.multipleSelection = [];
  283. },
  284. // 编辑操作
  285. handleEdit: function handleEdit(index, row) {
  286. this.idx = index;
  287. this.form = row;
  288. this.editVisible = true;
  289. },
  290. // 保存编辑
  291. saveEdit: function saveEdit() {
  292. this.editVisible = false;
  293. this.$message.success("\u4FEE\u6539\u7B2C " + (this.idx + 1) + " \u884C\u6210\u529F");
  294. this.$set(this.tableData, this.idx, this.form);
  295. },
  296. // 分页导航
  297. handlePageChange: function handlePageChange(val) {
  298. this.$set(this.query, "pageIndex", val);
  299. this.getData();
  300. }
  301. }
  302. });
  303. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-0654505b","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/books.vue
  304. 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("5277")])])])])]),_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("5264")])])])])]),_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("13")])])])])]),_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("0")])])])])])],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 === '成功'
  305. ? 'success'
  306. : scope.row.state === '失败'
  307. ? 'danger'
  308. : ''}},[_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)}
  309. var staticRenderFns = []
  310. var esExports = { render: render, staticRenderFns: staticRenderFns }
  311. /* harmony default export */ var views_books = (esExports);
  312. // CONCATENATED MODULE: ./src/views/books.vue
  313. function injectStyle (ssrContext) {
  314. __webpack_require__("ri6s")
  315. }
  316. var normalizeComponent = __webpack_require__("VU/8")
  317. /* script */
  318. /* template */
  319. /* template functional */
  320. var __vue_template_functional__ = false
  321. /* styles */
  322. var __vue_styles__ = injectStyle
  323. /* scopeId */
  324. var __vue_scopeId__ = "data-v-0654505b"
  325. /* moduleIdentifier (server only) */
  326. var __vue_module_identifier__ = null
  327. var Component = normalizeComponent(
  328. books,
  329. views_books,
  330. __vue_template_functional__,
  331. __vue_styles__,
  332. __vue_scopeId__,
  333. __vue_module_identifier__
  334. )
  335. /* harmony default export */ var src_views_books = __webpack_exports__["default"] = (Component.exports);
  336. /***/ }),
  337. /***/ "ri6s":
  338. /***/ (function(module, exports) {
  339. // removed by extract-text-webpack-plugin
  340. /***/ })
  341. });