gds-plus-design-vue 1.2.72 → 1.2.73
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.f2eb7564.mjs → addPermission.1eb97ee3.mjs} +25 -25
- package/lib/{addPermission.e559c495.js → addPermission.5bfc7e11.js} +1 -1
- package/lib/{approvalModel.2b97fdf8.js → approvalModel.63fa8914.js} +1 -1
- package/lib/{approvalModel.7b3cb5c5.mjs → approvalModel.c09cbf86.mjs} +2 -2
- package/lib/{attribute.4f814780.mjs → attribute.88d41b0f.mjs} +26 -26
- package/lib/{attribute.7b4971f5.js → attribute.919cb93e.js} +1 -1
- package/lib/{components.globalheader.5418b5ec.js → components.globalheader.28b38c3a.js} +1 -1
- package/lib/{components.globalheader.bc91e6fe.mjs → components.globalheader.9471ef9d.mjs} +1 -1
- package/lib/components.middleware.7b760b95.mjs +148 -0
- package/lib/components.middleware.b2e156ea.js +1 -0
- package/lib/{components.modaltitle.d7ef34cb.js → components.modaltitle.179b6da1.js} +1 -1
- package/lib/{components.modaltitle.4f454200.mjs → components.modaltitle.2c1011c5.mjs} +2 -2
- package/lib/{components.sidenavmenu.47d7f44a.mjs → components.sidenavmenu.91e996c4.mjs} +8 -8
- package/lib/{components.sidenavmenu.1f0bbfca.js → components.sidenavmenu.a3de1659.js} +1 -1
- package/lib/{components.table.d016f609.js → components.table.a0ac819e.js} +1 -1
- package/lib/{components.table.389ab22a.mjs → components.table.d79f5fa3.mjs} +4 -4
- package/lib/{components.viewformdetails.1236a66e.mjs → components.viewformdetails.4e40579f.mjs} +41 -25
- package/lib/components.viewformdetails.6e66cc83.js +1 -0
- package/lib/{createFile.526dd6db.js → createFile.94329169.js} +1 -1
- package/lib/{createFile.c8d65b52.mjs → createFile.ca811a30.mjs} +25 -25
- package/lib/{extendedAttributes.e6b11c68.mjs → extendedAttributes.a3ee9bde.mjs} +25 -25
- package/lib/{extendedAttributes.bfff1926.js → extendedAttributes.b1107f6c.js} +1 -1
- package/lib/{fileSearch.e849491c.js → fileSearch.4722ac3b.js} +1 -1
- package/lib/{fileSearch.423b64a3.mjs → fileSearch.d7abc086.mjs} +25 -25
- package/lib/{flow.designer.85d0054b.js → flow.designer.7d58bc2c.js} +1 -1
- package/lib/{flow.designer.5feba43c.mjs → flow.designer.b066df02.mjs} +1 -1
- package/lib/{flow.list.82131d80.mjs → flow.list.a9afdd93.mjs} +2 -2
- package/lib/{flow.list.e001d91a.js → flow.list.d288de5e.js} +1 -1
- package/lib/{form.build.33cc213e.mjs → form.build.16110b90.mjs} +20 -16
- package/lib/form.build.5461409b.js +1 -0
- package/lib/{form.designer.build.7dc12e87.mjs → form.designer.build.2bd26973.mjs} +24 -38
- package/lib/{form.designer.build.2bcc355d.js → form.designer.build.67b316e1.js} +1 -1
- package/lib/{formFiled.5a1c8f7f.mjs → formFiled.3763ebff.mjs} +5 -5
- package/lib/{formFiled.40284ed9.js → formFiled.ef26328d.js} +1 -1
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +25 -25
- package/lib/{index.340d6f00.mjs → index.606ef358.mjs} +789 -782
- package/lib/index.fe18e32c.js +8 -0
- package/lib/layoutBlocks.0784592a.mjs +570 -0
- package/lib/layoutBlocks.1b71d988.js +1 -0
- package/lib/{layouts.1852e8e4.mjs → layouts.915931be.mjs} +2 -2
- package/lib/{layouts.2030bf01.js → layouts.ae25c583.js} +1 -1
- package/lib/{main.1551de4d.js → main.0326119e.js} +1 -1
- package/lib/{main.b2314767.mjs → main.034638bb.mjs} +1 -1
- package/lib/{main.1611bb43.js → main.44d72b90.js} +1 -1
- package/lib/{main.12118407.mjs → main.44efe912.mjs} +25 -25
- package/lib/{main.fcb67463.js → main.47957168.js} +1 -1
- package/lib/{main.48dc325f.mjs → main.adcedcee.mjs} +1 -1
- package/lib/{manage.1bc511ff.mjs → manage.63cd038d.mjs} +26 -26
- package/lib/{manage.eb0a6c8c.js → manage.80871daf.js} +1 -1
- package/lib/{mobile.designer.componentstree.9439895e.mjs → mobile.designer.componentstree.70fd4c93.mjs} +1 -1
- package/lib/{mobile.designer.componentstree.365945a3.js → mobile.designer.componentstree.f4a901e4.js} +1 -1
- package/lib/{moveFile.3dc1dc37.mjs → moveFile.b66805f8.mjs} +25 -25
- package/lib/{moveFile.f70bbff7.js → moveFile.d79f7fd9.js} +1 -1
- package/lib/{page.build.ae61a39b.mjs → page.build.09137386.mjs} +1 -1
- package/lib/{page.build.7ac1ee9b.js → page.build.1b771761.js} +1 -1
- package/lib/{page.designer.componentstree.74a3a114.js → page.designer.componentstree.341908b2.js} +1 -1
- package/lib/{page.designer.componentstree.cdabec2d.mjs → page.designer.componentstree.a256ff7a.mjs} +1 -1
- package/lib/{page.designer.page.821f8994.mjs → page.designer.page.559113a9.mjs} +39 -35
- package/lib/page.designer.page.d2d6b614.js +1 -0
- package/lib/{result.a87217ae.mjs → result.16da7693.mjs} +25 -25
- package/lib/{result.4d4039ea.js → result.9cb6c2f1.js} +1 -1
- package/lib/{router.config.a09f29e7.js → router.config.1e67a1c3.js} +1 -1
- package/lib/{router.config.f0ad16fd.mjs → router.config.70680261.mjs} +5 -5
- package/lib/{solution.approvalflow.eb1c0607.mjs → solution.approvalflow.8572122d.mjs} +1 -1
- package/lib/{solution.approvalflow.79da028c.js → solution.approvalflow.cce2f064.js} +1 -1
- package/lib/{solution.processflow.62936f1c.mjs → solution.processflow.a52fd47c.mjs} +1 -1
- package/lib/{solution.processflow.aa1e808b.js → solution.processflow.bfa4897c.js} +1 -1
- package/lib/{solution.workflow.85de0ae5.mjs → solution.workflow.2530073b.mjs} +1 -1
- package/lib/{solution.workflow.0ed2cb24.js → solution.workflow.59e0e697.js} +1 -1
- package/lib/style.css +2 -2
- package/lib/{system.duplicatechecking.46e182d7.mjs → system.duplicatechecking.a0da805e.mjs} +1 -1
- package/lib/{system.duplicatechecking.a217fc52.js → system.duplicatechecking.bef2b20c.js} +1 -1
- package/lib/system.notice.72e0615f.js +1 -0
- package/lib/{system.notice.51880df6.mjs → system.notice.da2c944c.mjs} +219 -216
- package/lib/{system.noticereceived.55f276ab.mjs → system.noticereceived.30dab7d1.mjs} +1 -1
- package/lib/{system.noticereceived.0b79642e.js → system.noticereceived.54c17b73.js} +1 -1
- package/lib/{system.user.254bbe85.mjs → system.user.a1ff367b.mjs} +1 -1
- package/lib/{system.user.475d7391.js → system.user.bff7cc2f.js} +1 -1
- package/lib/{versionControl.97590ce8.js → versionControl.47cc1330.js} +1 -1
- package/lib/{versionControl.d1b2b0da.mjs → versionControl.6cd18867.mjs} +31 -31
- package/lib/{versionEdit.c51606e4.mjs → versionEdit.910d2e2f.mjs} +25 -25
- package/lib/{versionEdit.f710d0bb.js → versionEdit.977faa93.js} +1 -1
- package/lib/{view.build.9976c958.mjs → view.build.20e9aec0.mjs} +6 -6
- package/lib/{view.build.5789a6eb.js → view.build.a48a14b0.js} +1 -1
- package/lib/{viewList.6e181715.js → viewList.71f866da.js} +1 -1
- package/lib/{viewList.3ca52f0c.mjs → viewList.a4909732.mjs} +9 -9
- package/package.json +1 -1
- package/lib/components.middleware.24511f17.mjs +0 -148
- package/lib/components.middleware.64b6a988.js +0 -1
- package/lib/components.viewformdetails.328c8642.js +0 -1
- package/lib/drawerContainer.790b0ee6.mjs +0 -163
- package/lib/drawerContainer.c971d22d.js +0 -1
- package/lib/form.build.19f0c882.js +0 -1
- package/lib/index.07adebf0.js +0 -8
- package/lib/layoutBlocks.756e4b57.js +0 -1
- package/lib/layoutBlocks.816b49a7.mjs +0 -413
- package/lib/page.designer.page.654634aa.js +0 -1
- package/lib/system.notice.2090c130.js +0 -1
|
@@ -41,7 +41,8 @@ const o = {
|
|
|
41
41
|
sysViewButtons: [],
|
|
42
42
|
allField: [],
|
|
43
43
|
excludeButtons: [],
|
|
44
|
-
componentList: []
|
|
44
|
+
componentList: [],
|
|
45
|
+
timeSetFormOut: null
|
|
45
46
|
};
|
|
46
47
|
},
|
|
47
48
|
computed: {
|
|
@@ -82,11 +83,15 @@ const o = {
|
|
|
82
83
|
setFormRecord(e) {
|
|
83
84
|
return new Promise((t) => {
|
|
84
85
|
this.$nextTick(() => {
|
|
85
|
-
setTimeout(async () => {
|
|
86
|
+
this.timeSetFormOut = setTimeout(async () => {
|
|
86
87
|
const s = this.$refs.form;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
if (!s) {
|
|
89
|
+
t(!1);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
s.baseCustomComponents && s.baseCustomComponents(this.componentList);
|
|
93
|
+
const r = await s.setFormRecord(e), a = JSON.parse(JSON.stringify(r));
|
|
94
|
+
this.protoFormData = Object.assign({}, a), this.formRecordSource = a.formRecordSource, this.formData = a.formData, this.allField = a.allField, this.sysViewButtons = a.sysViewButtons, t(!0);
|
|
90
95
|
}, 100);
|
|
91
96
|
});
|
|
92
97
|
});
|
|
@@ -173,12 +178,11 @@ const o = {
|
|
|
173
178
|
this.$refs.form.baseSetData(e, t);
|
|
174
179
|
},
|
|
175
180
|
baseChange(e) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
this[s] === void 0 && this.func === void 0 || this.$nextTick(() => {
|
|
181
|
+
const t = "onChange";
|
|
182
|
+
this[t] === void 0 && this.func === void 0 || this.$nextTick(() => {
|
|
179
183
|
setTimeout(() => {
|
|
180
|
-
this[
|
|
181
|
-
value:
|
|
184
|
+
this[t] && this[t]({
|
|
185
|
+
value: this.parameterData[e.options.columnName],
|
|
182
186
|
item: e
|
|
183
187
|
});
|
|
184
188
|
}, 0);
|
|
@@ -230,7 +234,7 @@ const o = {
|
|
|
230
234
|
}
|
|
231
235
|
},
|
|
232
236
|
beforeDestroy() {
|
|
233
|
-
this.protoFormData = {}, this.formRecord = {}, this.formRecordSource = {}, this.formData = {}, this.
|
|
237
|
+
this.protoFormData = {}, this.formRecord = {}, this.formRecordSource = {}, this.formData = {}, this.timeSetFormOut && clearTimeout(this.timeSetFormOut);
|
|
234
238
|
}
|
|
235
239
|
};
|
|
236
240
|
const n = {
|
|
@@ -239,21 +243,21 @@ const n = {
|
|
|
239
243
|
};
|
|
240
244
|
var f = function() {
|
|
241
245
|
var t = this, s = t._self._c;
|
|
242
|
-
return s("gd-form-build", { ref: "form", attrs: { modeType: t.modeType, fieldData: t.fieldData, tableData: t.tableData, recordRelation: t.recordRelation, openMode: t.openMode, excludeButtons: t.excludeButtons, isRelevance: t.isRelevance }, on: { doEvent: t.doEvent, change: t.baseChange, changeParameter: t.onChangeParameter, changeId: t.onChangeId, changeBtn: t.onChangeBtn, closed: t.closed, relationOk: (
|
|
246
|
+
return s("gd-form-build", { ref: "form", attrs: { modeType: t.modeType, fieldData: t.fieldData, tableData: t.tableData, recordRelation: t.recordRelation, openMode: t.openMode, excludeButtons: t.excludeButtons, isRelevance: t.isRelevance }, on: { doEvent: t.doEvent, change: t.baseChange, changeParameter: t.onChangeParameter, changeId: t.onChangeId, changeBtn: t.onChangeBtn, closed: t.closed, relationOk: (r) => t.$emit("relationOk", r), ok: function(r) {
|
|
243
247
|
return t.$emit("ok");
|
|
244
248
|
}, onLoadCompleted: t.beaseLoadComplete } });
|
|
245
|
-
},
|
|
249
|
+
}, m = [], h = /* @__PURE__ */ i(
|
|
246
250
|
n,
|
|
247
251
|
f,
|
|
248
|
-
|
|
252
|
+
m,
|
|
249
253
|
!1,
|
|
250
254
|
null,
|
|
251
255
|
"52dfaf58",
|
|
252
256
|
null,
|
|
253
257
|
null
|
|
254
258
|
);
|
|
255
|
-
const
|
|
259
|
+
const l = h.exports;
|
|
256
260
|
export {
|
|
257
|
-
|
|
261
|
+
l as F,
|
|
258
262
|
o as f
|
|
259
263
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./components.chartbi.13a8a7b5.js"),i={props:{modeType:{type:String,default:"editForm"},fieldData:{type:Array,default:()=>[]},tableData:{type:Object,default:()=>({})},recordRelation:{type:Object,default:()=>({})},openMode:{type:[String,Number],default:1},isRelevance:{type:Boolean,default:!1}},data(){return{protoFormData:{},statu:!1,visible:!1,id:"",record:null,confirmLoading:!1,parameterData:{},formRecord:{},formRecordSource:{},formData:{},sysViewButtons:[],allField:[],excludeButtons:[],componentList:[],timeSetFormOut:null}},computed:{options(){return this.formData.options}},methods:{showLoading(){this.statu=!0,this.$refs.form.showLoading()},hideLoading(e=1500){this.$refs.form.hideLoading(e),setTimeout(()=>{this.statu=!1},e)},save(e){this.id===""?this.baseAdd():this.baseEdit()},saveClose(e){this.id===""?this.baseAdd(1):this.baseEdit(1)},saveAdd(e){this.baseAdd(3)},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(e){this.baseAssign(e)},teamSharing(e){this.baseTeamSharing(e)},setFormRecord(e){return new Promise(t=>{this.$nextTick(()=>{this.timeSetFormOut=setTimeout(async()=>{const s=this.$refs.form;if(!s){t(!1);return}s.baseCustomComponents&&s.baseCustomComponents(this.componentList);const r=await s.setFormRecord(e),a=JSON.parse(JSON.stringify(r));this.protoFormData=Object.assign({},a),this.formRecordSource=a.formRecordSource,this.formData=a.formData,this.allField=a.allField,this.sysViewButtons=a.sysViewButtons,t(!0)},100)})})},open(e){this.visible=!0,this.record=e,this.$refs.form.open(e)},openDisplay(e,t="open"){if(t==="refresh"){this.$refs.form.setDisplayId(e);return}this.visible=!0,this.record=e,this.$refs.form.openDisplay(e)},openCopyData(e){this.visible=!0,this.record=e,this.$refs.form.openCopyData(e)},onChangeParameter(e){this.parameterData=e},onChangeId(e){this.id=e},onChangeBtn(e){this.sysViewButtons=e,this.$emit("onChangeBtn",e)},getFormAllData(e=!0,t=!1){return this.$refs.form.getFormAllData(e,t).then(s=>s)},refresh(e=!0,t){this.$refs.form.refresh(e,t)},baseRelationRefresh(e=!0,t,s={}){this.$refs.form.baseViewRefreshFrom(e,t,s)},beaseLoadComplete(e){this.$emit("onLoadCompleted",e);const t=e==="changeStage"?"onChangeStage":"onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t](e)},baseAdd(e=2){return this.$refs.form.baseAdd(e)},baseEdit(e=2){return this.$refs.form.baseEdit(e)},baseEnable(e=1){return this.$refs.form.baseEnable(e)},baseAssign(e){this.$refs.form.baseAssign(e)},baseTeamSharing(e){this.$refs.form.baseTeamSharing(e)},baseSetError(e){this.$refs.form.baseSetError(e)},baseSetVal(e,t=!0){this.$refs.form.baseSetVal(e,t)},baseSetEssential(e){this.$refs.form.baseSetEssential(e)},baseSetVisibility(e){this.$refs.form.baseSetVisibility(e)},baseSetDefaultsVal(e,t=!0){this.$refs.form.baseSetDefaultsVal(e,t)},baseSetLocking(e){this.$refs.form.baseSetLocking(e)},baseSetEmpty(e,t=!0){this.$refs.form.baseSetEmpty(e,t)},baseClearValidate(e){this.$refs.form.baseClearValidate(e)},baseResetFields(){this.$refs.form.baseResetFields()},baseSetData(e,t=!0){this.$refs.form.baseSetData(e,t)},baseChange(e){const t="onChange";this[t]===void 0&&this.func===void 0||this.$nextTick(()=>{setTimeout(()=>{this[t]&&this[t]({value:this.parameterData[e.options.columnName],item:e})},0)})},baseDisableALL(){this.$refs.form.baseDisableALL()},baseGetItemList(e){return this.$refs.form.baseGetItemList(e).then(t=>t)},baseMountData(e){this.$refs.form.baseMountData(e)},baseParserData(e){return this.$refs.form.baseParserData(e)},baseBtnsStatus(e){this.$refs.form.baseBtnsStatus(e)},baseForceShowBtns(e){this.$refs.form.baseForceShowBtns(e)},baseComponentsInit(e){this.$refs.form.baseComponentsInit(e)},baseClosed(){this.$refs.form.closed()},baseAddFlowAgain(){return this.$refs.form.baseAddFlowAgain()},baseDisableAdvance(e){this.$refs.form.baseDisableAdvance(e)},baseSetTitlePrefix(e){this.$refs.form.baseSetTitlePrefix(e)},closed(){this.visible=!1,this.$emit("closed")},doEvent(e){const t=e.item.functionName||e.item.functionname,s=e.key?e:e.item;if(this[t]===void 0){console.log("\u8BF7\u5B9A\u4E49 "+t+" \u65B9\u6CD5");return}this.showLoading(),this[t]&&this[t](s),this.hideLoading()}},beforeDestroy(){this.protoFormData={},this.formRecord={},this.formRecordSource={},this.formData={},this.timeSetFormOut&&clearTimeout(this.timeSetFormOut)}};const n={name:"GdFormBuildDesigner",mixins:[i]};var f=function(){var t=this,s=t._self._c;return s("gd-form-build",{ref:"form",attrs:{modeType:t.modeType,fieldData:t.fieldData,tableData:t.tableData,recordRelation:t.recordRelation,openMode:t.openMode,excludeButtons:t.excludeButtons,isRelevance:t.isRelevance},on:{doEvent:t.doEvent,change:t.baseChange,changeParameter:t.onChangeParameter,changeId:t.onChangeId,changeBtn:t.onChangeBtn,closed:t.closed,relationOk:r=>t.$emit("relationOk",r),ok:function(r){return t.$emit("ok")},onLoadCompleted:t.beaseLoadComplete}})},m=[],h=o.normalizeComponent(n,f,m,!1,null,"52dfaf58",null,null);const d=h.exports;exports.FormDesigner=d;exports.formMixins=i;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
2
|
import { n as normalizeComponent, m as mapGetters } from "./components.chartbi.7356b244.mjs";
|
|
3
3
|
import { K as baseCheckPermission, L as onlineBizProcessGetconfig, M as onlineBizProcessStageDetails, N as onlineBizProcessStageSave, O as baseEdit, P as baseAdd, f as baseDetails, Q as baseEnable, R as baseDeactivate } from "./http.main.aefea27d.mjs";
|
|
4
|
-
import { g as getType, f as formItems, l as layoutItems } from "./page.designer.componentstree.
|
|
4
|
+
import { g as getType, f as formItems, l as layoutItems } from "./page.designer.componentstree.a256ff7a.mjs";
|
|
5
5
|
import { h as formatting, u as uuid$1, j as convertCurrency, k as getCurrentTime, l as getMultiple } from "./utils.util.js.333daba2.mjs";
|
|
6
|
-
import { u as usageBusinessRules } from "./components.table.
|
|
6
|
+
import { u as usageBusinessRules } from "./components.table.d79f5fa3.mjs";
|
|
7
7
|
import { a as codeGenerateGetDetail } from "./http.codegeneratemanage.b123bab3.mjs";
|
|
8
8
|
import { g as getDupRecordsSysDupRules } from "./http.duplicatechecking.9b79ce21.mjs";
|
|
9
9
|
const index_vue_vue_type_style_index_0_scoped_653cd790_lang = "", _sfc_main$2 = {
|
|
@@ -39,7 +39,7 @@ const index_vue_vue_type_style_index_0_scoped_653cd790_lang = "", _sfc_main$2 =
|
|
|
39
39
|
showMiddleware: !1
|
|
40
40
|
};
|
|
41
41
|
},
|
|
42
|
-
components: { LayoutBlocks: () => import("./layoutBlocks.
|
|
42
|
+
components: { LayoutBlocks: () => import("./layoutBlocks.0784592a.mjs") },
|
|
43
43
|
computed: {
|
|
44
44
|
options() {
|
|
45
45
|
return this.record.options;
|
|
@@ -1173,7 +1173,7 @@ var _sfc_render$1 = function() {
|
|
|
1173
1173
|
null,
|
|
1174
1174
|
null
|
|
1175
1175
|
);
|
|
1176
|
-
const ProcessFlow = __component__$1.exports,
|
|
1176
|
+
const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_scoped_0c1e8f0b_lang = "", _sfc_main = {
|
|
1177
1177
|
name: "GdFormBuild",
|
|
1178
1178
|
props: {
|
|
1179
1179
|
modeType: {
|
|
@@ -1288,7 +1288,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1288
1288
|
ProcessFlow,
|
|
1289
1289
|
BuildBlocks: () => Promise.resolve().then(() => index),
|
|
1290
1290
|
DataAssign: () => import("./components.dataassign.e398cc99.mjs"),
|
|
1291
|
-
Duplicate: () => import("./main.
|
|
1291
|
+
Duplicate: () => import("./main.44efe912.mjs"),
|
|
1292
1292
|
TeamSharing: () => import("./components.teamsharing.b9f112cf.mjs")
|
|
1293
1293
|
},
|
|
1294
1294
|
methods: {
|
|
@@ -1677,22 +1677,11 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1677
1677
|
},
|
|
1678
1678
|
setFormRecord(s) {
|
|
1679
1679
|
return new Promise((t, a) => {
|
|
1680
|
-
this.formRecordSource = JSON.stringify(s), this.formData = JSON.parse(s.formconfig), this.getTableData(),
|
|
1681
|
-
formRecordSource: this.formRecordSource,
|
|
1682
|
-
formRecord: this.formRecord,
|
|
1683
|
-
formData: this.formData,
|
|
1684
|
-
allField: this.allField,
|
|
1685
|
-
sysViewButtons: this.sysViewButtons
|
|
1686
|
-
});
|
|
1687
|
-
});
|
|
1688
|
-
},
|
|
1689
|
-
setFormRecordInit(s) {
|
|
1690
|
-
return new Promise((t, a) => {
|
|
1691
|
-
if (this.formRecordSource = JSON.stringify(s), this.formRecord = s, this.formData = JSON.parse(s.formconfig), this.titlePrefix = this.formData.options.prefixTransKey ? this.$i18nt(this.formData.options.prefixTransKey, this.formData.options.titlePrefix) : "", this.businessConfig = JSON.parse(s.businessconfig), this.allField = this.getItemList(), ["iframe", "editForm", "component"].includes(this.modeType)) {
|
|
1680
|
+
if (this.formRecordSource = JSON.stringify(s), this.formRecord = s, this.formData = JSON.parse(s.formconfig), this.titlePrefix = this.formData.options.prefixTransKey ? this.$i18nt(this.formData.options.prefixTransKey, this.formData.options.titlePrefix) : "", this.businessConfig = JSON.parse(s.businessconfig), this.allField = this.getItemList(), this.getTableData(), ["iframe", "editForm", "component"].includes(this.modeType)) {
|
|
1692
1681
|
const i = this.baseRelationBtnShow();
|
|
1693
1682
|
this.sysViewButtons = this.formRecord.sysbuttons.map((o) => (o.show = i, o.displayName = o.displayname, o.transKey = o.transkey ? `Dynamics.${o.transkey}` : null, o));
|
|
1694
1683
|
}
|
|
1695
|
-
|
|
1684
|
+
t({
|
|
1696
1685
|
formRecordSource: this.formRecordSource,
|
|
1697
1686
|
formRecord: this.formRecord,
|
|
1698
1687
|
formData: this.formData,
|
|
@@ -1716,7 +1705,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1716
1705
|
});
|
|
1717
1706
|
},
|
|
1718
1707
|
async addInitData() {
|
|
1719
|
-
|
|
1708
|
+
this.baseInitData(), this.openProcessFlow(this.record), this.$nextTick(() => {
|
|
1720
1709
|
setTimeout(async () => {
|
|
1721
1710
|
this.$refs.ruleForm.resetFields(), this.baseUsageRules(), this.fkbaseMountData(), this.onLoadCompleted("show"), this.allField.filter((i) => ["uploadImg", "uploadFile"].includes(i.type)).forEach((i) => {
|
|
1722
1711
|
if (i.setData) {
|
|
@@ -1736,7 +1725,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1736
1725
|
async open(s) {
|
|
1737
1726
|
this.confirmLoading = !0, this.title = s.title !== void 0 ? s.title : this.title;
|
|
1738
1727
|
const t = s.width !== void 0 ? s.width : this.options.width + this.options.widthUnit;
|
|
1739
|
-
if (this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.record = s, this.id = s.id ? s.id : s.data ? s.data.id : "", this.visible = !0, this.showValTabs = !1, await this.
|
|
1728
|
+
if (this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.record = s, this.id = s.id ? s.id : s.data ? s.data.id : "", this.visible = !0, this.showValTabs = !1, this.baseInitData(), await this.setFormRecord(JSON.parse(this.formRecordSource)), this.openProcessFlow(s), this.$nextTick(() => {
|
|
1740
1729
|
setTimeout(() => {
|
|
1741
1730
|
this.$refs.ruleForm.resetFields();
|
|
1742
1731
|
}, 0);
|
|
@@ -1755,10 +1744,10 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1755
1744
|
}
|
|
1756
1745
|
this.id ? this.getDetail() : this.$nextTick(() => {
|
|
1757
1746
|
setTimeout(() => {
|
|
1758
|
-
this.baseUsageRules(), this.fkbaseMountData(), this.onLoadCompleted("show")
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
},
|
|
1747
|
+
this.baseUsageRules(), this.fkbaseMountData(), this.onLoadCompleted("show");
|
|
1748
|
+
}, 20), setTimeout(() => {
|
|
1749
|
+
this.oldvalue = JSON.stringify(this.parameterData), this.confirmLoading = !1;
|
|
1750
|
+
}, 300);
|
|
1762
1751
|
});
|
|
1763
1752
|
},
|
|
1764
1753
|
async openDisplay(s) {
|
|
@@ -1766,14 +1755,14 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1766
1755
|
return;
|
|
1767
1756
|
this.confirmLoading = !0, this.title = s.title !== void 0 ? s.title : this.title;
|
|
1768
1757
|
const t = s.width !== void 0 ? s.width : this.options && this.options.width ? this.options.width + this.options.widthUnit : this.width;
|
|
1769
|
-
this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.visible = !0,
|
|
1758
|
+
this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.visible = !0, this.$nextTick(() => {
|
|
1770
1759
|
this.baseDisableALL(), setTimeout(() => {
|
|
1771
|
-
this.processingData(s);
|
|
1760
|
+
this.baseInitData(), this.processingData(s);
|
|
1772
1761
|
}, 300);
|
|
1773
1762
|
});
|
|
1774
1763
|
},
|
|
1775
1764
|
async setDisplayId(s) {
|
|
1776
|
-
|
|
1765
|
+
baseDetails(s).then((t) => {
|
|
1777
1766
|
if (t.code === 200) {
|
|
1778
1767
|
const a = this.baseFormatterData(t.data[0]);
|
|
1779
1768
|
this.parameterData = a, this.processingData(t.data[0]);
|
|
@@ -1785,7 +1774,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1785
1774
|
const t = s.width !== void 0 ? s.width : this.options.width + this.options.widthUnit;
|
|
1786
1775
|
this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.visible = !0;
|
|
1787
1776
|
const a = s.data.id ? String(s.data.id).split("u") : [];
|
|
1788
|
-
await this.
|
|
1777
|
+
this.baseInitData(), await this.setFormRecord(JSON.parse(this.formRecordSource)), a.length > 1 ? this.$nextTick(() => {
|
|
1789
1778
|
this.baseDisableALL(), setTimeout(() => {
|
|
1790
1779
|
this.processingData(s.data);
|
|
1791
1780
|
}, 300);
|
|
@@ -1979,7 +1968,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
1979
1968
|
},
|
|
1980
1969
|
baseInitData() {
|
|
1981
1970
|
const s = this.getInitColumnData();
|
|
1982
|
-
this.parameterData = Object.assign(this.baseFormatterData(s), { id: this.id });
|
|
1971
|
+
this.parameterData = Object.assign({}, this.baseFormatterData(s), { id: this.id }), this.$emit("changeParameter", this.parameterData);
|
|
1983
1972
|
},
|
|
1984
1973
|
baseEnable(s = 1) {
|
|
1985
1974
|
return this.id === "" ? this.baseEnableDisable(s) : baseCheckPermission({
|
|
@@ -2224,8 +2213,8 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
2224
2213
|
["tabs", "collapse"].includes(r.type) && f.key && f.key === s.item.columnComment && r.setVisibility && r.setVisibility(s), f.list = o(f.list);
|
|
2225
2214
|
}) : ["containerPanel"].includes(r.type) && r.key === s.item.columnComment ? r.options.hidden = s.data !== "1" : ["drawerContainer"].includes(r.type) && (r.key === s.item.columnComment || r.key === `${s.item.columnComment}_popup`) && this.$nextTick(() => {
|
|
2226
2215
|
setTimeout(() => {
|
|
2227
|
-
r.setVisibility && r.setVisibility(s);
|
|
2228
|
-
},
|
|
2216
|
+
r.setVisibility && r.setVisibility(s), s.data !== "1" && (this.drawerContainerData = { visible: "closed", wid: "" });
|
|
2217
|
+
}, 200);
|
|
2229
2218
|
}), ["tabs"].includes(r.type) && s.data === "1" && !a && t.push(r);
|
|
2230
2219
|
const m = r.options.columnName ? r.options.columnName.toLowerCase() : r.options.columnName;
|
|
2231
2220
|
return a && r.options && m && i.push(r), ["card", "drawer", "dialog", "batch", "form", "flexLayout", "drawerContainer", "containerPanel"].includes(r.type) && (r.list = o(r.list)), r.componentName && r.componentName === s.item.columnComment && (r.options = Object.assign(r.options, {
|
|
@@ -2287,7 +2276,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
2287
2276
|
},
|
|
2288
2277
|
baseSetData(s, t = !0) {
|
|
2289
2278
|
const a = this.baseFormatterData(s);
|
|
2290
|
-
if (this.baseHandlefkData(a, s), this.$refs.processFlow.baseHandlefkData(a, s), Object.assign(this.parameterData, a), t)
|
|
2279
|
+
if (this.baseHandlefkData(a, s), this.$refs.processFlow && this.$refs.processFlow.baseHandlefkData(a, s), Object.assign(this.parameterData, a), t)
|
|
2291
2280
|
for (let i of Object.keys(a)) {
|
|
2292
2281
|
const o = this.allField.filter((n) => n.options.columnName === i)[0];
|
|
2293
2282
|
o && (this.baseUsageFieldRules(o), this.fkNotice(o, !0));
|
|
@@ -2468,10 +2457,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
2468
2457
|
this.closed();
|
|
2469
2458
|
},
|
|
2470
2459
|
closed(s = 1) {
|
|
2471
|
-
s === 1 && (this.fullscreen = !1, this.visible = !1, this.confirmLoading = !0, this.callbackFun = null, this
|
|
2472
|
-
visible: !1,
|
|
2473
|
-
wid: ""
|
|
2474
|
-
});
|
|
2460
|
+
s === 1 && (this.fullscreen = !1, this.visible = !1, this.confirmLoading = !0, this.callbackFun = null, this.$emit("closed"), this.emitRefresh.length > 0 && (this.$emit("ok"), this.emitRefresh = []), this.drawerContainerData = { visible: "closed", wid: "" });
|
|
2475
2461
|
},
|
|
2476
2462
|
toggleFullscreen() {
|
|
2477
2463
|
this.fullscreen = !this.fullscreen;
|
|
@@ -2490,7 +2476,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
|
|
|
2490
2476
|
}
|
|
2491
2477
|
},
|
|
2492
2478
|
beforeDestroy() {
|
|
2493
|
-
this.formData = {}, this.formRecordSource = "", this.formRecord = {}, this.businessConfig = [], this.allField = [];
|
|
2479
|
+
this.formData = {}, this.formRecordSource = "", this.formRecord = {}, this.businessConfig = [], this.drawerContainerData = { visible: "closed", wid: "" }, this.allField = [];
|
|
2494
2480
|
}
|
|
2495
2481
|
};
|
|
2496
2482
|
var _sfc_render = function s() {
|
|
@@ -2517,7 +2503,7 @@ var _sfc_render = function s() {
|
|
|
2517
2503
|
_sfc_staticRenderFns,
|
|
2518
2504
|
!1,
|
|
2519
2505
|
null,
|
|
2520
|
-
"
|
|
2506
|
+
"0c1e8f0b",
|
|
2521
2507
|
null,
|
|
2522
2508
|
null
|
|
2523
2509
|
);
|