ce1de261
monkeyhouyi
专项行动
|
1
2
3
4
5
6
7
8
9
10
|
<template>
<!-- 专项行动填报情况 -->
<el-dialog
title="行动情况"
:close-on-click-modal="false"
:visible.sync="visible"
class="NCC-dialog NCC-dialog_center"
lock-scroll
width="70%"
>
|
87e6927c
monkeyhouyi
弹框样式
|
11
|
<el-row :gutter="15" style="height: 65vh" class="NCC-dialog-content">
|
ce1de261
monkeyhouyi
专项行动
|
12
|
<el-col :span="24" style="margin-bottom: 20px;">
|
d8af3866
monkeyhouyi
1
|
13
|
<el-col :span="10" class="form-item">
|
ce1de261
monkeyhouyi
专项行动
|
14
15
16
|
<div class="label w-100">行动标题:</div>
<div>{{ form.title }}</div>
</el-col>
|
d8af3866
monkeyhouyi
1
|
17
|
<el-col :span="10" class="form-item">
|
73755355
monkeyhouyi
优化
|
18
|
<div class="label w-100">截止时间:</div>
|
ce1de261
monkeyhouyi
专项行动
|
19
20
|
<div>{{ ncc.dateFormat(form.deadline) }}</div>
</el-col>
|
d8af3866
monkeyhouyi
1
|
21
22
23
|
<el-col :span="2" class="form-item">
<el-button type="primary" icon="el-icon-download" size="mini" @click="toExport" :loading="exportBtnLoading">导出</el-button>
</el-col>
|
ce1de261
monkeyhouyi
专项行动
|
24
25
|
</el-col>
<el-col :span="24" style="height: calc(100% - 100px);">
|
8f1d4460
monkeyhouyi
实现专项行动详情查看
|
26
27
28
|
<NCC-table :data="tableData" style="width: 100%" v-loading="loading" stripe>
<el-table-column prop="originName" label="传达区县/外协" />
<el-table-column prop="state" label="状态">
|
fcbf44a0
monkeyhouyi
1
|
29
30
31
32
|
<template slot-scope="scope">
<el-tag :type="scope.row.state == '已填写' ? 'success' : 'warning'">{{scope.row.state}}</el-tag>
</template>
</el-table-column>
|
8f1d4460
monkeyhouyi
实现专项行动详情查看
|
33
|
<el-table-column label="操作" fixed="right" >
|
fcbf44a0
monkeyhouyi
1
|
34
|
<template slot-scope="scope">
|
e987e33a
monkeyhouyi
预览表单
|
35
|
<FormDialog :row="scope.row" :isDetail="true" :disabled="scope.row.state != '已填写'">详情</FormDialog>
|
fcbf44a0
monkeyhouyi
1
|
36
37
|
</template>
</el-table-column>
|
8f1d4460
monkeyhouyi
实现专项行动详情查看
|
38
|
</NCC-table>
|
ce1de261
monkeyhouyi
专项行动
|
39
40
41
42
43
44
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initList"/>
</el-col>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="close">取 消</el-button>
</span>
|
93adad84
monkeyhouyi
网信执法功能添加
|
45
|
<NCCForm v-if="dialogVisible" ref="NCCForm" />
|
ce1de261
monkeyhouyi
专项行动
|
46
47
48
49
|
</el-dialog>
</template>
<script>
import request from "@/utils/request";
|
93adad84
monkeyhouyi
网信执法功能添加
|
50
|
import NCCForm from '@/views/baseSpecialAction/dynamicModel/list/Form'
|
ce1de261
monkeyhouyi
专项行动
|
51
|
export default {
|
93adad84
monkeyhouyi
网信执法功能添加
|
52
|
components: { NCCForm },
|
ce1de261
monkeyhouyi
专项行动
|
53
54
55
56
57
58
59
60
61
62
63
64
|
props: [],
data() {
return {
loading: false,
visible: false,
tableData: [{}],
listQuery: {
currentPage: 1,
pageSize: 20,
},
total: 0,
form: {},
|
93adad84
monkeyhouyi
网信执法功能添加
|
65
|
dialogVisible: false,
|
d8af3866
monkeyhouyi
1
|
66
|
exportBtnLoading: false,
|
ce1de261
monkeyhouyi
专项行动
|
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
};
},
computed: {},
watch: {},
created() {},
mounted() {},
methods: {
close() {
this.form = {};
this.$emit("refresh");
},
init(row) {
this.form = row;
this.visible = true;
this.loading = true;
this.$nextTick(() => {
this.initList();
})
},
initList() {
|
d8af3866
monkeyhouyi
1
|
87
88
89
90
91
92
93
94
95
96
97
98
|
request({
url: `/Extend/BaseSpecialActionInfo/GetListById`,
method: "GET",
params: {
...this.listQuery,
specialActionId: this.form.id,
},
}).then((res) => {
this.tableData = res.data.list;
this.total = res.data.pagination.total;
this.loading = false;
});
|
ce1de261
monkeyhouyi
专项行动
|
99
|
},
|
d8af3866
monkeyhouyi
1
|
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
// 导出
toExport() {
this.exportBtnLoading = true;
request({
url: `/Extend/BaseSpecialActionInfo/Actions/Export`,
method: "POST",
data: {specialActionId: this.form.id},
}).then((res) => {
const url = process.env.VUE_APP_BASE_API + res.data.url;
const link = document.createElement("a");
link.href = url;
link.download = res.data.name;
link.click();
this.exportBtnLoading = false;
}).catch(() => this.exportBtnLoading = false);
|
93adad84
monkeyhouyi
网信执法功能添加
|
115
|
},
|
d8af3866
monkeyhouyi
1
|
116
117
|
},
}
|
ce1de261
monkeyhouyi
专项行动
|
118
119
120
|
</script>
<style lang="scss" scoped>
.NCC-dialog {
|
8f1d4460
monkeyhouyi
实现专项行动详情查看
|
121
122
123
124
|
:deep(.el-table__body-wrapper.is-scrolling-none) {
height: calc(100% - 47px);
overflow-y: scroll;
}
|
ce1de261
monkeyhouyi
专项行动
|
125
126
127
128
129
130
131
132
|
:deep(.el-pagination__total) {
color: #606266;
}
:deep(.el-pagination__jump) {
color: #606266;
}
}
</style>
|