no message

This commit is contained in:
小陌 2024-02-27 17:20:16 +08:00
parent 71d0c069eb
commit ae54a2b982
2 changed files with 7 additions and 4 deletions

View File

@ -167,7 +167,7 @@ export default {
this.dialog = false
this.$msgbox({
title: "成功发起任务",
message: `<div><img style="height:200px" src="@/assets/img/tasks-example.png"/></div><p>已成功发起导出任务,您可以操作其他事务</p><p>稍后可在 <b>任务中心</b> 查看执行结果</p>`,
message: es.message || `<p>已成功发起导出任务,您可以操作其他事务</p><p>稍后可在 <b>任务中心</b> 查看执行结果</p>`,
type: "success",
confirmButtonText: "知道了",
dangerouslyUseHTMLString: true,

View File

@ -12,7 +12,7 @@
</el-button>
<x-file-export v-if="displayHandle()" v-bind="operation.export" :data="exportdata">
<template #default="{ open }">
<el-button type="info" icon="x-icon-download" @click="open">导出</el-button>
<el-button type="info" icon="x-icon-download" @click="open">{{ operation.export.name || '导出'}}</el-button>
</template>
<template #form="{ formData }">
<el-form-item label="导出条数限制" v-if="formData.limit">
@ -187,9 +187,12 @@ export default {
},
methods: {
displayHandle() {
if (this.$refs.table.total && this.operation.export && this.operation.export.showhandle) {
if (this.$refs.table.total && this.operation.export) {
if (this.operation.export.showhandle) {
return eval(this.operation.export.showhandle.replace(/\$/g, "this.search")) // $.id==1 $.ids.includes("4")
}
return true;
}
return false;
},
//