|
|
@@ -1,7 +1,7 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div>
|
|
3
|
3
|
<el-dialog title="修改模板" :visible="editVisable" v-if="editVisable" @close="cancel" width="600px" center>
|
|
4
|
|
- <el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px"
|
|
|
4
|
+ <el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="170px"
|
|
5
|
5
|
class="demo-ruleForm">
|
|
6
|
6
|
<el-form-item label="模板名称" prop="temName">
|
|
7
|
7
|
<el-input v-model="ruleForm.temName"></el-input>
|
|
|
@@ -12,7 +12,12 @@
|
|
12
|
12
|
:value="dict.value"></el-option>
|
|
13
|
13
|
</el-select>
|
|
14
|
14
|
</el-form-item> -->
|
|
15
|
|
- <el-form-item label="调节申请书模板" v-if="ruleForm.applicationFile.fileName">
|
|
|
15
|
+ <el-form-item label="自然人调解申请书模板" v-if="ruleForm.personApplicationFile && ruleForm.personApplicationFile.fileName">
|
|
|
16
|
+ <span style="color: #0e5ce3;cursor:pointer" @click="openUrl(ruleForm.personApplicationFile.temOrigPath)">{{
|
|
|
17
|
+ ruleForm.personApplicationFile.fileName ? ruleForm.personApplicationFile.fileName : ""
|
|
|
18
|
+ }}</span>
|
|
|
19
|
+ </el-form-item>
|
|
|
20
|
+ <el-form-item label="机构调解申请书模板" v-if="ruleForm.applicationFile.fileName">
|
|
16
|
21
|
<span style="color: #0e5ce3;cursor:pointer" @click="openUrl(ruleForm.applicationFile.temOrigPath)">{{
|
|
17
|
22
|
ruleForm.applicationFile.fileName ? ruleForm.applicationFile.fileName : ""
|
|
18
|
23
|
}}</span>
|
|
|
@@ -30,10 +35,15 @@
|
|
30
|
35
|
}}</span>
|
|
31
|
36
|
</el-form-item>
|
|
32
|
37
|
</el-form>
|
|
|
38
|
+ <el-upload class="avatar-uploader" :on-success="handleSuccessC" ref="upload" :action="UploadUrl()"
|
|
|
39
|
+ :headers="headers" :data="filedataC" :on-remove="handleRemoveC" :on-change="handleChangeC" accept=".doc,.docx"
|
|
|
40
|
+ :file-list="fileListC" :limit="1">
|
|
|
41
|
+ <el-button size="small" type="primary">选择自然人调解申请书模板</el-button>
|
|
|
42
|
+ </el-upload>
|
|
33
|
43
|
<el-upload class="avatar-uploader" :on-success="handleSuccess" ref="upload" :action="UploadUrl()"
|
|
34
|
44
|
:headers="headers" :data="filedata" :on-remove="handleRemove" :on-change="handleChange" accept=".doc,.docx"
|
|
35
|
45
|
:file-list="fileList" :limit="1">
|
|
36
|
|
- <el-button size="small" type="primary">选择调解申请书模板</el-button>
|
|
|
46
|
+ <el-button size="small" type="primary">选择机构调解申请书模板</el-button>
|
|
37
|
47
|
</el-upload>
|
|
38
|
48
|
<el-upload class="avatar-uploader" :on-success="handleSuccessA" ref="uploadA" :action="UploadUrl()"
|
|
39
|
49
|
:headers="headers" :data="filedataA" :on-remove="handleRemoveA" :on-change="handleChangeA"
|
|
|
@@ -63,6 +73,7 @@ export default {
|
|
63
|
73
|
fileList: [],
|
|
64
|
74
|
fileListA: [],
|
|
65
|
75
|
fileListB: [],
|
|
|
76
|
+ fileListC: [],
|
|
66
|
77
|
data: [],
|
|
67
|
78
|
headers: {
|
|
68
|
79
|
Authorization: "Bearer " + getToken(),
|
|
|
@@ -77,6 +88,9 @@ export default {
|
|
77
|
88
|
filedataB: {
|
|
78
|
89
|
annexType: 3
|
|
79
|
90
|
},
|
|
|
91
|
+ filedataC: {
|
|
|
92
|
+ annexType: 4
|
|
|
93
|
+ },
|
|
80
|
94
|
flagBtn: false,
|
|
81
|
95
|
ruleForm: {
|
|
82
|
96
|
agreementFile:{},
|
|
|
@@ -136,7 +150,7 @@ export default {
|
|
136
|
150
|
this.submitForm.identifyId = this.ruleForm.identifyId;
|
|
137
|
151
|
this.submitForm.temName = this.ruleForm.temName;
|
|
138
|
152
|
this.submitForm.id = this.ruleForm.id;
|
|
139
|
|
- console.log(this.submitForm.annexIds,'ooooooooooooooooooooooooooooo');
|
|
|
153
|
+ console.log(this.submitForm,'ooooooooooooooooooooooooooooo');
|
|
140
|
154
|
updateTemplate(this.submitForm).then(res => {
|
|
141
|
155
|
this.$message.success('修改成功');
|
|
142
|
156
|
this.$emit("cancelEdit");
|
|
|
@@ -156,12 +170,25 @@ export default {
|
|
156
|
170
|
handleRemove(file, fileList) {
|
|
157
|
171
|
console.log(file, fileList);
|
|
158
|
172
|
},
|
|
|
173
|
+ // 机构
|
|
159
|
174
|
handleSuccess(res) {
|
|
|
175
|
+ console.log(res,'机构上传成功');
|
|
160
|
176
|
this.$message.success('上传成功');
|
|
161
|
177
|
// this.submitForm.annexIds.push(res.annexId);
|
|
162
|
178
|
this.submitForm.annexIds[1] = res.annexId;
|
|
163
|
179
|
},
|
|
164
|
|
-
|
|
|
180
|
+ // 自然人
|
|
|
181
|
+ handleSuccessC(res) {
|
|
|
182
|
+ console.log(res,'自然人上传成功');
|
|
|
183
|
+ this.$message.success('上传成功');
|
|
|
184
|
+ this.submitForm.annexIds[4] = res.annexId;
|
|
|
185
|
+ },
|
|
|
186
|
+ handleRemoveC(file, fileList) {
|
|
|
187
|
+ console.log(file, fileList);
|
|
|
188
|
+ },
|
|
|
189
|
+ handleChangeC(file, fileList) {
|
|
|
190
|
+ this.isImg = file.type === '.doc' || '.docx'
|
|
|
191
|
+ },
|
|
165
|
192
|
handleChangeA(file, fileList) {
|
|
166
|
193
|
this.isImg = file.type === '.doc' || '.docx'
|
|
167
|
194
|
},
|
|
|
@@ -171,6 +198,7 @@ export default {
|
|
171
|
198
|
handleRemoveA(file, fileList) {
|
|
172
|
199
|
console.log(file, fileList);
|
|
173
|
200
|
},
|
|
|
201
|
+ // 和解协议
|
|
174
|
202
|
handleSuccessA(res) {
|
|
175
|
203
|
this.$message.success('上传成功');
|
|
176
|
204
|
// this.submitForm.annexIds.push(res.annexId);
|
|
|
@@ -186,6 +214,7 @@ export default {
|
|
186
|
214
|
handleRemoveB(file, fileList) {
|
|
187
|
215
|
console.log(file, fileList);
|
|
188
|
216
|
},
|
|
|
217
|
+ // 调解书
|
|
189
|
218
|
handleSuccessB(res) {
|
|
190
|
219
|
this.$message.success('上传成功');
|
|
191
|
220
|
// this.submitForm.annexIds.push(res.annexId);
|