mooho-base-admin-plus 0.4.22 → 0.4.23

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.22",
4
+ "version": "0.4.23",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -118,114 +118,116 @@
118
118
  this.isMessageEnable = this.task.processInst.isMessageEnable;
119
119
  this.isCustom = false;
120
120
 
121
- if (this.task.activityInst.activity.pageMode == 'Page') {
122
- // 路由跳转
123
- this.$router.push({ path: this.task.activityInst.activity.routerPath, query: { taskID: row.id } });
124
- return;
125
- } else if (this.task.activityInst.activity.pageMode == 'Component') {
126
- // 动态组件
127
- this.customComponent = this.$pages[this.task.activityInst.activity.templateUrl]; // 动态组件
128
- this.isCustom = true;
121
+ setTimeout(async () => {
122
+ if (this.task.activityInst.activity.pageMode == 'Page') {
123
+ // 路由跳转
124
+ this.$router.push({ path: this.task.activityInst.activity.routerPath, query: { taskID: row.id } });
125
+ return;
126
+ } else if (this.task.activityInst.activity.pageMode == 'Component') {
127
+ // 动态组件
128
+ this.customComponent = this.$pages[this.task.activityInst.activity.templateUrl]; // 动态组件
129
+ this.isCustom = true;
129
130
 
130
- setTimeout(async () => {
131
- if (applicationType.isCustom) {
132
- this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
133
- } else {
134
- this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
135
- }
131
+ setTimeout(async () => {
132
+ if (applicationType.isCustom) {
133
+ this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
134
+ } else {
135
+ this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
136
+ }
137
+
138
+ this.form = this.$refs.customComponent.form;
139
+ this.form.data = this.model;
140
+ this.form.onDataChange();
141
+ this.form.clearValidate();
142
+ this.readonly = !this.task.activityInst.activity.isEditable;
143
+
144
+ if (this.form.formView) {
145
+ this.width = this.form.formView.width || '800';
146
+ this.name = this.form.formView.name;
147
+ this.description = this.form.formView.description;
148
+ }
136
149
 
137
- this.form = this.$refs.customComponent.form;
138
- this.form.data = this.model;
139
- this.form.onDataChange();
140
- this.form.clearValidate();
141
- this.readonly = !this.task.activityInst.activity.isEditable;
150
+ this.opened = true;
151
+ });
152
+ } else if (this.task.activityInst.activity.pageMode == 'Form') {
153
+ this.form = this.$refs.form;
154
+ this.form.init(this.task.activityInst.activity.formViewCode, async view => {
155
+ if (view.dataView.isCustom) {
156
+ this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
157
+ } else {
158
+ this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
159
+ }
142
160
 
143
- if (this.form.formView) {
161
+ this.readonly = !this.task.activityInst.activity.isEditable;
144
162
  this.width = this.form.formView.width || '800';
145
163
  this.name = this.form.formView.name;
146
164
  this.description = this.form.formView.description;
147
- }
165
+ this.form.data = this.model;
148
166
 
149
- this.opened = true;
150
- });
151
- } else if (this.task.activityInst.activity.pageMode == 'Form') {
152
- this.form = this.$refs.form;
153
- this.form.init(this.task.activityInst.activity.formViewCode, async view => {
154
- if (view.dataView.isCustom) {
155
- this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
156
- } else {
157
- this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
158
- }
167
+ setTimeout(async () => {
168
+ this.form.onDataChange();
169
+ this.form.clearValidate();
170
+ this.opened = true;
171
+ });
172
+ });
173
+ } else if (applicationType.pageMode == 'Page') {
174
+ this.$router.push({ path: applicationType.routerPath, query: { taskID: row.id } });
175
+ return;
176
+ } else if (applicationType.pageMode == 'Component') {
177
+ // 动态组件
178
+ this.customComponent = this.$pages[applicationType.templateUrl]; // 动态组件
179
+ this.isCustom = true;
159
180
 
160
- this.readonly = !this.task.activityInst.activity.isEditable;
161
- this.width = this.form.formView.width || '800';
162
- this.name = this.form.formView.name;
163
- this.description = this.form.formView.description;
164
- this.form.data = this.model;
181
+ setTimeout(async () => {
182
+ if (applicationType.isCustom) {
183
+ this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
184
+ } else {
185
+ this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
186
+ }
165
187
 
166
- setTimeout(() => {
188
+ this.form = this.$refs.customComponent.form;
189
+ this.form.data = this.model;
167
190
  this.form.onDataChange();
168
191
  this.form.clearValidate();
169
- this.opened = true;
170
- });
171
- });
172
- } else if (applicationType.pageMode == 'Page') {
173
- this.$router.push({ path: applicationType.routerPath, query: { taskID: row.id } });
174
- return;
175
- } else if (applicationType.pageMode == 'Component') {
176
- // 动态组件
177
- this.customComponent = this.$pages[applicationType.templateUrl]; // 动态组件
178
- this.isCustom = true;
192
+ this.readonly = !this.task.activityInst.activity.isEditable;
179
193
 
180
- setTimeout(async () => {
181
- if (applicationType.isCustom) {
182
- this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
183
- } else {
184
- this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
185
- }
194
+ if (this.form.formView) {
195
+ this.width = this.form.formView.width || '800';
196
+ this.name = this.form.formView.name;
197
+ this.description = this.form.formView.description;
198
+ }
186
199
 
187
- this.form = this.$refs.customComponent.form;
188
- this.form.data = this.model;
189
- this.form.onDataChange();
190
- this.form.clearValidate();
191
- this.readonly = !this.task.activityInst.activity.isEditable;
200
+ this.opened = true;
201
+ });
202
+ } else if (applicationType.pageMode == 'Form') {
203
+ this.form = this.$refs.form;
204
+ this.form.init(applicationType.formViewCode, async view => {
205
+ if (view.dataView.isCustom) {
206
+ this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
207
+ } else {
208
+ this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
209
+ }
192
210
 
193
- if (this.form.formView) {
211
+ this.readonly = !this.task.activityInst.activity.isEditable;
194
212
  this.width = this.form.formView.width || '800';
195
213
  this.name = this.form.formView.name;
196
214
  this.description = this.form.formView.description;
197
- }
215
+ this.form.data = this.model;
198
216
 
199
- this.opened = true;
200
- });
201
- } else if (applicationType.pageMode == 'Form') {
202
- this.form = this.$refs.form;
203
- this.form.init(applicationType.formViewCode, async view => {
204
- if (view.dataView.isCustom) {
205
- this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
206
- } else {
207
- this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
208
- }
209
-
210
- this.readonly = !this.task.activityInst.activity.isEditable;
211
- this.width = this.form.formView.width || '800';
212
- this.name = this.form.formView.name;
213
- this.description = this.form.formView.description;
214
- this.form.data = this.model;
215
-
216
- setTimeout(() => {
217
- this.form.onDataChange();
218
- this.form.clearValidate();
219
- this.opened = true;
217
+ setTimeout(() => {
218
+ this.form.onDataChange();
219
+ this.form.clearValidate();
220
+ this.opened = true;
221
+ });
220
222
  });
221
- });
222
- } else {
223
- this.error('Front_Msg_Setting_Error');
224
- return;
225
- }
223
+ } else {
224
+ this.error('Front_Msg_Setting_Error');
225
+ return;
226
+ }
226
227
 
227
- let res = await modelApi.query('Outcome', { activityFromID: row.activityInst.activityID });
228
- this.outcomes = res.data;
228
+ let res = await modelApi.query('Outcome', { activityFromID: row.activityInst.activityID });
229
+ this.outcomes = res.data;
230
+ });
229
231
  },
230
232
  // 执行结果
231
233
  async action(outcome) {