|
@@ -278,7 +278,7 @@ const openInsertDialog = (rows, fromId, aId) => {
|
|
|
const tableRowStyle = ({ row }) => {
|
|
|
// 只根据inType属性判断样式,确保排序后依然有效
|
|
|
if (row?.inType === 1) {
|
|
|
- return 'color: red;'
|
|
|
+ return 'color: orange;'
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -344,8 +344,8 @@ const insertDialogSave = async () => {
|
|
|
|
|
|
// 准备提交的数据,保留inType信息
|
|
|
const submitData = {
|
|
|
- targetId: insertModal.fileNumber,
|
|
|
- sourceId: archiveId.value,
|
|
|
+ targetId: archiveId.value,
|
|
|
+ sourceId: insertModal.fileNumber,
|
|
|
targetIndexFileId:currentRowId.value,
|
|
|
type: insertModal.type,
|
|
|
sourceArchiveFileIds: arrToId(selectedFiles.value),
|
|
@@ -353,13 +353,17 @@ const insertDialogSave = async () => {
|
|
|
}
|
|
|
insertDialogLoading.value = true
|
|
|
const { error, code, msg } = await tuningApi.insertArchives(submitData)
|
|
|
+ console.log(code, 'code')
|
|
|
+
|
|
|
insertDialogLoading.value = false
|
|
|
tableLoading.value = false
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success(msg)
|
|
|
insertDialog.value = false
|
|
|
resetForm()
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ window?.$message?.error(msg)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 重置表单
|