gds-plus-design-vue 1.2.73 → 1.2.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/lib/addPermission.4a553cd8.js +1 -0
  2. package/lib/{addPermission.1eb97ee3.mjs → addPermission.78068c52.mjs} +45 -43
  3. package/lib/{approvalModel.c09cbf86.mjs → approvalModel.1d109493.mjs} +2 -2
  4. package/lib/{approvalModel.63fa8914.js → approvalModel.e0e5738f.js} +1 -1
  5. package/lib/{attribute.88d41b0f.mjs → attribute.9dfa6953.mjs} +46 -44
  6. package/lib/attribute.f97b41ad.js +1 -0
  7. package/lib/{components.globalheader.28b38c3a.js → components.globalheader.c7bf862b.js} +1 -1
  8. package/lib/{components.globalheader.9471ef9d.mjs → components.globalheader.f0b8aab7.mjs} +1 -1
  9. package/lib/{components.middleware.b2e156ea.js → components.middleware.216e1574.js} +1 -1
  10. package/lib/{components.middleware.7b760b95.mjs → components.middleware.d7dc078d.mjs} +2 -2
  11. package/lib/{components.modaltitle.179b6da1.js → components.modaltitle.0d3db44e.js} +1 -1
  12. package/lib/{components.modaltitle.2c1011c5.mjs → components.modaltitle.517bc660.mjs} +2 -2
  13. package/lib/{components.sidenavmenu.a3de1659.js → components.sidenavmenu.364a8b26.js} +1 -1
  14. package/lib/{components.sidenavmenu.91e996c4.mjs → components.sidenavmenu.3f4d259f.mjs} +1 -1
  15. package/lib/components.table.5d1336dd.js +8 -0
  16. package/lib/components.table.a50270a9.mjs +3591 -0
  17. package/lib/components.table.childheader.7e9b960f.mjs +325 -0
  18. package/lib/components.table.childheader.cee3be75.js +1 -0
  19. package/lib/components.table.queriesfield.eb795212.js +1 -0
  20. package/lib/components.table.queriesfield.f16322dc.mjs +748 -0
  21. package/lib/components.viewformdetails.513f0dbe.js +1 -0
  22. package/lib/{components.viewformdetails.4e40579f.mjs → components.viewformdetails.cb86a01d.mjs} +28 -21
  23. package/lib/{createFile.ca811a30.mjs → createFile.44667f20.mjs} +45 -43
  24. package/lib/createFile.6389354d.js +1 -0
  25. package/lib/{editForm.83d10fae.mjs → editForm.54f33a47.mjs} +5 -2
  26. package/lib/editForm.a5fd3180.js +1 -0
  27. package/lib/extendedAttributes.3ed8fe2a.js +1 -0
  28. package/lib/{extendedAttributes.a3ee9bde.mjs → extendedAttributes.b2c2ab6c.mjs} +45 -43
  29. package/lib/{fileSearch.d7abc086.mjs → fileSearch.203b9423.mjs} +45 -43
  30. package/lib/fileSearch.3513b55b.js +1 -0
  31. package/lib/{flow.designer.7d58bc2c.js → flow.designer.362f5f66.js} +1 -1
  32. package/lib/{flow.designer.b066df02.mjs → flow.designer.e087cd9b.mjs} +1 -1
  33. package/lib/{flow.list.a9afdd93.mjs → flow.list.3c2df716.mjs} +2 -2
  34. package/lib/{flow.list.d288de5e.js → flow.list.dea8996a.js} +1 -1
  35. package/lib/{form.build.16110b90.mjs → form.build.69803596.mjs} +24 -17
  36. package/lib/form.build.6a1bcad5.js +1 -0
  37. package/lib/{form.designer.build.2bd26973.mjs → form.designer.build.12c673f0.mjs} +188 -150
  38. package/lib/form.designer.build.89af4d24.js +1 -0
  39. package/lib/{formFiled.3763ebff.mjs → formFiled.593b5a25.mjs} +7 -6
  40. package/lib/formFiled.d63e97d3.js +1 -0
  41. package/lib/gd-initial.js +1 -1
  42. package/lib/gd-initial.mjs +148 -146
  43. package/lib/{http.message.ceb0a1c6.mjs → http.message.00e72e09.mjs} +29 -21
  44. package/lib/{http.message.87f319d7.js → http.message.73c3ed85.js} +1 -1
  45. package/lib/index.4f1635c8.js +8 -0
  46. package/lib/{index.606ef358.mjs → index.9ecf4818.mjs} +3158 -2477
  47. package/lib/{layoutBlocks.0784592a.mjs → layoutBlocks.97713647.mjs} +91 -78
  48. package/lib/layoutBlocks.d26f79f2.js +1 -0
  49. package/lib/layouts.0e66a0bc.js +2 -0
  50. package/lib/{layouts.915931be.mjs → layouts.ddf507fa.mjs} +29 -21
  51. package/lib/{main.0326119e.js → main.22cae2bb.js} +1 -1
  52. package/lib/{main.adcedcee.mjs → main.37ae02bc.mjs} +1 -1
  53. package/lib/main.44750095.js +1 -0
  54. package/lib/{main.034638bb.mjs → main.55c9f109.mjs} +5 -8
  55. package/lib/{main.44efe912.mjs → main.5bf89f06.mjs} +54 -55
  56. package/lib/main.f0805dab.js +1 -0
  57. package/lib/manage.91e76379.js +1 -0
  58. package/lib/{manage.63cd038d.mjs → manage.b3462cce.mjs} +46 -44
  59. package/lib/{messages.messagetemplate.0935e5a3.mjs → messages.messagetemplate.ceeb3f47.mjs} +2 -2
  60. package/lib/{messages.messagetemplate.50334e5f.js → messages.messagetemplate.e52ab470.js} +1 -1
  61. package/lib/messages.sendplan.18bda3c5.js +1 -0
  62. package/lib/{messages.sendplan.61edcc7f.mjs → messages.sendplan.c6821911.mjs} +97 -25
  63. package/lib/{messages.sendrecord.09a1d1cd.js → messages.sendrecord.12028921.js} +2 -2
  64. package/lib/{messages.sendrecord.1c48aa6e.mjs → messages.sendrecord.f7630ebd.mjs} +3 -3
  65. package/lib/{messages.templatelibrary.f31e8d58.mjs → messages.templatelibrary.4654886e.mjs} +1 -1
  66. package/lib/{messages.templatelibrary.f5952edd.js → messages.templatelibrary.cd20c05b.js} +1 -1
  67. package/lib/{mobile.designer.componentstree.70fd4c93.mjs → mobile.designer.componentstree.5a329caa.mjs} +1 -1
  68. package/lib/{mobile.designer.componentstree.f4a901e4.js → mobile.designer.componentstree.888d8646.js} +1 -1
  69. package/lib/{mobile.designer.menutree.4d4e059b.js → mobile.designer.menutree.646ebcdd.js} +1 -1
  70. package/lib/{mobile.designer.menutree.7d3b783d.mjs → mobile.designer.menutree.da4c05f4.mjs} +1 -1
  71. package/lib/moveFile.345aee1d.js +1 -0
  72. package/lib/{moveFile.b66805f8.mjs → moveFile.864ea48f.mjs} +48 -46
  73. package/lib/{page.build.09137386.mjs → page.build.39202359.mjs} +674 -668
  74. package/lib/{page.build.1b771761.js → page.build.66e190a5.js} +3 -3
  75. package/lib/{page.designer.componentstree.a256ff7a.mjs → page.designer.componentstree.2d5a887a.mjs} +1 -1
  76. package/lib/{page.designer.componentstree.341908b2.js → page.designer.componentstree.ec3dcbc1.js} +1 -1
  77. package/lib/{page.designer.menutree.e4ce1e90.mjs → page.designer.menutree.1e642711.mjs} +2 -2
  78. package/lib/{page.designer.menutree.71c18258.js → page.designer.menutree.6368c636.js} +1 -1
  79. package/lib/{page.designer.page.d2d6b614.js → page.designer.page.2dac64ca.js} +1 -1
  80. package/lib/{page.designer.page.559113a9.mjs → page.designer.page.4cf4b1bf.mjs} +5 -5
  81. package/lib/{result.16da7693.mjs → result.3c1fc8b7.mjs} +45 -43
  82. package/lib/result.cf75c6c3.js +1 -0
  83. package/lib/{router.config.70680261.mjs → router.config.b78ec9f8.mjs} +5 -5
  84. package/lib/{router.config.1e67a1c3.js → router.config.d746d115.js} +1 -1
  85. package/lib/{solution.application.8d6c84e8.js → solution.application.15e813b4.js} +1 -1
  86. package/lib/{solution.application.e6b5dc4f.mjs → solution.application.5d02d1cd.mjs} +16 -10
  87. package/lib/solution.approvalflow.1f11ad8f.js +1 -0
  88. package/lib/{solution.approvalflow.8572122d.mjs → solution.approvalflow.24a50af0.mjs} +20 -14
  89. package/lib/solution.dict.28214a3e.js +1 -0
  90. package/lib/{solution.dict.088a1e72.mjs → solution.dict.77cb1ad2.mjs} +41 -37
  91. package/lib/{solution.menu.fa48a7e8.js → solution.menu.12b9f56d.js} +1 -1
  92. package/lib/{solution.menu.e58922fe.mjs → solution.menu.72498250.mjs} +1 -1
  93. package/lib/{solution.plugin.ae6df926.mjs → solution.plugin.76b603be.mjs} +18 -12
  94. package/lib/solution.plugin.e7b31aff.js +1 -0
  95. package/lib/solution.processflow.aa84ec06.js +1 -0
  96. package/lib/{solution.processflow.a52fd47c.mjs → solution.processflow.d336bd7b.mjs} +15 -9
  97. package/lib/{solution.role.7b3e7030.mjs → solution.role.05efb1b4.mjs} +18 -12
  98. package/lib/solution.role.d07e1813.js +1 -0
  99. package/lib/{solution.webresources.88c4483b.mjs → solution.webresources.1b0f8550.mjs} +247 -79
  100. package/lib/solution.webresources.5b4abeb5.js +2 -0
  101. package/lib/{solution.workflow.2530073b.mjs → solution.workflow.6d081d1f.mjs} +18 -12
  102. package/lib/solution.workflow.91b42158.js +1 -0
  103. package/lib/style.css +2 -2
  104. package/lib/{system.duplicatechecking.bef2b20c.js → system.duplicatechecking.719ddda1.js} +1 -1
  105. package/lib/{system.duplicatechecking.a0da805e.mjs → system.duplicatechecking.af9318aa.mjs} +1 -1
  106. package/lib/{system.notice.da2c944c.mjs → system.notice.12fa4d1c.mjs} +4 -4
  107. package/lib/{system.notice.72e0615f.js → system.notice.9385577f.js} +1 -1
  108. package/lib/{system.noticereceived.54c17b73.js → system.noticereceived.3dec9e12.js} +1 -1
  109. package/lib/{system.noticereceived.30dab7d1.mjs → system.noticereceived.7cfcceb4.mjs} +1 -1
  110. package/lib/{system.team.367bf5e7.mjs → system.team.3b0fcc60.mjs} +1 -1
  111. package/lib/{system.team.cf1c1558.js → system.team.c0d623a5.js} +1 -1
  112. package/lib/{system.teammembers.63f21557.js → system.teammembers.c99ef01b.js} +1 -1
  113. package/lib/{system.teammembers.851ce63b.mjs → system.teammembers.d0dc3f12.mjs} +2 -2
  114. package/lib/{system.user.bff7cc2f.js → system.user.75fa57c3.js} +1 -1
  115. package/lib/{system.user.a1ff367b.mjs → system.user.78a45735.mjs} +1 -1
  116. package/lib/versionControl.c39356b7.js +1 -0
  117. package/lib/{versionControl.6cd18867.mjs → versionControl.d572bc44.mjs} +52 -50
  118. package/lib/{versionEdit.910d2e2f.mjs → versionEdit.8b059461.mjs} +45 -43
  119. package/lib/versionEdit.d56cde69.js +1 -0
  120. package/lib/view.build.14c0d411.js +1 -0
  121. package/lib/{view.build.20e9aec0.mjs → view.build.5b9241fd.mjs} +193 -190
  122. package/lib/viewList.215afeb2.js +1 -0
  123. package/lib/{viewList.a4909732.mjs → viewList.b090d62f.mjs} +11 -12
  124. package/package.json +1 -1
  125. package/lib/addPermission.5bfc7e11.js +0 -1
  126. package/lib/attribute.919cb93e.js +0 -1
  127. package/lib/components.table.a0ac819e.js +0 -8
  128. package/lib/components.table.d79f5fa3.mjs +0 -4650
  129. package/lib/components.viewformdetails.6e66cc83.js +0 -1
  130. package/lib/copy.3b06d60f.mjs +0 -572
  131. package/lib/copy.fa2fcb22.js +0 -1
  132. package/lib/createFile.94329169.js +0 -1
  133. package/lib/editForm.e284e5ec.js +0 -1
  134. package/lib/extendedAttributes.b1107f6c.js +0 -1
  135. package/lib/fileSearch.4722ac3b.js +0 -1
  136. package/lib/form.build.5461409b.js +0 -1
  137. package/lib/form.designer.build.67b316e1.js +0 -1
  138. package/lib/formFiled.ef26328d.js +0 -1
  139. package/lib/index.fe18e32c.js +0 -8
  140. package/lib/layoutBlocks.1b71d988.js +0 -1
  141. package/lib/layouts.ae25c583.js +0 -2
  142. package/lib/main.44d72b90.js +0 -1
  143. package/lib/main.47957168.js +0 -1
  144. package/lib/manage.80871daf.js +0 -1
  145. package/lib/messages.sendplan.60929f46.js +0 -1
  146. package/lib/moveFile.d79f7fd9.js +0 -1
  147. package/lib/result.9cb6c2f1.js +0 -1
  148. package/lib/solution.approvalflow.cce2f064.js +0 -1
  149. package/lib/solution.dict.1d5195d0.js +0 -1
  150. package/lib/solution.plugin.5d6d29cf.js +0 -1
  151. package/lib/solution.processflow.bfa4897c.js +0 -1
  152. package/lib/solution.role.2eff83a1.js +0 -1
  153. package/lib/solution.webresources.bc00603d.js +0 -1
  154. package/lib/solution.workflow.59e0e697.js +0 -1
  155. package/lib/versionControl.47cc1330.js +0 -1
  156. package/lib/versionEdit.977faa93.js +0 -1
  157. package/lib/view.build.a48a14b0.js +0 -1
  158. package/lib/viewList.71f866da.js +0 -1
