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/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.18",
4
+ "version": "0.4.21",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
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
  };
@@ -501,6 +501,9 @@ export default {
501
501
  data = '';
502
502
  }
503
503
  let value = setting.condition[i].value;
504
+ if (value == null) {
505
+ value = '';
506
+ }
504
507
  let operator = setting.condition[i].operator;
505
508
  let result = false;
506
509
 
@@ -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
- if (applicationType.isCustom) {
179
- this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
180
- } else {
181
- this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
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
- this.form = this.$refs.customComponent.form;
185
- this.form.data = this.model;
186
- this.readonly = !this.task.activityInst.activity.isEditable;
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
- if (this.form.formView) {
189
- this.width = this.form.formView.width || '800';
190
- this.name = this.form.formView.name;
191
- this.description = this.form.formView.description;
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
- this.opened = true;
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 => {
@@ -219,6 +219,10 @@
219
219
  }
220
220
 
221
221
  /* 表格筛选 */
222
+ .filter {
223
+ margin-top: 4px;
224
+ }
225
+
222
226
  .filter .ivu-col {
223
227
  margin-top: 0px;
224
228
  margin-bottom: 4px;
package/test/main.js CHANGED
@@ -50,8 +50,8 @@ const app = createApp({
50
50
  });
51
51
 
52
52
  app.use(router);
53
- //app.use(store);
54
- //app.use(i18n);
55
53
  app.use(moohoBaseAdminPlus);
56
54
 
55
+ //app.config.globalProperties.$pages = pages;
56
+
57
57
  app.mount('#app');