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

242 lines
7.8 KiB

  1. webpackJsonp([54],{
  2. /***/ "Iq79":
  3. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4. "use strict";
  5. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  7. var stringify = __webpack_require__("mvHQ");
  8. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  9. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  10. var api = __webpack_require__("gyMJ");
  11. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/configPage.vue
  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. /* harmony default export */ var configPage = ({
  69. inject: ['reload'],
  70. name: 'conf',
  71. data: function data() {
  72. return {
  73. selectoption: [],
  74. selectoptionValue: '',
  75. tableData: [],
  76. enterpriseidedit: false,
  77. modifyStatus: false,
  78. Enterprise1: {
  79. value: '',
  80. label: ''
  81. },
  82. title: "添加",
  83. config: {},
  84. row: {},
  85. index: '',
  86. userInfo: {
  87. type: ''
  88. }
  89. };
  90. },
  91. created: function created() {
  92. this.userInfo = JSON.parse(localStorage.getItem('info'));
  93. this.height = document.documentElement.clientHeight - 160;
  94. this.getConfig();
  95. this.selectoption = JSON.parse(localStorage.getItem('selectoption'));
  96. this.selectoptionValue = localStorage.getItem('tenantId');
  97. },
  98. methods: {
  99. selectTenantId: function selectTenantId(e) {
  100. localStorage.setItem('tenantId', e);
  101. this.reload();
  102. },
  103. addConfig: function addConfig() {
  104. this.Enterprise1 = {
  105. value: '',
  106. label: ''
  107. }, this.title = "添加";
  108. this.enterpriseidedit = true;
  109. this.modifyStatus = false;
  110. },
  111. getConfig: function getConfig() {
  112. var _this = this;
  113. Object(api["d" /* httpGet */])('', this.$api.getConfig).then(function (res) {
  114. if (res.success) {
  115. _this.tableData = res.data.list;
  116. } else {
  117. _this.$message.error("获取失败");
  118. }
  119. });
  120. },
  121. editConfig: function editConfig(index, row) {
  122. this.row = row;
  123. this.Enterprise1.value = row.value;
  124. this.Enterprise1.label = row.label;
  125. this.index = index;
  126. this.title = "编辑";
  127. this.enterpriseidedit = true;
  128. this.modifyStatus = true;
  129. },
  130. deleteConfig: function deleteConfig(index, row) {
  131. var _this2 = this;
  132. this.$confirm("确定要删除吗?", "提示", {
  133. type: "warning"
  134. }).then(function () {
  135. var tableData = JSON.parse(stringify_default()(_this2.tableData));
  136. tableData.splice(index, 1);
  137. var data = {
  138. list: tableData
  139. };
  140. Object(api["g" /* httpPost */])(data, _this2.$api.editConfig).then(function (res) {
  141. if (res.success) {
  142. _this2.tableData = res.data;
  143. _this2.enterpriseidedit = false;
  144. _this2.getConfig();
  145. } else {
  146. _this2.$message.error("删除失败");
  147. }
  148. });
  149. });
  150. },
  151. confirmEditConfig: function confirmEditConfig() {
  152. var _this3 = this;
  153. if (this.Enterprise1.value == '' || this.Enterprise1.label == '') {
  154. this.$message.error("请填写完整信息");
  155. } else {
  156. var tableData = this.tableData;
  157. if (this.modifyStatus) {
  158. tableData[this.index].value = this.Enterprise1.value;
  159. tableData[this.index].label = this.Enterprise1.label;
  160. } else {
  161. var obj = {
  162. value: this.Enterprise1.value,
  163. label: this.Enterprise1.label
  164. };
  165. tableData.push(obj);
  166. }
  167. var data = {
  168. list: tableData
  169. };
  170. Object(api["g" /* httpPost */])(data, this.$api.editConfig).then(function (res) {
  171. if (res.success) {
  172. _this3.tableData = res.data;
  173. _this3.enterpriseidedit = false;
  174. _this3.getConfig();
  175. } else {
  176. if (_this3.modifyStatus) {
  177. _this3.$message.error("修改失败");
  178. } else {
  179. _this3.$message.error("添加失败");
  180. }
  181. }
  182. });
  183. }
  184. }
  185. }
  186. });
  187. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-78d5f5d9","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/configPage.vue
  188. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:"box-card"},[_c('selectoption'),_vm._v(" "),_c('el-button',{staticStyle:{"background":"#FA8E00","border":"none"},attrs:{"type":"primary","size":"small"},on:{"click":_vm.addConfig}},[_vm._v("添加")]),_vm._v(" "),_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"height":_vm.height,"border":true}},[_c('el-table-column',{attrs:{"prop":"label","label":"名称"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"value","label":"接入数量"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"操作"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"text","size":"small"},on:{"click":function($event){return _vm.editConfig(scope.$index,scope.row)}}},[_vm._v("修改")]),_vm._v(" "),_c('el-button',{attrs:{"type":"text","size":"small"},on:{"click":function($event){return _vm.deleteConfig(scope.$index,scope.row)}}},[_vm._v("删除")])]}}])})],1),_vm._v(" "),_c('el-dialog',{staticClass:"eldialog",attrs:{"title":_vm.title,"visible":_vm.enterpriseidedit,"width":"30%"},on:{"update:visible":function($event){_vm.enterpriseidedit=$event}},scopedSlots:_vm._u([{key:"footer",fn:function(){return [_c('span',{staticClass:"dialog-footer"},[_c('el-button',{on:{"click":function($event){_vm.enterpriseidedit = false}}},[_vm._v("取 消")]),_vm._v(" "),(_vm.modifyStatus)?_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.confirmEditConfig}},[_vm._v("修 改")]):_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.confirmEditConfig}},[_vm._v("确 定")])],1)]},proxy:true}])},[_c('el-form',{ref:"form1",attrs:{"model":_vm.Enterprise1,"label-width":"70px"}},[_c('el-form-item',{attrs:{"label":"租户ID"}},[_c('el-input',{attrs:{"type":"number","clearable":true},model:{value:(_vm.Enterprise1.value),callback:function ($$v) {_vm.$set(_vm.Enterprise1, "value", $$v)},expression:"Enterprise1.value"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"名称"}},[_c('el-input',{attrs:{"clearable":true},model:{value:(_vm.Enterprise1.label),callback:function ($$v) {_vm.$set(_vm.Enterprise1, "label", $$v)},expression:"Enterprise1.label"}})],1)],1)],1)],1)],1)}
  189. var staticRenderFns = []
  190. var esExports = { render: render, staticRenderFns: staticRenderFns }
  191. /* harmony default export */ var views_configPage = (esExports);
  192. // CONCATENATED MODULE: ./src/views/configPage.vue
  193. function injectStyle (ssrContext) {
  194. __webpack_require__("j2gd")
  195. }
  196. var normalizeComponent = __webpack_require__("VU/8")
  197. /* script */
  198. /* template */
  199. /* template functional */
  200. var __vue_template_functional__ = false
  201. /* styles */
  202. var __vue_styles__ = injectStyle
  203. /* scopeId */
  204. var __vue_scopeId__ = "data-v-78d5f5d9"
  205. /* moduleIdentifier (server only) */
  206. var __vue_module_identifier__ = null
  207. var Component = normalizeComponent(
  208. configPage,
  209. views_configPage,
  210. __vue_template_functional__,
  211. __vue_styles__,
  212. __vue_scopeId__,
  213. __vue_module_identifier__
  214. )
  215. /* harmony default export */ var src_views_configPage = __webpack_exports__["default"] = (Component.exports);
  216. /***/ }),
  217. /***/ "j2gd":
  218. /***/ (function(module, exports) {
  219. // removed by extract-text-webpack-plugin
  220. /***/ })
  221. });