Commit 7d0e34cf authored by chenjiahao's avatar chenjiahao

數據服務-API數據安全-分類分級-可拖拽

parent f96cc903
......@@ -43,7 +43,7 @@
const { createMessage } = useMessage();
const route = useRoute();
let tableData = reactive(tableList);
let tableData = ref(tableList);
const [registerModal, { openModal }] = useModal();
const [registerImport, { openModal: openImportModal }] = useModal();
const searchInfo = reactive<Recordable>({});
......@@ -176,7 +176,12 @@
// 得到目标数据序号
target = index;
// 这里就是让数据位置互换,让视图更新 你们可以看record,index的输出,看是什么
[dataSource[source], dataSource[target]] = [dataSource[target], dataSource[source]];
console.log(tableData);
// [tableData.value[source], tableData.value[target]] = [tableData.value[target], tableData.value[source]];
const temp = ref();
temp.value = tableData.value[source];
tableData.value[source] = tableData.value[target];
tableData.value[target] = temp.value;
console.log(record, index, 'target', source, target);
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment