fix:代码块及其类目审核功能提示框优化
This commit is contained in:
parent
b7821eb5ef
commit
1d5696acbc
@ -283,32 +283,31 @@ const AuditData = reactive({
|
|||||||
function handleAudit(row) {
|
function handleAudit(row) {
|
||||||
const Ids = row.code_module_guid || selectionData.value.map(v => v.code_module_guid).join()
|
const Ids = row.code_module_guid || selectionData.value.map(v => v.code_module_guid).join()
|
||||||
console.log(Ids);
|
console.log(Ids);
|
||||||
|
ElMessageBox({
|
||||||
ElMessageBox.prompt("是否通过审核?<br/> <span style='font-size:3px'>(可在下方输入框填写审核结果消息附言)</span>", "系统提示", {
|
title: '系统提示',
|
||||||
distinguishCancelAndClose: true,
|
message: '是否通过审核?',
|
||||||
dangerouslyUseHTMLString: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: '通过',
|
confirmButtonText: '通过',
|
||||||
cancelButtonText: '驳回',
|
cancelButtonText: '驳回',
|
||||||
|
showInput: true,
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
type: "warning",
|
type: "warning",
|
||||||
})
|
inputPlaceholder: '可填写审核结果消息附言',
|
||||||
.then(async (info) => {
|
beforeClose: async (action, instance, done) => {
|
||||||
AuditData.code_module_audit = 2
|
if (action === 'confirm') {
|
||||||
AuditData.code_module_guid = Ids
|
AuditData.code_module_audit = 2
|
||||||
AuditData.ps = info.value
|
AuditData.code_module_guid = Ids
|
||||||
Audit()
|
AuditData.ps = instance.inputValue
|
||||||
})
|
Audit()
|
||||||
.catch((action) => {
|
} else if (action === 'cancel') {
|
||||||
if (action == 'cancel') {
|
|
||||||
AuditData.code_module_audit = 3
|
AuditData.code_module_audit = 3
|
||||||
AuditData.code_module_guid = Ids
|
AuditData.code_module_guid = Ids
|
||||||
AuditData.ps = info.value
|
AuditData.ps = instance.inputValue
|
||||||
Audit()
|
Audit()
|
||||||
// console.log("拒绝");
|
|
||||||
}
|
}
|
||||||
else {
|
done()
|
||||||
// console.log("关闭");
|
},
|
||||||
}
|
}).catch(() => { })
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 审核
|
// 审核
|
||||||
|
@ -239,35 +239,34 @@ const handleDelete = data => {
|
|||||||
//审核数据
|
//审核数据
|
||||||
const handleAudit = data => {
|
const handleAudit = data => {
|
||||||
let code_module_category_guid = data.map(v => v.code_module_category_guid).join()
|
let code_module_category_guid = data.map(v => v.code_module_category_guid).join()
|
||||||
ElMessageBox.prompt("是否通过审核?<br/> <span style='font-size:3px'>(可在下方输入框填写审核结果消息附言)</span>", "系统提示", {
|
ElMessageBox({
|
||||||
distinguishCancelAndClose: true,
|
title: '系统提示',
|
||||||
dangerouslyUseHTMLString: true,
|
message: '是否通过审核?',
|
||||||
|
showCancelButton: true,
|
||||||
confirmButtonText: '通过',
|
confirmButtonText: '通过',
|
||||||
cancelButtonText: '驳回',
|
cancelButtonText: '驳回',
|
||||||
|
showInput: true,
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
type: "warning",
|
type: "warning",
|
||||||
})
|
inputPlaceholder: '可填写审核结果消息附言',
|
||||||
.then(async (info) => {
|
beforeClose: async (action, instance, done) => {
|
||||||
const res = await auditCodeModuleCategory({
|
if (action === 'confirm') {
|
||||||
code_module_category_guid: code_module_category_guid,
|
const res = await auditCodeModuleCategory({
|
||||||
code_module_category_audit: 2,
|
code_module_category_guid: code_module_category_guid,
|
||||||
ps: info.value
|
code_module_category_audit: 2,
|
||||||
});
|
ps: instance.inputValue
|
||||||
if (res) {
|
});
|
||||||
getList()
|
} else if (action === 'cancel') {
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(async (action) => {
|
|
||||||
if (action == 'cancel') {
|
|
||||||
const res = await auditCodeModuleCategory({
|
const res = await auditCodeModuleCategory({
|
||||||
code_module_category_guid: code_module_category_guid,
|
code_module_category_guid: code_module_category_guid,
|
||||||
code_module_category_audit: 3,
|
code_module_category_audit: 3,
|
||||||
ps: info.value
|
ps: instance.inputValue
|
||||||
});
|
});
|
||||||
if (res) {
|
|
||||||
getList()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
getList()
|
||||||
|
done()
|
||||||
|
},
|
||||||
|
}).catch(() => { })
|
||||||
};
|
};
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
|
Loading…
Reference in New Issue
Block a user