|
@@ -1380,6 +1380,7 @@ const getSortTableData = async () => {
|
|
|
sortTableLoading.value = false
|
|
|
if (!error && code === 200) {
|
|
|
sortTableData.value = getArrValue(data['records'])
|
|
|
+ oldList.value = deepClone(sortTableData.value)
|
|
|
sortSearchForm.value.total = data['total'] || 0
|
|
|
} else {
|
|
|
sortTableData.value = []
|
|
@@ -1419,6 +1420,8 @@ const upSortClick = (index) => {
|
|
|
}
|
|
|
|
|
|
//保存
|
|
|
+const oldList = ref([])
|
|
|
+
|
|
|
const sortModalLoading = ref(false)
|
|
|
const sortModalSave = async () => {
|
|
|
await batchEditSaveApi(sortTableData.value)
|
|
@@ -1748,6 +1751,7 @@ const batchEditSaveApi = async (rows) => {
|
|
|
|
|
|
const { error, code } = await archiveFileApi.batchUpdateSort({
|
|
|
list: finalRows,
|
|
|
+ oldList:oldList.value,
|
|
|
}, false)
|
|
|
//判断状态
|
|
|
uploadSaveLoading.value = false
|