mooho-base-admin-plus 0.4.18 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mooho-base-admin-plus.min.esm.js +25 -15
- package/dist/mooho-base-admin-plus.min.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/index.js +3 -0
- package/src/mixins/page.js +3 -0
- package/src/pages/common/task-form.vue +20 -14
- package/src/styles/css/default.css +4 -0
- package/test/main.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -180,6 +180,9 @@ const created = async app => {
|
|
|
180
180
|
// 初始化全屏监听
|
|
181
181
|
store.dispatch('admin/layout/listenFullscreen');
|
|
182
182
|
|
|
183
|
+
// 所有页面
|
|
184
|
+
app.config.globalProperties.$pages = pages;
|
|
185
|
+
|
|
183
186
|
// // 加载远程 i18n
|
|
184
187
|
// if (Setting.i18n.remote) loadRemoteLocaleMessages(i18n);
|
|
185
188
|
};
|
package/src/mixins/page.js
CHANGED
|
@@ -136,6 +136,8 @@
|
|
|
136
136
|
|
|
137
137
|
this.form = this.$refs.customComponent.form;
|
|
138
138
|
this.form.data = this.model;
|
|
139
|
+
this.form.onDataChange();
|
|
140
|
+
this.form.clearValidate();
|
|
139
141
|
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
140
142
|
|
|
141
143
|
if (this.form.formView) {
|
|
@@ -175,23 +177,27 @@
|
|
|
175
177
|
this.customComponent = this.$pages[applicationType.templateUrl]; // 动态组件
|
|
176
178
|
this.isCustom = true;
|
|
177
179
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
+
}
|
|
183
186
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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;
|
|
187
192
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
if (this.form.formView) {
|
|
194
|
+
this.width = this.form.formView.width || '800';
|
|
195
|
+
this.name = this.form.formView.name;
|
|
196
|
+
this.description = this.form.formView.description;
|
|
197
|
+
}
|
|
193
198
|
|
|
194
|
-
|
|
199
|
+
this.opened = true;
|
|
200
|
+
});
|
|
195
201
|
} else if (applicationType.pageMode == 'Form') {
|
|
196
202
|
this.form = this.$refs.form;
|
|
197
203
|
this.form.init(applicationType.formViewCode, async view => {
|