gds-plus-design-vue 1.3.2 → 1.3.21

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 (138) hide show
  1. package/lib/{btnGroup.868c8549.js → btnGroup.2304f2f4.js} +1 -1
  2. package/lib/{btnGroup.bbf14548.mjs → btnGroup.cbaa6e6b.mjs} +14 -14
  3. package/lib/{components.form.9c850f56.mjs → components.form.082d9c9b.mjs} +1 -1
  4. package/lib/{components.form.column.bb178c13.mjs → components.form.column.cab0072e.mjs} +1 -1
  5. package/lib/{components.form.column.bbdd2b3a.js → components.form.column.ee06d8bb.js} +1 -1
  6. package/lib/{components.form.218c5703.js → components.form.f4bb9c4c.js} +1 -1
  7. package/lib/{components.globalheader.87083065.js → components.globalheader.5db21e71.js} +1 -1
  8. package/lib/{components.globalheader.c7309694.mjs → components.globalheader.c5ce924d.mjs} +1 -1
  9. package/lib/components.iconselector.831f847e.js +1 -0
  10. package/lib/{components.iconselector.d7c731b8.mjs → components.iconselector.ded60514.mjs} +20 -17
  11. package/lib/{components.sidenavmenu.8a971489.js → components.sidenavmenu.90170635.js} +1 -1
  12. package/lib/{components.sidenavmenu.d4d48a2e.mjs → components.sidenavmenu.c7b6729b.mjs} +7 -7
  13. package/lib/{components.table.queriesfield.0c9da7cd.mjs → components.table.queriesfield.84733bb7.mjs} +32 -32
  14. package/lib/components.table.queriesfield.a50919ee.js +1 -0
  15. package/lib/{fonticon.9adf1203.mjs → fonticon.0d9a2e23.mjs} +14 -14
  16. package/lib/{fonticon.1b451e1a.js → fonticon.a1263225.js} +1 -1
  17. package/lib/{form.designer.build.44a222b7.mjs → form.designer.build.136e3cdd.mjs} +10 -4
  18. package/lib/form.designer.build.7c94450d.js +1 -0
  19. package/lib/gd-initial.js +1 -1
  20. package/lib/gd-initial.mjs +14 -14
  21. package/lib/{http.filedocument.a10d6b67.mjs → http.filedocument.0219751b.mjs} +14 -14
  22. package/lib/{index.50e04b35.js → index.3a9b2d69.js} +1 -1
  23. package/lib/{index.08591f92.mjs → index.459a27d0.mjs} +22 -22
  24. package/lib/index.53b24311.js +1 -0
  25. package/lib/{index.55cf8b7e.js → index.6207efd7.js} +1 -1
  26. package/lib/{index.a32cdfa6.mjs → index.718199db.mjs} +17 -17
  27. package/lib/{index.dd12afc4.mjs → index.72ea6b6b.mjs} +6 -6
  28. package/lib/{index.d5afad7c.js → index.8c8698d0.js} +1 -1
  29. package/lib/{index.6faf770f.js → index.9ec72e55.js} +1 -1
  30. package/lib/{index.cf8bce6c.mjs → index.e051f15e.mjs} +149 -136
  31. package/lib/{index.b5d91f53.mjs → index.f1ecfc7f.mjs} +23 -23
  32. package/lib/{layoutBlocks.22969318.mjs → layoutBlocks.ec55e84e.mjs} +14 -14
  33. package/lib/{layoutBlocks.3326a2cf.js → layoutBlocks.ff24da6b.js} +1 -1
  34. package/lib/{layouts.basiclayout.d292ac35.js → layouts.basiclayout.05046cb5.js} +1 -1
  35. package/lib/{layouts.basiclayout.ba756cfc.mjs → layouts.basiclayout.422c6adc.mjs} +2 -2
  36. package/lib/{layouts.basiclayouttop.5ea4efd6.mjs → layouts.basiclayouttop.4047325d.mjs} +2 -2
  37. package/lib/{layouts.basiclayouttop.22fb1854.js → layouts.basiclayouttop.d6ee1637.js} +1 -1
  38. package/lib/{main.1fe649dd.js → main.467492ec.js} +1 -1
  39. package/lib/main.72c50010.mjs +941 -0
  40. package/lib/{main.839b7bab.mjs → main.750a686d.mjs} +1 -1
  41. package/lib/{main.46333cc1.js → main.77bfdb3d.js} +1 -1
  42. package/lib/{main.89e80afa.js → main.8024dd7b.js} +1 -1
  43. package/lib/{main.faec0761.mjs → main.95d3ff6c.mjs} +1 -1
  44. package/lib/{main.f646cd77.js → main.97e52ee0.js} +1 -1
  45. package/lib/{main.3781a6a9.js → main.9e4ff9c6.js} +1 -1
  46. package/lib/{main.9753a7a6.mjs → main.a3a8a32a.mjs} +26 -26
  47. package/lib/{main.5d1d8c5d.mjs → main.b7f83538.mjs} +1 -1
  48. package/lib/{main.c57a92f8.js → main.d19f6077.js} +1 -1
  49. package/lib/{main.e2e786a1.mjs → main.ff2b9dde.mjs} +1 -1
  50. package/lib/{mobile.designer.menutree.6ada2626.js → mobile.designer.menutree.31a0ac7c.js} +1 -1
  51. package/lib/{mobile.designer.menutree.5b1640f2.mjs → mobile.designer.menutree.b921fa65.mjs} +2 -2
  52. package/lib/{page.application.6ea9a771.mjs → page.application.72fd9f5e.mjs} +2 -2
  53. package/lib/{page.application.bde3a64a.js → page.application.b07312ad.js} +1 -1
  54. package/lib/{page.bmodule.datafiltering.1ab7a1b7.js → page.bmodule.datafiltering.50c9e358.js} +1 -1
  55. package/lib/{page.bmodule.datafiltering.82eb5fa8.mjs → page.bmodule.datafiltering.b3254ae9.mjs} +1 -1
  56. package/lib/{page.build.6447bfd6.js → page.build.5fa4a6c0.js} +1 -1
  57. package/lib/{page.build.a7f5bc44.mjs → page.build.d8557c78.mjs} +1 -1
  58. package/lib/{page.designer.layouts.b5447529.js → page.designer.layouts.351f3075.js} +1 -1
  59. package/lib/{page.designer.layouts.a04efb60.mjs → page.designer.layouts.5d641118.mjs} +1 -1
  60. package/lib/{page.designer.menutree.02ba7d2c.mjs → page.designer.menutree.34aedf7f.mjs} +491 -416
  61. package/lib/{page.designer.menutree.e9fcd5d7.js → page.designer.menutree.51b5e5ed.js} +1 -1
  62. package/lib/{page.designerp.generatorecharts.4e8fb3f2.mjs → page.designerp.generatorecharts.243dafb6.mjs} +1 -1
  63. package/lib/{page.designerp.generatorecharts.fee5aedd.js → page.designerp.generatorecharts.917dd008.js} +1 -1
  64. package/lib/{page.designerp.generatorgridmenu.d8820f3c.mjs → page.designerp.generatorgridmenu.85ed1c88.mjs} +3 -3
  65. package/lib/page.designerp.generatorgridmenu.ef75017c.js +1 -0
  66. package/lib/{page.designerp.generatortable.9d7b9b14.js → page.designerp.generatortable.79639f31.js} +1 -1
  67. package/lib/{page.designerp.generatortable.6011f553.mjs → page.designerp.generatortable.c4cbeb36.mjs} +1 -1
  68. package/lib/{page.designerp.generatortablegrid.c6e94530.js → page.designerp.generatortablegrid.2d33e24a.js} +1 -1
  69. package/lib/{page.designerp.generatortablegrid.5af3abfa.mjs → page.designerp.generatortablegrid.e61db667.mjs} +2 -2
  70. package/lib/{page.designerp.generatortree.42248e8f.mjs → page.designerp.generatortree.a26b78ae.mjs} +1 -1
  71. package/lib/{page.designerp.generatortree.e8320600.js → page.designerp.generatortree.f5ea6e0f.js} +1 -1
  72. package/lib/{page.designerp.main.8d72b4b4.js → page.designerp.main.9ac6b94e.js} +1 -1
  73. package/lib/{page.designerp.main.79f9b559.mjs → page.designerp.main.f05dd663.mjs} +1 -1
  74. package/lib/{page.designerp.properties.9e22da8e.mjs → page.designerp.properties.3bfd6455.mjs} +12 -12
  75. package/lib/{page.designerp.properties.e0e1b3c6.js → page.designerp.properties.e858d8e2.js} +1 -1
  76. package/lib/{page.designerp.propertiesbtn.40f9c7ec.mjs → page.designerp.propertiesbtn.187e7302.mjs} +1 -1
  77. package/lib/{page.designerp.propertiesbtn.1677b44b.js → page.designerp.propertiesbtn.d73a924e.js} +1 -1
  78. package/lib/{page.designerp.propertieschartbi.076e60a8.mjs → page.designerp.propertieschartbi.2d32c538.mjs} +1 -1
  79. package/lib/{page.designerp.propertieschartbi.f584d384.js → page.designerp.propertieschartbi.9b310756.js} +1 -1
  80. package/lib/{page.designerp.propertiesdrawercontainer.6aa245e7.mjs → page.designerp.propertiesdrawercontainer.40446788.mjs} +1 -1
  81. package/lib/{page.designerp.propertiesdrawercontainer.4602bd6f.js → page.designerp.propertiesdrawercontainer.4aa21503.js} +1 -1
  82. package/lib/{page.designerp.propertiesecharts.d59cc912.js → page.designerp.propertiesecharts.5002d91b.js} +1 -1
  83. package/lib/{page.designerp.propertiesecharts.517664c0.mjs → page.designerp.propertiesecharts.fcf3eaa6.mjs} +2 -2
  84. package/lib/{page.designerp.propertiesgridmenu.4113765c.js → page.designerp.propertiesgridmenu.4e7e22c0.js} +1 -1
  85. package/lib/{page.designerp.propertiesgridmenu.db55e28c.mjs → page.designerp.propertiesgridmenu.c7214ec6.mjs} +1 -1
  86. package/lib/{page.designerp.propertieslist.dda1709b.mjs → page.designerp.propertieslist.828fd439.mjs} +3 -3
  87. package/lib/{page.designerp.propertieslist.caa42641.js → page.designerp.propertieslist.c7d72d78.js} +1 -1
  88. package/lib/{page.designerp.propertiesstatistic.32f7a24d.js → page.designerp.propertiesstatistic.0f2da29f.js} +1 -1
  89. package/lib/{page.designerp.propertiesstatistic.4e14df8b.mjs → page.designerp.propertiesstatistic.a417c9e7.mjs} +1 -1
  90. package/lib/{page.designerp.propertiestable.1fdf9134.mjs → page.designerp.propertiestable.172f9499.mjs} +4 -4
  91. package/lib/{page.designerp.propertiestable.07b36fd6.js → page.designerp.propertiestable.658e0534.js} +1 -1
  92. package/lib/{page.designerp.propertiestablegrid.f606c227.mjs → page.designerp.propertiestablegrid.6b5bbe93.mjs} +5 -5
  93. package/lib/{page.designerp.propertiestablegrid.ccfbd8d6.js → page.designerp.propertiestablegrid.e208f5d1.js} +1 -1
  94. package/lib/{page.designerp.propertiestree.40f7f272.mjs → page.designerp.propertiestree.61da99df.mjs} +3 -3
  95. package/lib/{page.designerp.propertiestree.7848fdff.js → page.designerp.propertiestree.ee7014b7.js} +1 -1
  96. package/lib/page.filedocument.build.48a5874e.js +1 -0
  97. package/lib/{page.filedocument.build.c0f90ccd.mjs → page.filedocument.build.61f014b4.mjs} +130 -131
  98. package/lib/{personal.echarts.4f212a5c.mjs → personal.echarts.268fea3e.mjs} +1 -1
  99. package/lib/{personal.echarts.12a0fad6.js → personal.echarts.a78792db.js} +1 -1
  100. package/lib/{router.config.65dd255f.mjs → router.config.8be3d360.mjs} +8 -8
  101. package/lib/{router.config.77b867ce.js → router.config.e68a29e1.js} +1 -1
  102. package/lib/{search.advanced.327fd0be.mjs → search.advanced.dc688c5c.mjs} +2 -2
  103. package/lib/{search.advanced.be9d450f.js → search.advanced.ec1656d2.js} +1 -1
  104. package/lib/{solution.menu.a42e3c39.js → solution.menu.b487f819.js} +1 -1
  105. package/lib/{solution.menu.fe7037d5.mjs → solution.menu.eea5a105.mjs} +1 -1
  106. package/lib/style.css +2 -2
  107. package/lib/{sysComponents.7bcb6181.mjs → sysComponents.5cffa46d.mjs} +1 -1
  108. package/lib/{sysComponents.96b83ac9.js → sysComponents.90398324.js} +1 -1
  109. package/lib/{system.account.f43288ef.js → system.account.042e1580.js} +6 -6
  110. package/lib/{system.account.89c40faa.mjs → system.account.a315cddc.mjs} +37 -33
  111. package/lib/system.document.classifymanage.4daf3782.mjs +639 -0
  112. package/lib/system.document.classifymanage.c3771fa0.js +1 -0
  113. package/lib/system.document.recyclemanage.20503887.mjs +591 -0
  114. package/lib/system.document.recyclemanage.46e290c5.js +1 -0
  115. package/lib/{system.user.c90fd671.js → system.user.02e22feb.js} +4 -4
  116. package/lib/{system.user.3fb93f0e.mjs → system.user.98c9f5e7.mjs} +10 -4
  117. package/lib/{table.definition.btnconfig.edb31f00.mjs → table.definition.btnconfig.66fef981.mjs} +1 -1
  118. package/lib/{table.definition.btnconfig.ad94433f.js → table.definition.btnconfig.83478480.js} +1 -1
  119. package/lib/{table.definition.echartsconfig.1b55ec5a.js → table.definition.echartsconfig.02ff98ea.js} +1 -1
  120. package/lib/{table.definition.echartsconfig.11213eaa.mjs → table.definition.echartsconfig.34eea92d.mjs} +1 -1
  121. package/lib/{table.definition.fkconfig.c1f383ce.mjs → table.definition.fkconfig.a15d547f.mjs} +5 -5
  122. package/lib/{table.definition.fkconfig.0cb9807b.js → table.definition.fkconfig.cdd19291.js} +1 -1
  123. package/lib/{table.definition.formconfig.14140199.js → table.definition.formconfig.772f9395.js} +1 -1
  124. package/lib/{table.definition.formconfig.a1e3179f.mjs → table.definition.formconfig.cff793af.mjs} +2 -2
  125. package/lib/{utils.componentssys.js.0b63c908.mjs → utils.componentssys.js.539b7c3b.mjs} +12 -12
  126. package/lib/{utils.componentssys.js.85b0f05e.js → utils.componentssys.js.a28c0ac2.js} +1 -1
  127. package/lib/{view.build.c08b0135.mjs → view.build.c4c937d6.mjs} +5 -5
  128. package/lib/{view.build.9cf1f654.js → view.build.cbf165ac.js} +1 -1
  129. package/package.json +59 -107
  130. package/lib/components.iconselector.b74b573b.js +0 -1
  131. package/lib/components.table.queriesfield.49895bed.js +0 -1
  132. package/lib/form.designer.build.2b2da0f4.js +0 -1
  133. package/lib/index.d884234a.js +0 -1
  134. package/lib/main.085ed428.mjs +0 -988
  135. package/lib/page.designerp.generatorgridmenu.dfa1fbbb.js +0 -1
  136. package/lib/page.filedocument.build.54ae14c3.js +0 -1
  137. package/lib/system.document.1e100a7f.mjs +0 -1222
  138. package/lib/system.document.767210d3.js +0 -1
