|
@@ -54,6 +54,7 @@ import { DETELEFILE, DOWNFILE, REFIENAME, UPLOADFILE } from '../../constant';
|
|
|
const globalPopup = inject<GlobalPopup>('globalPopup')
|
|
|
const emits = defineEmits(['refreshData']);
|
|
|
const attachmenttable = ref([])
|
|
|
+const transitionVal = ref<any>({})
|
|
|
const information: any = ref({})
|
|
|
const renameDialogVisible = ref(false)
|
|
|
const renameVal = ref('')
|
|
@@ -84,7 +85,8 @@ function saveEditClue() {
|
|
|
globalPopup?.showWarning('请输入文件名称')
|
|
|
return
|
|
|
}
|
|
|
- const clueId = information.value.id
|
|
|
+ // const clueId = information.value.id
|
|
|
+ const clueId = transitionVal.value.id
|
|
|
post(REFIENAME, { name: renameVal.value, id: clueId }).then((res) => {
|
|
|
if (res.code == 'ok') {
|
|
|
renameDialogVisible.value = false
|
|
@@ -97,6 +99,7 @@ function saveEditClue() {
|
|
|
// 显示弹窗
|
|
|
function showVisible(item: any) {
|
|
|
renameVal.value = JSON.parse(JSON.stringify(item.name))
|
|
|
+ transitionVal.value = JSON.parse(JSON.stringify(item))
|
|
|
renameDialogVisible.value = true
|
|
|
}
|
|
|
|