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.
- package/lib/addPermission.4a553cd8.js +1 -0
- package/lib/{addPermission.1eb97ee3.mjs → addPermission.78068c52.mjs} +45 -43
- package/lib/{approvalModel.c09cbf86.mjs → approvalModel.1d109493.mjs} +2 -2
- package/lib/{approvalModel.63fa8914.js → approvalModel.e0e5738f.js} +1 -1
- package/lib/{attribute.88d41b0f.mjs → attribute.9dfa6953.mjs} +46 -44
- package/lib/attribute.f97b41ad.js +1 -0
- package/lib/{components.globalheader.28b38c3a.js → components.globalheader.c7bf862b.js} +1 -1
- package/lib/{components.globalheader.9471ef9d.mjs → components.globalheader.f0b8aab7.mjs} +1 -1
- package/lib/{components.middleware.b2e156ea.js → components.middleware.216e1574.js} +1 -1
- package/lib/{components.middleware.7b760b95.mjs → components.middleware.d7dc078d.mjs} +2 -2
- package/lib/{components.modaltitle.179b6da1.js → components.modaltitle.0d3db44e.js} +1 -1
- package/lib/{components.modaltitle.2c1011c5.mjs → components.modaltitle.517bc660.mjs} +2 -2
- package/lib/{components.sidenavmenu.a3de1659.js → components.sidenavmenu.364a8b26.js} +1 -1
- package/lib/{components.sidenavmenu.91e996c4.mjs → components.sidenavmenu.3f4d259f.mjs} +1 -1
- package/lib/components.table.5d1336dd.js +8 -0
- package/lib/components.table.a50270a9.mjs +3591 -0
- package/lib/components.table.childheader.7e9b960f.mjs +325 -0
- package/lib/components.table.childheader.cee3be75.js +1 -0
- package/lib/components.table.queriesfield.eb795212.js +1 -0
- package/lib/components.table.queriesfield.f16322dc.mjs +748 -0
- package/lib/components.viewformdetails.513f0dbe.js +1 -0
- package/lib/{components.viewformdetails.4e40579f.mjs → components.viewformdetails.cb86a01d.mjs} +28 -21
- package/lib/{createFile.ca811a30.mjs → createFile.44667f20.mjs} +45 -43
- package/lib/createFile.6389354d.js +1 -0
- package/lib/{editForm.83d10fae.mjs → editForm.54f33a47.mjs} +5 -2
- package/lib/editForm.a5fd3180.js +1 -0
- package/lib/extendedAttributes.3ed8fe2a.js +1 -0
- package/lib/{extendedAttributes.a3ee9bde.mjs → extendedAttributes.b2c2ab6c.mjs} +45 -43
- package/lib/{fileSearch.d7abc086.mjs → fileSearch.203b9423.mjs} +45 -43
- package/lib/fileSearch.3513b55b.js +1 -0
- package/lib/{flow.designer.7d58bc2c.js → flow.designer.362f5f66.js} +1 -1
- package/lib/{flow.designer.b066df02.mjs → flow.designer.e087cd9b.mjs} +1 -1
- package/lib/{flow.list.a9afdd93.mjs → flow.list.3c2df716.mjs} +2 -2
- package/lib/{flow.list.d288de5e.js → flow.list.dea8996a.js} +1 -1
- package/lib/{form.build.16110b90.mjs → form.build.69803596.mjs} +24 -17
- package/lib/form.build.6a1bcad5.js +1 -0
- package/lib/{form.designer.build.2bd26973.mjs → form.designer.build.12c673f0.mjs} +188 -150
- package/lib/form.designer.build.89af4d24.js +1 -0
- package/lib/{formFiled.3763ebff.mjs → formFiled.593b5a25.mjs} +7 -6
- package/lib/formFiled.d63e97d3.js +1 -0
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +148 -146
- package/lib/{http.message.ceb0a1c6.mjs → http.message.00e72e09.mjs} +29 -21
- package/lib/{http.message.87f319d7.js → http.message.73c3ed85.js} +1 -1
- package/lib/index.4f1635c8.js +8 -0
- package/lib/{index.606ef358.mjs → index.9ecf4818.mjs} +3158 -2477
- package/lib/{layoutBlocks.0784592a.mjs → layoutBlocks.97713647.mjs} +91 -78
- package/lib/layoutBlocks.d26f79f2.js +1 -0
- package/lib/layouts.0e66a0bc.js +2 -0
- package/lib/{layouts.915931be.mjs → layouts.ddf507fa.mjs} +29 -21
- package/lib/{main.0326119e.js → main.22cae2bb.js} +1 -1
- package/lib/{main.adcedcee.mjs → main.37ae02bc.mjs} +1 -1
- package/lib/main.44750095.js +1 -0
- package/lib/{main.034638bb.mjs → main.55c9f109.mjs} +5 -8
- package/lib/{main.44efe912.mjs → main.5bf89f06.mjs} +54 -55
- package/lib/main.f0805dab.js +1 -0
- package/lib/manage.91e76379.js +1 -0
- package/lib/{manage.63cd038d.mjs → manage.b3462cce.mjs} +46 -44
- package/lib/{messages.messagetemplate.0935e5a3.mjs → messages.messagetemplate.ceeb3f47.mjs} +2 -2
- package/lib/{messages.messagetemplate.50334e5f.js → messages.messagetemplate.e52ab470.js} +1 -1
- package/lib/messages.sendplan.18bda3c5.js +1 -0
- package/lib/{messages.sendplan.61edcc7f.mjs → messages.sendplan.c6821911.mjs} +97 -25
- package/lib/{messages.sendrecord.09a1d1cd.js → messages.sendrecord.12028921.js} +2 -2
- package/lib/{messages.sendrecord.1c48aa6e.mjs → messages.sendrecord.f7630ebd.mjs} +3 -3
- package/lib/{messages.templatelibrary.f31e8d58.mjs → messages.templatelibrary.4654886e.mjs} +1 -1
- package/lib/{messages.templatelibrary.f5952edd.js → messages.templatelibrary.cd20c05b.js} +1 -1
- package/lib/{mobile.designer.componentstree.70fd4c93.mjs → mobile.designer.componentstree.5a329caa.mjs} +1 -1
- package/lib/{mobile.designer.componentstree.f4a901e4.js → mobile.designer.componentstree.888d8646.js} +1 -1
- package/lib/{mobile.designer.menutree.4d4e059b.js → mobile.designer.menutree.646ebcdd.js} +1 -1
- package/lib/{mobile.designer.menutree.7d3b783d.mjs → mobile.designer.menutree.da4c05f4.mjs} +1 -1
- package/lib/moveFile.345aee1d.js +1 -0
- package/lib/{moveFile.b66805f8.mjs → moveFile.864ea48f.mjs} +48 -46
- package/lib/{page.build.09137386.mjs → page.build.39202359.mjs} +674 -668
- package/lib/{page.build.1b771761.js → page.build.66e190a5.js} +3 -3
- package/lib/{page.designer.componentstree.a256ff7a.mjs → page.designer.componentstree.2d5a887a.mjs} +1 -1
- package/lib/{page.designer.componentstree.341908b2.js → page.designer.componentstree.ec3dcbc1.js} +1 -1
- package/lib/{page.designer.menutree.e4ce1e90.mjs → page.designer.menutree.1e642711.mjs} +2 -2
- package/lib/{page.designer.menutree.71c18258.js → page.designer.menutree.6368c636.js} +1 -1
- package/lib/{page.designer.page.d2d6b614.js → page.designer.page.2dac64ca.js} +1 -1
- package/lib/{page.designer.page.559113a9.mjs → page.designer.page.4cf4b1bf.mjs} +5 -5
- package/lib/{result.16da7693.mjs → result.3c1fc8b7.mjs} +45 -43
- package/lib/result.cf75c6c3.js +1 -0
- package/lib/{router.config.70680261.mjs → router.config.b78ec9f8.mjs} +5 -5
- package/lib/{router.config.1e67a1c3.js → router.config.d746d115.js} +1 -1
- package/lib/{solution.application.8d6c84e8.js → solution.application.15e813b4.js} +1 -1
- package/lib/{solution.application.e6b5dc4f.mjs → solution.application.5d02d1cd.mjs} +16 -10
- package/lib/solution.approvalflow.1f11ad8f.js +1 -0
- package/lib/{solution.approvalflow.8572122d.mjs → solution.approvalflow.24a50af0.mjs} +20 -14
- package/lib/solution.dict.28214a3e.js +1 -0
- package/lib/{solution.dict.088a1e72.mjs → solution.dict.77cb1ad2.mjs} +41 -37
- package/lib/{solution.menu.fa48a7e8.js → solution.menu.12b9f56d.js} +1 -1
- package/lib/{solution.menu.e58922fe.mjs → solution.menu.72498250.mjs} +1 -1
- package/lib/{solution.plugin.ae6df926.mjs → solution.plugin.76b603be.mjs} +18 -12
- package/lib/solution.plugin.e7b31aff.js +1 -0
- package/lib/solution.processflow.aa84ec06.js +1 -0
- package/lib/{solution.processflow.a52fd47c.mjs → solution.processflow.d336bd7b.mjs} +15 -9
- package/lib/{solution.role.7b3e7030.mjs → solution.role.05efb1b4.mjs} +18 -12
- package/lib/solution.role.d07e1813.js +1 -0
- package/lib/{solution.webresources.88c4483b.mjs → solution.webresources.1b0f8550.mjs} +247 -79
- package/lib/solution.webresources.5b4abeb5.js +2 -0
- package/lib/{solution.workflow.2530073b.mjs → solution.workflow.6d081d1f.mjs} +18 -12
- package/lib/solution.workflow.91b42158.js +1 -0
- package/lib/style.css +2 -2
- package/lib/{system.duplicatechecking.bef2b20c.js → system.duplicatechecking.719ddda1.js} +1 -1
- package/lib/{system.duplicatechecking.a0da805e.mjs → system.duplicatechecking.af9318aa.mjs} +1 -1
- package/lib/{system.notice.da2c944c.mjs → system.notice.12fa4d1c.mjs} +4 -4
- package/lib/{system.notice.72e0615f.js → system.notice.9385577f.js} +1 -1
- package/lib/{system.noticereceived.54c17b73.js → system.noticereceived.3dec9e12.js} +1 -1
- package/lib/{system.noticereceived.30dab7d1.mjs → system.noticereceived.7cfcceb4.mjs} +1 -1
- package/lib/{system.team.367bf5e7.mjs → system.team.3b0fcc60.mjs} +1 -1
- package/lib/{system.team.cf1c1558.js → system.team.c0d623a5.js} +1 -1
- package/lib/{system.teammembers.63f21557.js → system.teammembers.c99ef01b.js} +1 -1
- package/lib/{system.teammembers.851ce63b.mjs → system.teammembers.d0dc3f12.mjs} +2 -2
- package/lib/{system.user.bff7cc2f.js → system.user.75fa57c3.js} +1 -1
- package/lib/{system.user.a1ff367b.mjs → system.user.78a45735.mjs} +1 -1
- package/lib/versionControl.c39356b7.js +1 -0
- package/lib/{versionControl.6cd18867.mjs → versionControl.d572bc44.mjs} +52 -50
- package/lib/{versionEdit.910d2e2f.mjs → versionEdit.8b059461.mjs} +45 -43
- package/lib/versionEdit.d56cde69.js +1 -0
- package/lib/view.build.14c0d411.js +1 -0
- package/lib/{view.build.20e9aec0.mjs → view.build.5b9241fd.mjs} +193 -190
- package/lib/viewList.215afeb2.js +1 -0
- package/lib/{viewList.a4909732.mjs → viewList.b090d62f.mjs} +11 -12
- package/package.json +1 -1
- package/lib/addPermission.5bfc7e11.js +0 -1
- package/lib/attribute.919cb93e.js +0 -1
- package/lib/components.table.a0ac819e.js +0 -8
- package/lib/components.table.d79f5fa3.mjs +0 -4650
- package/lib/components.viewformdetails.6e66cc83.js +0 -1
- package/lib/copy.3b06d60f.mjs +0 -572
- package/lib/copy.fa2fcb22.js +0 -1
- package/lib/createFile.94329169.js +0 -1
- package/lib/editForm.e284e5ec.js +0 -1
- package/lib/extendedAttributes.b1107f6c.js +0 -1
- package/lib/fileSearch.4722ac3b.js +0 -1
- package/lib/form.build.5461409b.js +0 -1
- package/lib/form.designer.build.67b316e1.js +0 -1
- package/lib/formFiled.ef26328d.js +0 -1
- package/lib/index.fe18e32c.js +0 -8
- package/lib/layoutBlocks.1b71d988.js +0 -1
- package/lib/layouts.ae25c583.js +0 -2
- package/lib/main.44d72b90.js +0 -1
- package/lib/main.47957168.js +0 -1
- package/lib/manage.80871daf.js +0 -1
- package/lib/messages.sendplan.60929f46.js +0 -1
- package/lib/moveFile.d79f7fd9.js +0 -1
- package/lib/result.9cb6c2f1.js +0 -1
- package/lib/solution.approvalflow.cce2f064.js +0 -1
- package/lib/solution.dict.1d5195d0.js +0 -1
- package/lib/solution.plugin.5d6d29cf.js +0 -1
- package/lib/solution.processflow.bfa4897c.js +0 -1
- package/lib/solution.role.2eff83a1.js +0 -1
- package/lib/solution.webresources.bc00603d.js +0 -1
- package/lib/solution.workflow.59e0e697.js +0 -1
- package/lib/versionControl.47cc1330.js +0 -1
- package/lib/versionEdit.977faa93.js +0 -1
- package/lib/view.build.a48a14b0.js +0 -1
- package/lib/viewList.71f866da.js +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import { s as
|
|
3
|
-
import { s as
|
|
4
|
-
import { e as
|
|
5
|
-
|
|
1
|
+
import { m as R, n as C } from "./components.chartbi.7356b244.mjs";
|
|
2
|
+
import { s as K, a as $, b as B } from "./http.solution.b10d9197.mjs";
|
|
3
|
+
import { s as L } from "./http.webresource.1a1a768f.mjs";
|
|
4
|
+
import { e as N } from "./system.webresource.2c6cf4a7.mjs";
|
|
5
|
+
import { c as P } from "./components.form.8047a9c3.mjs";
|
|
6
|
+
const x = {
|
|
6
7
|
data() {
|
|
7
8
|
return {
|
|
8
9
|
tableColumns: [{
|
|
@@ -40,7 +41,7 @@ const h = {
|
|
|
40
41
|
}]
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
|
-
},
|
|
44
|
+
}, O = {
|
|
44
45
|
data() {
|
|
45
46
|
return {
|
|
46
47
|
tableColumns: [
|
|
@@ -125,8 +126,8 @@ const h = {
|
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
128
|
};
|
|
128
|
-
const
|
|
129
|
-
mixins: [
|
|
129
|
+
const z = {
|
|
130
|
+
mixins: [O],
|
|
130
131
|
props: {
|
|
131
132
|
detail: {
|
|
132
133
|
type: Object,
|
|
@@ -147,13 +148,13 @@ const m = {
|
|
|
147
148
|
selectedRowKeys: [],
|
|
148
149
|
selectedRows: [],
|
|
149
150
|
queryParam: {},
|
|
150
|
-
loadData: (
|
|
151
|
+
loadData: (n) => L(Object.assign(n, this.queryParam)).then((e) => (this.getRow(e.data), this.allList = e.data.rows, e.data)),
|
|
151
152
|
disabledRowId: [],
|
|
152
153
|
allList: []
|
|
153
154
|
};
|
|
154
155
|
},
|
|
155
156
|
components: {
|
|
156
|
-
editForm:
|
|
157
|
+
editForm: N
|
|
157
158
|
},
|
|
158
159
|
computed: {
|
|
159
160
|
getHeight() {
|
|
@@ -162,23 +163,23 @@ const m = {
|
|
|
162
163
|
styled() {
|
|
163
164
|
return `color:${this.primaryColor};cursor: pointer;`;
|
|
164
165
|
},
|
|
165
|
-
...
|
|
166
|
+
...R(["tablePageSize", "screenHeight", "tableSize", "primaryColor", "formMode"])
|
|
166
167
|
},
|
|
167
168
|
methods: {
|
|
168
|
-
getRow(
|
|
169
|
+
getRow(n) {
|
|
169
170
|
let e = [];
|
|
170
|
-
|
|
171
|
+
n.rows.filter((t) => this.selList.includes(t.id)).forEach((t) => {
|
|
171
172
|
e.push(t.id);
|
|
172
173
|
}), this.disabledRowId = e;
|
|
173
174
|
},
|
|
174
175
|
toggleFullscreen() {
|
|
175
176
|
this.fullscreen = !this.fullscreen;
|
|
176
177
|
},
|
|
177
|
-
saveQueries(
|
|
178
|
-
this.queryParam = { ...
|
|
178
|
+
saveQueries(n) {
|
|
179
|
+
this.queryParam = { ...n }, this.refresh();
|
|
179
180
|
},
|
|
180
|
-
open(
|
|
181
|
-
this.fullScreen = !1, this.type =
|
|
181
|
+
open(n) {
|
|
182
|
+
this.fullScreen = !1, this.type = n ? 2 : 1, this.visible = !0;
|
|
182
183
|
},
|
|
183
184
|
handleSubmit() {
|
|
184
185
|
if (this.confirmLoading)
|
|
@@ -188,9 +189,9 @@ const m = {
|
|
|
188
189
|
return;
|
|
189
190
|
}
|
|
190
191
|
this.confirmLoading = !0;
|
|
191
|
-
let
|
|
192
|
+
let n = [];
|
|
192
193
|
this.selectedRows.forEach((t) => {
|
|
193
|
-
|
|
194
|
+
n.push({
|
|
194
195
|
componenttype: 18,
|
|
195
196
|
objectid: t.id,
|
|
196
197
|
name: this.getTransKeyName(t.transkey, t.name)
|
|
@@ -198,9 +199,9 @@ const m = {
|
|
|
198
199
|
});
|
|
199
200
|
let e = {
|
|
200
201
|
solutionId: this.detail.id,
|
|
201
|
-
data:
|
|
202
|
+
data: n
|
|
202
203
|
};
|
|
203
|
-
|
|
204
|
+
K(e).then((t) => {
|
|
204
205
|
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;
|
|
205
206
|
});
|
|
206
207
|
},
|
|
@@ -208,30 +209,30 @@ const m = {
|
|
|
208
209
|
this.$refs.table.refresh();
|
|
209
210
|
},
|
|
210
211
|
closed() {
|
|
211
|
-
this.selectedRowKeys = [], this.selectedRows = [], this.formButtons.forEach((
|
|
212
|
-
|
|
213
|
-
}), this.visible = !1;
|
|
212
|
+
this.selectedRowKeys = [], this.selectedRows = [], this.formButtons.forEach((n) => {
|
|
213
|
+
n.displayName == "\u65B0\u5EFA" && (n.show = !0);
|
|
214
|
+
}), this.visible = !1, this.$emit("closed", !1);
|
|
214
215
|
},
|
|
215
|
-
onSelectChange(
|
|
216
|
-
this.selectedRowKeys =
|
|
216
|
+
onSelectChange(n, e) {
|
|
217
|
+
this.selectedRowKeys = n, this.selectedRows = e, this.selectedRows.length > 0 ? this.formButtons.forEach((t) => {
|
|
217
218
|
t.displayName == "\u65B0\u5EFA" && (t.show = !1);
|
|
218
219
|
}) : this.formButtons.forEach((t) => {
|
|
219
220
|
t.displayName == "\u65B0\u5EFA" && (t.show = !0);
|
|
220
221
|
});
|
|
221
222
|
},
|
|
222
|
-
doEvent(
|
|
223
|
-
let e =
|
|
223
|
+
doEvent(n) {
|
|
224
|
+
let e = n.item.functionName;
|
|
224
225
|
this[e]();
|
|
225
226
|
},
|
|
226
|
-
getTransKeyName(
|
|
227
|
-
return this.getBootTrans &&
|
|
227
|
+
getTransKeyName(n, e) {
|
|
228
|
+
return this.getBootTrans && n ? this.$i18nt(`Dynamics.${n}`, e) : e;
|
|
228
229
|
},
|
|
229
230
|
addBuilt() {
|
|
230
231
|
this.$refs.editForm.open(null);
|
|
231
232
|
},
|
|
232
|
-
submitRefresh(
|
|
233
|
-
this.refresh(),
|
|
234
|
-
const e = this.allList.find((t) => t.id ===
|
|
233
|
+
submitRefresh(n) {
|
|
234
|
+
this.refresh(), n && setTimeout(() => {
|
|
235
|
+
const e = this.allList.find((t) => t.id === n.id);
|
|
235
236
|
this.selectedRowKeys = [e.id], this.selectedRows = [e], setTimeout(() => {
|
|
236
237
|
this.handleSubmit();
|
|
237
238
|
}, 10);
|
|
@@ -239,30 +240,191 @@ const m = {
|
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
242
|
};
|
|
242
|
-
var
|
|
243
|
+
var E = function() {
|
|
243
244
|
var e = this, t = e._self._c;
|
|
244
|
-
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(
|
|
245
|
-
e.visible =
|
|
246
|
-
}, 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:
|
|
247
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row:
|
|
248
|
-
} }, { key: "type", fn: function(
|
|
249
|
-
return [t("el-tag", { style: e._f("dictColor")("web_type",
|
|
250
|
-
} }, { key: "filtering", fn: function({ colse:
|
|
251
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse:
|
|
245
|
+
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) {
|
|
246
|
+
e.visible = o;
|
|
247
|
+
}, 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: o, row: f }) {
|
|
248
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: f, highlight: "" } })];
|
|
249
|
+
} }, { key: "type", fn: function(o) {
|
|
250
|
+
return [t("el-tag", { style: e._f("dictColor")("web_type", o.row.type), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("web_type", o.row.type)) + " ")])];
|
|
251
|
+
} }, { key: "filtering", fn: function({ colse: o, visible: f }) {
|
|
252
|
+
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: o, visible: f }, on: { save: e.saveQueries } })];
|
|
252
253
|
} }], null, !1, 2033377063) }) : e._e()], 1)], 2), t("editForm", { ref: "editForm", attrs: { formMode: e.formMode }, on: { ok: e.submitRefresh } })], 1);
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
}, q = [], A = /* @__PURE__ */ C(
|
|
255
|
+
z,
|
|
256
|
+
E,
|
|
257
|
+
q,
|
|
257
258
|
!1,
|
|
258
259
|
null,
|
|
259
|
-
"
|
|
260
|
+
"b9495831",
|
|
260
261
|
null,
|
|
261
262
|
null
|
|
262
263
|
);
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
const F = A.exports;
|
|
265
|
+
var M = { exports: {} };
|
|
266
|
+
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
267
|
+
* @license MIT */
|
|
268
|
+
(function(n, e) {
|
|
269
|
+
(function(t, o) {
|
|
270
|
+
n.exports = o();
|
|
271
|
+
})(P, function() {
|
|
272
|
+
var t = {};
|
|
273
|
+
t.version = "0.2.0";
|
|
274
|
+
var o = t.settings = {
|
|
275
|
+
minimum: 0.08,
|
|
276
|
+
easing: "ease",
|
|
277
|
+
positionUsing: "",
|
|
278
|
+
speed: 200,
|
|
279
|
+
trickle: !0,
|
|
280
|
+
trickleRate: 0.02,
|
|
281
|
+
trickleSpeed: 800,
|
|
282
|
+
showSpinner: !0,
|
|
283
|
+
barSelector: '[role="bar"]',
|
|
284
|
+
spinnerSelector: '[role="spinner"]',
|
|
285
|
+
parent: "body",
|
|
286
|
+
template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
|
|
287
|
+
};
|
|
288
|
+
t.configure = function(s) {
|
|
289
|
+
var r, i;
|
|
290
|
+
for (r in s)
|
|
291
|
+
i = s[r], i !== void 0 && s.hasOwnProperty(r) && (o[r] = i);
|
|
292
|
+
return this;
|
|
293
|
+
}, t.status = null, t.set = function(s) {
|
|
294
|
+
var r = t.isStarted();
|
|
295
|
+
s = f(s, o.minimum, 1), t.status = s === 1 ? null : s;
|
|
296
|
+
var i = t.render(!r), l = i.querySelector(o.barSelector), d = o.speed, h = o.easing;
|
|
297
|
+
return i.offsetWidth, k(function(a) {
|
|
298
|
+
o.positionUsing === "" && (o.positionUsing = t.getPositioningCSS()), y(l, T(s, d, h)), s === 1 ? (y(i, {
|
|
299
|
+
transition: "none",
|
|
300
|
+
opacity: 1
|
|
301
|
+
}), i.offsetWidth, setTimeout(function() {
|
|
302
|
+
y(i, {
|
|
303
|
+
transition: "all " + d + "ms linear",
|
|
304
|
+
opacity: 0
|
|
305
|
+
}), setTimeout(function() {
|
|
306
|
+
t.remove(), a();
|
|
307
|
+
}, d);
|
|
308
|
+
}, d)) : setTimeout(a, d);
|
|
309
|
+
}), this;
|
|
310
|
+
}, t.isStarted = function() {
|
|
311
|
+
return typeof t.status == "number";
|
|
312
|
+
}, t.start = function() {
|
|
313
|
+
t.status || t.set(0);
|
|
314
|
+
var s = function() {
|
|
315
|
+
setTimeout(function() {
|
|
316
|
+
!t.status || (t.trickle(), s());
|
|
317
|
+
}, o.trickleSpeed);
|
|
318
|
+
};
|
|
319
|
+
return o.trickle && s(), this;
|
|
320
|
+
}, t.done = function(s) {
|
|
321
|
+
return !s && !t.status ? this : t.inc(0.3 + 0.5 * Math.random()).set(1);
|
|
322
|
+
}, t.inc = function(s) {
|
|
323
|
+
var r = t.status;
|
|
324
|
+
return r ? (typeof s != "number" && (s = (1 - r) * f(Math.random() * r, 0.1, 0.95)), r = f(r + s, 0, 0.994), t.set(r)) : t.start();
|
|
325
|
+
}, t.trickle = function() {
|
|
326
|
+
return t.inc(Math.random() * o.trickleRate);
|
|
327
|
+
}, function() {
|
|
328
|
+
var s = 0, r = 0;
|
|
329
|
+
t.promise = function(i) {
|
|
330
|
+
return !i || i.state() === "resolved" ? this : (r === 0 && t.start(), s++, r++, i.always(function() {
|
|
331
|
+
r--, r === 0 ? (s = 0, t.done()) : t.set((s - r) / s);
|
|
332
|
+
}), this);
|
|
333
|
+
};
|
|
334
|
+
}(), t.render = function(s) {
|
|
335
|
+
if (t.isRendered())
|
|
336
|
+
return document.getElementById("nprogress");
|
|
337
|
+
v(document.documentElement, "nprogress-busy");
|
|
338
|
+
var r = document.createElement("div");
|
|
339
|
+
r.id = "nprogress", r.innerHTML = o.template;
|
|
340
|
+
var i = r.querySelector(o.barSelector), l = s ? "-100" : g(t.status || 0), d = document.querySelector(o.parent), h;
|
|
341
|
+
return y(i, {
|
|
342
|
+
transition: "all 0 linear",
|
|
343
|
+
transform: "translate3d(" + l + "%,0,0)"
|
|
344
|
+
}), o.showSpinner || (h = r.querySelector(o.spinnerSelector), h && _(h)), d != document.body && v(d, "nprogress-custom-parent"), d.appendChild(r), r;
|
|
345
|
+
}, t.remove = function() {
|
|
346
|
+
S(document.documentElement, "nprogress-busy"), S(document.querySelector(o.parent), "nprogress-custom-parent");
|
|
347
|
+
var s = document.getElementById("nprogress");
|
|
348
|
+
s && _(s);
|
|
349
|
+
}, t.isRendered = function() {
|
|
350
|
+
return !!document.getElementById("nprogress");
|
|
351
|
+
}, t.getPositioningCSS = function() {
|
|
352
|
+
var s = document.body.style, r = "WebkitTransform" in s ? "Webkit" : "MozTransform" in s ? "Moz" : "msTransform" in s ? "ms" : "OTransform" in s ? "O" : "";
|
|
353
|
+
return r + "Perspective" in s ? "translate3d" : r + "Transform" in s ? "translate" : "margin";
|
|
354
|
+
};
|
|
355
|
+
function f(s, r, i) {
|
|
356
|
+
return s < r ? r : s > i ? i : s;
|
|
357
|
+
}
|
|
358
|
+
function g(s) {
|
|
359
|
+
return (-1 + s) * 100;
|
|
360
|
+
}
|
|
361
|
+
function T(s, r, i) {
|
|
362
|
+
var l;
|
|
363
|
+
return o.positionUsing === "translate3d" ? l = { transform: "translate3d(" + g(s) + "%,0,0)" } : o.positionUsing === "translate" ? l = { transform: "translate(" + g(s) + "%,0)" } : l = { "margin-left": g(s) + "%" }, l.transition = "all " + r + "ms " + i, l;
|
|
364
|
+
}
|
|
365
|
+
var k = function() {
|
|
366
|
+
var s = [];
|
|
367
|
+
function r() {
|
|
368
|
+
var i = s.shift();
|
|
369
|
+
i && i(r);
|
|
370
|
+
}
|
|
371
|
+
return function(i) {
|
|
372
|
+
s.push(i), s.length == 1 && r();
|
|
373
|
+
};
|
|
374
|
+
}(), y = function() {
|
|
375
|
+
var s = ["Webkit", "O", "Moz", "ms"], r = {};
|
|
376
|
+
function i(a) {
|
|
377
|
+
return a.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(u, c) {
|
|
378
|
+
return c.toUpperCase();
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
function l(a) {
|
|
382
|
+
var u = document.body.style;
|
|
383
|
+
if (a in u)
|
|
384
|
+
return a;
|
|
385
|
+
for (var c = s.length, p = a.charAt(0).toUpperCase() + a.slice(1), m; c--; )
|
|
386
|
+
if (m = s[c] + p, m in u)
|
|
387
|
+
return m;
|
|
388
|
+
return a;
|
|
389
|
+
}
|
|
390
|
+
function d(a) {
|
|
391
|
+
return a = i(a), r[a] || (r[a] = l(a));
|
|
392
|
+
}
|
|
393
|
+
function h(a, u, c) {
|
|
394
|
+
u = d(u), a.style[u] = c;
|
|
395
|
+
}
|
|
396
|
+
return function(a, u) {
|
|
397
|
+
var c = arguments, p, m;
|
|
398
|
+
if (c.length == 2)
|
|
399
|
+
for (p in u)
|
|
400
|
+
m = u[p], m !== void 0 && u.hasOwnProperty(p) && h(a, p, m);
|
|
401
|
+
else
|
|
402
|
+
h(a, c[1], c[2]);
|
|
403
|
+
};
|
|
404
|
+
}();
|
|
405
|
+
function w(s, r) {
|
|
406
|
+
var i = typeof s == "string" ? s : b(s);
|
|
407
|
+
return i.indexOf(" " + r + " ") >= 0;
|
|
408
|
+
}
|
|
409
|
+
function v(s, r) {
|
|
410
|
+
var i = b(s), l = i + r;
|
|
411
|
+
w(i, r) || (s.className = l.substring(1));
|
|
412
|
+
}
|
|
413
|
+
function S(s, r) {
|
|
414
|
+
var i = b(s), l;
|
|
415
|
+
!w(s, r) || (l = i.replace(" " + r + " ", " "), s.className = l.substring(1, l.length - 1));
|
|
416
|
+
}
|
|
417
|
+
function b(s) {
|
|
418
|
+
return (" " + (s.className || "") + " ").replace(/\s+/gi, " ");
|
|
419
|
+
}
|
|
420
|
+
function _(s) {
|
|
421
|
+
s && s.parentNode && s.parentNode.removeChild(s);
|
|
422
|
+
}
|
|
423
|
+
return t;
|
|
424
|
+
});
|
|
425
|
+
})(M);
|
|
426
|
+
const W = {
|
|
427
|
+
mixins: [x],
|
|
266
428
|
props: {
|
|
267
429
|
height: {
|
|
268
430
|
type: Number,
|
|
@@ -282,15 +444,16 @@ const w = {
|
|
|
282
444
|
}
|
|
283
445
|
},
|
|
284
446
|
components: {
|
|
285
|
-
WebResourcesAdd:
|
|
447
|
+
WebResourcesAdd: F
|
|
286
448
|
},
|
|
287
449
|
data() {
|
|
288
450
|
return {
|
|
289
451
|
queryParam: {},
|
|
290
|
-
loadData: (
|
|
452
|
+
loadData: (n) => $(Object.assign(n, this.getQueryParam)).then((e) => e.data),
|
|
291
453
|
selectedRowKeys: [],
|
|
292
454
|
selectedRows: [],
|
|
293
|
-
type: 18
|
|
455
|
+
type: 18,
|
|
456
|
+
isShowAdd: !1
|
|
294
457
|
};
|
|
295
458
|
},
|
|
296
459
|
computed: {
|
|
@@ -300,14 +463,19 @@ const w = {
|
|
|
300
463
|
type: this.type
|
|
301
464
|
});
|
|
302
465
|
},
|
|
303
|
-
...
|
|
466
|
+
...R(["tablePageSize", "tableSize"])
|
|
304
467
|
},
|
|
305
468
|
methods: {
|
|
306
469
|
add() {
|
|
307
|
-
this
|
|
470
|
+
this.isShowAdd = !0, setTimeout(() => {
|
|
471
|
+
this.$refs.webResourcesAdd.open(null);
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
closed() {
|
|
475
|
+
this.isShowAdd = !1;
|
|
308
476
|
},
|
|
309
|
-
okSbumit(
|
|
310
|
-
this.refresh(), this.$emit("ok",
|
|
477
|
+
okSbumit(n) {
|
|
478
|
+
this.refresh(), this.$emit("ok", n);
|
|
311
479
|
},
|
|
312
480
|
del() {
|
|
313
481
|
if (this.selectedRowKeys.length === 0) {
|
|
@@ -326,54 +494,54 @@ const w = {
|
|
|
326
494
|
customClass: "custom-alert",
|
|
327
495
|
callback: () => {
|
|
328
496
|
},
|
|
329
|
-
beforeClose: (
|
|
330
|
-
this.delHand(
|
|
497
|
+
beforeClose: (n, e, t) => {
|
|
498
|
+
this.delHand(n, e, t);
|
|
331
499
|
}
|
|
332
500
|
});
|
|
333
501
|
},
|
|
334
|
-
delHand(
|
|
335
|
-
if (
|
|
502
|
+
delHand(n, e, t) {
|
|
503
|
+
if (n !== "confirm") {
|
|
336
504
|
t();
|
|
337
505
|
return;
|
|
338
506
|
}
|
|
339
|
-
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1,
|
|
507
|
+
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, B({
|
|
340
508
|
solutionId: this.record.id,
|
|
341
509
|
ids: this.selectedRowKeys,
|
|
342
510
|
type: this.type
|
|
343
|
-
}).then((
|
|
344
|
-
t(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0,
|
|
511
|
+
}).then((o) => {
|
|
512
|
+
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();
|
|
345
513
|
});
|
|
346
514
|
},
|
|
347
515
|
refresh() {
|
|
348
516
|
this.$refs.table.refresh();
|
|
349
517
|
},
|
|
350
|
-
onSelectChange(
|
|
351
|
-
this.selectedRowKeys =
|
|
518
|
+
onSelectChange(n, e) {
|
|
519
|
+
this.selectedRowKeys = n, this.selectedRows = e;
|
|
352
520
|
},
|
|
353
|
-
doEvent(
|
|
354
|
-
let e =
|
|
521
|
+
doEvent(n) {
|
|
522
|
+
let e = n.item.functionName;
|
|
355
523
|
this[e]();
|
|
356
524
|
}
|
|
357
525
|
}
|
|
358
526
|
};
|
|
359
|
-
var
|
|
527
|
+
var I = function() {
|
|
360
528
|
var e = this, t = e._self._c;
|
|
361
|
-
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:
|
|
362
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row:
|
|
529
|
+
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: f }) {
|
|
530
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: f, highlight: "" } })];
|
|
363
531
|
} }, { key: "operator", fn: function() {
|
|
364
532
|
return [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)];
|
|
365
|
-
}, proxy: !0 }]) })], 1), t("WebResourcesAdd", { ref: "webResourcesAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit } })], 1);
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
533
|
+
}, proxy: !0 }]) })], 1), e.isShowAdd ? t("WebResourcesAdd", { ref: "webResourcesAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit, closed: e.closed } }) : e._e()], 1);
|
|
534
|
+
}, H = [], j = /* @__PURE__ */ C(
|
|
535
|
+
W,
|
|
536
|
+
I,
|
|
537
|
+
H,
|
|
370
538
|
!1,
|
|
371
539
|
null,
|
|
372
|
-
"
|
|
540
|
+
"d8b86505",
|
|
373
541
|
null,
|
|
374
542
|
null
|
|
375
543
|
);
|
|
376
|
-
const
|
|
544
|
+
const J = j.exports;
|
|
377
545
|
export {
|
|
378
|
-
|
|
546
|
+
J as W
|
|
379
547
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const b=require("./components.chartbi.13a8a7b5.js"),v=require("./http.solution.c6b2634f.js"),K=require("./http.webresource.7c01b9cd.js"),$=require("./system.webresource.81cfa690.js"),B=require("./components.form.14ed3374.js"),L={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.web.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"}]}}},N={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",align:"left",type:"slot",slotType:"name",fixed:!0,howOverflowTooltip:!0},{transKey:"gd.web.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",minWidth:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.web.type",prop:"type",width:"120",label:"\u8D44\u6E90\u7C7B\u578B",type:"slot",slotType:"type",align:"left",showOverflowTooltip:!0},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createdtime",align:"center",transKey:"gd.web.creationTime",showOverflowTooltip:!0},{label:"\u4FEE\u6539\u65F6\u95F4",prop:"updatedtime",align:"center",showOverflowTooltip:!0,transKey:"gd.web.updatedTime"},{label:"\u5907\u6CE8",prop:"description",align:"left",showOverflowTooltip:!0,transKey:"gd.web.remarks"}],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",validate:!0}],tableQueries:[{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};const P={mixins:[N],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:n=>K.sysWebDataPage(Object.assign(n,this.queryParam)).then(e=>(this.getRow(e.data),this.allList=e.data.rows,e.data)),disabledRowId:[],allList:[]}},components:{editForm:$.editForm},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...b.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","formMode"])},methods:{getRow(n){let e=[];n.rows.filter(t=>this.selList.includes(t.id)).forEach(t=>{e.push(t.id)}),this.disabledRowId=e},toggleFullscreen(){this.fullscreen=!this.fullscreen},saveQueries(n){this.queryParam={...n},this.refresh()},open(n){this.fullScreen=!1,this.type=n?2:1,this.visible=!0},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let n=[];this.selectedRows.forEach(t=>{n.push({componenttype:18,objectid:t.id,name:this.getTransKeyName(t.transkey,t.name)})});let e={solutionId:this.detail.id,data:n};v.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(n=>{n.displayName=="\u65B0\u5EFA"&&(n.show=!0)}),this.visible=!1,this.$emit("closed",!1)},onSelectChange(n,e){this.selectedRowKeys=n,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(n){let e=n.item.functionName;this[e]()},getTransKeyName(n,e){return this.getBootTrans&&n?this.$i18nt(`Dynamics.${n}`,e):e},addBuilt(){this.$refs.editForm.open(null)},submitRefresh(n){this.refresh(),n&&setTimeout(()=>{const e=this.allList.find(t=>t.id===n.id);this.selectedRowKeys=[e.id],this.selectedRows=[e],setTimeout(()=>{this.handleSubmit()},10)},400)}}};var q=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.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:o,row:f}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:f,highlight:""}})]}},{key:"type",fn:function(o){return[t("el-tag",{style:e._f("dictColor")("web_type",o.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("web_type",o.row.type))+" ")])]}},{key:"filtering",fn:function({colse:o,visible:f}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:o,visible:f},on:{save:e.saveQueries}})]}}],null,!1,2033377063)}):e._e()],1)],2),t("editForm",{ref:"editForm",attrs:{formMode:e.formMode},on:{ok:e.submitRefresh}})],1)},x=[],O=b.normalizeComponent(P,q,x,!1,null,"b9495831",null,null);const z=O.exports;var E={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
2
|
+
* @license MIT */(function(n,e){(function(t,o){n.exports=o()})(B.commonjsGlobal,function(){var t={};t.version="0.2.0";var o=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};t.configure=function(s){var r,i;for(r in s)i=s[r],i!==void 0&&s.hasOwnProperty(r)&&(o[r]=i);return this},t.status=null,t.set=function(s){var r=t.isStarted();s=f(s,o.minimum,1),t.status=s===1?null:s;var i=t.render(!r),l=i.querySelector(o.barSelector),d=o.speed,h=o.easing;return i.offsetWidth,k(function(a){o.positionUsing===""&&(o.positionUsing=t.getPositioningCSS()),y(l,T(s,d,h)),s===1?(y(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){y(i,{transition:"all "+d+"ms linear",opacity:0}),setTimeout(function(){t.remove(),a()},d)},d)):setTimeout(a,d)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var s=function(){setTimeout(function(){!t.status||(t.trickle(),s())},o.trickleSpeed)};return o.trickle&&s(),this},t.done=function(s){return!s&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(s){var r=t.status;return r?(typeof s!="number"&&(s=(1-r)*f(Math.random()*r,.1,.95)),r=f(r+s,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*o.trickleRate)},function(){var s=0,r=0;t.promise=function(i){return!i||i.state()==="resolved"?this:(r===0&&t.start(),s++,r++,i.always(function(){r--,r===0?(s=0,t.done()):t.set((s-r)/s)}),this)}}(),t.render=function(s){if(t.isRendered())return document.getElementById("nprogress");_(document.documentElement,"nprogress-busy");var r=document.createElement("div");r.id="nprogress",r.innerHTML=o.template;var i=r.querySelector(o.barSelector),l=s?"-100":g(t.status||0),d=document.querySelector(o.parent),h;return y(i,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),o.showSpinner||(h=r.querySelector(o.spinnerSelector),h&&C(h)),d!=document.body&&_(d,"nprogress-custom-parent"),d.appendChild(r),r},t.remove=function(){R(document.documentElement,"nprogress-busy"),R(document.querySelector(o.parent),"nprogress-custom-parent");var s=document.getElementById("nprogress");s&&C(s)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var s=document.body.style,r="WebkitTransform"in s?"Webkit":"MozTransform"in s?"Moz":"msTransform"in s?"ms":"OTransform"in s?"O":"";return r+"Perspective"in s?"translate3d":r+"Transform"in s?"translate":"margin"};function f(s,r,i){return s<r?r:s>i?i:s}function g(s){return(-1+s)*100}function T(s,r,i){var l;return o.positionUsing==="translate3d"?l={transform:"translate3d("+g(s)+"%,0,0)"}:o.positionUsing==="translate"?l={transform:"translate("+g(s)+"%,0)"}:l={"margin-left":g(s)+"%"},l.transition="all "+r+"ms "+i,l}var k=function(){var s=[];function r(){var i=s.shift();i&&i(r)}return function(i){s.push(i),s.length==1&&r()}}(),y=function(){var s=["Webkit","O","Moz","ms"],r={};function i(a){return a.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(u,c){return c.toUpperCase()})}function l(a){var u=document.body.style;if(a in u)return a;for(var c=s.length,p=a.charAt(0).toUpperCase()+a.slice(1),m;c--;)if(m=s[c]+p,m in u)return m;return a}function d(a){return a=i(a),r[a]||(r[a]=l(a))}function h(a,u,c){u=d(u),a.style[u]=c}return function(a,u){var c=arguments,p,m;if(c.length==2)for(p in u)m=u[p],m!==void 0&&u.hasOwnProperty(p)&&h(a,p,m);else h(a,c[1],c[2])}}();function S(s,r){var i=typeof s=="string"?s:w(s);return i.indexOf(" "+r+" ")>=0}function _(s,r){var i=w(s),l=i+r;S(i,r)||(s.className=l.substring(1))}function R(s,r){var i=w(s),l;!S(s,r)||(l=i.replace(" "+r+" "," "),s.className=l.substring(1,l.length-1))}function w(s){return(" "+(s.className||"")+" ").replace(/\s+/gi," ")}function C(s){s&&s.parentNode&&s.parentNode.removeChild(s)}return t})})(E);const A={mixins:[L],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{WebResourcesAdd:z},data(){return{queryParam:{},loadData:n=>v.sysSolutionComponentPage(Object.assign(n,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:18,isShowAdd:!1}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...b.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.isShowAdd=!0,setTimeout(()=>{this.$refs.webResourcesAdd.open(null)})},closed(){this.isShowAdd=!1},okSbumit(n){this.refresh(),this.$emit("ok",n)},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:(n,e,t)=>{this.delHand(n,e,t)}})},delHand(n,e,t){if(n!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,v.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(n,e){this.selectedRowKeys=n,this.selectedRows=e},doEvent(n){let e=n.item.functionName;this[e]()}}};var j=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:f}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:f,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("WebResourcesAdd",{ref:"webResourcesAdd",attrs:{detail:e.record,selList:e.selList},on:{ok:e.okSbumit,closed:e.closed}}):e._e()],1)},F=[],M=b.normalizeComponent(A,j,F,!1,null,"d8b86505",null,null);const W=M.exports;exports.WebResources=W;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as
|
|
1
|
+
import { m as l, n } from "./components.chartbi.7356b244.mjs";
|
|
2
2
|
import { s as r, a as d, b as c } from "./http.solution.b10d9197.mjs";
|
|
3
3
|
import { G as u } from "./http.main.aefea27d.mjs";
|
|
4
|
-
import { b as a } from "./flow.list.
|
|
4
|
+
import { b as a } from "./flow.list.3c2df716.mjs";
|
|
5
5
|
const h = {
|
|
6
6
|
data() {
|
|
7
7
|
return {
|
|
@@ -161,7 +161,7 @@ const g = {
|
|
|
161
161
|
styled() {
|
|
162
162
|
return `color:${this.primaryColor};cursor: pointer;`;
|
|
163
163
|
},
|
|
164
|
-
...
|
|
164
|
+
...l(["tablePageSize", "screenHeight", "tableSize", "primaryColor"])
|
|
165
165
|
},
|
|
166
166
|
methods: {
|
|
167
167
|
getRow(s) {
|
|
@@ -218,7 +218,7 @@ const g = {
|
|
|
218
218
|
closed() {
|
|
219
219
|
this.selectedRowKeys = [], this.selectedRows = [], this.buttons.forEach((s) => {
|
|
220
220
|
s.displayName == "\u65B0\u5EFA" && (s.show = !0);
|
|
221
|
-
}), this.visible = !1;
|
|
221
|
+
}), this.visible = !1, this.$emit("closed", !1);
|
|
222
222
|
},
|
|
223
223
|
dictSwitch(s, e) {
|
|
224
224
|
let t = this.$options.filters.dictData(e).filter((i) => i.code == s)[0];
|
|
@@ -257,13 +257,13 @@ var m = function() {
|
|
|
257
257
|
} }, { key: "filtering", fn: function({ colse: i, visible: o }) {
|
|
258
258
|
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: o }, on: { save: e.saveQueries } })];
|
|
259
259
|
} }], null, !1, 3412208156) }) : e._e()], 1)], 2), t("flowDesign", { ref: "flowDesign", on: { ok: e.submitRefresh } })], 1);
|
|
260
|
-
}, p = [], y = /* @__PURE__ */
|
|
260
|
+
}, p = [], y = /* @__PURE__ */ n(
|
|
261
261
|
g,
|
|
262
262
|
m,
|
|
263
263
|
p,
|
|
264
264
|
!1,
|
|
265
265
|
null,
|
|
266
|
-
"
|
|
266
|
+
"cac8cfee",
|
|
267
267
|
null,
|
|
268
268
|
null
|
|
269
269
|
);
|
|
@@ -298,7 +298,8 @@ const w = {
|
|
|
298
298
|
loadData: (s) => d(Object.assign(s, this.getQueryParam)).then((e) => e.data),
|
|
299
299
|
selectedRowKeys: [],
|
|
300
300
|
selectedRows: [],
|
|
301
|
-
type: 13
|
|
301
|
+
type: 13,
|
|
302
|
+
isShowAdd: !1
|
|
302
303
|
};
|
|
303
304
|
},
|
|
304
305
|
computed: {
|
|
@@ -308,7 +309,7 @@ const w = {
|
|
|
308
309
|
type: this.type
|
|
309
310
|
});
|
|
310
311
|
},
|
|
311
|
-
...
|
|
312
|
+
...l(["tablePageSize", "tableSize"])
|
|
312
313
|
},
|
|
313
314
|
watch: {
|
|
314
315
|
language(s, e) {
|
|
@@ -319,7 +320,12 @@ const w = {
|
|
|
319
320
|
this.$refs.flowDesign.open(s.objectid);
|
|
320
321
|
},
|
|
321
322
|
add() {
|
|
322
|
-
this
|
|
323
|
+
this.isShowAdd = !0, setTimeout(() => {
|
|
324
|
+
this.$refs.workFlowAdd.open(null);
|
|
325
|
+
});
|
|
326
|
+
},
|
|
327
|
+
closed() {
|
|
328
|
+
this.isShowAdd = !1;
|
|
323
329
|
},
|
|
324
330
|
okSbumit(s) {
|
|
325
331
|
this.refresh(), this.$emit("ok", s);
|
|
@@ -378,14 +384,14 @@ var _ = function() {
|
|
|
378
384
|
} } })];
|
|
379
385
|
} }, { key: "operator", fn: function() {
|
|
380
386
|
return [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)];
|
|
381
|
-
}, proxy: !0 }]) })], 1), t("WorkFlowAdd", { ref: "workFlowAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit } }), t("flowDesign", { ref: "flowDesign", attrs: { modeType: "solution" } })], 1);
|
|
382
|
-
}, v = [], S = /* @__PURE__ */
|
|
387
|
+
}, proxy: !0 }]) })], 1), e.isShowAdd ? t("WorkFlowAdd", { ref: "workFlowAdd", attrs: { detail: e.record, selList: e.selList }, on: { ok: e.okSbumit, closed: e.closed } }) : e._e(), t("flowDesign", { ref: "flowDesign", attrs: { modeType: "solution" } })], 1);
|
|
388
|
+
}, v = [], S = /* @__PURE__ */ n(
|
|
383
389
|
w,
|
|
384
390
|
_,
|
|
385
391
|
v,
|
|
386
392
|
!1,
|
|
387
393
|
null,
|
|
388
|
-
"
|
|
394
|
+
"63c80943",
|
|
389
395
|
null,
|
|
390
396
|
null
|
|
391
397
|
);
|
|
@@ -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.onlineWorkflowPage(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$2},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:13,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,"cac8cfee",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:{WorkFlowAdd:m,flowDesign:a.flowDesign$2},data(){return{queryParam:{},loadData:s=>l.sysSolutionComponentPage(Object.assign(s,this.getQueryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],type:13,isShowAdd:!1}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...n.mapGetters(["tablePageSize","tableSize"])},watch:{language(s,e){}},methods:{see(s){this.$refs.flowDesign.open(s.objectid)},add(){this.isShowAdd=!0,setTimeout(()=>{this.$refs.workFlowAdd.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}).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("WorkFlowAdd",{ref:"workFlowAdd",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,"63c80943",null,null);const _=w.exports;exports.Work=_;
|