@@ -1,1222 +0,0 @@
1
- import { m as u, n as c } from "./components.answerquestions.0e877977.mjs";
2
- import { B as g, C as y, D as f, E as b, F as v, G as $, H as _, n as F, I as k, J as D, K as C, L as w, m as T, s as x, M as L, N as S, O as B } from "./http.filedocument.a10d6b67.mjs";
3
- import { u as p } from "./utils.util.js.16b83ff8.mjs";
4
- import { t as P } from "./utils.mixins.js.6f0923ed.mjs";
5
- import { g as z, a as I, l as K } from "./page.filedocument.build.c0f90ccd.mjs";
6
- import { c as h } from "./utils.concurrencyrequest.js.dee4fcd2.mjs";
7
- import { d as q } from "./http.tabledevelopment.dfb8eb7f.mjs";
8
- const A = {
9
- data() {
10
- return {
11
- tableColumns: [
12
- {
13
- type: "selection",
14
- width: "60",
15
- fixed: !0
16
- },
17
- {
18
- transKey: "gd.translation.name",
19
- prop: "name",
20
- label: "\u540D\u79F0",
21
- width: "220",
22
- align: "left",
23
- fixed: !0,
24
- renderHeader: (i, ...e) => this.renderHeader(i, ...e, {
25
- effectType: "input"
26
- })
27
- },
28
- {
29
- transKey: "gd.fileDocument.originalPosition",
30
- prop: "displaypath",
31
- width: "260",
32
- label: "\u539F\u4F4D\u7F6E",
33
- align: "left"
34
- },
35
- {
36
- transKey: "gd.fileDocument.docnum",
37
- prop: "docnum",
38
- width: "200",
39
- label: "\u7F16\u53F7",
40
- align: "left",
41
- renderHeader: (i, ...e) => this.renderHeader(i, ...e, {
42
- effectType: "input"
43
- })
44
- },
45
- {
46
- transKey: "gd.fileDocument.deleteTime",
47
- prop: "deleteTime",
48
- width: "180",
49
- label: "\u5220\u9664\u65F6\u95F4",
50
- align: "center"
51
- },
52
- {
53
- transKey: "gd.fileDocument.deletePerson",
54
- prop: "deleteUser",
55
- width: "140",
56
- label: "\u5220\u9664\u4EBA",
57
- align: "right"
58
- },
59
- {
60
- transKey: "gd.fileDocument.restoreTime",
61
- prop: "restoredat",
62
- width: "180",
63
- label: "\u6062\u590D\u65F6\u95F4",
64
- align: "center"
65
- },
66
- {
67
- transKey: "gd.fileDocument.restorePeople",
68
- prop: "restoredbyname",
69
- width: "140",
70
- label: "\u6062\u590D\u4EBA",
71
- align: "right"
72
- },
73
- {
74
- transKey: "gd.fileDocument.expirationTime",
75
- prop: "expiredtime",
76
- width: "180",
77
- label: "\u8FC7\u671F\u65F6\u95F4",
78
- align: "center"
79
- },
80
- {
81
- transKey: "gd.file.fileAccept",
82
- prop: "type",
83
- label: "\u6587\u4EF6\u7C7B\u578B",
84
- width: "140",
85
- type: "slot",
86
- slotType: "type",
87
- align: "center"
88
- },
89
- {
90
- transKey: "gd.file.fileSize",
91
- prop: "size",
92
- width: "120",
93
- label: "\u6587\u4EF6\u5927\u5C0F",
94
- align: "right"
95
- }
96
- ],
97
- tableButtons: [
98
- {
99
- displayName: "\u8FD8\u539F",
100
- functionName: "restoreUser",
101
- show: !0,
102
- transKey: "gd.fileDocument.restore",
103
- icon: "el-icon-refresh-right",
104
- name: "sysDocumentRecycle:recover"
105
- },
106
- {
107
- displayName: "\u5220\u9664",
108
- functionName: "delOut",
109
- show: !0,
110
- transKey: "gd.btn.del",
111
- icon: "el-icon-delete",
112
- btnType: "danger",
113
- name: "sysDocumentRecycle:delete"
114
- }
115
- ],
116
- tableQueries: [{
117
- transKey: "gd.translation.name",
118
- prop: "name",
119
- label: "\u540D\u79F0",
120
- effectType: "input",
121
- rules: []
122
- }, {
123
- transKey: "gd.file.fileAccept",
124
- prop: "type",
125
- label: "\u6587\u4EF6\u7C7B\u578B",
126
- effectType: "selectMultiple",
127
- dictTypeCode: "sys_doc_objects_type",
128
- rules: []
129
- }, {
130
- transKey: "gd.fileDocument.deleteTime",
131
- prop: "docdeletedat",
132
- label: "\u5220\u9664\u65F6\u95F4",
133
- effectType: "datepicker",
134
- options: {
135
- displayStyle: 2
136
- },
137
- rules: []
138
- }, {
139
- transKey: "gd.fileDocument.deletePerson",
140
- prop: "docdeletedby",
141
- label: "\u5220\u9664\u4EBA",
142
- effectType: "selectFkMultiple",
143
- fkEntityName: "sys_user",
144
- rules: []
145
- }]
146
- };
147
- }
148
- };
149
- const N = {
150
- name: "GdDocumentRecycle",
151
- props: {
152
- modeType: {
153
- type: String,
154
- default: "page"
155
- },
156
- height: {
157
- type: Number,
158
- default: 100
159
- }
160
- },
161
- mixins: [P, A],
162
- data() {
163
- return {
164
- selectedRowKeys: [],
165
- selectedRows: [],
166
- queryParam: {},
167
- loadData: (i) => g(Object.assign(i, this.getQueryParam, this.getDocrecyclestatus)).then((e) => {
168
- let t = [];
169
- return e.code === 200 && (t = e.data.rows.map((s) => {
170
- const a = s.displaypath ? s.displaypath.split("root") : [""];
171
- return Object.assign({}, s, {
172
- deleteTime: this.modeType === "page" ? s.recycledeletedat : s.docdeletedat,
173
- deleteUser: this.modeType === "page" ? s.recycledeletedbyname : s.docdeletedbyname,
174
- displaypath: a.filter((l, r) => r !== 0).join(""),
175
- icon: z(s),
176
- size: I(s)
177
- });
178
- })), Object.assign({}, e.data, {
179
- rows: t
180
- });
181
- })
182
- };
183
- },
184
- components: { RestoreFailed: () => Promise.resolve().then(() => W) },
185
- computed: {
186
- getTableColumns() {
187
- const i = this.modeType === "page" ? ["restoredat", "restoredbyname", "expiredtime"] : [];
188
- return this.tableColumns.filter((e) => !i.includes(e.prop));
189
- },
190
- getTableButtons() {
191
- return this.modeType === "page" ? this.tableButtons : [];
192
- },
193
- getQueryParam() {
194
- let i = /* @__PURE__ */ new Map();
195
- for (let e in this.queryParam)
196
- ["docdeletedby", "type"].includes(e) ? this.queryParam[e] && this.queryParam[e][0] && i.set(e, this.queryParam[e].join(",")) : ["docdeletedat"].includes(e) ? this.queryParam[e] && this.queryParam[e][0] && (i.set(`${e}Start`, this.queryParam[e][0] + " 00:00:00"), i.set(`${e}End`, this.queryParam[e][1] + " 23:59:59")) : this.queryParam[e] && i.set(e, this.queryParam[e]);
197
- return Object.fromEntries(i);
198
- },
199
- getDocrecyclestatus() {
200
- return { docrecyclestatus: this.modeType === "page" ? 2 : 1 };
201
- },
202
- getHeight() {
203
- const e = this.getTableButtons.filter((t) => t.show && this.$hasPerm(t.name))[0] && this.modeType === "page" ? 54 : 0;
204
- return this.height - e;
205
- },
206
- ...u(["tablePageSize", "tableSize", "labelPosition", "formMode"])
207
- },
208
- methods: {
209
- restoreUser() {
210
- let i = this;
211
- if (this.selectedRowKeys.length === 0) {
212
- this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
213
- return;
214
- }
215
- this.$confirm(this.$i18nt("gd.fileDocument.restoreUserTipd", "\u8BF7\u9009\u62E9\u8981\u6062\u590D\u7684\u4F4D\u7F6E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
216
- confirmButtonText: this.$i18nt("gd.fileDocument.restoreOkd", "\u7528\u6237\u56DE\u6536\u7AD9"),
217
- cancelButtonText: this.$i18nt("gd.https.delCanceld", "\u539F\u8DEF\u5F84"),
218
- showClose: !0,
219
- distinguishCancelAndClose: !0,
220
- confirmButtonLoading: !1,
221
- cancelButtonLoading: !1,
222
- closeOnClickModal: !1,
223
- type: "warning",
224
- confirmButtonClass: "el-button--danger",
225
- customClass: "custom-alert",
226
- callback: () => {
227
- },
228
- beforeClose: (e, t, s) => {
229
- if (e === "close") {
230
- s();
231
- return;
232
- }
233
- t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, e === "confirm" ? i.sysDocRecycleRecycle(t, s) : i.restoreBatch(t, s);
234
- }
235
- });
236
- },
237
- delOut() {
238
- let i = this;
239
- if (this.selectedRowKeys.length === 0) {
240
- this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
241
- return;
242
- }
243
- this.$confirm(this.$i18nt("gd.fileDocument.permanentDelTip", "\u662F\u5426\u6C38\u4E45\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
244
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
245
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
246
- showClose: !1,
247
- confirmButtonLoading: !1,
248
- cancelButtonLoading: !1,
249
- closeOnClickModal: !1,
250
- type: "warning",
251
- confirmButtonClass: "el-button--danger",
252
- customClass: "custom-alert",
253
- callback: () => {
254
- },
255
- beforeClose: (e, t, s) => {
256
- if (e !== "confirm") {
257
- s();
258
- return;
259
- }
260
- t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, y({
261
- ids: i.selectedRowKeys.join(",")
262
- }).then((a) => {
263
- t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, a.success ? (i.$message.success(i.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), i.refresh(), s()) : i.$message.error(i.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + a.message);
264
- });
265
- }
266
- });
267
- },
268
- async restoreBatch(i, e) {
269
- let t = [];
270
- this.selectedRows.forEach((l) => {
271
- t.push({ method: f, data: { id: l.id } });
272
- });
273
- const s = await h(t, 1);
274
- let a = [];
275
- if (s.forEach((l, r) => {
276
- const n = l.data ? l.data : {};
277
- n.code !== 0 && n.code !== 1 && a.push({ res: n, data: this.selectedRows[r] });
278
- }), a.length === 0)
279
- this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.refresh();
280
- else {
281
- const l = `${this.$i18nt("gd.https.handleSuccessTip", "\u5DF2\u5904\u7406\u6210\u529F: ")}${t.length - a.length}${this.$i18nt(
282
- "gd.https.handleFailTip",
283
- "\uFF0C\u5904\u7406\u5931\u8D25: "
284
- )}${a.length}`;
285
- this.$refs.restoreFailed.open(a, l);
286
- }
287
- i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, e();
288
- },
289
- restore() {
290
- let i = this;
291
- if (this.selectedRowKeys.length === 0) {
292
- this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
293
- return;
294
- }
295
- this.$confirm(this.$i18nt("gd.fileDocument.restoreUserTip", "\u662F\u5426\u5C06\u9009\u4E2D\u6570\u636E\u6062\u590D\u5230\u539F\u4F4D\u7F6E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
296
- confirmButtonText: this.$i18nt("gd.btn.confirm", "\u786E\u8BA4"),
297
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
298
- showClose: !1,
299
- confirmButtonLoading: !1,
300
- cancelButtonLoading: !1,
301
- closeOnClickModal: !1,
302
- type: "warning",
303
- confirmButtonClass: "el-button--danger",
304
- customClass: "custom-alert",
305
- callback: () => {
306
- },
307
- beforeClose: (e, t, s) => {
308
- if (e !== "confirm") {
309
- s();
310
- return;
311
- }
312
- t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, i.restoreBatch(t, s);
313
- }
314
- });
315
- },
316
- del() {
317
- let i = this;
318
- if (this.selectedRowKeys.length === 0) {
319
- this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
320
- return;
321
- }
322
- this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
323
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
324
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
325
- showClose: !1,
326
- confirmButtonLoading: !1,
327
- cancelButtonLoading: !1,
328
- closeOnClickModal: !1,
329
- type: "warning",
330
- confirmButtonClass: "el-button--danger",
331
- customClass: "custom-alert",
332
- callback: () => {
333
- },
334
- beforeClose: (e, t, s) => {
335
- if (e !== "confirm") {
336
- s();
337
- return;
338
- }
339
- t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, b({
340
- ids: i.selectedRowKeys.join(",")
341
- }).then((a) => {
342
- t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, a.success ? (i.$message.success(i.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), i.refresh(), s()) : i.$message.error(i.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + a.message);
343
- });
344
- }
345
- });
346
- },
347
- sysDocRecycleRecycle(i, e) {
348
- v({
349
- ids: this.selectedRowKeys.join(",")
350
- }).then((t) => {
351
- i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.refresh(), e()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message);
352
- });
353
- },
354
- saveQueries(i) {
355
- this.queryParam = { ...i }, this.refresh();
356
- },
357
- refresh() {
358
- this.$refs.table.refresh();
359
- },
360
- onSelectChange(i, e) {
361
- this.selectedRowKeys = i, this.selectedRows = e;
362
- },
363
- doEvent(i) {
364
- let e = i.item.functionName;
365
- this[e] && this[e]();
366
- }
367
- }
368
- };
369
- var O = function() {
370
- var e = this, t = e._self._c;
371
- return t("div", [e.getTableButtons.length > 0 && e.modeType === "page" ? t("gd-button-block", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } }) : e._e(), t("div", { staticClass: "boxshadow gd-document-recycle" }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.getTableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "type", fn: function({ column: s, row: a }) {
372
- return [t("i", { staticClass: "gd-icons miniimg", class: a.icon })];
373
- } }, { key: "filtering", fn: function({ colse: s, visible: a }) {
374
- return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: s, visible: a }, on: { save: e.saveQueries } })];
375
- } }]) }), t("RestoreFailed", { ref: "restoreFailed", on: { ok: e.refresh } })], 1)], 1);
376
- }, R = [], j = /* @__PURE__ */ c(
377
- N,
378
- O,
379
- R,
380
- !1,
381
- null,
382
- "c603dd12",
383
- null,
384
- null
385
- );
386
- const o = j.exports;
387
- const M = {
388
- name: "GdDocumentClassify",
389
- props: {
390
- height: {
391
- type: Number,
392
- default: 100
393
- }
394
- },
395
- data() {
396
- return {
397
- maxLeg: 3,
398
- statu: !1,
399
- pagesize: 1e3,
400
- pageno: 1,
401
- labelPosition: "top",
402
- transKey: "gd.btn.add",
403
- formLoading: !1,
404
- itemLoading: !1,
405
- confirmLoading: !1,
406
- attributeList: [],
407
- itemData: {},
408
- treeList: []
409
- };
410
- },
411
- computed: {
412
- show() {
413
- return !!this.itemData.id;
414
- },
415
- getFormButtons() {
416
- return [
417
- {
418
- displayName: "\u786E\u5B9A",
419
- functionName: "handleSubmit",
420
- show: !0,
421
- transKey: "gd.btn.confirm",
422
- icon: "el-icon-document-checked",
423
- validate: !0
424
- }
425
- ];
426
- },
427
- getFormColumns() {
428
- const i = this.transKey === "gd.btn.edit";
429
- return [
430
- {
431
- transKey: "gd.translation.name",
432
- effectType: "input",
433
- prop: "name",
434
- label: "\u540D\u79F0",
435
- placeholder: "\u8BF7\u8F93\u5165",
436
- placeholderTransKey: "gd.placeholder.input",
437
- disabled: !1,
438
- type: "slot",
439
- slotType: "name",
440
- rules: [
441
- {
442
- required: !0,
443
- message: "\u8BF7\u8F93\u5165",
444
- transKey: "gd.placeholder.input",
445
- trigger: "change"
446
- }
447
- ]
448
- },
449
- {
450
- transKey: "gd.dict.code",
451
- prop: "code",
452
- effectType: "input",
453
- label: "\u552F\u4E00\u7F16\u7801",
454
- placeholder: "\u8BF7\u8F93\u5165",
455
- placeholderTransKey: "gd.placeholder.input",
456
- disabled: i,
457
- rules: [
458
- {
459
- required: !0,
460
- message: "\u8BF7\u8F93\u5165",
461
- transKey: "gd.placeholder.input",
462
- trigger: "change"
463
- },
464
- {
465
- pattern: /^[a-zA-Z]([a-zA-Z0-9_]+)?$/,
466
- message: this.$i18nt("gd.view.viewNameTip", "\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")
467
- }
468
- ]
469
- },
470
- {
471
- transKey: "gd.dict.sort",
472
- prop: "sort",
473
- effectType: "inputnumber",
474
- label: "\u6392\u5E8F",
475
- placeholder: "\u8BF7\u8F93\u5165",
476
- placeholderTransKey: "gd.placeholder.input",
477
- defaultValue: 100,
478
- min: 1,
479
- rules: [
480
- {
481
- required: !0,
482
- message: "\u8BF7\u8F93\u5165",
483
- transKey: "gd.placeholder.input",
484
- trigger: "change",
485
- type: "number"
486
- }
487
- ]
488
- },
489
- {
490
- transKey: "gd.state.currentState",
491
- effectType: "select",
492
- prop: "statecodes",
493
- label: "\u5F53\u524D\u72B6\u6001",
494
- placeholder: "\u8BF7\u8F93\u5165",
495
- placeholderTransKey: "gd.placeholder.input",
496
- disabled: !1,
497
- dictTypeCode: "state_code",
498
- defaultValue: "1",
499
- rules: [
500
- {
501
- required: !0,
502
- message: "\u8BF7\u9009\u62E9",
503
- transKey: "gd.placeholder.select",
504
- trigger: "change"
505
- }
506
- ]
507
- },
508
- {
509
- transKey: "gd.task.description",
510
- effectType: "textarea",
511
- prop: "description",
512
- label: "\u63CF\u8FF0",
513
- placeholder: "\u8BF7\u8F93\u5165",
514
- placeholderTransKey: "gd.placeholder.input",
515
- disabled: !1,
516
- rules: [],
517
- autosize: {
518
- minRows: 4,
519
- maxRows: 6
520
- }
521
- }
522
- ];
523
- },
524
- style() {
525
- return `height:${this.height + 76}px`;
526
- },
527
- fadeColord() {
528
- return this.fadeColor(this.primaryColor, 0.1);
529
- },
530
- ...u(["screenHeight", "primaryColor"])
531
- },
532
- components: {
533
- EffectTypeIcon: () => import("./components.xlsximport.40d427c7.mjs").then((i) => i.e),
534
- EditAttributeForm: () => Promise.resolve().then(() => ie)
535
- },
536
- methods: {
537
- lookupSeled(i, e) {
538
- e.name = i.defaulttext;
539
- },
540
- copyAttribute(i) {
541
- this.transKey = "gd.btn.copy", this.$refs.editAttributeForm.openCopy(i);
542
- },
543
- okAttribute() {
544
- this.getListPage(), this.refreshAttribute();
545
- },
546
- getDetail() {
547
- return $({ id: this.itemData.id }).then((i) => (i.code === 200 && (this.itemData = Object.assign(i.data, {
548
- statecodes: String(i.data.statecodes)
549
- })), i));
550
- },
551
- getAttributeDetail() {
552
- return _({ pageno: this.pageno, pagesize: this.pagesize, sysDocTypeId: this.itemData.id }).then((i) => (i.code === 200 && (this.attributeList = i.data.rows.map((e) => Object.assign(e, {
553
- defaultvalue: this.getDefaultvalue(e)
554
- }))), i));
555
- },
556
- getDefaultvalue(i) {
557
- return ["checkbox"].includes(i.datatype) ? i.defaultvalue.split(",") : ["double", "currency"].includes(i.datatype) && i.defaultvalue ? Number(i.defaultvalue).toFixed(i.fieldsize) : i.defaultvalue;
558
- },
559
- init() {
560
- this.confirmLoading = !0, this.getListPage().then((i) => {
561
- this.itemData = this.treeList[0] ? this.treeList[0] : {}, this.refreshAttribute(), this.confirmLoading = !1;
562
- });
563
- },
564
- refresh() {
565
- this.confirmLoading = !0, this.getListPage().then((i) => {
566
- this.treeList.filter((t) => t.id === this.itemData.id)[0] || (this.itemData = {}), this.confirmLoading = !1;
567
- });
568
- },
569
- refreshAttribute() {
570
- !this.itemData.id || (this.statu = !0, this.itemLoading = !0, Promise.all([this.getDetail(), this.getAttributeDetail()]).then((i) => {
571
- this.statu = !1, this.itemLoading = !1;
572
- }));
573
- },
574
- getListPage() {
575
- return F({ pageno: this.pageno, pagesize: this.pagesize }).then((i) => (i.code === 200 && (this.treeList = i.data.rows.map((e) => Object.assign(e, {
576
- attributesLeg: e.sysdoctypeattributes ? e.sysdoctypeattributes.length : 0,
577
- statecodes: String(e.statecodes)
578
- }))), i));
579
- },
580
- editAttribute(i, e = "add") {
581
- this.transKey = `gd.btn.${e}`, this.$refs.editAttributeForm.open(i);
582
- },
583
- edit(i, e = "add") {
584
- this.transKey = `gd.btn.${e}`, this.$refs.editForm.open(i).then((t) => {
585
- e === "add" && t.done({ code: p(12) });
586
- });
587
- },
588
- del(i, e) {
589
- let t = this, s = this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?");
590
- this.$confirm(s, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
591
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
592
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
593
- showClose: !1,
594
- confirmButtonLoading: !1,
595
- cancelButtonLoading: !1,
596
- closeOnClickModal: !1,
597
- type: "warning",
598
- confirmButtonClass: "el-button--danger",
599
- customClass: "custom-alert",
600
- callback: () => {
601
- },
602
- beforeClose: (a, l, r) => {
603
- if (a !== "confirm") {
604
- r();
605
- return;
606
- }
607
- l.confirmButtonLoading = !0, l.cancelButtonLoading = !0, l.showCancelButton = !1, (i === 2 ? k : D)({
608
- ids: e.id
609
- }).then((m) => {
610
- if (l.confirmButtonLoading = !1, l.cancelButtonLoading = !1, l.showCancelButton = !0, !m.success) {
611
- t.$message.error(t.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + m.message);
612
- return;
613
- }
614
- t.refresh(), i !== 2 ? t.itemData = e.id === t.itemData.id ? {} : t.itemData : t.refreshAttribute(), t.$message.success(t.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), r();
615
- });
616
- }
617
- });
618
- },
619
- sbumit({ data: i, record: e, btn: t }, s, a) {
620
- this.formLoading = !0, (e ? w : C)(i).then((r) => {
621
- r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a(), this.refresh(), this.refreshAttribute()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.formLoading = !1;
622
- });
623
- },
624
- selIcon(i) {
625
- this.iconData = i, this.$refs.iconSelector.open();
626
- },
627
- selItem(i) {
628
- this.statu || i !== this.itemData.id && (this.itemData = i, this.refreshAttribute());
629
- },
630
- fadeColor(i, e) {
631
- let t = parseInt(i.substring(1, 3), 16), s = parseInt(i.substring(3, 5), 16), a = parseInt(i.substring(5, 7), 16);
632
- return `rgba(${t},${s},${a},${e})`;
633
- }
634
- },
635
- created() {
636
- this.init();
637
- }
638
- };
639
- var E = function() {
640
- var e = this, t = e._self._c;
641
- return t("div", { staticClass: "gd-document", style: { "--fadecolor": e.fadeColord } }, [t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "document-type", style: e.style }, [t("div", { staticClass: "document-type-item document-typel" }, [t("div", { staticClass: "document-typet" }, [t("div", { staticClass: "title" }, [e._v(e._s(e.$i18nt("gd.fileDocument.classification", "\u6587\u6863\u5206\u7C7B")))]), e.$hasPerm("sysDocumentClassify:add") ? t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.add", "\u65B0\u589E"), placement: "top" } }, [t("i", { staticClass: "el-icon-plus", on: { click: function(s) {
642
- return e.edit(null);
643
- } } })]) : e._e(), t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.refresh", "\u5237\u65B0"), placement: "top" } }, [t("i", { staticClass: "el-icon-refresh", on: { click: e.refresh } })])], 1), t("div", { staticClass: "document-typeb" }, [e._l(e.treeList, function(s) {
644
- return [t("div", { staticClass: "list", class: s.id === e.itemData.id ? "active-item" : "", on: { click: function(a) {
645
- return e.selItem(s);
646
- } } }, [t("div", { staticClass: "list-item" }, [t("div", { staticClass: "name line1", attrs: { title: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } }, [e._v(e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)))]), t("div", { staticClass: "sku" }, [t("div", { staticClass: "skul" }, [t("span", [e._v(e._s(s.attributesLeg) + " " + e._s(e.$i18nt("gd.fileDocument.attributes", "\u4E2A\u5C5E\u6027")))]), t("el-divider", { attrs: { direction: "vertical" } }), s.statecodes === "1" ? t("span", { staticStyle: { color: "#67c23a" } }, [e._v(e._s(e.$i18nt("gd.duplicatechecking.enable", "\u542F\u7528")))]) : t("span", { staticStyle: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.duplicatechecking.deactivate", "\u7981\u7528")))])], 1), t("div", { staticClass: "skur" }, [t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.edit", "\u7F16\u8F91"), placement: "top" } }, [e.$hasPerm("sysDocumentClassify:edit") ? t("i", { staticClass: "el-icon-edit-outline", on: { click: function(a) {
647
- return a.stopPropagation(), e.edit(s, "edit");
648
- } } }) : e._e()]), e.$hasPerm("sysDocumentClassify:delete") && e.$hasPerm("sysDocumentClassify:edit") ? t("el-divider", { attrs: { direction: "vertical" } }) : e._e(), t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.del", "\u5220\u9664"), placement: "top" } }, [e.$hasPerm("sysDocumentClassify:delete") ? t("i", { staticClass: "el-icon-delete", on: { click: function(a) {
649
- return a.stopPropagation(), e.del(1, s);
650
- } } }) : e._e()])], 1)])])])];
651
- })], 2)]), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.itemLoading, expression: "itemLoading" }], staticClass: "document-type-item" }, [t("div", { staticClass: "document-typet" }, [t("div", { staticClass: "title" }, [e._v(e._s(e.$i18nt("gd.fileDocument.properties", "\u6587\u6863\u5C5E\u6027")))]), e.itemData.id && e.$hasPerm("sysDocumentClassifyAttribute:add") ? t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.fileDocument.addAttribute", "\u65B0\u589E\u5C5E\u6027"), placement: "top" } }, [t("i", { staticClass: "gd-icons el-icon-plus", on: { click: function(s) {
652
- return e.editAttribute(null);
653
- } } })]) : e._e(), t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.refresh", "\u5237\u65B0"), placement: "top" } }, [t("i", { staticClass: "gd-icons el-icon-refresh", on: { click: e.refreshAttribute } })])], 1), e.show ? t("div", { staticClass: "document-typeb" }, [t("div", { staticClass: "card-spu" }, [t("div", { staticClass: "item" }, [t("div", { staticClass: "name" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${e.itemData.transkey}`, e.itemData.name)) + " "), t("span", { staticClass: "sku active-color" }, [e._v("(" + e._s(e.itemData.code) + ")")])]), e.itemData.statecodes === "1" ? t("el-tag", { attrs: { type: "success", effect: "dark" } }, [e._v(e._s(e.$i18nt("gd.duplicatechecking.enable", "\u542F\u7528")))]) : t("el-tag", { attrs: { type: "danger", effect: "dark" } }, [e._v(e._s(e.$i18nt("gd.duplicatechecking.deactivate", "\u7981\u7528")))])], 1), t("div", { staticClass: "remarks" }, [e._v(e._s(e.itemData.description ? e.itemData.description : "--"))])]), t("div", { staticClass: "attribute" }, [t("div", { staticClass: "attribute-t" }, [t("div", { staticClass: "title" }, [e._v(e._s(e.$i18nt("gd.fileDocument.attributeField", "\u5C5E\u6027\u5B57\u6BB5")))])]), t("el-divider"), e.attributeList.length > 0 ? t("div", { staticClass: "attribute-b" }, [e._l(e.attributeList, function(s) {
654
- return [t("div", { staticClass: "attributelist", class: s.statecodes === 1 ? "" : "attributelist-del" }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "name" }, [s.transkey ? t("div", { staticClass: "spu" }, [e._v(e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)))]) : t("div", { staticClass: "spu" }, [e._v(e._s(s.name))])]), s.statecodes === 1 ? t("el-tag", { attrs: { type: "success", effect: "dark" } }, [e._v(e._s(e.$i18nt("gd.duplicatechecking.enable", "\u542F\u7528")))]) : t("el-tag", { attrs: { type: "danger", effect: "dark" } }, [e._v(e._s(e.$i18nt("gd.duplicatechecking.deactivate", "\u7981\u7528")))])], 1), t("div", { staticClass: "flex" }, [t("EffectTypeIcon", { attrs: { effectType: s.datatype, title: e._f("dictType")("code_gen_effect_type", s.datatype) } }), t("div", { staticClass: "sku" }, [e._v(e._s(s.attrcode))]), t("el-divider", { attrs: { direction: "vertical" } }), s.isrequired ? t("div", { staticClass: "required" }, [e._v(e._s(e.$i18nt("gd.page.required", "\u5FC5\u586B")))]) : t("div", { staticClass: "required required-no" }, [e._v(e._s(e.$i18nt("gd.page.notRequired", "\u975E\u5FC5\u586B")))])], 1), t("div", { staticClass: "flex" }, [t("div", { staticClass: "value line1" }, [e._v(" " + e._s(e.$i18nt("gd.page.default", "\u9ED8\u8BA4\u503C")) + ": "), ["switch", "radio", "select"].includes(s.datatype) ? t("el-tag", { style: e._f("dictColor")(s.dicttypecode, s.defaultvalue), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")(s.dicttypecode, s.defaultvalue)) + " ")]) : ["checkbox"].includes(s.datatype) ? [e._l(s.defaultvalue, function(a, l) {
655
- return [l < e.maxLeg ? t("el-tag", { style: e._f("dictColor")(s.dicttypecode, a), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")(s.dicttypecode, a)) + " ")]) : e._e(), l === e.maxLeg ? t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], attrs: { effect: "dark", placement: "top" } }, [t("div", { attrs: { slot: "content" }, slot: "content" }, [e._l(s.defaultvalue, function(r, n) {
656
- return [n >= e.maxLeg ? t("span", { staticStyle: { "padding-right": "4px" } }, [e._v(e._s(e._f("dictType")(s.dicttypecode, r)))]) : e._e()];
657
- })], 2), t("el-tag", { staticStyle: { "background-color": "#fff", "border-color": "#dcdfe2", color: "rgba(0, 0, 0, 0.65)" }, attrs: { effect: "dark" } }, [e._v(" ... ")])], 1) : e._e()];
658
- })] : t("span", { attrs: { title: s.defaultvalue } }, [e._v(e._s(s.defaultvalue ? s.defaultvalue : ""))])], 2), e.$hasPerm("sysDocumentClassifyAttribute:add") ? [t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.copy", "\u590D\u5236"), placement: "top" } }, [t("i", { staticClass: "el-icon-document-copy", on: { click: function(a) {
659
- return e.copyAttribute(s);
660
- } } })]), t("el-divider", { attrs: { direction: "vertical" } })] : e._e(), e.itemData.statecodes === "1" && e.$hasPerm("sysDocumentClassifyAttribute:edit") ? [t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.edit", "\u7F16\u8F91"), placement: "top" } }, [t("i", { staticClass: "el-icon-edit-outline", on: { click: function(a) {
661
- return e.editAttribute(s, "edit");
662
- } } })]), t("el-divider", { attrs: { direction: "vertical" } })] : e._e(), e.$hasPerm("sysDocumentClassifyAttribute:delete") ? t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.btn.del", "\u5220\u9664"), placement: "top" } }, [t("i", { staticClass: "el-icon-delete", on: { click: function(a) {
663
- return e.del(2, s);
664
- } } })]) : e._e()], 2)])];
665
- })], 2) : t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])], 1)]) : t("div", { staticClass: "empty" }, [e._m(1), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])])]), t("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "100%", width: "600px", loading: e.formLoading, transKey: e.transKey, buttons: e.getFormButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, needLoad: "" }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "name", fn: function({ data: s, column: a, record: l }) {
666
- return [l && l.transkey ? t("gd-translation", { ref: "gdTranslation", attrs: { keyI18n: "transkey", recordData: s, type: 2 }, on: { lookupSeled: (r) => e.lookupSeled(r, s) } }) : t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 50, clearable: "" }, model: { value: s.name, callback: function(r) {
667
- e.$set(s, "name", r);
668
- }, expression: "data.name" } })];
669
- } }]) }), t("EditAttributeForm", { ref: "editAttributeForm", attrs: { itemData: e.itemData, transKey: e.transKey, treeList: e.treeList }, on: { ok: e.okAttribute } })], 1);
670
- }, H = [function() {
671
- var i = this, e = i._self._c;
672
- return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
673
- }, function() {
674
- var i = this, e = i._self._c;
675
- return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
676
- }], V = /* @__PURE__ */ c(
677
- M,
678
- E,
679
- H,
680
- !1,
681
- null,
682
- "7a40968f",
683
- null,
684
- null
685
- );
686
- const d = V.exports;
687
- d.install = function(i) {
688
- i.component(d.name, d);
689
- };
690
- const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
691
- __proto__: null,
692
- default: d
693
- }, Symbol.toStringTag, { value: "Module" }));
694
- o.install = function(i) {
695
- i.component(o.name, o);
696
- };
697
- const me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
698
- __proto__: null,
699
- default: o
700
- }, Symbol.toStringTag, { value: "Module" }));
701
- const U = {
702
- data() {
703
- return {
704
- propsData: {
705
- label: "name",
706
- children: "children",
707
- value: "id"
708
- },
709
- record: null,
710
- confirmLoading: !1,
711
- visible: !1,
712
- fullscreen: !1,
713
- buttons: [
714
- {
715
- displayName: "\u91CD\u8BD5",
716
- functionName: "handleSubmit",
717
- show: !0,
718
- transKey: "gd.btn.retry",
719
- icon: "el-icon-document-checked"
720
- }
721
- ],
722
- ruleForm: {
723
- list: []
724
- },
725
- rulesName: [
726
- { required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: ["change", "blur"] },
727
- {
728
- pattern: /^((?!\\|\/|:|\*|\?|<|>|\||'|%|\!|"|').){1,50}$/,
729
- message: this.$i18nt("gd.fileDocument.addNameTip", '\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u4EE5\u4E0B\u5B57\u7B26\uFF1A<>:"/|?*%!')
730
- }
731
- ],
732
- treeData: [],
733
- orgTree: [],
734
- hasPermission: []
735
- };
736
- },
737
- computed: {
738
- rulesSelect() {
739
- return [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["change", "blur"] }];
740
- }
741
- },
742
- methods: {
743
- async save() {
744
- this.confirmLoading = !0;
745
- let i = [];
746
- this.ruleForm.list.forEach((a) => {
747
- let l = { id: a.id };
748
- a.code === -3 ? Object.assign(l, { newName: `${a.name}${a.fileExt}` }) : a.code === -2 && Object.assign(l, { newFolderId: a.folderId }), i.push({ method: f, data: l });
749
- });
750
- const e = await h(i, 1);
751
- let t = [];
752
- if (e.forEach((a, l) => {
753
- const r = a.data ? a.data : {};
754
- r.code !== 0 && (this.ruleForm.list[l], t.push(
755
- Object.assign({}, this.ruleForm.list[l], {
756
- code: r.code,
757
- message: r.message
758
- })
759
- ));
760
- }), this.confirmLoading = !1, t.length === 0) {
761
- this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.closed();
762
- return;
763
- }
764
- this.ruleForm.list = [...t];
765
- const s = `${this.$i18nt("gd.https.handleSuccessTip", "\u5DF2\u5904\u7406\u6210\u529F: ")}${this.ruleForm.list.length - t.length}${this.$i18nt(
766
- "gd.https.handleFailTip",
767
- "\uFF0C\u5904\u7406\u5931\u8D25: "
768
- )}${t.length}`;
769
- this.$message.warning(s);
770
- },
771
- handleSubmit() {
772
- this.$refs.ruleForm.validate((i) => {
773
- i && this.save();
774
- });
775
- },
776
- del(i) {
777
- let e = this;
778
- this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
779
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
780
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
781
- showClose: !1,
782
- confirmButtonLoading: !1,
783
- cancelButtonLoading: !1,
784
- closeOnClickModal: !1,
785
- type: "warning",
786
- confirmButtonClass: "el-button--danger",
787
- customClass: "custom-alert",
788
- callback: () => {
789
- },
790
- beforeClose: (t, s, a) => {
791
- if (t !== "confirm") {
792
- a();
793
- return;
794
- }
795
- const l = e.ruleForm.list.filter((r) => r.id !== i.id);
796
- l.length === 0 ? e.closed() : e.ruleForm.list = [...l], a();
797
- }
798
- });
799
- },
800
- initSummary() {
801
- let i = this.treeData.map((s) => Object.assign(s, {
802
- disabled: !this.hasPermission.includes(s.id)
803
- })), e = [];
804
- K(i, e, 0), this.orgTree = [{ name: "Root", id: 0, parentid: -1, children: e, disabled: !this.hasPermission.includes(0) }];
805
- let t = [];
806
- this.record.forEach((s) => {
807
- console.log(s);
808
- const a = s.data.name.substr(s.data.name.lastIndexOf(".")).toLowerCase();
809
- t.push({
810
- id: s.data.id,
811
- name: s.data.type === 1 ? s.data.name : s.data.name.substr(0, s.data.name.lastIndexOf(".")),
812
- code: s.res.code,
813
- message: s.res.message,
814
- folderId: "",
815
- fileExt: s.data.type === 1 ? "" : a,
816
- type: s.data.type
817
- });
818
- }), this.ruleForm = {
819
- list: t
820
- }, this.confirmLoading = !1;
821
- },
822
- init(i) {
823
- this.confirmLoading = !0, Promise.all([this.getUserDoc(), this.allDocListPriv()]).then(() => {
824
- this.initSummary(), this.$nextTick(() => {
825
- setTimeout(() => {
826
- this.$refs.ruleForm && this.$refs.ruleForm.clearValidate(), i && this.$message.warning(i);
827
- }, 100);
828
- });
829
- });
830
- },
831
- allDocListPriv() {
832
- return T({ privName: "createsubfolder" }).then((i) => {
833
- if (i.code === 200) {
834
- let e = [];
835
- i.data.forEach((t) => {
836
- e.push(t.id);
837
- }), this.hasPermission = e;
838
- }
839
- return i;
840
- });
841
- },
842
- getUserDoc() {
843
- return x({}).then((i) => (i.code === 200 && (this.treeData = i.data.filter((e) => e.type === 1)), i));
844
- },
845
- inputName(i, e) {
846
- e.name = i.replace(/\s+/g, "");
847
- },
848
- open(i, e) {
849
- this.ruleForm = {
850
- list: []
851
- }, this.record = i, this.visible = !0, this.init(e);
852
- },
853
- closed() {
854
- this.fullscreen = !1, this.visible = !1, this.$emit("ok");
855
- },
856
- toggleFullscreen() {
857
- this.fullscreen = !this.fullscreen;
858
- },
859
- doEvent(i) {
860
- let e = i.item.functionName;
861
- this[e] && this[e]();
862
- }
863
- }
864
- };
865
- var G = function() {
866
- var e = this, t = e._self._c;
867
- 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: "700px", center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1, "destroy-on-close": !0 }, on: { "update:visible": function(s) {
868
- e.visible = s;
869
- }, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.fileDocument.reductionTreatment", "\u51B2\u7A81\u5904\u7406"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-form", { ref: "ruleForm", staticClass: "gd-form", attrs: { model: e.ruleForm, "label-width": "160px" }, nativeOn: { submit: function(s) {
870
- s.preventDefault();
871
- } } }, [e._l(e.ruleForm.list, function(s, a) {
872
- return [t("div", { staticClass: "list" }, [t("div", { staticClass: "list-alert" }, [t("div", { staticClass: "spu" }, [t("div", { staticClass: "name" }, [e._v(e._s(s.name))]), t("i", { staticClass: "el-icon-close", on: { click: function(l) {
873
- return e.del(s);
874
- } } })]), t("div", { staticClass: "err" }, [t("i", { staticClass: "el-icon-warning" }), e._v(" " + e._s(s.message) + " ")])]), t("div", { staticClass: "itemdata" }, [s.code === -3 ? t("el-form-item", { key: `${s.fileId}_name`, attrs: { label: e.$i18nt("gd.btn.rename", "\u91CD\u547D\u540D"), prop: "list." + a + ".name", rules: e.rulesName } }, [t("el-input", { attrs: { clearable: "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 50 }, on: { input: (l) => e.inputName(l, s) }, model: { value: s.name, callback: function(l) {
875
- e.$set(s, "name", l);
876
- }, expression: "item.name" } }, [s.type !== 1 ? t("template", { slot: "append" }, [e._v(e._s(s.fileExt))]) : e._e()], 2)], 1) : e._e(), s.code === -2 ? t("el-form-item", { key: `${s.id}_name`, attrs: { label: e.$i18nt("gd.fileDocument.parentDirectory", "\u4E0A\u7EA7\u76EE\u5F55"), prop: "list." + a + ".folderId", rules: e.rulesSelect } }, [t("gd-select-tree", { attrs: { filterable: !0, "tree-options": e.orgTree, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), defaultProps: e.propsData }, model: { value: s.folderId, callback: function(l) {
877
- e.$set(s, "folderId", l);
878
- }, expression: "item.folderId" } })], 1) : e._e()], 1)])];
879
- })], 2) : e._e()], 1)], 1)], 1);
880
- }, Q = [], J = /* @__PURE__ */ c(
881
- U,
882
- G,
883
- Q,
884
- !1,
885
- null,
886
- "136748f9",
887
- null,
888
- null
889
- );
890
- const Z = J.exports, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
891
- __proto__: null,
892
- default: Z
893
- }, Symbol.toStringTag, { value: "Module" }));
894
- const X = {
895
- props: {
896
- itemData: {
897
- type: Object,
898
- default: () => {
899
- }
900
- },
901
- transKey: {
902
- type: String,
903
- default: "gd.btn.add"
904
- },
905
- treeList: {
906
- type: Array,
907
- default: () => []
908
- }
909
- },
910
- data() {
911
- return {
912
- type: "add",
913
- record: null,
914
- width: "600px",
915
- confirmLoading: !1,
916
- visible: !1,
917
- fullscreen: !1,
918
- buttons: [
919
- {
920
- displayName: "\u786E\u5B9A",
921
- functionName: "handleSubmit",
922
- show: !0,
923
- transKey: "gd.btn.confirm",
924
- icon: "el-icon-document-checked"
925
- }
926
- ],
927
- ruleForm: {
928
- name: "",
929
- attrcode: "",
930
- datatype: "input",
931
- isrequired: "1",
932
- ishidden: "0",
933
- statecodes: "1",
934
- defaultvalue: "",
935
- dicttypecode: "yes_or_no",
936
- fieldformat: "1",
937
- fkentity: "",
938
- sort: 100,
939
- description: "",
940
- fieldsize: 255,
941
- viewId: "",
942
- sysdoctypeid: ""
943
- },
944
- rules: {
945
- name: [{ required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: ["change", "blur"] }],
946
- attrcode: [
947
- { required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: ["change", "blur"] },
948
- {
949
- pattern: /^[a-zA-Z]([a-zA-Z0-9_]+)?$/,
950
- message: this.$i18nt("gd.view.viewNameTip", "\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")
951
- }
952
- ],
953
- fieldsize: [{ required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: ["change", "blur"] }],
954
- sort: [{ required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), type: "number", trigger: ["change", "blur"] }],
955
- datatype: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["change", "blur"] }],
956
- isrequired: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["change", "blur"] }],
957
- dicttypecode: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["blur"] }],
958
- fieldformat: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["blur"] }],
959
- fkentity: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["blur"] }],
960
- statecodes: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["blur"] }],
961
- viewId: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["blur"] }],
962
- sysdoctypeid: [{ required: !0, message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), trigger: ["blur"] }]
963
- },
964
- viewList: [],
965
- loading: !1
966
- };
967
- },
968
- computed: {
969
- getTreeList() {
970
- return this.treeList.filter((i) => i.id !== this.itemData.id);
971
- },
972
- title() {
973
- return this.$i18nt(this.transKey);
974
- },
975
- disabled() {
976
- return !!this.record;
977
- },
978
- isDatePicker() {
979
- const i = this.getTimeData.filter((t) => t.code === this.ruleForm.fieldformat)[0], e = i ? i.name : "yyyy-MM-dd";
980
- return !["hh:mm:ss", "hh:mm", "mm:ss", "HH:mm:ss", "HH:mm"].includes(e);
981
- },
982
- formatDict() {
983
- return this.getDictionary("time_longshort");
984
- },
985
- getTimeData() {
986
- const e = [
987
- { type: "datepicker", list: ["yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd", "yyyy-MM", "yyyy", "MM-dd", "hh:mm:ss", "hh:mm", "mm:ss", "HH:mm:ss", "HH:mm"] }
988
- ].filter((s) => s.type === this.ruleForm.datatype)[0], t = e ? e.list : [];
989
- return this.formatDict.filter((s) => t.includes(s.name));
990
- },
991
- fieldFormat() {
992
- const e = this.getDictionary("time_longshort").filter((t) => String(t.code) === String(this.ruleForm.fieldformat))[0];
993
- return e ? e.name.replace("DD", "dd") : "yyyy-MM-dd HH:mm:ss";
994
- },
995
- pickerType() {
996
- const i = this.getTimeData.filter((s) => s.code === this.ruleForm.fieldformat)[0], e = i ? i.name : "yyyy-MM-dd";
997
- let t = "date";
998
- return e === "yyyy-MM-dd hh:mm:ss" || e === "yyyy-MM-dd HH:mm:ss" ? t = "datetime" : e === "yyyy-MM" ? t = "month" : e === "yyyy" && (t = "year"), t;
999
- },
1000
- getDictionaryAll() {
1001
- return this.$options.filters.dictDataAll();
1002
- },
1003
- getEffectList() {
1004
- return this.getDictionary("code_gen_effect_type").filter((e) => !["about", "participants", "user", "currency", "editor", "file", "image"].includes(e.code));
1005
- },
1006
- ...u(["tableLists"])
1007
- },
1008
- methods: {
1009
- lookupSeled(i) {
1010
- this.ruleForm.name = i.defaulttext;
1011
- },
1012
- changeTable(i) {
1013
- this.loading = !0;
1014
- const e = this.tableLists.filter((t) => t.tablename === i)[0];
1015
- q({ sysCodeGenId: e.id }).then((t) => {
1016
- t.code === 200 && (this.viewList = t.data), this.loading = !1;
1017
- });
1018
- },
1019
- add() {
1020
- L(
1021
- Object.assign({}, this.ruleForm, {
1022
- defaultvalue: ["checkbox"].includes(this.ruleForm.datatype) ? this.ruleForm.defaultvalue.join(",") : this.ruleForm.defaultvalue,
1023
- sysdoctypeid: this.type === "add" ? this.itemData.id : this.ruleForm.sysdoctypeid,
1024
- datatype: String(this.ruleForm.datatype),
1025
- reserve1: JSON.stringify(this.ruleForm)
1026
- })
1027
- ).then((i) => {
1028
- this.confirmLoading = !1, i.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message);
1029
- });
1030
- },
1031
- edit() {
1032
- S(
1033
- Object.assign({}, this.record, this.ruleForm, {
1034
- defaultvalue: ["checkbox"].includes(this.ruleForm.datatype) ? this.ruleForm.defaultvalue.join(",") : this.ruleForm.defaultvalue,
1035
- reserve1: JSON.stringify(this.ruleForm)
1036
- })
1037
- ).then((i) => {
1038
- this.confirmLoading = !1, i.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message);
1039
- });
1040
- },
1041
- cleaDefaultValues() {
1042
- let i = 255;
1043
- ["inputnumber"].includes(this.ruleForm.datatype) ? i = 32 : ["double", "currency"].includes(this.ruleForm.datatype) ? i = 4 : ["editor", "textarea"].includes(this.ruleForm.datatype) && (i = 5e3), Object.assign(this.ruleForm, {
1044
- defaultvalue: ["double", "inputnumber"].includes(this.ruleForm.datatype) ? void 0 : "",
1045
- fieldsize: i
1046
- });
1047
- },
1048
- changeDict() {
1049
- Object.assign(this.ruleForm, {
1050
- defaultvalue: ""
1051
- });
1052
- },
1053
- getDetail(i) {
1054
- this.confirmLoading = !0, B({ id: i }).then((e) => {
1055
- if (e.code === 200) {
1056
- const t = JSON.parse(e.data.reserve1);
1057
- this.ruleForm = {
1058
- name: e.data.name,
1059
- attrcode: e.data.attrcode,
1060
- datatype: e.data.datatype,
1061
- isrequired: String(e.data.isrequired),
1062
- ishidden: String(e.data.ishidden),
1063
- statecodes: String(e.data.statecodes),
1064
- defaultvalue: ["checkbox"].includes(e.data.datatype) ? e.data.defaultvalue.split(",") : e.data.defaultvalue,
1065
- dicttypecode: e.data.dicttypecode,
1066
- fieldformat: String(e.data.fieldformat),
1067
- fkentity: e.data.fkentity,
1068
- sort: e.data.sort,
1069
- description: e.data.description,
1070
- fieldsize: e.data.fieldsize,
1071
- viewId: t.viewId ? t.viewId : ""
1072
- }, e.data.datatype === "fk" && this.changeTable(e.data.fkentity);
1073
- }
1074
- this.confirmLoading = !1, this.resetFields();
1075
- });
1076
- },
1077
- open(i) {
1078
- this.type = i ? "edit" : "add", this.record = i, this.visible = !0, i ? this.getDetail(i.id) : (Object.assign(this.ruleForm, { attrcode: p(12) }), this.resetFields());
1079
- },
1080
- openCopy(i) {
1081
- this.type = "copy", this.visible = !0, this.getDetail(i.id);
1082
- },
1083
- handleSubmit(i) {
1084
- this.confirmLoading = !0, this.$refs.ruleForm.validate((e, t) => {
1085
- if (!e) {
1086
- this.confirmLoading = !1;
1087
- return;
1088
- }
1089
- this.type === "edit" ? this.edit() : this.add();
1090
- });
1091
- },
1092
- resetFields() {
1093
- this.$nextTick(() => {
1094
- setTimeout(() => {
1095
- this.$refs.ruleForm && this.$refs.ruleForm.clearValidate();
1096
- }, 0);
1097
- });
1098
- },
1099
- closed() {
1100
- this.ruleForm = {
1101
- name: "",
1102
- attrcode: "",
1103
- datatype: "input",
1104
- isrequired: "1",
1105
- ishidden: "0",
1106
- statecodes: "1",
1107
- defaultvalue: "",
1108
- dicttypecode: "yes_or_no",
1109
- fieldformat: "1",
1110
- fkentity: "",
1111
- sort: 100,
1112
- description: "",
1113
- fieldsize: 255,
1114
- sysdoctypeid: ""
1115
- }, this.fullscreen = !1, this.visible = !1;
1116
- },
1117
- toggleFullscreen() {
1118
- this.fullscreen = !this.fullscreen;
1119
- },
1120
- getDictionary(i) {
1121
- return this.$options.filters.dictData(i);
1122
- },
1123
- doEvent(i) {
1124
- let e = i.item.functionName;
1125
- this[e] && this[e]();
1126
- }
1127
- }
1128
- };
1129
- var Y = function() {
1130
- var e = this, t = e._self._c;
1131
- 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(s) {
1132
- e.visible = s;
1133
- }, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-form", { ref: "ruleForm", staticClass: "gd-form", attrs: { model: e.ruleForm, "label-position": "top", "label-width": "120px", rules: e.rules }, nativeOn: { submit: function(s) {
1134
- s.preventDefault();
1135
- } } }, [e.type === "copy" ? t("el-form-item", { attrs: { label: e.$i18nt("gd.fileDocument.classification", "\u6587\u6863\u5206\u7C7B"), prop: "sysdoctypeid" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini" }, model: { value: e.ruleForm.sysdoctypeid, callback: function(s) {
1136
- e.$set(e.ruleForm, "sysdoctypeid", s);
1137
- }, expression: "ruleForm.sysdoctypeid" } }, [e._l(e.getTreeList, function(s) {
1138
- return [t("el-option", { attrs: { label: s.name, value: s.id } })];
1139
- })], 2)], 1) : e._e(), t("el-form-item", { attrs: { label: e.$i18nt("gd.translation.name", "\u540D\u79F0"), prop: "name" } }, [e.record && e.record.transkey ? t("gd-translation", { ref: "gdTranslation", attrs: { keyI18n: "transkey", recordData: e.record, type: 2 }, on: { lookupSeled: e.lookupSeled } }) : t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 50, clearable: "" }, model: { value: e.ruleForm.name, callback: function(s) {
1140
- e.$set(e.ruleForm, "name", s);
1141
- }, expression: "ruleForm.name" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.dict.code", "\u552F\u4E00\u7F16\u7801"), prop: "attrcode" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 50, clearable: "", disabled: e.disabled }, model: { value: e.ruleForm.attrcode, callback: function(s) {
1142
- e.$set(e.ruleForm, "attrcode", s);
1143
- }, expression: "ruleForm.attrcode" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.field.effectType", "\u4F5C\u7528\u7C7B\u578B"), prop: "datatype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini", disabled: e.disabled }, on: { change: e.cleaDefaultValues }, model: { value: e.ruleForm.datatype, callback: function(s) {
1144
- e.$set(e.ruleForm, "datatype", s);
1145
- }, expression: "ruleForm.datatype" } }, e._l(e.getEffectList, function(s) {
1146
- return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1147
- }), 1)], 1), ["input", "image", "file", "currency", "double", "textarea", "editor", "inputnumber"].includes(e.ruleForm.datatype) ? t("el-form-item", { attrs: { label: e.$i18nt("gd.field.precision", "\u5B57\u7B26\u957F\u5EA6/\u7CBE\u5EA6"), prop: "fieldsize" } }, [["input", "image", "file", "currency"].includes(e.ruleForm.datatype) ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { max: 2e3, "controls-position": "right", size: "mini" }, model: { value: e.ruleForm.fieldsize, callback: function(s) {
1148
- e.$set(e.ruleForm, "fieldsize", s);
1149
- }, expression: "ruleForm.fieldsize" } }) : ["double"].includes(e.ruleForm.datatype) ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { max: 30, "controls-position": "right", size: "mini" }, model: { value: e.ruleForm.fieldsize, callback: function(s) {
1150
- e.$set(e.ruleForm, "fieldsize", s);
1151
- }, expression: "ruleForm.fieldsize" } }) : ["textarea", "editor"].includes(e.ruleForm.datatype) ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", size: "mini" }, model: { value: e.ruleForm.fieldsize, callback: function(s) {
1152
- e.$set(e.ruleForm, "fieldsize", s);
1153
- }, expression: "ruleForm.fieldsize" } }) : ["inputnumber"].includes(e.ruleForm.datatype) ? t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini" }, model: { value: e.ruleForm.fieldsize, callback: function(s) {
1154
- e.$set(e.ruleForm, "fieldsize", s);
1155
- }, expression: "ruleForm.fieldsize" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.field.integer", "\u6574\u578B 32"), value: 32 } }), t("el-option", { attrs: { label: e.$i18nt("gd.field.longInteger", "\u957F\u6574\u578B 64"), value: 64 } })], 1) : e._e()], 1) : e._e(), ["switch", "radio", "checkbox", "select"].includes(e.ruleForm.datatype) ? t("el-form-item", { attrs: { label: e.$i18nt("gd.field.dictionaries", "\u5B57\u5178"), prop: "dicttypecode" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini", filterable: "", "reserve-keyword": "", disabled: e.disabled }, on: { change: e.changeDict }, model: { value: e.ruleForm.dicttypecode, callback: function(s) {
1156
- e.$set(e.ruleForm, "dicttypecode", s);
1157
- }, expression: "ruleForm.dicttypecode" } }, e._l(e.getDictionaryAll, function(s) {
1158
- return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1159
- }), 1)], 1) : ["datepicker"].includes(e.ruleForm.datatype) ? t("el-form-item", { attrs: { label: e.$i18nt("gd.field.date", "\u65E5\u671F"), prop: "fieldformat" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini" }, on: { change: e.cleaDefaultValues }, model: { value: e.ruleForm.fieldformat, callback: function(s) {
1160
- e.$set(e.ruleForm, "fieldformat", s);
1161
- }, expression: "ruleForm.fieldformat" } }, e._l(e.getDictionary("time_longshort"), function(s) {
1162
- return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1163
- }), 1)], 1) : ["fk"].includes(e.ruleForm.datatype) ? [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.foreignAssociationTable", "\u5916\u952E\u5173\u8054\u8868"), prop: "fkentity" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini", filterable: "", "reserve-keyword": "", disabled: e.disabled }, on: { change: e.changeTable }, model: { value: e.ruleForm.fkentity, callback: function(s) {
1164
- e.$set(e.ruleForm, "fkentity", s);
1165
- }, expression: "ruleForm.fkentity" } }, e._l(e.tableLists, function(s) {
1166
- return t("el-option", { key: s.tablename, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname), value: s.tablename } });
1167
- }), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.page.useView", "\u4F7F\u7528\u89C6\u56FE"), prop: "viewId" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini", filterable: "", "reserve-keyword": "", loading: e.loading }, model: { value: e.ruleForm.viewId, callback: function(s) {
1168
- e.$set(e.ruleForm, "viewId", s);
1169
- }, expression: "ruleForm.viewId" } }, e._l(e.viewList, function(s) {
1170
- return t("el-option", { key: s.id, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.id } });
1171
- }), 1)], 1)] : e._e(), t("el-form-item", { attrs: { label: e.$i18nt("gd.dict.sort", "\u6392\u5E8F"), prop: "sort" } }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", min: 0, clearable: "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.sort, callback: function(s) {
1172
- e.$set(e.ruleForm, "sort", s);
1173
- }, expression: "ruleForm.sort" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.fileDocument.isRequired", "\u662F\u5426\u5FC5\u586B"), prop: "isrequired" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini" }, model: { value: e.ruleForm.isrequired, callback: function(s) {
1174
- e.$set(e.ruleForm, "isrequired", s);
1175
- }, expression: "ruleForm.isrequired" } }, e._l(e.getDictionary("yes_or_no"), function(s) {
1176
- return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1177
- }), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.fileDocument.isHide", "\u662F\u5426\u9690\u85CF") } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini" }, model: { value: e.ruleForm.ishidden, callback: function(s) {
1178
- e.$set(e.ruleForm, "ishidden", s);
1179
- }, expression: "ruleForm.ishidden" } }, e._l(e.getDictionary("yes_or_no"), function(s) {
1180
- return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1181
- }), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.state.currentState", "\u5F53\u524D\u72B6\u6001"), prop: "statecodes" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { size: "mini" }, model: { value: e.ruleForm.statecodes, callback: function(s) {
1182
- e.$set(e.ruleForm, "statecodes", s);
1183
- }, expression: "ruleForm.statecodes" } }, e._l(e.getDictionary("state_code"), function(s) {
1184
- return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1185
- }), 1)], 1), ["fk", "file", "image"].includes(e.ruleForm.datatype) ? e._e() : t("el-form-item", { attrs: { label: e.$i18nt("gd.form.default", "\u9ED8\u8BA4\u503C") } }, [["switch", "radio", "select"].includes(e.ruleForm.datatype) ? t("el-select", { key: "switch_1", staticStyle: { width: "100%" }, attrs: { size: "mini", disabled: !e.ruleForm.dicttypecode, clearable: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.defaultvalue, callback: function(s) {
1186
- e.$set(e.ruleForm, "defaultvalue", s);
1187
- }, expression: "ruleForm.defaultvalue" } }, [e._l(e.getDictionary(e.ruleForm.dicttypecode), function(s) {
1188
- return [t("el-option", { attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } })];
1189
- })], 2) : ["checkbox"].includes(e.ruleForm.datatype) ? t("el-select", { key: "checkbox_1", staticStyle: { width: "100%" }, attrs: { size: "mini", disabled: !e.ruleForm.dicttypecode, clearable: "", multiple: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.defaultvalue, callback: function(s) {
1190
- e.$set(e.ruleForm, "defaultvalue", s);
1191
- }, expression: "ruleForm.defaultvalue" } }, [e._l(e.getDictionary(e.ruleForm.dicttypecode), function(s) {
1192
- return [t("el-option", { attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } })];
1193
- })], 2) : ["datepicker"].includes(e.ruleForm.datatype) ? [e.isDatePicker ? t("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: e.pickerType, "value-format": e.fieldFormat, format: e.fieldFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: e.ruleForm.defaultvalue, callback: function(s) {
1194
- e.$set(e.ruleForm, "defaultvalue", s);
1195
- }, expression: "ruleForm.defaultvalue" } }) : t("el-time-picker", { staticStyle: { width: "100%" }, attrs: { "value-format": e.fieldFormat, format: e.fieldFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: e.ruleForm.defaultvalue, callback: function(s) {
1196
- e.$set(e.ruleForm, "defaultvalue", s);
1197
- }, expression: "ruleForm.defaultvalue" } })] : ["double", "inputnumber"].includes(e.ruleForm.datatype) ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", min: -1 / 0, max: 1 / 0, clearable: "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.defaultvalue, callback: function(s) {
1198
- e.$set(e.ruleForm, "defaultvalue", s);
1199
- }, expression: "ruleForm.defaultvalue" } }) : t("el-input", { attrs: { autosize: "", type: "textarea", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 255, clearable: "" }, model: { value: e.ruleForm.defaultvalue, callback: function(s) {
1200
- e.$set(e.ruleForm, "defaultvalue", s);
1201
- }, expression: "ruleForm.defaultvalue" } })], 2), t("el-form-item", { attrs: { label: e.$i18nt("gd.task.description", "\u63CF\u8FF0") } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 500, type: "textarea", rows: 2, clearable: "" }, model: { value: e.ruleForm.description, callback: function(s) {
1202
- e.$set(e.ruleForm, "description", s);
1203
- }, expression: "ruleForm.description" } })], 1)], 2) : e._e()], 1)], 1)], 1);
1204
- }, ee = [], te = /* @__PURE__ */ c(
1205
- X,
1206
- Y,
1207
- ee,
1208
- !1,
1209
- null,
1210
- "5e5846f6",
1211
- null,
1212
- null
1213
- );
1214
- const se = te.exports, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1215
- __proto__: null,
1216
- default: se
1217
- }, Symbol.toStringTag, { value: "Module" }));
1218
- export {
1219
- o as G,
1220
- me as a,
1221
- ue as i
1222
- };