@@ -381,7 +381,7 @@ const b = {
381
381
  closed() {
382
382
  this.selectedRowKeys = [], this.selectedRows = [], this.formButtons.forEach((s) => {
383
383
  s.displayName == "\u65B0\u5EFA" && (s.show = !0);
384
- }), this.visible = !1;
384
+ }), this.visible = !1, this.$emit("closed", !1);
385
385
  },
386
386
  onSelectChange(s, e) {
387
387
  this.selectedRowKeys = s, this.selectedRows = e, this.selectedRows.length > 0 ? this.formButtons.forEach((t) => {
@@ -429,7 +429,7 @@ var w = function() {
429
429
  v,
430
430
  !1,
431
431
  null,
432
- "3046fefb",
432
+ "95668508",
433
433
  null,
434
434
  null
435
435
  );
@@ -459,7 +459,8 @@ const S = {
459
459
  loadData: (s) => u(Object.assign(s, this.getQueryParam)).then((e) => e.data),
460
460
  selectedRowKeys: [],
461
461
  selectedRows: [],
462
- type: 23
462
+ type: 23,
463
+ isShowAdd: !1
463
464
  };
464
465
  },
465
466
  computed: {
@@ -473,7 +474,12 @@ const S = {
473
474
  },
474
475
  methods: {
475
476
  add() {
476
- this.$refs.applicationEdit.open(null);
477
+ this.isShowAdd = !0, setTimeout(() => {
478
+ this.$refs.applicationEdit.open(null);
479
+ });
480
+ },
481
+ closed() {
482
+ this.isShowAdd = !1;
477
483
  },
478
484
  okSbumit(s) {
479
485
  this.refresh(), this.$emit("ok", s);
@@ -525,24 +531,24 @@ const S = {
525
531
  }
526
532
  }
527
533
  };
528
- var C = function() {
534
+ var $ = function() {
529
535
  var e = this, t = e._self._c;
530
536
  return t("div", [t("div", [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: a }) {
531
537
  return [t("gd-tooltip", { attrs: { rowKey: "name", row: a, highlight: "" } })];
532
538
  } }, { key: "operator", fn: function() {
533
539
  return [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)];
534
- }, proxy: !0 }]) })], 1), t("applicationEdit", { ref: "applicationEdit", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit } })], 1);
535
- }, R = [], $ = /* @__PURE__ */ r(
540
+ }, proxy: !0 }]) })], 1), e.isShowAdd ? t("applicationEdit", { ref: "applicationEdit", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit, closed: e.closed } }) : e._e()], 1);
541
+ }, C = [], R = /* @__PURE__ */ r(
536
542
  S,
543
+ $,
537
544
  C,
538
- R,
539
545
  !1,
540
546
  null,
541
- "d75cc054",
547
+ "1a93800c",
542
548
  null,
543
549
  null
544
550
  );
