mooho-base-admin-plus 2.5.20 → 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
|
* 数据变化事件
|