|
@@ -26,11 +26,27 @@ const props = defineProps({
|
|
|
type: Object,
|
|
|
default: () => ({})
|
|
|
},
|
|
|
+ baseData:{
|
|
|
+ type: Object,
|
|
|
+ default: () => ({})
|
|
|
+ },
|
|
|
+ contractId:{
|
|
|
+ type: String,
|
|
|
+ default: () => ('')
|
|
|
+ },
|
|
|
+ tableTypeValue:{
|
|
|
+ type: String,
|
|
|
+ default: () => ('')
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
//变量
|
|
|
const uploadData = ref(props.datas)
|
|
|
const fileListData = ref(props.fileList);
|
|
|
+const contractId = ref(props.contractId);
|
|
|
+const tableType = ref(props.tableTypeValue);
|
|
|
+const baseData = ref(props.baseData);
|
|
|
+
|
|
|
const action = '/api/blade-business/detection/self/add-buss-file';
|
|
|
const accept = 'image/png,image/jpg,image/jpeg,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword';
|
|
|
const uploadDisabled = ref(false)
|
|
@@ -109,10 +125,14 @@ const uploadPreview = ({url}) => {
|
|
|
|
|
|
//删除文件
|
|
|
const delUploadData = async ({id}) => {
|
|
|
+
|
|
|
loadingText.value = '删除中...'
|
|
|
uploadDisabled.value = true
|
|
|
- const {error, code} = await wbsApi.removeBussFile({
|
|
|
- ids: id
|
|
|
+ const {error, code} = await wbsApi.removeBussFile1({
|
|
|
+ ids: id,
|
|
|
+ tableType:tableType.value,
|
|
|
+ contractId:contractId.value,
|
|
|
+ id:baseData.value.id
|
|
|
})
|
|
|
uploadDisabled.value = false
|
|
|
if (!error && code === 200) {
|