545
- const x = $.exports;
551
+ const x = R.exports;
546
552
  export {
547
553
  x as A
548
554
  };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./components.chartbi.13a8a7b5.js"),a=require("./http.solution.c6b2634f.js"),r=require("./http.main.2f8a6936.js"),d=require("./flow.list.dea8996a.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.approval.name",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.approval.table",prop:"tableid",label:"\u5173\u8054\u8868",type:"slot",slotType:"tableid",align:"left"},{label:"\u5206\u7C7B",prop:"category",type:"slot",slotType:"category",align:"left",transKey:"gd.flow.approval.classify"},{label:"\u7F16\u7801",prop:"encode",align:"left",transKey:"gd.flow.approval.code"},{transKey:"gd.flow.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{title:"\u8BF4\u660E",prop:"description",align:"left",transKey:"gd.flow.explain"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}],buttons:[{displayName:"\u65B0\u5EFA",functionName:"addBuilt",show:!0,transKey:"gd.btn.addBuilt",icon:"el-icon-plus"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],tableQueries:[{transKey:"gd.flow.approval.name",prop:"keyword",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const h={mixins:[u],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{width:"70%",confirmLoading:!1,fullscreen:!1,visible:!1,queryParam:{},loadData:s=>r.approvalProcess(Object.assign(s,this.queryParam)).then(e=>{if(e.code===200){const t=e.data.rows.map(o=>{const i=this.tableLists.filter(n=>n.id===o.tableid)[0];return Object.assign(o,i?{tabledata:i}:{})});Object.assign(e.data,{rows:t})}return this.getRow(e.data),e.data}),selectedRowKeys:[],disabledRowId:[],allList:[]}},components:{flowDesign:d.flowDesign},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...l.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","tableLists"])},methods:{getRow(s){let e=[];s.rows.filter(t=>this.selList.includes(t.id)).forEach(t=>{e.push(t.id)}),this.disabledRowId=e},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e,this.selectedRows.length>0?this.buttons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!1)}):this.buttons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s){this.fullScreen=!1,this.type=s?2:1,this.visible=!0},saveQueries(s){console.log(s),this.queryParam={...s},this.refresh()},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let s=[];this.selectedRows.forEach(t=>{s.push({componentType:16,objectId:t.id,name:this.getTransKeyName(t.transkey,t.name)})});let e={solutionId:this.detail.id,data:s};a.sysSolutionComponentBatchadd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+t.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.selectedRows=[],this.buttons.forEach(s=>{s.displayName=="\u65B0\u5EFA"&&(s.show=!0)}),this.visible=!1,this.$emit("closed",!1)},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(o=>o.code==s)[0];return t!=null&&t.colour?t.colour:null},doEvent(s){let e=s.item.functionName;this[e]()},getTransKeyName(s,e){return this.getBootTrans&&s?this.$i18nt(`Dynamics.${s}`,e):e},addBuilt(){this.$refs.flowDesign.open(null)},submitRefresh(s){this.getAll(),s&&setTimeout(()=>{const e=this.allList.find(t=>t.id===s);this.selectedRowKeys=[e.id],this.selectedRows=[e],setTimeout(()=>{this.handleSubmit()},10)},600)},getAll(){r.approvalProcess(Object.assign({pageNo:1,pageSize:1e5},this.queryParam)).then(s=>{s.code===200&&(this.allList=s.data.rows)})}}};var f=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(o){e.visible=o},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!0,height:e.getHeight,selectedRowKeys:e.selectedRowKeys,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({row:o}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""}})]}},{key:"tableid",fn:function({column:o,row:i}){return[i.tabledata?t("span",[e._v(e._s(e.$i18nt(`Dynamics.${i.tabledata.transkey}`,i.tabledata.busname)))]):e._e()]}},{key:"statecodes",fn:function(o){return[t("div",{staticStyle:{cursor:"pointer"}},[o.row.statecodes?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"category",fn:function(o){return[t("span",[e._v(e._s(e._f("dictType")("table_flows_type",o.row.category)))])]}},{key:"filtering",fn:function({colse:o,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:o,visible:i},on:{save:e.saveQueries}})]}}],null,!1,3789119863)}):e._e()],1)],2),t("flowDesign",{ref:"flowDesign",on:{ok:e.submitRefresh}})],1)},p=[],g=l.normalizeComponent(h,f,p,!1,null,"bc3c4b7c",null,null);const m=g.exports;const y={mixins:[c],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{ApprovalFlowAdd:m,flowDesign:d.flowDesign},data(){return{queryParam:{},loadData:s=>a.sysSolutionComponentPage(Object.assign(s,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:16,isShowAdd:!1}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...l.mapGetters(["tablePageSize","tableSize"])},methods:{see(s){this.$refs.flowDesign.open(s.objectid)},add(){this.isShowAdd=!0,setTimeout(()=>{this.$refs.approvalFlowAdd.open(null)})},closed(){this.isShowAdd=!1},okSbumit(s){this.refresh(),this.$emit("ok",s)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,a.sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(o=>{t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,o.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]()}}};var b=function(){var e=this,t=e._self._c;return t("div",[t("div",[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:o,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:function(n){return e.see(i)}}})]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)]},proxy:!0}])})],1),e.isShowAdd?t("ApprovalFlowAdd",{ref:"approvalFlowAdd",attrs:{detail:e.record,selList:e.selList},on:{ok:e.okSbumit,closed:e.closed}}):e._e(),t("flowDesign",{ref:"flowDesign",attrs:{modeType:"solution"}})],1)},w=[],_=l.normalizeComponent(y,b,w,!1,null,"6405036d",null,null);const v=_.exports;exports.ApprovalFlow=v;
@@ -1,7 +1,7 @@
1
1
  import { m as n, n as r } from "./components.chartbi.7356b244.mjs";
2
2
  import { s as c, a as u, b as f } from "./http.solution.b10d9197.mjs";
