测评上传

This commit is contained in:
zhangsir
2024-03-28 14:29:14 +08:00
parent e1e5dfe28e
commit ce0aa60220

View File

@@ -1071,11 +1071,13 @@ import { message } from "ant-design-vue";
};
//报告上传
const bgupload = () => {
state.valueAll = []
state.bg_check = true;
state.formData = {}
}
const bgupload1 = (record) => {
console.log(record,'record')
state.valueAll = []
state.uploadDownId =record.id
state.btShowEdit = trueFalse(record.permission,2)
state.uploadId = record.id
@@ -1091,7 +1093,7 @@ import { message } from "ant-design-vue";
const of_exit = () => {
state.bg_check = false;
state.errorMessage = ''
state.uploadId = ''
// state.uploadId = ''
state.uploadName = ''
state.loadData = false
state.uploadStatus = true
@@ -1131,7 +1133,9 @@ import { message } from "ant-design-vue";
})
}
if(state.valueAll.length != 0 && !state.loadData){
state.bg_results = true
if(state.valueAll.length >1){
state.bg_results = true
}
state.valueAll.forEach((item)=>{
if(item.createId){
item.createId = userInfo.value.userId
@@ -1142,6 +1146,9 @@ import { message } from "ant-design-vue";
if(res.code == 200){
message.success(res.msg)
}
if(res.data.code == -1){
message.error(res.msg)
}
console.log(res,'aaa')
})
}
@@ -1369,6 +1376,7 @@ import { message } from "ant-design-vue";
state.bg_addsetting = false
state.searchParam.createName = ''
state.tableDataAdd = []
state.saveList = []
}
//搜索权限
const searchSave = async () => {
@@ -1410,6 +1418,7 @@ import { message } from "ant-design-vue";
const of_power = () => {
state.bg_power = false
state.bg_power2 = false
state.powerStatus = {}
state.permissionId = ''
state.checkclick = []
}