mooho-base-admin-plus 2.5.19 → 2.5.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
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
@update:model-value="$event => setData(data, column.code, $event)"
|
|
356
356
|
@on-change="selected => onSelectDataChange(column, selected)"
|
|
357
357
|
>
|
|
358
|
-
<Radio v-for="item in getDataSource(data, column)" :key="item.id" :label="item.id" :disabled="readonly || column.isReadonly">
|
|
358
|
+
<Radio v-for="item in getDataSource(data, column)" :key="item.id" :label="item.id.toString" :disabled="readonly || column.isReadonly">
|
|
359
359
|
<span>{{ item.name }}</span>
|
|
360
360
|
</Radio>
|
|
361
361
|
</RadioGroup>
|
|
@@ -1178,7 +1178,16 @@
|
|
|
1178
1178
|
|
|
1179
1179
|
// 默认第一项
|
|
1180
1180
|
if (data) {
|
|
1181
|
-
if (
|
|
1181
|
+
if (
|
|
1182
|
+
column.isDefaultFirst &&
|
|
1183
|
+
res.data.length > 0 &&
|
|
1184
|
+
(this.parseData(data, column.code) == null ||
|
|
1185
|
+
!res.data.some(item => {
|
|
1186
|
+
return this.parseData(data, column.code) == this.parseData(item, column.sourceDataCode);
|
|
1187
|
+
}))
|
|
1188
|
+
) {
|
|
1189
|
+
console.log('xxx', this.parseData(data, column.code), res.data);
|
|
1190
|
+
|
|
1182
1191
|
this.setData(data, column.code, this.parseData(res.data[0], column.sourceDataCode));
|
|
1183
1192
|
/**
|
|
1184
1193
|
* 数据变化事件
|
|
@@ -1245,7 +1245,9 @@
|
|
|
1245
1245
|
this.total = data.length;
|
|
1246
1246
|
|
|
1247
1247
|
// 如果超出页码,设为最后一页
|
|
1248
|
-
if (this.
|
|
1248
|
+
if (this.total == 0) {
|
|
1249
|
+
this.current = 1;
|
|
1250
|
+
} else if (this.current > Math.ceil(this.total / this.size)) {
|
|
1249
1251
|
this.current = Math.ceil(this.total / this.size);
|
|
1250
1252
|
}
|
|
1251
1253
|
|