3
- import { I as i } from "./http.main.aefea27d.mjs";
4
- import { f as d } from "./flow.list.a9afdd93.mjs";
3
+ import { I as l } from "./http.main.aefea27d.mjs";
4
+ import { f as d } from "./flow.list.3c2df716.mjs";
5
5
  const h = {
6
6
  data() {
7
7
  return {
@@ -166,10 +166,10 @@ const g = {
166
166
  fullscreen: !1,
167
167
  visible: !1,
168
168
  queryParam: {},
169
- loadData: (s) => i(Object.assign(s, this.queryParam)).then((e) => {
169
+ loadData: (s) => l(Object.assign(s, this.queryParam)).then((e) => {
170
170
  if (e.code === 200) {
171
171
  const t = e.data.rows.map((a) => {
172
- const o = this.tableLists.filter((l) => l.id === a.tableid)[0];
172
+ const o = this.tableLists.filter((i) => i.id === a.tableid)[0];
173
173
  return Object.assign(
174
174
  a,
175
175
  o ? {
@@ -255,7 +255,7 @@ const g = {
255
255
  closed() {
256
256
  this.selectedRowKeys = [], this.selectedRows = [], this.buttons.forEach((s) => {
257
257
  s.displayName == "\u65B0\u5EFA" && (s.show = !0);
258
- }), this.visible = !1;
258
+ }), this.visible = !1, this.$emit("closed", !1);
259
259
  },
260
260
  dictSwitch(s, e) {
261
261
  let t = this.$options.filters.dictData(e).filter((a) => a.code == s)[0];
@@ -280,7 +280,7 @@ const g = {
280
280
  }, 600);
281
281
  },
282
282
  getAll() {
283
- i(Object.assign({ pageNo: 1, pageSize: 1e5 }, this.queryParam)).then((s) => {
283
+ l(Object.assign({ pageNo: 1, pageSize: 1e5 }, this.queryParam)).then((s) => {
284
284
  s.code === 200 && (this.allList = s.data.rows);
285
285
  });
286
286
  }
@@ -307,7 +307,7 @@ var m = function() {
307
307
  y,
308
308
  !1,
309
309
  null,
310
- "f7f7fc98",
310
+ "bc3c4b7c",
311
311
  null,
312
312
  null
313
313
  );
@@ -342,7 +342,8 @@ const _ = {
342
342
  loadData: (s) => u(Object.assign(s, this.getQueryParam)).then((e) => e.data),
343
343
  selectedRowKeys: [],
344
344
  selectedRows: [],
345
- type: 16
345
+ type: 16,
346
+ isShowAdd: !1
346
347
  };
347
348
  },
348
349
  computed: {
@@ -359,7 +360,12 @@ const _ = {
359
360
  this.$refs.flowDesign.open(s.objectid);
360
361
  },
361
362
  add() {
362
- this.$refs.approvalFlowAdd.open(null);
363
+ this.isShowAdd = !0, setTimeout(() => {
364
+ this.$refs.approvalFlowAdd.open(null);
365
+ });
366
+ },
367
+ closed() {
368
+ this.isShowAdd = !1;
363
369
  },
364
370
  okSbumit(s) {
365
371
  this.refresh(), this.$emit("ok", s);
@@ -414,23 +420,23 @@ const _ = {
414
420
  var v = function() {
415
421
  var e = this, t = e._self._c;
416
422
  return t("div", [t("div", [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: a, row: o }) {
417
- return [t("gd-tooltip", { attrs: { rowKey: "name", row: o, highlight: "" }, on: { click: function(l) {
423
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: o, highlight: "" }, on: { click: function(i) {
418
424
  return e.see(o);
419
425
  } } })];
420
426
  } }, { key: "operator", fn: function() {
421
427
  return [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)];
422
- }, proxy: !0 }]) })], 1), t("ApprovalFlowAdd", { ref: "approvalFlowAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit } }), t("flowDesign", { ref: "flowDesign", attrs: { modeType: "solution" } })], 1);
428
+ }, proxy: !0 }]) })], 1), e.isShowAdd ? t("ApprovalFlowAdd", { ref: "approvalFlowAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit, closed: e.closed } }) : e._e(), t("flowDesign", { ref: "flowDesign", attrs: { modeType: "solution" } })], 1);
423
429
  }, S = [], $ = /* @__PURE__ */ r(
424
430
  _,
425
431
  v,
426
432
  S,
427
433
  !1,
428
434
  null,
429
- "39860834",
435
+ "6405036d",
430
436
  null,
431
437
  null
432
438
  );
433
- const L = $.exports;
439
+ const T = $.exports;
434
440
  export {
435
- L as A
441
+ T as A
436
442
  };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./components.chartbi.13a8a7b5.js"),c=require("./http.solution.c6b2634f.js"),n=require("./http.dictmanage.3dc07b5d.js"),d=require("./http.dictdatamanage.70545d8a.js"),h={data(){return{tableColumns:[{transKey:"gd.dict.dictValue",prop:"value",label:"\u5B57\u5178\u503C",type:"slot",slotType:"values",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.dict.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.dict.colour",prop:"sort",label:"\u989C\u8272",align:"left",type:"slot",slotType:"colour"},{transKey:"gd.dict.state",prop:"statecodes",label:"\u72B6\u6001",align:"center",type:"slot",slotType:"statecodes"},{transKey:"gd.dict.remark",prop:"remark",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.dict.dictValue",prop:"value",label:"\u5B57\u5178\u503C",effectType:"input",rules:[]},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"inputnumber",rules:[]}],formColumns:[{transKey:"gd.dict.dictValue",effectType:"input",prop:"value",label:"\u5B57\u5178\u503C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,type:"slot",slotType:"value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dict.code",prop:"code",effectType:"inputnumber",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,defaultValue:"undefined",type:"slot",slotType:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur"}]},{transKey:"gd.dict.colour",prop:"colour",effectType:"colorPicker",label:"\u989C\u8272",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]},{transKey:"gd.dict.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur",type:"number"}]},{transKey:"gd.dict.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleok",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],buttons:[{displayName:"\u65B0\u5EFA",functionName:"add",show:!0,transKey:"gd.btn.addBuilt",icon:"el-icon-plus"}]}}};const g={mixins:[h],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{confirmLoading:!1,fullscreen:!1,visible:!1,width:"70%",typeId:"",queryParam:{},loadData:s=>(this.queryParam.typeId=this.typeId,d.sysDictDataPage(Object.assign(s,this.queryParam,{})).then(e=>e.data)),translationType:"dict",transKey:"gd.btn.add",formLoading:!1,disableFormBtn:[],codeRules:!0}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},getFormColumns(){const s={required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur"};return this.formColumns.filter(e=>(e.disabled=this.disableFormBtn.length!==0,["\u989C\u8272","\u6392\u5E8F"].includes(e.label)&&(e.disabled=!1),e.prop==="code"&&(e.rules=[this.codeRules?Object.assign({},s,{type:"number"}):s]),e))},getFormButtons(){return this.formButtons},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s){this.visible=!0,this.fullscreen=!1,this.typeId=s.objectid,this.queryParam.typeId=s.id},saveQueries(s){this.queryParam={...s},this.refresh()},refresh(){this.$refs.tableManage.refresh()},closed(){this.visible=!1},doEvent(s){let e=s.item.functionName;this[e]()},sbumit({data:s,record:e,btn:t},l,a){this.formLoading=!0,(e?d.sysDictDataEdit:d.sysDictDataAdd)(Object.assign({...s},{typeid:this.typeId})).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},add(){const s=this.formColumns.filter(e=>e.prop==="code")[0];this.codeRules=this.getInputType({},s,null),this.transKey="gd.btn.add",this.$refs.editForm.open(null)},handleSubmit(){this.closed()},lookupSeled(s,e,t){e[t.prop]=s.defaulttext},getInputType(s,e,t){if(!t)return!0;const l=typeof s[e.prop]=="number",a=isNaN(Number(s[e.prop]));return l||!a}}};var m=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(l){e.visible=l},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:e.fullscreen,confirmLoading:e.confirmLoading,buttons:e.buttons,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"tableManage",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,height:e.getHeight,filtering:!0},scopedSlots:e._u([{key:"values",fn:function({column:l,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"value",row:a,transKey:`Dynamics.${a.transKey}`,highlight:""}})]}},{key:"statecodes",fn:function(l){return[t("div",[l.row.statecodes?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"colour",fn:function(l){return[l.row.colour?t("el-tag",{style:`background-color:${l.row.colour};border-color:${l.row.colour}`,attrs:{effect:"dark"}},[e._v(" "+e._s(l.row.colour)+" ")]):e._e()]}},{key:"remark",fn:function({column:l,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"filtering",fn:function({colse:l,visible:a}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:l,visible:a},on:{save:e.saveQueries}})]}}],null,!1,455425881)}):e._e()],1)],2),t("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.getFormButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,translationType:e.translationType},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"value",fn:function({data:l,column:a,record:r}){return[t("el-input",{directives:[{name:"show",rawName:"v-show",value:!r,expression:"!record"}],attrs:{disabled:a.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:l[a.prop],callback:function(i){e.$set(l,a.prop,i)},expression:"data[column.prop]"}}),r?t("gd-translation",{ref:"gdTranslation",attrs:{recordData:l,name:"value",type:2},on:{lookupSeled:i=>e.lookupSeled(i,l,a)}}):e._e()]}},{key:"code",fn:function({data:l,column:a,record:r}){return[e.getInputType(l,a,r)?t("el-input-number",{attrs:{disabled:a.disabled,type:"number",min:a.min||a.min===0?a.min:-1/0,max:a.max||a.max===0?a.max:1/0,step:a.step||1,precision:a.precision||0,placeholder:e.$i18nt(a.placeholderTransKey,a.placeholder),"controls-position":"right"},model:{value:l[a.prop],callback:function(i){e.$set(l,a.prop,i)},expression:"data[column.prop]"}}):t("el-input",{attrs:{disabled:a.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:l[a.prop],callback:function(i){e.$set(l,a.prop,i)},expression:"data[column.prop]"}})]}}])})],1)},y=[],b=o.normalizeComponent(g,m,y,!1,null,"9c1f3d77",null,null);const p=b.exports,v={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.dict.sort",prop:"sort",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.dict.type",prop:"dict_type",label:"\u6240\u5C5E\u7C7B\u578B",type:"slot",slotType:"dict_type",align:"left"},{transKey:"gd.dict.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"center"},{transKey:"gd.org.remark",prop:"remark",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"input",rules:[]}],buttons:[{displayName:"\u65B0\u5EFA",functionName:"addBuilt",show:!0,transKey:"gd.btn.addBuilt",icon:"el-icon-plus"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleok",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],formColumns:[{transKey:"gd.dict.displayName",effectType:"input",prop:"name",label:"\u663E\u793A\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,type:"slot",slotType:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dict.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dict.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}]}}};const _={mixins:[w],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",queryParam:{},loadData:s=>n.sysDictTypePage(Object.assign(s,this.queryParam)).then(e=>(this.getRow(e.data),this.allList=e.data.rows,e.data)),selectedRowKeys:[],disabledRowId:[],transKey:"gd.btn.add",formLoading:!1,disableFormBtn:[],translationType:"dict",allList:[],code:""}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},labelWidth(){return this.language==="id_ID"?"146px":"120px"},getFormColumns(){return this.formColumns.filter(s=>(s.disabled=this.disableFormBtn.length!==0,this.transKey==="gd.btn.edit"&&s.prop==="code"&&(s.disabled=!0),s))},getFormButtons(){return this.formButtons.filter(s=>(s.show=!this.disableFormBtn.includes(s.displayName),!0))},...o.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","tableLists","labelPosition","formMode","language"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},getRow(s){let e=[];s.rows.filter(t=>this.selList.includes(t.id)).forEach(t=>{e.push(t.id)}),this.disabledRowId=e},saveQueries(s){this.queryParam={...s},this.refresh()},open(){console.log(222),this.fullscreen=!1,this.visible=!0},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let s=[];this.selectedRows.forEach(t=>{s.push({componenttype:11,objectid:t.id,name:this.getTransKeyName(t.transkey,t.name)})});let e={solutionId:this.detail.id,data:s};c.sysSolutionComponentBatchadd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+t.message),this.confirmLoading=!1})},closed(){this.selectedRowKeys=[],this.selectedRows=[],this.buttons.forEach(s=>{s.displayName=="\u65B0\u5EFA"&&(s.show=!0)}),this.visible=!1,this.$emit("closed",!1)},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e,this.selectedRows.length>0?this.buttons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!1)}):this.buttons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!0)})},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(l=>l.code==s)[0];return t!=null&&t.colour?t.colour:null},doEvent(s){let e=s.item.functionName;this[e]()},getTransKeyName(s,e){return this.getBootTrans&&s?this.$i18nt(`Dynamics.${s}`,e):e},addBuilt(){this.disableFormBtn=[],this.transKey="gd.btn.add",this.$refs.editForm.open(null)},sbumit({data:s,record:e,btn:t},l,a){this.formLoading=!0,(e?n.sysDictTypeEdit:n.sysDictTypeAdd)(s).then(i=>{i.success?(this.code=s.code,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh(),e||setTimeout(()=>{const u=this.allList.find(f=>f.id===i.data);this.selectedRowKeys=[u.id],this.selectedRows=[u],setTimeout(()=>{this.handleSubmit()},10)},400)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})}}};var K=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(l){e.visible=l},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!0,height:e.getHeight,selectedRowKeys:e.selectedRowKeys,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:l,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:a,transKey:`Dynamics.${a.transKey}`,highlight:""}})]}},{key:"dict_type",fn:function(l){return[l.row.dict_type===1?t("el-tag",{staticStyle:{"background-color":"red","border-color":"red"},attrs:{effect:"dark"}},[e._v(" "+e._s(e.$i18nt("gd.dict.systemType","\u7CFB\u7EDF\u7C7B\u578B"))+" ")]):t("el-tag",{staticStyle:{"background-color":"#52c41a","border-color":"#52c41a"},attrs:{effect:"dark"}},[e._v(" "+e._s(e.$i18nt("gd.dict.businessType","\u4E1A\u52A1\u7C7B\u578B"))+" ")])]}},{key:"statecodes",fn:function(l){return[t("div",[l.row.statecodes?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"remark",fn:function({column:l,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"remark",row:a,prevent:!1}})]}},{key:"filtering",fn:function({colse:l,visible:a}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:l,visible:a},on:{save:e.saveQueries}})]}}],null,!1,1502529334)}):e._e()],1)],2),t("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",labelWidth:e.labelWidth,loading:e.formLoading,transKey:e.transKey,buttons:e.getFormButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,translationType:e.translationType},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"name",fn:function({data:l,column:a,record:r}){return[t("el-input",{directives:[{name:"show",rawName:"v-show",value:!r,expression:"!record"}],attrs:{disabled:a.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:l[a.prop],callback:function(i){e.$set(l,a.prop,i)},expression:"data[column.prop]"}}),r?t("gd-translation",{ref:"gdTranslation",attrs:{recordData:l,type:2},on:{lookupSeled:i=>e.lookupSeled(i,l,a)}}):e._e()]}}])})],1)},T=[],$=o.normalizeComponent(_,K,T,!1,null,"58be1de7",null,null);const k=$.exports;const S={mixins:[v],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},data(){return{queryParam:{},loadData:s=>c.sysSolutionComponentPage(Object.assign(s,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:11,isShowAdd:!1}},components:{DictAdd:k,Dictdetail:p},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...o.mapGetters(["tablePageSize","tableSize"])},methods:{see(s){this.$refs.dictdetail.open(s)},okSbumit(s){this.refresh(),this.$emit("ok",s)},add(){this.isShowAdd=!0,setTimeout(()=>{this.$refs.dictAdd.open(null)})},closed(){this.isShowAdd=!1},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,c.sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(l=>{t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,l.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+l.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]()}}};var x=function(){var e=this,t=e._self._c;return t("div",[t("div",[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:l,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:function(r){return e.see(a)}}})]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)]},proxy:!0}])})],1),e.isShowAdd?t("DictAdd",{ref:"dictAdd",attrs:{detail:e.record,selList:e.selList},on:{ok:e.okSbumit,closed:e.closed}}):e._e(),t("Dictdetail",{ref:"dictdetail",attrs:{detail:e.record,selList:e.selList}})],1)},C=[],R=o.normalizeComponent(S,x,C,!1,null,"1085f3f6",null,null);const L=R.exports;exports.Dict=L;exports.Dictdetail=p;
