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