|
@@ -28,7 +28,7 @@
|
|
|
<el-col :span="12" style="width: 355px">
|
|
|
<el-alert
|
|
|
:closable="false"
|
|
|
- title="新建的需求业务报表,会在隔天01:00开始生成文件!"
|
|
|
+ title="申请导出后,文件会在几分钟后生成!"
|
|
|
type="warning"
|
|
|
>
|
|
|
</el-alert>
|
|
@@ -48,20 +48,6 @@
|
|
|
刷新
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <!-- <el-col
|
|
|
- :span="3"
|
|
|
- style="width: 66px; float: right"
|
|
|
- v-if="powers.some((item) => item == '003')"
|
|
|
- >
|
|
|
- <el-button
|
|
|
- :size="searchSize"
|
|
|
- type="success"
|
|
|
- style="float: right"
|
|
|
- @click="openModal('add', false)"
|
|
|
- >
|
|
|
- 添加
|
|
|
- </el-button>
|
|
|
- </el-col> -->
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -69,7 +55,10 @@
|
|
|
<template #status="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
|
- :type="scope.row.status == '1' ? 'warning' : 'success'"
|
|
|
+ :type="
|
|
|
+ (statusOptions.find((item) => item.id == scope.row.status) || {})
|
|
|
+ .type || ''
|
|
|
+ "
|
|
|
v-text="
|
|
|
(statusOptions.find((item) => item.id == scope.row.status) || {})
|
|
|
.label || '--'
|
|
@@ -77,6 +66,14 @@
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
<template #operation="{ scope }">
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ content="申请导出"
|
|
|
+ placement="top"
|
|
|
+ v-if="powers.some((item) => item == '049')"
|
|
|
+ >
|
|
|
+ <i class="el-icon-thumb tb-icon" @click="setStatus(scope.row.id)"></i>
|
|
|
+ </el-tooltip>
|
|
|
<el-tooltip
|
|
|
v-if="powers.some((item) => item == '049') && scope.row.status == '2'"
|
|
|
effect="dark"
|
|
@@ -88,36 +85,20 @@
|
|
|
@click="batchExport(scope.row.down_url)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '005')"
|
|
|
- effect="dark"
|
|
|
- content="编辑"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i class="el-icon-edit tb-icon" @click="openModal(scope.row)"></i>
|
|
|
- </el-tooltip>
|
|
|
</template>
|
|
|
</ex-table>
|
|
|
- <add-edit
|
|
|
- :sitem="sitem"
|
|
|
- :show-model="showModel"
|
|
|
- @refresh="searchList"
|
|
|
- @cancel="showModel = false"
|
|
|
- />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import asyncRequest from "@/apis/service/search/standBook";
|
|
|
import ExTable from "@/components/ExTableNew.vue";
|
|
|
-import addEdit from "./addEdit";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import urlConfig from "@/apis/url-config";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
export default {
|
|
|
name: "Account",
|
|
|
components: {
|
|
|
- addEdit,
|
|
|
ExTable,
|
|
|
},
|
|
|
mixins: [mixinPage, resToken],
|
|
@@ -137,15 +118,17 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- fileUrl: urlConfig.baseURL,
|
|
|
+ fileUrl: urlConfig.testURL,
|
|
|
// 状态
|
|
|
statusOptions: [
|
|
|
- { id: "1", label: "待执行" },
|
|
|
- { id: "2", label: "已完成" },
|
|
|
+ { id: "0", label: "待申请", type: "info" },
|
|
|
+ { id: "1", label: "系统处理中", type: "warning" },
|
|
|
+ { id: "2", label: "已完成", type: "success" },
|
|
|
+ { id: "3", label: "导出失败", type: "danger" },
|
|
|
],
|
|
|
loading: true,
|
|
|
showModel: false,
|
|
|
- sitem:null,
|
|
|
+ sitem: null,
|
|
|
parmValue: {
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
@@ -169,48 +152,34 @@ export default {
|
|
|
{
|
|
|
prop: "name",
|
|
|
label: "业务表名称",
|
|
|
- "min-width": "130px",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "start",
|
|
|
- label: "数据开始时间",
|
|
|
- "min-width": "140px",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "end",
|
|
|
- width: "140px",
|
|
|
- "min-width": "数据结束时间",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "apply_name",
|
|
|
- label: "申请人",
|
|
|
- "min-width": "70px",
|
|
|
},
|
|
|
{
|
|
|
prop: "status",
|
|
|
label: "状态",
|
|
|
_slot_: "status",
|
|
|
- "min-width": "70px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "remark",
|
|
|
+ label: "下载反馈备注",
|
|
|
},
|
|
|
|
|
|
{
|
|
|
prop: "expiretime",
|
|
|
label: "文件过期时间",
|
|
|
- "min-width": "140px",
|
|
|
- sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "updatetime",
|
|
|
+ label: "更新时间",
|
|
|
},
|
|
|
{
|
|
|
prop: "addtime",
|
|
|
label: "创建时间",
|
|
|
- "min-width": "140px",
|
|
|
- sortable: true,
|
|
|
},
|
|
|
{
|
|
|
prop: "",
|
|
|
label: "操作",
|
|
|
fixed: "right",
|
|
|
- width: "52px",
|
|
|
- _noset_: true,
|
|
|
+ width: "80px",
|
|
|
_slot_: "operation",
|
|
|
},
|
|
|
],
|
|
@@ -246,11 +215,37 @@ export default {
|
|
|
}, 500);
|
|
|
}
|
|
|
},
|
|
|
+ async setStatus(id) {
|
|
|
+ if (!this.loading) {
|
|
|
+ this.loading = true;
|
|
|
+ const model = {
|
|
|
+ id: id,
|
|
|
+ };
|
|
|
+ const res = await asyncRequest.download(model);
|
|
|
+ if (res && res.code === 0) {
|
|
|
+ this.loading = false;
|
|
|
+ this.$notify.success({
|
|
|
+ title: "申请成功,请等待系统执行完成!",
|
|
|
+ message: "",
|
|
|
+ });
|
|
|
+ await this.searchList();
|
|
|
+ } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
+ await this.logout();
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
async searchList() {
|
|
|
this.loading = true;
|
|
|
- const res = await asyncRequest.exportList(this.parmValue);
|
|
|
+ const res = await asyncRequest.hlist(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.tableData = res.data.list;
|
|
|
+ this.tableData.forEach((v) => {
|
|
|
+ if (v.status !== "3") {
|
|
|
+ v.remark = "";
|
|
|
+ }
|
|
|
+ });
|
|
|
this.pageInfo.total = Number(res.data.count);
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|