@@ -140,27 +140,25 @@ const w = {
140
140
  maxRows: 6
141
141
  }
142
142
  }],
143
- formButtons: [{
144
- displayName: "\u786E\u5B9A",
145
- functionName: "handleok",
146
- show: !0,
147
- transKey: "gd.btn.confirm",
148
- icon: "el-icon-document-checked",
149
- validate: !0
150
- }],
151
- buttons: [{
152
- displayName: "\u65B0\u5EFA",
153
- functionName: "add",
154
- show: !0,
155
- transKey: "gd.btn.addBuilt",
156
- icon: "el-icon-plus"
157
- }, {
158
- displayName: "\u786E\u5B9A",
159
- functionName: "handleSubmit",
160
- show: !0,
161
- transKey: "gd.btn.confirm",
162
- icon: "el-icon-document-checked"
163
- }]
143
+ formButtons: [
144
+ {
145
+ displayName: "\u786E\u5B9A",
146
+ functionName: "handleok",
147
+ show: !0,
148
+ transKey: "gd.btn.confirm",
149
+ icon: "el-icon-document-checked",
150
+ validate: !0
151
+ }
152
+ ],
153
+ buttons: [
154
+ {
155
+ displayName: "\u65B0\u5EFA",
156
+ functionName: "add",
157
+ show: !0,
158
+ transKey: "gd.btn.addBuilt",
159
+ icon: "el-icon-plus"
160
+ }
161
+ ]
164
162
  };
165
163
  }
166
164
  };
@@ -283,7 +281,7 @@ var K = function() {
283
281
  e.$set(l, a.prop, i);
284
282
  }, expression: "data[column.prop]" } })];
285
283
  } }]) })], 1);
286
- }, T = [], k = /* @__PURE__ */ n(
284
+ }, T = [], $ = /* @__PURE__ */ n(
287
285
  _,
288
286
  K,
289
287
  T,
@@ -293,7 +291,7 @@ var K = function() {
293
291
  null,
294
292
  null
295
293
  );
296
- const $ = k.exports, S = {
294
+ const k = $.exports, S = {
297
295
  data() {
298
296
  return {
299
297
  tableColumns: [{
@@ -576,7 +574,7 @@ const C = {
576
574
  closed() {
577
575
  this.selectedRowKeys = [], this.selectedRows = [], this.buttons.forEach((s) => {
578
576
  s.displayName == "\u65B0\u5EFA" && (s.show = !0);
579
- }), this.visible = !1;
577
+ }), this.visible = !1, this.$emit("closed", !1);
580
578
  },
581
579
  refresh() {
582
580
  this.$refs.table.refresh();
@@ -614,7 +612,7 @@ const C = {
614
612
  }
615
613
  }
616
614
  };
617
- var N = function() {
615
+ var R = function() {
618
616
  var e = this, t = e._self._c;
619
617
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(l) {
620
618
  e.visible = l;
@@ -633,17 +631,17 @@ var N = function() {
633
631
  e.$set(l, a.prop, i);
634
632
  }, expression: "data[column.prop]" } }), r ? t("gd-translation", { ref: "gdTranslation", attrs: { recordData: l, type: 2 }, on: { lookupSeled: (i) => e.lookupSeled(i, l, a) } }) : e._e()];
635
633
  } }]) })], 1);
636
- }, R = [], L = /* @__PURE__ */ n(
634
+ }, L = [], N = /* @__PURE__ */ n(
637
635
  C,
638
- N,
639
636
  R,
637
+ L,
640
638
  !1,
641
639
  null,
642
- "cf3b3c17",
640
+ "58be1de7",
643
641
  null,
644
642
  null
645
643
  );
