fix:完善代码块、代码块类目审核功能
This commit is contained in:
parent
2aa65b54eb
commit
b7821eb5ef
@ -284,21 +284,24 @@ function handleAudit(row) {
|
||||
const Ids = row.code_module_guid || selectionData.value.map(v => v.code_module_guid).join()
|
||||
console.log(Ids);
|
||||
|
||||
ElMessageBox.confirm("是否通过审核?", "系统提示", {
|
||||
ElMessageBox.prompt("是否通过审核?<br/> <span style='font-size:3px'>(可在下方输入框填写审核结果消息附言)</span>", "系统提示", {
|
||||
distinguishCancelAndClose: true,
|
||||
dangerouslyUseHTMLString: true,
|
||||
confirmButtonText: '通过',
|
||||
cancelButtonText: '驳回',
|
||||
type: "warning",
|
||||
})
|
||||
.then(async () => {
|
||||
.then(async (info) => {
|
||||
AuditData.code_module_audit = 2
|
||||
AuditData.code_module_guid = Ids
|
||||
AuditData.ps = info.value
|
||||
Audit()
|
||||
})
|
||||
.catch((action) => {
|
||||
if (action == 'cancel') {
|
||||
AuditData.code_module_audit = 3
|
||||
AuditData.code_module_guid = Ids
|
||||
AuditData.ps = info.value
|
||||
Audit()
|
||||
// console.log("拒绝");
|
||||
}
|
||||
@ -314,6 +317,7 @@ async function Audit() {
|
||||
if (res.code == 0) {
|
||||
AuditData.code_module_audit = null
|
||||
AuditData.code_module_guid = null
|
||||
AuditData.ps = null
|
||||
// ElMessageBox.alert(res.msg, "受理信息", {
|
||||
// dangerouslyUseHTMLString: true,
|
||||
// confirmButtonText: "确定",
|
||||
|
@ -112,7 +112,7 @@ async function getCustomerOptions() {
|
||||
//获取代码块类目树形列表
|
||||
const dataList = ref([])
|
||||
async function getList() {
|
||||
await getCodeModuleCategoryList({ all: true }).then((res) => {
|
||||
await getCodeModuleCategoryList({ all: true ,code_module_category_audit : 2}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
dataList.value = res.data
|
||||
}
|
||||
|
@ -107,10 +107,10 @@ async function getCustomerOptions() {
|
||||
customerOptionList.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
//获取代码块类目树形列表
|
||||
const dataList = ref([])
|
||||
async function getList() {
|
||||
await getCodeModuleCategoryList({ all: true }).then((res) => {
|
||||
await getCodeModuleCategoryList({ all: true ,code_module_category_audit : 2}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
dataList.value = res.data
|
||||
}
|
||||
|
@ -239,16 +239,18 @@ const handleDelete = data => {
|
||||
//审核数据
|
||||
const handleAudit = data => {
|
||||
let code_module_category_guid = data.map(v => v.code_module_category_guid).join()
|
||||
ElMessageBox.confirm("是否通过审核?", "系统提示", {
|
||||
ElMessageBox.prompt("是否通过审核?<br/> <span style='font-size:3px'>(可在下方输入框填写审核结果消息附言)</span>", "系统提示", {
|
||||
distinguishCancelAndClose: true,
|
||||
dangerouslyUseHTMLString: true,
|
||||
confirmButtonText: '通过',
|
||||
cancelButtonText: '驳回',
|
||||
type: "warning",
|
||||
})
|
||||
.then(async () => {
|
||||
.then(async (info) => {
|
||||
const res = await auditCodeModuleCategory({
|
||||
code_module_category_guid: code_module_category_guid,
|
||||
code_module_category_audit: 2,
|
||||
ps: info.value
|
||||
});
|
||||
if (res) {
|
||||
getList()
|
||||
@ -259,6 +261,7 @@ const handleAudit = data => {
|
||||
const res = await auditCodeModuleCategory({
|
||||
code_module_category_guid: code_module_category_guid,
|
||||
code_module_category_audit: 3,
|
||||
ps: info.value
|
||||
});
|
||||
if (res) {
|
||||
getList()
|
||||
|
@ -54,6 +54,21 @@
|
||||
<template #customer_message_reading_status='scope'>
|
||||
<dict-tag :options='reading_status' :value='scope.row.customer_message_reading_status' />
|
||||
</template>
|
||||
<template #customer_message_content="scope">
|
||||
<el-tooltip class="box-item" effect="dark" :content="scope.row.customer_message_content" placement="top">
|
||||
<span style="white-space: nowrap;">{{ scope.row.customer_message_content }}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #customer_message_title="scope">
|
||||
<el-tooltip class="box-item" effect="dark" :content="scope.row.customer_message_title" placement="top">
|
||||
<span style="white-space: nowrap;">{{ scope.row.customer_message_title }}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #customer_message_postscript="scope">
|
||||
<el-tooltip class="box-item" effect="dark" :content="scope.row.customer_message_postscript" placement="top">
|
||||
<span style="white-space: nowrap;">{{ scope.row.customer_message_postscript }}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #chaoz="scope">
|
||||
<el-space>
|
||||
<el-dropdown @command="handleCommand">
|
||||
@ -120,12 +135,12 @@ const column = [
|
||||
{
|
||||
prop: "customer_message_title",
|
||||
label: '标题',
|
||||
width: '150'
|
||||
width: '200'
|
||||
},
|
||||
{
|
||||
prop: "customer_message_content",
|
||||
label: '内容',
|
||||
width: '150'
|
||||
width: '200'
|
||||
},
|
||||
{
|
||||
prop: "customer_message_postscript",
|
||||
|
Loading…
Reference in New Issue
Block a user