测评上传

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