|
@@ -10,6 +10,7 @@ import { usePageSearch, type PageHooks } from "/@/hooks/page";
|
|
|
import DemandModifyModal from "./demand-modify-modal.vue";
|
|
|
import { usePermission } from "/@/hooks/core";
|
|
|
import { useBusinessSearch } from "../../_hooks";
|
|
|
+import ExecModal from "./exec-modal.vue";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import apis from "./config/apis";
|
|
|
|
|
@@ -18,13 +19,10 @@ const { searchConfig } = useBusinessSearch({
|
|
|
queryField: "companyNo"
|
|
|
});
|
|
|
|
|
|
-const showTableData = [
|
|
|
- {exceType:'立即',startTime:"申请后立即",report:"时间跨度短或数据量少"},
|
|
|
- {exceType:'延迟',startTime:"申请当天20:00:00",report:"时间跨度长或数据量多"},
|
|
|
-]
|
|
|
|
|
|
const pageName = "frontSubscribe";
|
|
|
const pageContentRef = ref<PageContentInstance | null>(null);
|
|
|
+const execModalRef = ref<InstanceType<typeof ExecModal> | null>(null);
|
|
|
const demandModifyModal = ref<InstanceType<typeof DemandModifyModal> | null>(null);
|
|
|
|
|
|
const { hasPermissionWithCode } = usePermission(pageName);
|
|
@@ -59,15 +57,8 @@ function handleCreate() {
|
|
|
:content-config="contentConfig"
|
|
|
lockKey="companyNo"
|
|
|
>
|
|
|
- <template #search_left>
|
|
|
- <el-table style="width:330px" size="small" border :data="showTableData">
|
|
|
- <el-table-column width="70px" label="执行类型" prop="exceType" />
|
|
|
- <el-table-column width="120px" label="开始执行时间" prop="startTime" />
|
|
|
- <el-table-column width="140px" label="适用报表" prop="report" />
|
|
|
- </el-table>
|
|
|
- </template>
|
|
|
-
|
|
|
<template #content_header>
|
|
|
+ <el-button type="" size="mini" @click="execModalRef?.onDisplay({})">查看执行类型说明</el-button>
|
|
|
<el-button type="primary" size="mini" @click="handleCreate">添加</el-button>
|
|
|
</template>
|
|
|
|
|
@@ -85,7 +76,7 @@ function handleCreate() {
|
|
|
:icon="useRenderIcon('download-line')"
|
|
|
/>
|
|
|
</el-link>
|
|
|
- <el-popconfirm title="是否确认删除该条记录?" @confirm="deleteItem(row.id)" v-if=" hasPermissionWithCode('17') && String(row.status) !== '2'">
|
|
|
+ <el-popconfirm title="是否确认删除该条记录?" @confirm="deleteItem(row.id)" v-if=" hasPermissionWithCode('17') && String(row.status) === '3'">
|
|
|
<template #reference>
|
|
|
<ElButton link size="small" type="primary" :icon="useRenderIcon('delete')" />
|
|
|
</template>
|
|
@@ -94,5 +85,6 @@ function handleCreate() {
|
|
|
</page-container>
|
|
|
|
|
|
<DemandModifyModal :is-business="true" ref="demandModifyModal" @refresh="pageContentRef.onSearch()" />
|
|
|
+ <ExecModal ref="execModalRef" />
|
|
|
</page-auth>
|
|
|
</template>
|