|
@@ -118,9 +118,13 @@
|
|
|
const data = getSelectRowKeys();
|
|
|
return data;
|
|
|
});
|
|
|
+ const mapCheckedValue = computed(() => (key) => {
|
|
|
+ return key === 1 ? true : false;
|
|
|
+ });
|
|
|
const checked = ref<boolean>(false);
|
|
|
const headerInfo = reactive<Recordable>({});
|
|
|
const searchInfo = reactive<Recordable>({});
|
|
|
+
|
|
|
const [
|
|
|
registerTable,
|
|
|
{
|
|
@@ -142,11 +146,16 @@
|
|
|
showIndexColumn: false,
|
|
|
immediate: false,
|
|
|
rowKey: 'id',
|
|
|
- pagination: { pageSize: 1000 },
|
|
|
+ pagination: false,
|
|
|
clickToRowSelect: false,
|
|
|
bordered: true,
|
|
|
afterFetch: (data) => {
|
|
|
console.log('data', data);
|
|
|
+ const res = data.map((i) => {
|
|
|
+ i.canShow = i.canShow === 1 ? true : false;
|
|
|
+ return i;
|
|
|
+ });
|
|
|
+ console.log('res', res);
|
|
|
|
|
|
const bindIds = data
|
|
|
.filter((i) => i.isBind === 1)
|
|
@@ -154,6 +163,10 @@
|
|
|
return pre.concat(current['id']);
|
|
|
}, []);
|
|
|
console.log('bindIds', bindIds);
|
|
|
+ data.map((i) => {
|
|
|
+ i.canShow === 1 ? true : false;
|
|
|
+ return i;
|
|
|
+ });
|
|
|
setSelectedRowKeys(bindIds);
|
|
|
},
|
|
|
});
|
|
@@ -163,6 +176,8 @@
|
|
|
searchInfo.brandId = data.id;
|
|
|
headerInfo.name = data.name;
|
|
|
headerInfo.sceneName = data.sceneName;
|
|
|
+ searchInfo.limit = 1000;
|
|
|
+ searchInfo.page = 1;
|
|
|
reload();
|
|
|
// const rawData = getRawDataSource();
|
|
|
|
|
@@ -222,6 +237,7 @@
|
|
|
t,
|
|
|
checked,
|
|
|
SelectRowsList,
|
|
|
+ mapCheckedValue,
|
|
|
};
|
|
|
},
|
|
|
});
|