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

210 lines
7.7 KiB

  1. webpackJsonp([59],{
  2. /***/ "lbtW":
  3. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4. "use strict";
  5. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  7. var api = __webpack_require__("gyMJ");
  8. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  9. var moment = __webpack_require__("PJh5");
  10. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  11. // EXTERNAL MODULE: ./src/utils/util.js
  12. var util = __webpack_require__("oFuF");
  13. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/bluetoothButtonManage.vue
  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. /* harmony default export */ var bluetoothButtonManage = ({
  54. inject: ['reload'],
  55. name: "offInCardList",
  56. data: function data() {
  57. return {
  58. search: {
  59. cardNo: "",
  60. authName: "",
  61. endTime: "",
  62. startTime: ""
  63. },
  64. tableData: []
  65. };
  66. },
  67. created: function created() {
  68. this.getBluetoothBuck();
  69. },
  70. methods: {
  71. deleteBlueToothCompelsMethods: function deleteBlueToothCompelsMethods(index, row) {
  72. var _this = this;
  73. this.$confirm("确定要删除平台记录吗?", "提示", {
  74. type: "warning"
  75. }).then(function () {
  76. var data = {
  77. ids: [row.id]
  78. };
  79. Object(api["g" /* httpPost */])(data, _this.$api.deleteCertificates).then(function (res) {
  80. if (res.success) {
  81. _this.$message.success("删除成功!");
  82. _this.getBluetoothBuck();
  83. }
  84. });
  85. });
  86. },
  87. deleteBlueToothMethods: function deleteBlueToothMethods(index, row) {
  88. var _this2 = this;
  89. this.$confirm("确定要删除蓝牙扣人员吗?", "提示", {
  90. type: "warning"
  91. }).then(function () {
  92. var resultArr = JSON.parse(row.content);
  93. var data = {
  94. lockerId: resultArr.deviceNum,
  95. imei: resultArr.imei,
  96. lockerUserId: resultArr.iotId,
  97. keyId: resultArr.iotId,
  98. role: 0,
  99. action: 2, //1--添加、2--删除、3--修改
  100. order: 6203,
  101. cardName: resultArr.username,
  102. roomName: resultArr.roomName,
  103. pass: true
  104. };
  105. Object(api["g" /* httpPost */])(data, _this2.$api.ZGduserOperation).then(function (res) {
  106. if (res.success) {
  107. _this2.$message.success('删除用户成功');
  108. var dataOne = {
  109. ids: [row.id]
  110. };
  111. Object(api["g" /* httpPost */])(dataOne, _this2.$api.deleteCertificates).then(function (res) {
  112. if (res.success) {
  113. _this2.$message.success("删除成功!");
  114. _this2.getBluetoothBuck();
  115. }
  116. });
  117. _this2.getBluetoothBuck();
  118. } else {
  119. _this2.$message.error(res.msg);
  120. }
  121. });
  122. });
  123. },
  124. getBluetoothBuck: function getBluetoothBuck() {
  125. var _this3 = this;
  126. var dataall = {
  127. pageNum: 0,
  128. pageSize: 0,
  129. orderBy: "create_at desc",
  130. q: {
  131. inStatus: "0,1,702",
  132. types: "36"
  133. }
  134. };
  135. Object(api["d" /* httpGet */])(dataall, this.$api.getCertificates).then(function (resall) {
  136. var dataOne = util["a" /* default */].zlib_unzip(resall.data);
  137. if (resall.code == 200) {
  138. dataOne.map(function (li) {
  139. var content = JSON.parse(li.content);
  140. li.endTimeText = moment_default()(li.endTime * 1000).format("YYYY-MM-DD HH:mm:ss");
  141. li.startTimeText = moment_default()(li.startTime * 1000).format("YYYY-MM-DD HH:mm:ss");
  142. li.name = content.username;
  143. li.roomName = content.roomName;
  144. li.deviceNum = content.deviceNum;
  145. li.createAt = moment_default()(li.createAt).format("YYYY-MM-DD HH:mm:ss");
  146. });
  147. _this3.tableData = dataOne;
  148. }
  149. });
  150. }
  151. }
  152. });
  153. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-6c868856","hasScoped":false,"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/bluetoothButtonManage.vue
  154. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"p-2"},[_c('div',{staticClass:"searvh"},[_c('el-input',{staticClass:"w-4 mb-2",attrs:{"clearable":"","size":"small","placeholder":"请输入卡号"},model:{value:(_vm.search.cardNo),callback:function ($$v) {_vm.$set(_vm.search, "cardNo", $$v)},expression:"search.cardNo"}}),_vm._v(" "),_c('el-input',{staticClass:"w-4 mb-2",attrs:{"clearable":"","size":"small","placeholder":"请输入权限名称"},model:{value:(_vm.search.authName),callback:function ($$v) {_vm.$set(_vm.search, "authName", $$v)},expression:"search.authName"}}),_vm._v(" "),_c('el-date-picker',{staticClass:"w-4 mb-2",attrs:{"clearable":"","size":"small","type":"datetime","placeholder":"选择开始日期时间"},model:{value:(_vm.search.startTime),callback:function ($$v) {_vm.$set(_vm.search, "startTime", $$v)},expression:"search.startTime"}}),_vm._v(" "),_c('el-date-picker',{staticClass:"w-4 mb-2",attrs:{"clearable":"","size":"small","type":"datetime","placeholder":"选择结束日期时间"},model:{value:(_vm.search.endTime),callback:function ($$v) {_vm.$set(_vm.search, "endTime", $$v)},expression:"search.endTime"}})],1),_vm._v(" "),_c('div',[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"stripe":"","height":"600"}},[_c('el-table-column',{attrs:{"type":"index","width":"80","label":"序号"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"deviceNum","label":"设备号"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"roomName","label":"房间名称"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"用户名称"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"startTimeText","label":"开始时间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"endTimeText","label":"结束时间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"createAt","label":"创建时间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"操作"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-link',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.deleteBlueToothMethods(scope.$index,scope.row)}}},[_vm._v("删除")]),_vm._v(" "),_c('el-link',{attrs:{"type":"danger"},on:{"click":function($event){return _vm.deleteBlueToothCompelsMethods(scope.$index,scope.row)}}},[_vm._v("删除记录")])]}}])})],1)],1)])}
  155. var staticRenderFns = []
  156. var esExports = { render: render, staticRenderFns: staticRenderFns }
  157. /* harmony default export */ var views_bluetoothButtonManage = (esExports);
  158. // CONCATENATED MODULE: ./src/views/bluetoothButtonManage.vue
  159. function injectStyle (ssrContext) {
  160. __webpack_require__("xeae")
  161. }
  162. var normalizeComponent = __webpack_require__("VU/8")
  163. /* script */
  164. /* template */
  165. /* template functional */
  166. var __vue_template_functional__ = false
  167. /* styles */
  168. var __vue_styles__ = injectStyle
  169. /* scopeId */
  170. var __vue_scopeId__ = null
  171. /* moduleIdentifier (server only) */
  172. var __vue_module_identifier__ = null
  173. var Component = normalizeComponent(
  174. bluetoothButtonManage,
  175. views_bluetoothButtonManage,
  176. __vue_template_functional__,
  177. __vue_styles__,
  178. __vue_scopeId__,
  179. __vue_module_identifier__
  180. )
  181. /* harmony default export */ var src_views_bluetoothButtonManage = __webpack_exports__["default"] = (Component.exports);
  182. /***/ }),
  183. /***/ "xeae":
  184. /***/ (function(module, exports) {
  185. // removed by extract-text-webpack-plugin
  186. /***/ })
  187. });