|
@@ -302,7 +302,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
<template #action="{row,index}">
|
|
<template #action="{row,index}">
|
|
- <HcFileUpload1 v-if="row.id" @change="newUploadsChange($event, row)" style="display:inline-block"
|
|
|
|
|
|
+ <HcFileUpload1 v-if="tableUploadType== 'edit'" @change="newUploadsChange($event, row)" style="display:inline-block"
|
|
@progress="newUploadsProgress($event, row)">
|
|
@progress="newUploadsProgress($event, row)">
|
|
<el-button :loading="row['newBtnLoading']" plain size="small" type="primary">替换</el-button>
|
|
<el-button :loading="row['newBtnLoading']" plain size="small" type="primary">替换</el-button>
|
|
</HcFileUpload1>
|
|
</HcFileUpload1>
|
|
@@ -311,8 +311,8 @@
|
|
</HcTable>
|
|
</HcTable>
|
|
<template #footer>
|
|
<template #footer>
|
|
<div class="lr-dialog-footer">
|
|
<div class="lr-dialog-footer">
|
|
- <div class="left flex items-center">
|
|
|
|
- <el-button type="primary" hc-btn @click="uploadFileClick">
|
|
|
|
|
|
+ <div class="left flex items-center" >
|
|
|
|
+ <el-button type="primary" hc-btn @click="uploadFileClick" v-if="tableUploadType== 'add'">
|
|
<HcIcon name="add-circle"/>
|
|
<HcIcon name="add-circle"/>
|
|
<span>新增上传</span>
|
|
<span>新增上传</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -1251,7 +1251,8 @@ const uploadsChange = (item) => {
|
|
dutyUser: dutyUser.value,
|
|
dutyUser: dutyUser.value,
|
|
pdfFileUrl: item?.pdfUrl || '',
|
|
pdfFileUrl: item?.pdfUrl || '',
|
|
filePage: item?.page || '',
|
|
filePage: item?.page || '',
|
|
- isElement: 0
|
|
|
|
|
|
+ isElement: 0,
|
|
|
|
+ isUpdateUrl:0
|
|
})
|
|
})
|
|
tableUploadData.value = newArr
|
|
tableUploadData.value = newArr
|
|
} else {
|
|
} else {
|
|
@@ -1354,6 +1355,7 @@ const batchUploadCancel = () => {
|
|
//上传新文件
|
|
//上传新文件
|
|
const newUploadsChange = ({fileList}, row) => {
|
|
const newUploadsChange = ({fileList}, row) => {
|
|
if (fileList.length > 0) {
|
|
if (fileList.length > 0) {
|
|
|
|
+ tableUploadType.value = 'edit'
|
|
const item = fileList[0]
|
|
const item = fileList[0]
|
|
const name = item['originalName'] || ''
|
|
const name = item['originalName'] || ''
|
|
const fileName = name.substring(0, name.lastIndexOf("."))
|
|
const fileName = name.substring(0, name.lastIndexOf("."))
|
|
@@ -1363,6 +1365,7 @@ const newUploadsChange = ({fileList}, row) => {
|
|
row.fileUrl = item?.link || ''
|
|
row.fileUrl = item?.link || ''
|
|
row.pdfFileUrl = item?.pdfUrl || ''
|
|
row.pdfFileUrl = item?.pdfUrl || ''
|
|
row.filePage = item?.page || ''
|
|
row.filePage = item?.page || ''
|
|
|
|
+ row.isUpdateUrl=1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|