mooho-base-admin-plus 2.4.42 → 2.4.44

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": "2.4.42",
4
+ "version": "2.4.44",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -14,7 +14,7 @@
14
14
  <Button :size="size" custom-icon="fa fa-search" @click="dialogSelectOpen()"></Button>
15
15
  </template>
16
16
  </Input>
17
- <modal-table ref="dialogTable" :view-code="source" :selectEnable="multi" :check-cross-page="true" :footer-enable="multi" :load-data-enable="loadDataEnable" v-if="dialogActive">
17
+ <modal-table ref="dialogTable" :view-code="source" :autoLoad="false" :selectEnable="multi" :check-cross-page="true" :footer-enable="multi">
18
18
  <template #command="{ row }">
19
19
  <Button size="small" v-if="!multi" type="primary" custom-icon="fa fa-check" @click="dialogCheck(row)">{{ $t('Front_Btn_Select') }}</Button>
20
20
  </template>
@@ -42,7 +42,6 @@
42
42
  //changed: false,
43
43
  selected: null,
44
44
  selectedData: null,
45
- dialogActive: false,
46
45
  loadDataEnable: true
47
46
  };
48
47
  },
@@ -218,7 +217,15 @@
218
217
  // 弹出选择框
219
218
  dialogSelectOpen() {
220
219
  if (!this.readonly && this.source) {
221
- this.dialogActive = true;
220
+ if (this.param) {
221
+ // 参数完整
222
+ this.loadDataEnable = true;
223
+ } else {
224
+ // 参数不完整
225
+ this.loadDataEnable = false;
226
+ }
227
+
228
+ this.$refs.dialogTable.loadData();
222
229
 
223
230
  setTimeout(async () => {
224
231
  if (this.multi) {
@@ -229,14 +236,6 @@
229
236
  }
230
237
  }
231
238
 
232
- if (this.param) {
233
- // 参数完整
234
- this.loadDataEnable = true;
235
- } else {
236
- // 参数不完整
237
- this.loadDataEnable = false;
238
- }
239
-
240
239
  this.$refs.dialogTable.open(this.param);
241
240
  });
242
241
  }
@@ -138,32 +138,12 @@
138
138
  :placeholder="column.description"
139
139
  :transfer="true"
140
140
  @on-change="selected => onSelectDataChange(column, selected)"
141
- >
142
- <Option v-for="item in getDataSource(data, column)" :key="item.id" :value="item.id">{{ item.name }}</Option>
143
- </Select>
144
- </template>
145
-
146
- <template v-else-if="column.controlType === 'ComboSelect'">
147
- <Select
148
- :ref="'control_' + column.code"
149
- :model-value="parseComboData(data, column)"
150
- @update:model-value="$event => setData(data, column.code, $event)"
151
- :disabled="readonly || column.isReadonly"
152
- :clearable="true"
153
- filterable
154
- remote
155
- :remote-method="search => loadOption(data, column, search)"
156
- :style="{ width: column.controlWidth == null ? null : column.controlWidth + 'px' }"
157
- :placeholder="column.description"
158
- :transfer="true"
159
- @on-change="selected => onSelectDataChange(column, selected)"
160
141
  @on-query-change="query => onComboQueryChange(column, query)"
161
142
  @on-clear="loadOption(data, column, null)"
162
143
  >
163
144
  <Option v-for="item in getDataSource(data, column)" :key="item.id" :value="item.id">{{ item.name }}</Option>
164
145
  </Select>
165
146
  </template>
166
-
167
147
  <template v-else-if="column.controlType === 'MultiComboSelect'">
168
148
  <Select
169
149
  :ref="'control_' + column.code"