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
|
@@ -118,114 +118,116 @@
|
|
|
118
118
|
this.isMessageEnable = this.task.processInst.isMessageEnable;
|
|
119
119
|
this.isCustom = false;
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
this.form.
|
|
141
|
-
this.
|
|
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
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.form.
|
|
191
|
-
this.
|
|
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
|
-
|
|
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
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
223
|
+
} else {
|
|
224
|
+
this.error('Front_Msg_Setting_Error');
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
226
227
|
|
|
227
|
-
|
|
228
|
-
|
|
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) {
|