709b3e3b by renchao@pashanhoo.com

用户信息模块功能的完善

1 parent 5265bc92
...@@ -16,4 +16,10 @@ export function dzqmUpload (data) { ...@@ -16,4 +16,10 @@ export function dzqmUpload (data) {
16 method: 'post', 16 method: 'post',
17 data 17 data
18 }) 18 })
19 }
20 export function dzqmDelete (bsm) {
21 return request({
22 url: SERVER.SERVERAPI + '/rest/system/dzqm/delete?bsm=' + bsm,
23 method: 'delete'
24 })
19 } 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"> 24 <el-form-item label="签名路径:">
25 <el-form-item label="签名路径:"> 25 <div class="signature-image">
26 <img :src="ruleForm.dzqmurl" class="signature-image"> 26 <img :src="ruleForm.dzqmurl" v-if="ruleForm.dzqmurl">
27 </el-form-item> 27 <el-empty description="暂无签名" v-else></el-empty>
28 </el-col> 28 <i class="el-icon-circle-close" @click="handleDel" v-if="ruleForm.dzqmurl"></i>
29 </div>
30 </el-form-item>
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 {
107 width: 100%; 119 position: relative;
108 max-height: 360px; 120 min-height: 200px;
109 object-fit: contain; 121 img {
122 width: 100%;
123 max-height: 350px;
124 object-fit: contain;
125 }
126 .el-icon-circle-close {
127 position: absolute;
128 right: 0;
129 top: 0;
130 cursor: pointer;
131 font-size: 26px;
132 }
110 } 133 }
111 </style> 134 </style>
112 135
...\ No newline at end of file ...\ No newline at end of file
......