646
- const B = L.exports;
644
+ const B = N.exports;
647
645
  const P = {
648
646
  mixins: [S],
649
647
  props: {
@@ -670,12 +668,13 @@ const P = {
670
668
  loadData: (s) => p(Object.assign(s, this.getQueryParam)).then((e) => e.data),
671
669
  selectedRowKeys: [],
672
670
  selectedRows: [],
673
- type: 11
671
+ type: 11,
672
+ isShowAdd: !1
674
673
  };
675
674
  },
676
675
  components: {
677
676
  DictAdd: B,
678
- Dictdetail: $
677
+ Dictdetail: k
679
678
  },
680
679
  computed: {
681
680
  getQueryParam() {
@@ -694,7 +693,12 @@ const P = {
694
693
  this.refresh(), this.$emit("ok", s);
695
694
  },
696
695
  add() {
697
- this.$refs.dictAdd.open(null);
696
+ this.isShowAdd = !0, setTimeout(() => {
697
+ this.$refs.dictAdd.open(null);
698
+ });
699
+ },
700
+ closed() {
701
+ this.isShowAdd = !1;
698
702
  },
699
703
  del() {
700
704
  if (this.selectedRowKeys.length === 0) {
@@ -751,19 +755,19 @@ var F = function() {
751
755
  } } })];
752
756
  } }, { key: "operator", fn: function() {
753
757
  return [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)];
754
- }, proxy: !0 }]) })], 1), t("DictAdd", { ref: "dictAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit } }), t("Dictdetail", { ref: "dictdetail", attrs: { detail: e.record, selList: e.selList } })], 1);
758
+ }, proxy: !0 }]) })], 1), e.isShowAdd ? t("DictAdd", { ref: "dictAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit, closed: e.closed } }) : e._e(), t("Dictdetail", { ref: "dictdetail", attrs: { detail: e.record, selList: e.selList } })], 1);
755
759
  }, D = [], z = /* @__PURE__ */ n(
756
760
  P,
757
761
  F,
758
762
  D,
759
763
  !1,
760
764
  null,
761
- "3de7a896",
765
+ "1085f3f6",
762
766
  null,
763
767
  null
764
768
  );
765
- const j = z.exports;
769
+ const O = z.exports;
766
770
  export {
767
- $ as D,
768
- j as a
771
+ k as D,
772
+ O as a
769
773
  };
@@ -1 +1 @@
1
- "use strict";const l=require("./components.chartbi.13a8a7b5.js"),p=require("./http.solution.c6b2634f.js"),u=require("./http.menumanage.6d740f2c.js"),g=require("./http.appmanage.b998818f.js"),f=require("./http.sysapps.469d47f7.js"),m=require("./page.designer.menutree.71c18258.js"),y={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},b={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",align:"left"},{transKey:"gd.menu.icon",prop:"icon",label:"\u56FE\u6807",type:"slot",slotType:"icon",align:"left"},{transKey:"gd.menu.sort",prop:"sort",label:"\u6392\u5E8F",align:"left"}],tableButtons:[{displayName:"\u65B0\u5EFA",functionName:"addBuilt",show:!1,transKey:"gd.btn.addBuilt",icon:"el-icon-plus"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}};const _={props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},mixins:[b],data(){return{confirmLoading:!1,fullscreen:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{AppsId:""},appLists:[],menuList:[],loadData:s=>this.getListAll(),disabledRowId:[],appList:[],arr:[],childArr:[],allList:[]}},components:{AddPage:m.AddPage},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},...l.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","pageDesignerData"])},methods:{getRow(s){s.forEach(i=>{this.arr.push(i),i.children&&i.children.length&&i.children.forEach(n=>{this.childArr.push(n)})});let e=this.arr.concat(this.childArr),t=[];e.filter(i=>this.selList.includes(i.id)).forEach(i=>{t.push(i.id)}),this.disabledRowId=t},collectIds(s){s.forEach(e=>{this.childArr.push(e.id)})},getAppList(){return g.getAppListByAppsId({appsId:this.queryParam.AppsId}).then(s=>(s.code===200&&(this.appLists=s.data),s))},getMenuList(){return u.sysMenuListByAppsId({AppsId:this.queryParam.AppsId}).then(s=>(s.code===200&&(this.menuList=s.data.map(e=>(e.opid=e.pid,e.children&&e.children.map(t=>(t.opid=t.pid,t)),e))),s))},getListAll(){return new Promise(s=>{Promise.all([this.getAppList(),this.getMenuList()]).then(e=>{let t=[...this.appLists];t.forEach((i,n)=>{t[n].pid=0,t[n].modeType="application";let r=this.menuList.filter(a=>a.application===i.code?(a.pid=i.id,!0):!1);r&&(t[n].children=r)}),this.traverseTree(t,0),this.allList=t,this.getRow(t),console.log(t),s({pageNo:1,pageSize:50,totalRows:t.length,rows:t})})})},traverseTree(s,e){let t={};const i=r=>(r=r.filter((a,B)=>{a.modeType===void 0&&(a.modeType=String(a.type)==="0"?"directory":String(a.type)==="1"?"page":"btn"),a.pagecontent!==void 0&&(a.options=a.pagecontent?JSON.parse(a.pagecontent):{list:[]}),a.sysAppsIded===void 0&&(a.sysAppsIded=this.queryParam.AppsId);let c={...a};const o=this.pageDesignerData.filter(d=>`${d.id}_${d.sysAppsIded}`==`${a.id}_${this.queryParam.AppsId}`)[0];if(a.modeType!=="application"&&o&&o.updatedtime===a.updatedtime&&(c={...o}),a.modeType!=="application"&&o&&o.updatedtime!==a.updatedtime){const d=this.pageDesignerData.filter(h=>`${h.id}_${h.sysAppsIded}`!=`${o.id}_${o.sysAppsIded}`);this.PageDesignerData(d)}return Object.assign(a,{...c},{children:a.children,label:this.$i18nt(`Dynamics.${a.transkey}`,c.name)}),a.id==e&&(t={...a}),a.type!==1&&a.children?a.children=i(a.children):a.children=[],a.modeType!=="btn"}),r);return{list:i(s),itemNode:t}},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s){this.fullScreen=!1,this.type=s?2:1,this.visible=!0},getSysAppsPage(){f.sysAppsPage().then(s=>{s.success&&(this.appList=s.data.rows,this.queryParam.AppsId=this.appList[0].id)})},handleCurrentRowChange(s){(s==null?void 0:s.type)!=1?(this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!0)}),this.selectedRows=[s]):this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!1)}),s.modeType&&!["page"].includes(s.modeType)?(this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!0)}),this.selectedRows=[s]):this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!1)})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.handleCancel();return}this.confirmLoading=!0;let s=[];this.selectedRows.forEach(t=>{s.push({componenttype:5,objectid:t.id,name:this.getTransKeyName(t.transkey,t.name)})});let e={solutionId:this.detail.id,data:s};p.sysSolutionComponentBatchadd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+t.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.selectedRows=[],this.visible=!1},doEvent(s){let e=s.item.functionName;this[e]()},getTransKeyName(s,e){return this.getBootTrans&&s?this.$i18nt(`Dynamics.${s}`,e):e},okPage(s){this.refresh(),setTimeout(()=>{this.selectedRowKeys=[s],this.disabledRowId=[s];const e=this.findDataById(this.allList,s);this.selectedRows=[e],setTimeout(()=>{this.handleSubmit()},10)},1e3)},findDataById(s,e){for(let t of s){if(t.id==e)return t;if(t.children&&t.children.length>0){const i=this.findDataById(t.children,e);if(i)return i}}return null},addBuilt(){this.$refs.addPage.open(this.selectedRows[0])},...l.mapActions(["PageDesignerData"])},created(){this.getSysAppsPage()}};var w=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:e.fullscreen,buttons:e.tableButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!1,highlightCurrentRow:!0,height:e.getHeight,selectedRowKeys:e.selectedRowKeys,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange,handleCurrentRowChange:e.handleCurrentRowChange},scopedSlots:e._u([{key:"type",fn:function({column:i,row:n}){return[t("span",[e._v(e._s(e._f("dictType")("menu_type",n.type)))])]}},{key:"icon",fn:function({column:i,row:n}){return[n.icon?t("i",{staticClass:"gd-icons",class:n.icon}):e._e()]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.btnConfig.name","\u540D\u79F0"),clearable:""},model:{value:e.queryParam.AppsId,callback:function(i){e.$set(e.queryParam,"AppsId",i)},expression:"queryParam.AppsId"}},e._l(e.appList,function(i,n){return t("el-option",{key:n,attrs:{label:e.$i18nt(`Dynamics.${i.transKey}`,i.name),value:i.id}})}),1),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}],null,!1,2718196542)}):e._e()],1)],2),t("AddPage",{ref:"addPage",on:{ok:e.okPage}})],1)},C=[],$=l.normalizeComponent(_,w,C,!1,null,"1889e112",null,null);const v=$.exports;const R={mixins:[y],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{menuPage:v},data(){return{queryParam:{},loadData:s=>p.sysSolutionComponentPage(Object.assign(s,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:5}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...l.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.menuPage.open(null)},okSbumit(s){this.refresh(),this.$emit("ok",s)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,p.sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(i=>{t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]()}}};var L=function(){var e=this,t=e._self._c;return t("div",[t("div",[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:n}})]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)]},proxy:!0}])})],1),t("menuPage",{ref:"menuPage",attrs:{detail:e.record,selList:e.selList},on:{ok:e.okSbumit}})],1)},S=[],A=l.normalizeComponent(R,L,S,!1,null,"c5a3e237",null,null);const P=A.exports;exports.Menu=P;
1
+ "use strict";const l=require("./components.chartbi.13a8a7b5.js"),p=require("./http.solution.c6b2634f.js"),u=require("./http.menumanage.6d740f2c.js"),g=require("./http.appmanage.b998818f.js"),f=require("./http.sysapps.469d47f7.js"),m=require("./page.designer.menutree.6368c636.js"),y={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},b={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",align:"left"},{transKey:"gd.menu.icon",prop:"icon",label:"\u56FE\u6807",type:"slot",slotType:"icon",align:"left"},{transKey:"gd.menu.sort",prop:"sort",label:"\u6392\u5E8F",align:"left"}],tableButtons:[{displayName:"\u65B0\u5EFA",functionName:"addBuilt",show:!1,transKey:"gd.btn.addBuilt",icon:"el-icon-plus"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}};const _={props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},mixins:[b],data(){return{confirmLoading:!1,fullscreen:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{AppsId:""},appLists:[],menuList:[],loadData:s=>this.getListAll(),disabledRowId:[],appList:[],arr:[],childArr:[],allList:[]}},components:{AddPage:m.AddPage},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},...l.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","pageDesignerData"])},methods:{getRow(s){s.forEach(i=>{this.arr.push(i),i.children&&i.children.length&&i.children.forEach(n=>{this.childArr.push(n)})});let e=this.arr.concat(this.childArr),t=[];e.filter(i=>this.selList.includes(i.id)).forEach(i=>{t.push(i.id)}),this.disabledRowId=t},collectIds(s){s.forEach(e=>{this.childArr.push(e.id)})},getAppList(){return g.getAppListByAppsId({appsId:this.queryParam.AppsId}).then(s=>(s.code===200&&(this.appLists=s.data),s))},getMenuList(){return u.sysMenuListByAppsId({AppsId:this.queryParam.AppsId}).then(s=>(s.code===200&&(this.menuList=s.data.map(e=>(e.opid=e.pid,e.children&&e.children.map(t=>(t.opid=t.pid,t)),e))),s))},getListAll(){return new Promise(s=>{Promise.all([this.getAppList(),this.getMenuList()]).then(e=>{let t=[...this.appLists];t.forEach((i,n)=>{t[n].pid=0,t[n].modeType="application";let r=this.menuList.filter(a=>a.application===i.code?(a.pid=i.id,!0):!1);r&&(t[n].children=r)}),this.traverseTree(t,0),this.allList=t,this.getRow(t),console.log(t),s({pageNo:1,pageSize:50,totalRows:t.length,rows:t})})})},traverseTree(s,e){let t={};const i=r=>(r=r.filter((a,B)=>{a.modeType===void 0&&(a.modeType=String(a.type)==="0"?"directory":String(a.type)==="1"?"page":"btn"),a.pagecontent!==void 0&&(a.options=a.pagecontent?JSON.parse(a.pagecontent):{list:[]}),a.sysAppsIded===void 0&&(a.sysAppsIded=this.queryParam.AppsId);let c={...a};const o=this.pageDesignerData.filter(d=>`${d.id}_${d.sysAppsIded}`==`${a.id}_${this.queryParam.AppsId}`)[0];if(a.modeType!=="application"&&o&&o.updatedtime===a.updatedtime&&(c={...o}),a.modeType!=="application"&&o&&o.updatedtime!==a.updatedtime){const d=this.pageDesignerData.filter(h=>`${h.id}_${h.sysAppsIded}`!=`${o.id}_${o.sysAppsIded}`);this.PageDesignerData(d)}return Object.assign(a,{...c},{children:a.children,label:this.$i18nt(`Dynamics.${a.transkey}`,c.name)}),a.id==e&&(t={...a}),a.type!==1&&a.children?a.children=i(a.children):a.children=[],a.modeType!=="btn"}),r);return{list:i(s),itemNode:t}},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s){this.fullScreen=!1,this.type=s?2:1,this.visible=!0},getSysAppsPage(){f.sysAppsPage().then(s=>{s.success&&(this.appList=s.data.rows,this.queryParam.AppsId=this.appList[0].id)})},handleCurrentRowChange(s){(s==null?void 0:s.type)!=1?(this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!0)}),this.selectedRows=[s]):this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!1)}),s.modeType&&!["page"].includes(s.modeType)?(this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!0)}),this.selectedRows=[s]):this.tableButtons.forEach(e=>{e.displayName=="\u65B0\u5EFA"&&(e.show=!1)})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.handleCancel();return}this.confirmLoading=!0;let s=[];this.selectedRows.forEach(t=>{s.push({componenttype:5,objectid:t.id,name:this.getTransKeyName(t.transkey,t.name)})});let e={solutionId:this.detail.id,data:s};p.sysSolutionComponentBatchadd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+t.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.selectedRows=[],this.visible=!1},doEvent(s){let e=s.item.functionName;this[e]()},getTransKeyName(s,e){return this.getBootTrans&&s?this.$i18nt(`Dynamics.${s}`,e):e},okPage(s){this.refresh(),setTimeout(()=>{this.selectedRowKeys=[s],this.disabledRowId=[s];const e=this.findDataById(this.allList,s);this.selectedRows=[e],setTimeout(()=>{this.handleSubmit()},10)},1e3)},findDataById(s,e){for(let t of s){if(t.id==e)return t;if(t.children&&t.children.length>0){const i=this.findDataById(t.children,e);if(i)return i}}return null},addBuilt(){this.$refs.addPage.open(this.selectedRows[0])},...l.mapActions(["PageDesignerData"])},created(){this.getSysAppsPage()}};var w=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:e.fullscreen,buttons:e.tableButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!1,highlightCurrentRow:!0,height:e.getHeight,selectedRowKeys:e.selectedRowKeys,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange,handleCurrentRowChange:e.handleCurrentRowChange},scopedSlots:e._u([{key:"type",fn:function({column:i,row:n}){return[t("span",[e._v(e._s(e._f("dictType")("menu_type",n.type)))])]}},{key:"icon",fn:function({column:i,row:n}){return[n.icon?t("i",{staticClass:"gd-icons",class:n.icon}):e._e()]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.btnConfig.name","\u540D\u79F0"),clearable:""},model:{value:e.queryParam.AppsId,callback:function(i){e.$set(e.queryParam,"AppsId",i)},expression:"queryParam.AppsId"}},e._l(e.appList,function(i,n){return t("el-option",{key:n,attrs:{label:e.$i18nt(`Dynamics.${i.transKey}`,i.name),value:i.id}})}),1),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}],null,!1,2718196542)}):e._e()],1)],2),t("AddPage",{ref:"addPage",on:{ok:e.okPage}})],1)},C=[],$=l.normalizeComponent(_,w,C,!1,null,"1889e112",null,null);const v=$.exports;const R={mixins:[y],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{menuPage:v},data(){return{queryParam:{},loadData:s=>p.sysSolutionComponentPage(Object.assign(s,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:5}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...l.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.menuPage.open(null)},okSbumit(s){this.refresh(),this.$emit("ok",s)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,p.sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(i=>{t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]()}}};var L=function(){var e=this,t=e._self._c;return t("div",[t("div",[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:n}})]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)]},proxy:!0}])})],1),t("menuPage",{ref:"menuPage",attrs:{detail:e.record,selList:e.selList},on:{ok:e.okSbumit}})],1)},S=[],A=l.normalizeComponent(R,L,S,!1,null,"c5a3e237",null,null);const P=A.exports;exports.Menu=P;
@@ -3,7 +3,7 @@ import { s as f, a as g, b as m } from "./http.solution.b10d9197.mjs";
3
3
  import { c as y } from "./http.menumanage.3060f4c7.mjs";
4
4
  import { g as b } from "./http.appmanage.e389782d.mjs";
5
5
  import { s as w } from "./http.sysapps.932ba43b.mjs";
6
- import { A as _ } from "./page.designer.menutree.e4ce1e90.mjs";
6
+ import { A as _ } from "./page.designer.menutree.1e642711.mjs";
7
7
  const $ = {
8
8
  data() {
9
9
  return {
@@ -1,4 +1,4 @@
1
- import { m as n, n as l } from "./components.chartbi.7356b244.mjs";
1
+ import { m as l, n } from "./components.chartbi.7356b244.mjs";
2
2
  import { s as a, a as r, b as d } from "./http.solution.b10d9197.mjs";
3
3
  import { s as c } from "./http.pluginmanage.54720675.mjs";
4
4
  import { e as u } from "./system.plugin.8a9a6448.mjs";
@@ -132,7 +132,7 @@ const m = {
132
132
  styled() {
133
133
  return `color:${this.primaryColor};cursor: pointer;`;
134
134
  },
135
- ...n(["tablePageSize", "screenHeight", "tableSize", "primaryColor", "formMode"])
135
+ ...l(["tablePageSize", "screenHeight", "tableSize", "primaryColor", "formMode"])
136
136
  },
137
137
  methods: {
138
138
  getRow(s) {
@@ -182,7 +182,7 @@ const m = {
182
182
  closed() {
183
183
  this.selectedRowKeys = [], this.selectedRows = [], this.formButtons.forEach((s) => {
184
184
  s.displayName == "\u65B0\u5EFA" && (s.show = !0);
185
- }), this.visible = !1;
185
+ }), this.visible = !1, this.$emit("closed", !1);
186
186
  },
187
187
  onSelectChange(s, e) {
188
188
  this.selectedRowKeys = s, this.selectedRows = e, this.selectedRows.length > 0 ? this.formButtons.forEach((t) => {
@@ -222,13 +222,13 @@ var g = function() {
222
222
  } }, { key: "filtering", fn: function({ colse: i, visible: o }) {
223
223
  return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: o }, on: { save: e.saveQueries } })];
224
224
  } }], null, !1, 444474338) }) : e._e()], 1)], 2), t("editForm", { ref: "editForm", attrs: { formMode: e.formMode }, on: { ok: e.submitRefresh } })], 1);
