mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
Merge branch 'zcwy-zsx0223' into dev0223
This commit is contained in:
@@ -752,7 +752,7 @@ import {downLoadZip} from "@/utils/zipdownload";
|
|||||||
const state = reactive({
|
const state = reactive({
|
||||||
activeUrl: process.env.VUE_APP_ACT_API + '/evaluation/import',
|
activeUrl: process.env.VUE_APP_ACT_API + '/evaluation/import',
|
||||||
uploadTypes: true,
|
uploadTypes: true,
|
||||||
selectedRow: null,
|
selectedRows: [],
|
||||||
uploadStatusType: true,
|
uploadStatusType: true,
|
||||||
saveNotUpload: true,
|
saveNotUpload: true,
|
||||||
stateUpload: true,
|
stateUpload: true,
|
||||||
@@ -905,12 +905,18 @@ import {downLoadZip} from "@/utils/zipdownload";
|
|||||||
// 添加权限
|
// 添加权限
|
||||||
const customRow = (record) => ({
|
const customRow = (record) => ({
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
state.selectedRow = record
|
// 添加或移除记录,以确保其在选中数组中的状态
|
||||||
state.saveList.push(record)
|
const index = state.selectedRows.findIndex((item) => JSON.stringify(item) === JSON.stringify(record));
|
||||||
|
if (index === -1) {
|
||||||
|
state.selectedRows.push(record);
|
||||||
|
} else {
|
||||||
|
state.selectedRows.splice(index, 1);
|
||||||
|
}
|
||||||
|
state.saveList = state.selectedRows
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const getRowClassName = (record, index) => {
|
const getRowClassName = (record, index) => {
|
||||||
return state.selectedRow === record ? 'highlight-row' : '';
|
return state.selectedRows.some((selected) => JSON.stringify(selected) === JSON.stringify(record)) ? 'highlight-row' : '';
|
||||||
}
|
}
|
||||||
const paginationAdd = computed(() => ({
|
const paginationAdd = computed(() => ({
|
||||||
total: state.totalAdd,
|
total: state.totalAdd,
|
||||||
@@ -1556,6 +1562,7 @@ import {downLoadZip} from "@/utils/zipdownload";
|
|||||||
state.searchParam.createName = ''
|
state.searchParam.createName = ''
|
||||||
state.tableDataAdd = []
|
state.tableDataAdd = []
|
||||||
state.saveList = []
|
state.saveList = []
|
||||||
|
state.selectedRows = []
|
||||||
}
|
}
|
||||||
//搜索权限
|
//搜索权限
|
||||||
const searchSave = async () => {
|
const searchSave = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user