Merge branch 'dev'
Showing
2 changed files
with
34 additions
and
5 deletions
... | @@ -17,3 +17,9 @@ export function dzqmUpload (data) { | ... | @@ -17,3 +17,9 @@ export function dzqmUpload (data) { |
17 | data | 17 | data |
18 | }) | 18 | }) |
19 | } | 19 | } |
20 | export function dzqmDelete (bsm) { | ||
21 | return request({ | ||
22 | url: SERVER.SERVERAPI + '/rest/system/dzqm/delete?bsm=' + bsm, | ||
23 | method: 'delete' | ||
24 | }) | ||
25 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -21,11 +21,13 @@ | ... | @@ -21,11 +21,13 @@ |
21 | </el-col> | 21 | </el-col> |
22 | </el-row> | 22 | </el-row> |
23 | <el-row> | 23 | <el-row> |
24 | <el-col :span="24"> | ||
25 | <el-form-item label="签名路径:"> | 24 | <el-form-item label="签名路径:"> |
26 | <img :src="ruleForm.dzqmurl" class="signature-image"> | 25 | <div class="signature-image"> |
26 | <img :src="ruleForm.dzqmurl" v-if="ruleForm.dzqmurl"> | ||
27 | <el-empty description="暂无签名" v-else></el-empty> | ||
28 | <i class="el-icon-circle-close" @click="handleDel" v-if="ruleForm.dzqmurl"></i> | ||
29 | </div> | ||
27 | </el-form-item> | 30 | </el-form-item> |
28 | </el-col> | ||
29 | </el-row> | 31 | </el-row> |
30 | </el-form> | 32 | </el-form> |
31 | </div> | 33 | </div> |
... | @@ -50,7 +52,7 @@ | ... | @@ -50,7 +52,7 @@ |
50 | </div> | 52 | </div> |
51 | </template> | 53 | </template> |
52 | <script> | 54 | <script> |
53 | import { dzqmUpload } from '@/api/dzqm' | 55 | import { dzqmUpload, dzqmDelete } from '@/api/dzqm' |
54 | import { getUserInfo } from '@/api/user' | 56 | import { getUserInfo } from '@/api/user' |
55 | export default { | 57 | export default { |
56 | name: "dzqm", | 58 | name: "dzqm", |
... | @@ -97,6 +99,16 @@ | ... | @@ -97,6 +99,16 @@ |
97 | this.ruleForm.dzqmurl = res.message | 99 | this.ruleForm.dzqmurl = res.message |
98 | } | 100 | } |
99 | }) | 101 | }) |
102 | }, | ||
103 | async handleDel () { | ||
104 | let res = await dzqmDelete(this.ruleForm.dzqbsm) | ||
105 | if (res.code == 200) { | ||
106 | this.$message({ | ||
107 | message: '删除成功!', | ||
108 | type: 'success' | ||
109 | }) | ||
110 | this.ruleForm.dzqmurl = '' | ||
111 | } | ||
100 | } | 112 | } |
101 | } | 113 | } |
102 | }; | 114 | }; |
... | @@ -104,9 +116,20 @@ | ... | @@ -104,9 +116,20 @@ |
104 | <style scoped lang="scss"> | 116 | <style scoped lang="scss"> |
105 | @import "~@/styles/public.scss"; | 117 | @import "~@/styles/public.scss"; |
106 | .signature-image { | 118 | .signature-image { |
119 | position: relative; | ||
120 | min-height: 200px; | ||
121 | img { | ||
107 | width: 100%; | 122 | width: 100%; |
108 | max-height: 360px; | 123 | max-height: 350px; |
109 | object-fit: contain; | 124 | object-fit: contain; |
110 | } | 125 | } |
126 | .el-icon-circle-close { | ||
127 | position: absolute; | ||
128 | right: 0; | ||
129 | top: 0; | ||
130 | cursor: pointer; | ||
131 | font-size: 26px; | ||
132 | } | ||
133 | } | ||
111 | </style> | 134 | </style> |
112 | 135 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment