|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+<template>
|
|
|
2
|
+ <div class="app-container">
|
|
|
3
|
+ <el-row :gutter="10" class="mb8">
|
|
|
4
|
+ <el-col :span="1.5">
|
|
|
5
|
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addtemplate">新增裁决书模板</el-button>
|
|
|
6
|
+ <!-- v-hasPermi="['caseManagement:list:add']" -->
|
|
|
7
|
+ </el-col>
|
|
|
8
|
+ </el-row>
|
|
|
9
|
+ <el-table v-loading="loading" :data="dataList" style="width: 100%">
|
|
|
10
|
+ <el-table-column label="序号" type="index" align="center">
|
|
|
11
|
+ <template slot-scope="scope">
|
|
|
12
|
+ <span>{{
|
|
|
13
|
+ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
14
|
+ }}</span>
|
|
|
15
|
+ </template>
|
|
|
16
|
+ </el-table-column>
|
|
|
17
|
+ <el-table-column label="仲裁机构名称" align="center" prop="identifyName" :show-overflow-tooltip="true" />
|
|
|
18
|
+ <el-table-column label="裁决书名称" align="center" prop="temName" :show-overflow-tooltip="true" />
|
|
|
19
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
20
|
+ <template slot-scope="scope">
|
|
|
21
|
+ <el-button size="mini" @click="deleteTemplate(scope.row)" type="text" icon="el-icon-delete">删除</el-button>
|
|
|
22
|
+ <el-button size="mini" @click="eidtTemplate(scope.row)" type="text" icon="el-icon-edit">修改模板</el-button>
|
|
|
23
|
+ </template>
|
|
|
24
|
+ </el-table-column>
|
|
|
25
|
+ </el-table>
|
|
|
26
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
27
|
+ @pagination="getList(queryParams)" />
|
|
|
28
|
+
|
|
|
29
|
+ <addTemplate :uploadVisable="uploadVisable" @cancelUpload="cancelUpload" :uploadData="uploadData" @getList="getList" :queryParams="queryParams">
|
|
|
30
|
+ </addTemplate>
|
|
|
31
|
+ <sealManage :sealVisable="sealVisable" @cancelSeal="cancelSeal" :sealData="sealData">
|
|
|
32
|
+ </sealManage>
|
|
|
33
|
+ <editTemplate :editVisable="editVisable" @cancelEdit="cancelEdit" @getList="getList" :editData="editData" :queryParams="queryParams"></editTemplate>
|
|
|
34
|
+ </div>
|
|
|
35
|
+</template>
|
|
|
36
|
+
|
|
|
37
|
+<script>
|
|
|
38
|
+import {
|
|
|
39
|
+ getTemplate,
|
|
|
40
|
+ deleteTemplate
|
|
|
41
|
+} from "@/api/officialSeal/officialSeal.js";
|
|
|
42
|
+
|
|
|
43
|
+import addInstitution from "./components/addInstitution";
|
|
|
44
|
+import addTemplate from "./components/addTemplate";
|
|
|
45
|
+import sealManage from "./components/sealManage";
|
|
|
46
|
+import editTemplate from "./components/editTemplate";
|
|
|
47
|
+export default {
|
|
|
48
|
+ name: "paymentList",
|
|
|
49
|
+ components: {
|
|
|
50
|
+ addInstitution,
|
|
|
51
|
+ addTemplate,
|
|
|
52
|
+ sealManage,
|
|
|
53
|
+ editTemplate
|
|
|
54
|
+ },
|
|
|
55
|
+ data() {
|
|
|
56
|
+ return {
|
|
|
57
|
+ queryParams: {
|
|
|
58
|
+ pageNum: 1,
|
|
|
59
|
+ pageSize: 10,
|
|
|
60
|
+ },
|
|
|
61
|
+ // 遮罩层
|
|
|
62
|
+ loading: false,
|
|
|
63
|
+ // 总条数
|
|
|
64
|
+ total: 0,
|
|
|
65
|
+ // 表格数据
|
|
|
66
|
+ form: {},
|
|
|
67
|
+ // 校验表单
|
|
|
68
|
+ rules: {},
|
|
|
69
|
+ dataList: [],
|
|
|
70
|
+ operateVisable: false,//新增弹窗
|
|
|
71
|
+ uploadVisable: false,//上传弹窗
|
|
|
72
|
+ sealVisable: false,//公章列表弹窗
|
|
|
73
|
+ uploadData: {},
|
|
|
74
|
+ sealData: {},
|
|
|
75
|
+ editVisable:false,
|
|
|
76
|
+ editData:{}
|
|
|
77
|
+ };
|
|
|
78
|
+ },
|
|
|
79
|
+ created() {
|
|
|
80
|
+ this.getList(this.queryParams)
|
|
|
81
|
+ },
|
|
|
82
|
+ methods: {
|
|
|
83
|
+ // 删除
|
|
|
84
|
+ deleteTemplate(row) {
|
|
|
85
|
+ this.$modal
|
|
|
86
|
+ .confirm("是否删除")
|
|
|
87
|
+ .then((res) => {
|
|
|
88
|
+ this.deleteSealFn({ id: row.id })
|
|
|
89
|
+ })
|
|
|
90
|
+ },
|
|
|
91
|
+ // 删除接口
|
|
|
92
|
+ deleteSealFn(data) {
|
|
|
93
|
+ deleteTemplate(data).then(res => {
|
|
|
94
|
+ this.$modal.msgSuccess("删除成功!");
|
|
|
95
|
+ this.getList(this.queryParams);
|
|
|
96
|
+ })
|
|
|
97
|
+ },
|
|
|
98
|
+ cancelSeal() {
|
|
|
99
|
+ this.sealVisable = false;
|
|
|
100
|
+ },
|
|
|
101
|
+ // 新增模板
|
|
|
102
|
+ addtemplate(row) {
|
|
|
103
|
+ this.uploadVisable = true;
|
|
|
104
|
+ this.uploadData = row;
|
|
|
105
|
+ },
|
|
|
106
|
+ cancelUpload() {
|
|
|
107
|
+ this.uploadVisable = false;
|
|
|
108
|
+ },
|
|
|
109
|
+ // 编辑
|
|
|
110
|
+ eidtTemplate(row) {
|
|
|
111
|
+ this.editVisable = true;
|
|
|
112
|
+ this.editData = row;
|
|
|
113
|
+ },
|
|
|
114
|
+ cancelEdit() {
|
|
|
115
|
+ this.editVisable = false;
|
|
|
116
|
+ },
|
|
|
117
|
+ /** 搜索按钮操作 */
|
|
|
118
|
+ handleQuery() {
|
|
|
119
|
+ this.queryParams.pageNum = 1;
|
|
|
120
|
+ this.getList(this.queryParams);
|
|
|
121
|
+ },
|
|
|
122
|
+ /** 重置按钮操作 */
|
|
|
123
|
+ resetQuery() {
|
|
|
124
|
+ this.resetForm("queryForm");
|
|
|
125
|
+ this.handleQuery();
|
|
|
126
|
+ },
|
|
|
127
|
+ // 查询列表数据
|
|
|
128
|
+ getList(parms) {
|
|
|
129
|
+ this.loading = true;
|
|
|
130
|
+ getTemplate(parms).then((response) => {
|
|
|
131
|
+ this.dataList = response.rows;
|
|
|
132
|
+ this.total = response.total;
|
|
|
133
|
+ this.loading = false;
|
|
|
134
|
+ console.log(this.dataList,"LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL");
|
|
|
135
|
+ // this.dataList.forEach(item => {
|
|
|
136
|
+ // if (item.identifyStatus == 0 || item.identifyStatus == null) {
|
|
|
137
|
+ // item.identifyStatus = '未认证'
|
|
|
138
|
+ // } else {
|
|
|
139
|
+ // item.identifyStatus = '已认证'
|
|
|
140
|
+ // }
|
|
|
141
|
+ // if (item.isUse == 0 || item.isUse == null) {
|
|
|
142
|
+ // item.isUse = '未启用'
|
|
|
143
|
+ // } else {
|
|
|
144
|
+ // item.isUse = '已启用'
|
|
|
145
|
+ // }
|
|
|
146
|
+ // })
|
|
|
147
|
+ });
|
|
|
148
|
+ },
|
|
|
149
|
+ },
|
|
|
150
|
+};
|
|
|
151
|
+</script>
|
|
|
152
|
+
|
|
|
153
|
+<style lang="scss" scoped></style>
|