fix:代码块及其类目审核功能提示框优化

This commit is contained in:
xjh 2023-08-03 11:47:46 +08:00
parent b7821eb5ef
commit 1d5696acbc
2 changed files with 38 additions and 40 deletions

View File

@ -283,32 +283,31 @@ const AuditData = reactive({
function handleAudit(row) {
const Ids = row.code_module_guid || selectionData.value.map(v => v.code_module_guid).join()
console.log(Ids);
ElMessageBox.prompt("是否通过审核?<br/> <span style='font-size:3px'>(可在下方输入框填写审核结果消息附言)</span>", "系统提示", {
distinguishCancelAndClose: true,
dangerouslyUseHTMLString: true,
ElMessageBox({
title: '系统提示',
message: '是否通过审核?',
showCancelButton: true,
confirmButtonText: '通过',
cancelButtonText: '驳回',
showInput: true,
distinguishCancelAndClose: true,
type: "warning",
})
.then(async (info) => {
inputPlaceholder: '可填写审核结果消息附言',
beforeClose: async (action, instance, done) => {
if (action === 'confirm') {
AuditData.code_module_audit = 2
AuditData.code_module_guid = Ids
AuditData.ps = info.value
AuditData.ps = instance.inputValue
Audit()
})
.catch((action) => {
if (action == 'cancel') {
} else if (action === 'cancel') {
AuditData.code_module_audit = 3
AuditData.code_module_guid = Ids
AuditData.ps = info.value
AuditData.ps = instance.inputValue
Audit()
// console.log("");
}
else {
// console.log("");
}
})
done()
},
}).catch(() => { })
}
//

View File

@ -239,35 +239,34 @@ const handleDelete = data => {
//
const handleAudit = data => {
let code_module_category_guid = data.map(v => v.code_module_category_guid).join()
ElMessageBox.prompt("是否通过审核?<br/> <span style='font-size:3px'>(可在下方输入框填写审核结果消息附言)</span>", "系统提示", {
distinguishCancelAndClose: true,
dangerouslyUseHTMLString: true,
ElMessageBox({
title: '系统提示',
message: '是否通过审核?',
showCancelButton: true,
confirmButtonText: '通过',
cancelButtonText: '驳回',
showInput: true,
distinguishCancelAndClose: true,
type: "warning",
})
.then(async (info) => {
inputPlaceholder: '可填写审核结果消息附言',
beforeClose: async (action, instance, done) => {
if (action === 'confirm') {
const res = await auditCodeModuleCategory({
code_module_category_guid: code_module_category_guid,
code_module_category_audit: 2,
ps: info.value
ps: instance.inputValue
});
if (res) {
getList()
}
})
.catch(async (action) => {
if (action == 'cancel') {
} else if (action === 'cancel') {
const res = await auditCodeModuleCategory({
code_module_category_guid: code_module_category_guid,
code_module_category_audit: 3,
ps: info.value
ps: instance.inputValue
});
if (res) {
}
getList()
}
}
})
done()
},
}).catch(() => { })
};
//