225
- }, p = [], y = /* @__PURE__ */ l(
225
+ }, p = [], y = /* @__PURE__ */ n(
226
226
  m,
227
227
  g,
228
228
  p,
229
229
  !1,
230
230
  null,
231
- "09fe659d",
231
+ "73c11be3",
232
232
  null,
233
233
  null
234
234
  );
@@ -258,7 +258,8 @@ const w = {
258
258
  loadData: (s) => r(Object.assign(s, this.getQueryParam)).then((e) => e.data),
259
259
  selectedRowKeys: [],
260
260
  selectedRows: [],
261
- type: 19
261
+ type: 19,
262
+ isShowAdd: !1
262
263
  };
263
264
  },
264
265
  computed: {
@@ -268,11 +269,16 @@ const w = {
268
269
  type: this.type
269
270
  });
270
271
  },
271
- ...n(["tablePageSize", "tableSize"])
272
+ ...l(["tablePageSize", "tableSize"])
272
273
  },
273
274
  methods: {
274
275
  add() {
275
- this.$refs.plugInAdd.open(null);
276
+ this.isShowAdd = !0, setTimeout(() => {
277
+ this.$refs.plugInAdd.open(null);
278
+ });
279
+ },
280
+ closed() {
281
+ this.isShowAdd = !1;
276
282
  },
277
283
  okSbumit(s) {
278
284
  this.refresh(), this.$emit("ok", s);
@@ -330,18 +336,18 @@ var _ = function() {
330
336
  return [t("gd-tooltip", { attrs: { rowKey: "name", row: o, highlight: "" } })];
331
337
  } }, { key: "operator", fn: function() {
332
338
  return [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)];
333
- }, proxy: !0 }]) })], 1), t("PlugInAdd", { ref: "plugInAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit } })], 1);
334
- }, v = [], R = /* @__PURE__ */ l(
339
+ }, proxy: !0 }]) })], 1), e.isShowAdd ? t("PlugInAdd", { ref: "plugInAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit, closed: e.closed } }) : e._e()], 1);
340
+ }, v = [], S = /* @__PURE__ */ n(
335
341
  w,
336
342
  _,
337
343
  v,
338
344
  !1,
339
345
  null,
340
- "acc3955b",
346
+ "05df59a6",
341
347
  null,
342
348
  null
343
349
  );
344
- const B = R.exports;
350
+ const B = S.exports;
345
351
  export {
346
352
  B as P
347
353
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./components.chartbi.13a8a7b5.js"),l=require("./http.solution.c6b2634f.js"),a=require("./http.pluginmanage.6a876040.js"),r=require("./system.plugin.a0f25733.js"),d={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.plugin.status",prop:"status",label:"\u72B6\u6001",type:"slot",slotType:"status",align:"left",showOverflowTooltip:!0},{transKey:"gd.plugin.remarks",prop:"description",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.plugin.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],formButtons:[{displayName:"\u65B0\u5EFA",functionName:"addBuilt",show:!0,transKey:"gd.btn.addBuilt",icon:"el-icon-plus"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}};const u={mixins:[c],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:s=>a.sysPluginDataPage(Object.assign(s,this.queryParam)).then(e=>(this.getRow(e.data),e.data)),disabledRowId:[],allList:[]}},components:{editForm:r.editForm},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...n.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","formMode"])},methods:{getRow(s){let e=[];s.rows.filter(t=>this.selList.includes(t.id)).forEach(t=>{e.push(t.id)}),this.disabledRowId=e},toggleFullscreen(){this.fullscreen=!this.fullscreen},saveQueries(s){this.queryParam={...s},this.refresh()},open(s){this.fullScreen=!1,this.type=s?2:1,this.visible=!0},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let s=[];this.selectedRows.forEach(t=>{s.push({componenttype:19,objectid:t.id,name:this.getTransKeyName(t.transkey,t.name)})});let e={solutionId:this.detail.id,data:s};l.sysSolutionComponentBatchadd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+t.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.selectedRows=[],this.formButtons.forEach(s=>{s.displayName=="\u65B0\u5EFA"&&(s.show=!0)}),this.visible=!1,this.$emit("closed",!1)},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e,this.selectedRows.length>0?this.formButtons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!1)}):this.formButtons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!0)})},doEvent(s){let e=s.item.functionName;this[e]()},getTransKeyName(s,e){return this.getBootTrans&&s?this.$i18nt(`Dynamics.${s}`,e):e},addBuilt(){this.$refs.editForm.open(null)},submitRefresh(s){this.refresh(),s&&setTimeout(()=>{const e=this.allList.find(t=>t.id===s.id);this.selectedRowKeys=[e.id],this.selectedRows=[e],setTimeout(()=>{this.handleSubmit()},10)},400)}}};var h=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:e.fullscreen,buttons:e.formButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!0,height:e.getHeight,selectedRowKeys:e.selectedRowKeys,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:o}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""}})]}},{key:"status",fn:function(i){return[t("div",[i.row.status?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"filtering",fn:function({colse:i,visible:o}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:o},on:{save:e.saveQueries}})]}}],null,!1,444474338)}):e._e()],1)],2),t("editForm",{ref:"editForm",attrs:{formMode:e.formMode},on:{ok:e.submitRefresh}})],1)},f=[],g=n.normalizeComponent(u,h,f,!1,null,"73c11be3",null,null);const m=g.exports;const p={mixins:[d],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},selList:{type:Array,default:()=>[]}},components:{PlugInAdd:m},data(){return{queryParam:{},loadData:s=>l.sysSolutionComponentPage(Object.assign(s,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:19,isShowAdd:!1}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...n.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.isShowAdd=!0,setTimeout(()=>{this.$refs.plugInAdd.open(null)})},closed(){this.isShowAdd=!1},okSbumit(s){this.refresh(),this.$emit("ok",s)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,l.sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(i=>{t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]()}}};var y=function(){var e=this,t=e._self._c;return t("div",[t("div",[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:o}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""}})]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)]},proxy:!0}])})],1),e.isShowAdd?t("PlugInAdd",{ref:"plugInAdd",attrs:{detail:e.record,selList:e.selList},on:{ok:e.okSbumit,closed:e.closed}}):e._e()],1)},b=[],w=n.normalizeComponent(p,y,b,!1,null,"05df59a6",null,null);const _=w.exports;exports.PlugIn=_;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./components.chartbi.13a8a7b5.js"),l=require("./http.solution.c6b2634f.js"),r=require("./http.main.2f8a6936.js"),a=require("./flow.list.dea8996a.js"),d={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.table.tableName",prop:"syscodegenid",label:"\u8868\u540D\u79F0",type:"slot",slotType:"syscodegenid",align:"left"},{transKey:"gd.flow.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{title:"\u8BF4\u660E",prop:"description",align:"left",transKey:"gd.flow.explain"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}],buttons:[{displayName:"\u65B0\u5EFA",functionName:"addBuilt",show:!0,transKey:"gd.btn.addBuilt",icon:"el-icon-plus"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const u={mixins:[c],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{width:"70%",confirmLoading:!1,fullscreen:!1,visible:!1,queryParam:{},loadData:s=>([...this.selectedRowKeys],r.onlineBizProcessPage(Object.assign(s,this.queryParam)).then(e=>(this.getRow(e.data),this.allList=e.data.rows,e.data))),selectedRowKeys:[],disabledRowId:[],allList:[]}},components:{flowDesign:a.flowDesign$1},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...n.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(s){let e=[];s.rows.filter(t=>this.selList.includes(t.id)).forEach(t=>{e.push(t.id)}),this.disabledRowId=e},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e,this.selectedRows.length>0?this.buttons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!1)}):this.buttons.forEach(t=>{t.displayName=="\u65B0\u5EFA"&&(t.show=!0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s){this.fullScreen=!1,this.type=s?2:1,this.visible=!0},saveQueries(s){this.queryParam={...s},this.refresh()},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let s=[];this.selectedRows.forEach(t=>{s.push({componenttype:14,objectid:t.id,name:this.getTransKeyName(t.transkey,t.name)})});let e={solutionId:this.detail.id,data:s};l.sysSolutionComponentBatchadd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+t.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.selectedRows=[],this.buttons.forEach(s=>{s.displayName=="\u65B0\u5EFA"&&(s.show=!0)}),this.visible=!1,this.$emit("closed",!1)},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==s)[0];return t!=null&&t.colour?t.colour:null},doEvent(s){let e=s.item.functionName;this[e]()},getTransKeyName(s,e){return this.getBootTrans&&s?this.$i18nt(`Dynamics.${s}`,e):e},addBuilt(){this.$refs.flowDesign.open(null)},submitRefresh(s){this.refresh(),s&&setTimeout(()=>{const e=this.allList.find(t=>t.id===s);this.selectedRowKeys=[e.id],this.selectedRows=[e],setTimeout(()=>{this.handleSubmit()},10)},400)}}};var h=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!0,height:e.getHeight,selectedRowKeys:e.selectedRowKeys,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""}})]}},{key:"syscodegenid",fn:function({row:i}){return[i.syscodegen?t("span",{style:e.styled},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.syscodegen.transkey}`,i.syscodegen.busname))+" ")]):e._e()]}},{key:"statecodes",fn:function(i){return[t("div",{staticStyle:{cursor:"pointer"}},[i.row.statecodes?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"filtering",fn:function({colse:i,visible:o}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:o},on:{save:e.saveQueries}})]}}],null,!1,3412208156)}):e._e()],1)],2),t("flowDesign",{ref:"flowDesign",on:{ok:e.submitRefresh}})],1)},f=[],g=n.normalizeComponent(u,h,f,!1,null,"af9466d3",null,null);const m=g.exports;const p={mixins:[d],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{ProcessAdd:m,flowDesign:a.flowDesign$1},data(){return{queryParam:{},loadData:s=>l.sysSolutionComponentPage(Object.assign(s,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:14,isShowAdd:!1}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...n.mapGetters(["tablePageSize","tableSize"])},methods:{see(s){this.$refs.flowDesign.open(s.objectid)},add(){this.isShowAdd=!0,setTimeout(()=>{this.$refs.processAdd.open(null)})},closed(){this.isShowAdd=!1},okSbumit(s){this.refresh(),this.$emit("ok",s)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,l.sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(i=>{t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]()}}};var y=function(){var e=this,t=e._self._c;return t("div",[t("div",[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:o}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""},on:{click:function(v){return e.see(o)}}})]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)]},proxy:!0}])})],1),e.isShowAdd?t("ProcessAdd",{ref:"processAdd",attrs:{detail:e.record,selList:e.selList},on:{ok:e.okSbumit,closed:e.closed}}):e._e(),t("flowDesign",{ref:"flowDesign",attrs:{modeType:"solution"}})],1)},b=[],w=n.normalizeComponent(p,y,b,!1,null,"0d45ae08",null,null);const _=w.exports;exports.Process=_;