Commit 222dee41d30b60b677f3b5ed15a41fdde1d44d76
1 parent
48a86123
v1.9 系统菜单 部分bug 修复
Showing
6 changed files
with
78 additions
and
147 deletions
src/components/system/deleteFeePrintSpec.vue
| 1 | <template> | 1 | <template> |
| 2 | <el-dialog | 2 | <el-dialog |
| 3 | - :title="$t('feePrintSpec.deleteTitle')" | 3 | + :title="$t('common.delete')" |
| 4 | :visible.sync="visible" | 4 | :visible.sync="visible" |
| 5 | width="30%" | 5 | width="30%" |
| 6 | center> | 6 | center> |
| 7 | <div class="text-center"> | 7 | <div class="text-center"> |
| 8 | - <p>{{ $t('feePrintSpec.deleteConfirm') }}</p> | 8 | + <p>{{ $t('common.deleteConfirm') }}</p> |
| 9 | </div> | 9 | </div> |
| 10 | <span slot="footer" class="dialog-footer"> | 10 | <span slot="footer" class="dialog-footer"> |
| 11 | <el-button @click="visible = false"> | 11 | <el-button @click="visible = false"> |
src/components/system/searchCommunityDataList.vue
| 1 | <template> | 1 | <template> |
| 2 | - <el-dialog | ||
| 3 | - :visible.sync="visible" | ||
| 4 | - :title="$t('searchCommunityData.title')" | ||
| 5 | - width="80%" | ||
| 6 | - @close="handleClose" | ||
| 7 | - > | 2 | + <el-dialog :visible.sync="visible" :title="$t('searchCommunityData.title')" width="80%" @close="handleClose"> |
| 8 | <el-row class="margin-bottom"> | 3 | <el-row class="margin-bottom"> |
| 9 | <el-col :span="14" :offset="2"> | 4 | <el-col :span="14" :offset="2"> |
| 10 | - <el-input | ||
| 11 | - v-model="searchValue" | ||
| 12 | - :placeholder="$t('searchCommunityData.placeholder')" | ||
| 13 | - @keyup.enter.native="doSearch" | ||
| 14 | - /> | 5 | + <el-input v-model="searchValue" :placeholder="$t('searchCommunityData.placeholder')" |
| 6 | + @keyup.enter.native="doSearch" /> | ||
| 15 | </el-col> | 7 | </el-col> |
| 16 | <el-col :span="3" :offset="1"> | 8 | <el-col :span="3" :offset="1"> |
| 17 | <el-button type="primary" @click="doSearch"> | 9 | <el-button type="primary" @click="doSearch"> |
| @@ -30,11 +22,7 @@ | @@ -30,11 +22,7 @@ | ||
| 30 | <div class="vc-search-community-item" v-if="rooms.length > 0"> | 22 | <div class="vc-search-community-item" v-if="rooms.length > 0"> |
| 31 | <div class="item-title">{{ $t('searchCommunityData.roomInfo') }}</div> | 23 | <div class="item-title">{{ $t('searchCommunityData.roomInfo') }}</div> |
| 32 | <div class="item-content"> | 24 | <div class="item-content"> |
| 33 | - <el-link | ||
| 34 | - v-for="(item, index) in rooms" | ||
| 35 | - :key="'room'+index" | ||
| 36 | - @click="toSimplifyAcceptance(item)" | ||
| 37 | - > | 25 | + <el-link v-for="(item, index) in rooms" :key="'room' + index" @click="toSimplifyAcceptance(item)"> |
| 38 | {{ item.roomName }} | 26 | {{ item.roomName }} |
| 39 | </el-link> | 27 | </el-link> |
| 40 | </div> | 28 | </div> |
| @@ -42,12 +30,8 @@ | @@ -42,12 +30,8 @@ | ||
| 42 | <div class="vc-search-community-item" v-if="owners.length > 0"> | 30 | <div class="vc-search-community-item" v-if="owners.length > 0"> |
| 43 | <div class="item-title">{{ $t('searchCommunityData.ownerInfo') }}</div> | 31 | <div class="item-title">{{ $t('searchCommunityData.ownerInfo') }}</div> |
| 44 | <div class="item-content"> | 32 | <div class="item-content"> |
| 45 | - <el-link | ||
| 46 | - v-for="(item, index) in owners" | ||
| 47 | - :key="'owner'+index" | ||
| 48 | - :href="'/#/views/owner/ownerDetail?ownerId='+item.ownerId" | ||
| 49 | - target="_blank" | ||
| 50 | - > | 33 | + <el-link v-for="(item, index) in owners" :key="'owner' + index" |
| 34 | + :href="'/#/views/owner/ownerDetail?ownerId=' + item.ownerId" target="_blank"> | ||
| 51 | {{ item.name }} | 35 | {{ item.name }} |
| 52 | </el-link> | 36 | </el-link> |
| 53 | </div> | 37 | </div> |
| @@ -55,12 +39,8 @@ | @@ -55,12 +39,8 @@ | ||
| 55 | <div class="vc-search-community-item" v-if="ownerMembers.length > 0"> | 39 | <div class="vc-search-community-item" v-if="ownerMembers.length > 0"> |
| 56 | <div class="item-title">{{ $t('searchCommunityData.ownerMember') }}</div> | 40 | <div class="item-title">{{ $t('searchCommunityData.ownerMember') }}</div> |
| 57 | <div class="item-content"> | 41 | <div class="item-content"> |
| 58 | - <el-link | ||
| 59 | - v-for="(item, index) in ownerMembers" | ||
| 60 | - :key="'ownerMember'+index" | ||
| 61 | - :href="'/#/views/owner/ownerDetail?ownerId='+item.ownerId" | ||
| 62 | - target="_blank" | ||
| 63 | - > | 42 | + <el-link v-for="(item, index) in ownerMembers" :key="'ownerMember' + index" |
| 43 | + :href="'/#/views/owner/ownerDetail?ownerId=' + item.ownerId" target="_blank"> | ||
| 64 | {{ item.name }} | 44 | {{ item.name }} |
| 65 | </el-link> | 45 | </el-link> |
| 66 | </div> | 46 | </div> |
| @@ -68,12 +48,8 @@ | @@ -68,12 +48,8 @@ | ||
| 68 | <div class="vc-search-community-item" v-if="cars.length > 0"> | 48 | <div class="vc-search-community-item" v-if="cars.length > 0"> |
| 69 | <div class="item-title">{{ $t('searchCommunityData.communityCar') }}</div> | 49 | <div class="item-title">{{ $t('searchCommunityData.communityCar') }}</div> |
| 70 | <div class="item-content"> | 50 | <div class="item-content"> |
| 71 | - <el-link | ||
| 72 | - v-for="(item, index) in cars" | ||
| 73 | - :key="'car'+index" | ||
| 74 | - :href="'/#/views/car/carDetail?memberId='+item.carId" | ||
| 75 | - target="_blank" | ||
| 76 | - > | 51 | + <el-link v-for="(item, index) in cars" :key="'car' + index" |
| 52 | + :href="'/#/views/car/carDetail?memberId=' + item.carId" target="_blank"> | ||
| 77 | {{ item.carNum }} | 53 | {{ item.carNum }} |
| 78 | </el-link> | 54 | </el-link> |
| 79 | </div> | 55 | </div> |
| @@ -81,12 +57,8 @@ | @@ -81,12 +57,8 @@ | ||
| 81 | <div class="vc-search-community-item" v-if="carMembers.length > 0"> | 57 | <div class="vc-search-community-item" v-if="carMembers.length > 0"> |
| 82 | <div class="item-title">{{ $t('searchCommunityData.memberCar') }}</div> | 58 | <div class="item-title">{{ $t('searchCommunityData.memberCar') }}</div> |
| 83 | <div class="item-content"> | 59 | <div class="item-content"> |
| 84 | - <el-link | ||
| 85 | - v-for="(item, index) in carMembers" | ||
| 86 | - :key="'carMember'+index" | ||
| 87 | - :href="'/#/views/car/carDetail?memberId='+item.carId" | ||
| 88 | - target="_blank" | ||
| 89 | - > | 60 | + <el-link v-for="(item, index) in carMembers" :key="'carMember' + index" |
| 61 | + :href="'/#/views/car/carDetail?memberId=' + item.carId" target="_blank"> | ||
| 90 | {{ item.carNum }} | 62 | {{ item.carNum }} |
| 91 | </el-link> | 63 | </el-link> |
| 92 | </div> | 64 | </div> |
| @@ -94,12 +66,8 @@ | @@ -94,12 +66,8 @@ | ||
| 94 | <div class="vc-search-community-item" v-if="contracts.length > 0"> | 66 | <div class="vc-search-community-item" v-if="contracts.length > 0"> |
| 95 | <div class="item-title">{{ $t('searchCommunityData.contract') }}</div> | 67 | <div class="item-title">{{ $t('searchCommunityData.contract') }}</div> |
| 96 | <div class="item-content"> | 68 | <div class="item-content"> |
| 97 | - <el-link | ||
| 98 | - v-for="(item, index) in contracts" | ||
| 99 | - :key="'contract'+index" | ||
| 100 | - :href="'/#/views/contract/contractDetail?contractId='+item.contractId" | ||
| 101 | - target="_blank" | ||
| 102 | - > | 69 | + <el-link v-for="(item, index) in contracts" :key="'contract' + index" |
| 70 | + :href="'/#/views/contract/contractDetail?contractId=' + item.contractId" target="_blank"> | ||
| 103 | {{ item.contractName }} | 71 | {{ item.contractName }} |
| 104 | </el-link> | 72 | </el-link> |
| 105 | </div> | 73 | </div> |
| @@ -107,12 +75,8 @@ | @@ -107,12 +75,8 @@ | ||
| 107 | <div class="vc-search-community-item" v-if="repairs.length > 0"> | 75 | <div class="vc-search-community-item" v-if="repairs.length > 0"> |
| 108 | <div class="item-title">{{ $t('searchCommunityData.repairOrder') }}</div> | 76 | <div class="item-title">{{ $t('searchCommunityData.repairOrder') }}</div> |
| 109 | <div class="item-content"> | 77 | <div class="item-content"> |
| 110 | - <el-link | ||
| 111 | - v-for="(item, index) in repairs" | ||
| 112 | - :key="'repair'+index" | ||
| 113 | - :href="'/#/pages/property/ownerRepairDetail?repairId='+item.repairId" | ||
| 114 | - target="_blank" | ||
| 115 | - > | 78 | + <el-link v-for="(item, index) in repairs" :key="'repair' + index" |
| 79 | + :href="'/#/pages/property/ownerRepairDetail?repairId=' + item.repairId" target="_blank"> | ||
| 116 | {{ item.repairName }} | 80 | {{ item.repairName }} |
| 117 | </el-link> | 81 | </el-link> |
| 118 | </div> | 82 | </div> |
| @@ -120,12 +84,8 @@ | @@ -120,12 +84,8 @@ | ||
| 120 | <div class="vc-search-community-item" v-if="visits.length > 0"> | 84 | <div class="vc-search-community-item" v-if="visits.length > 0"> |
| 121 | <div class="item-title">{{ $t('searchCommunityData.visitor') }}</div> | 85 | <div class="item-title">{{ $t('searchCommunityData.visitor') }}</div> |
| 122 | <div class="item-content"> | 86 | <div class="item-content"> |
| 123 | - <el-link | ||
| 124 | - v-for="(item, index) in visits" | ||
| 125 | - :key="'visit'+index" | ||
| 126 | - :href="'/#/pages/property/visitDetail?vId='+item.vId+'&flowId='+item.flowId" | ||
| 127 | - target="_blank" | ||
| 128 | - > | 87 | + <el-link v-for="(item, index) in visits" :key="'visit' + index" |
| 88 | + :href="'/#/pages/property/visitDetail?vId=' + item.vId + '&flowId=' + item.flowId" target="_blank"> | ||
| 129 | {{ item.vName }} | 89 | {{ item.vName }} |
| 130 | </el-link> | 90 | </el-link> |
| 131 | </div> | 91 | </div> |
| @@ -133,12 +93,8 @@ | @@ -133,12 +93,8 @@ | ||
| 133 | <div class="vc-search-community-item" v-if="staffs.length > 0"> | 93 | <div class="vc-search-community-item" v-if="staffs.length > 0"> |
| 134 | <div class="item-title">{{ $t('searchCommunityData.staff') }}</div> | 94 | <div class="item-title">{{ $t('searchCommunityData.staff') }}</div> |
| 135 | <div class="item-content"> | 95 | <div class="item-content"> |
| 136 | - <el-link | ||
| 137 | - v-for="(item, index) in staffs" | ||
| 138 | - :key="'staff'+index" | ||
| 139 | - :href="'/#/views/staff/staffDetail?staffId='+item.userId" | ||
| 140 | - target="_blank" | ||
| 141 | - > | 96 | + <el-link v-for="(item, index) in staffs" :key="'staff' + index" |
| 97 | + :href="'/#/views/staff/staffDetail?staffId=' + item.userId" target="_blank"> | ||
| 142 | {{ item.name }} | 98 | {{ item.name }} |
| 143 | </el-link> | 99 | </el-link> |
| 144 | </div> | 100 | </div> |
| @@ -215,7 +171,7 @@ export default { | @@ -215,7 +171,7 @@ export default { | ||
| 215 | this.$message.warning(this.$t('searchCommunityData.inputTip')) | 171 | this.$message.warning(this.$t('searchCommunityData.inputTip')) |
| 216 | return | 172 | return |
| 217 | } | 173 | } |
| 218 | - | 174 | + |
| 219 | searchCommunityData({ | 175 | searchCommunityData({ |
| 220 | searchValue: this.searchValue, | 176 | searchValue: this.searchValue, |
| 221 | communityId: this.communityId | 177 | communityId: this.communityId |
| @@ -224,7 +180,7 @@ export default { | @@ -224,7 +180,7 @@ export default { | ||
| 224 | this.$message.error(res.msg) | 180 | this.$message.error(res.msg) |
| 225 | return | 181 | return |
| 226 | } | 182 | } |
| 227 | - | 183 | + |
| 228 | this.noData = false | 184 | this.noData = false |
| 229 | const data = res.data | 185 | const data = res.data |
| 230 | this.rooms = data.rooms || [] | 186 | this.rooms = data.rooms || [] |
| @@ -236,24 +192,25 @@ export default { | @@ -236,24 +192,25 @@ export default { | ||
| 236 | this.repairs = data.repairs || [] | 192 | this.repairs = data.repairs || [] |
| 237 | this.visits = data.visitDtos || [] | 193 | this.visits = data.visitDtos || [] |
| 238 | this.staffs = data.staffs || [] | 194 | this.staffs = data.staffs || [] |
| 239 | - | ||
| 240 | - this.noData = !(this.rooms.length > 0 || this.owners.length > 0 || | ||
| 241 | - this.ownerMembers.length > 0 || this.cars.length > 0 || | ||
| 242 | - this.carMembers.length > 0 || this.contracts.length > 0 || | ||
| 243 | - this.repairs.length > 0 || this.visits.length > 0 || | ||
| 244 | - this.staffs.length > 0) | 195 | + |
| 196 | + this.noData = !(this.rooms.length > 0 || this.owners.length > 0 || | ||
| 197 | + this.ownerMembers.length > 0 || this.cars.length > 0 || | ||
| 198 | + this.carMembers.length > 0 || this.contracts.length > 0 || | ||
| 199 | + this.repairs.length > 0 || this.visits.length > 0 || | ||
| 200 | + this.staffs.length > 0) | ||
| 245 | }).catch(error => { | 201 | }).catch(error => { |
| 246 | console.error('Search failed:', error) | 202 | console.error('Search failed:', error) |
| 247 | }) | 203 | }) |
| 248 | }, | 204 | }, |
| 249 | toSimplifyAcceptance(room) { | 205 | toSimplifyAcceptance(room) { |
| 206 | + this.visible = false | ||
| 250 | this.$router.push('/pages/property/simplifyAcceptance?tab=业务受理&searchType=1&searchValue=' + `${room.floorNum}-${room.unitNum}-${room.roomNum}`) | 207 | this.$router.push('/pages/property/simplifyAcceptance?tab=业务受理&searchType=1&searchValue=' + `${room.floorNum}-${room.unitNum}-${room.roomNum}`) |
| 251 | 208 | ||
| 252 | }, | 209 | }, |
| 253 | clearSearchData() { | 210 | clearSearchData() { |
| 254 | const ws = this.ws | 211 | const ws = this.ws |
| 255 | const machine = this.machine | 212 | const machine = this.machine |
| 256 | - | 213 | + |
| 257 | this.searchValue = '' | 214 | this.searchValue = '' |
| 258 | this.noData = true | 215 | this.noData = true |
| 259 | this.rooms = [] | 216 | this.rooms = [] |
| @@ -286,29 +243,29 @@ export default { | @@ -286,29 +243,29 @@ export default { | ||
| 286 | url = "wss://" | 243 | url = "wss://" |
| 287 | } | 244 | } |
| 288 | url = `${url}${machine.machineIp}:${machine.machinePort}/APP_2AD85C71-BEF8-463C-9B4B-B672F603542A_fast` | 245 | url = `${url}${machine.machineIp}:${machine.machinePort}/APP_2AD85C71-BEF8-463C-9B4B-B672F603542A_fast` |
| 289 | - | 246 | + |
| 290 | const ws = new WebSocket(url) | 247 | const ws = new WebSocket(url) |
| 291 | - | 248 | + |
| 292 | ws.onerror = (event) => { | 249 | ws.onerror = (event) => { |
| 293 | console.log('WebSocket error:', event) | 250 | console.log('WebSocket error:', event) |
| 294 | setTimeout(() => { | 251 | setTimeout(() => { |
| 295 | this.connectTelMachine(machine) | 252 | this.connectTelMachine(machine) |
| 296 | }, 2000) | 253 | }, 2000) |
| 297 | } | 254 | } |
| 298 | - | 255 | + |
| 299 | ws.onclose = () => { | 256 | ws.onclose = () => { |
| 300 | console.log('WebSocket closed') | 257 | console.log('WebSocket closed') |
| 301 | } | 258 | } |
| 302 | - | 259 | + |
| 303 | ws.onopen = () => { | 260 | ws.onopen = () => { |
| 304 | console.log('WebSocket connected') | 261 | console.log('WebSocket connected') |
| 305 | } | 262 | } |
| 306 | - | 263 | + |
| 307 | ws.onmessage = (event) => { | 264 | ws.onmessage = (event) => { |
| 308 | try { | 265 | try { |
| 309 | const data = JSON.parse(event.data) | 266 | const data = JSON.parse(event.data) |
| 310 | console.log('WebSocket message:', data) | 267 | console.log('WebSocket message:', data) |
| 311 | - | 268 | + |
| 312 | if (data.message === 'query') { | 269 | if (data.message === 'query') { |
| 313 | if (data.name === 'Device' && data.param.CallerId) { | 270 | if (data.name === 'Device' && data.param.CallerId) { |
| 314 | this.clearSearchData() | 271 | this.clearSearchData() |
| @@ -322,9 +279,9 @@ export default { | @@ -322,9 +279,9 @@ export default { | ||
| 322 | } | 279 | } |
| 323 | return | 280 | return |
| 324 | } | 281 | } |
| 325 | - | 282 | + |
| 326 | const param = data.param | 283 | const param = data.param |
| 327 | - | 284 | + |
| 328 | if (param && param.status === 'CallIn') { | 285 | if (param && param.status === 'CallIn') { |
| 329 | this.clearSearchData() | 286 | this.clearSearchData() |
| 330 | this.searchValue = param.number | 287 | this.searchValue = param.number |
| @@ -332,35 +289,35 @@ export default { | @@ -332,35 +289,35 @@ export default { | ||
| 332 | this.doSearch() | 289 | this.doSearch() |
| 333 | return | 290 | return |
| 334 | } | 291 | } |
| 335 | - | 292 | + |
| 336 | if (param && param.status === 'TalkingStart') { | 293 | if (param && param.status === 'TalkingStart') { |
| 337 | this.$emit('TalkingStart', param) | 294 | this.$emit('TalkingStart', param) |
| 338 | return | 295 | return |
| 339 | } | 296 | } |
| 340 | - | 297 | + |
| 341 | if (param && param.status === 'TalkingEnd') { | 298 | if (param && param.status === 'TalkingEnd') { |
| 342 | this.$emit('TalkingEnd', param) | 299 | this.$emit('TalkingEnd', param) |
| 343 | return | 300 | return |
| 344 | } | 301 | } |
| 345 | - | 302 | + |
| 346 | this.saveTelMachineMsg(data) | 303 | this.saveTelMachineMsg(data) |
| 347 | } catch (error) { | 304 | } catch (error) { |
| 348 | console.error('Error parsing WebSocket message:', error) | 305 | console.error('Error parsing WebSocket message:', error) |
| 349 | } | 306 | } |
| 350 | } | 307 | } |
| 351 | - | 308 | + |
| 352 | this.ws = ws | 309 | this.ws = ws |
| 353 | }, | 310 | }, |
| 354 | saveTelMachineMsg(data) { | 311 | saveTelMachineMsg(data) { |
| 355 | data.communityId = this.communityId | 312 | data.communityId = this.communityId |
| 356 | data.machineId = this.machine.machineId | 313 | data.machineId = this.machine.machineId |
| 357 | - | 314 | + |
| 358 | saveTelMachineMsg(data).then(res => { | 315 | saveTelMachineMsg(data).then(res => { |
| 359 | if (res.code !== 0) { | 316 | if (res.code !== 0) { |
| 360 | console.error('Failed to save tel machine message:', res.msg) | 317 | console.error('Failed to save tel machine message:', res.msg) |
| 361 | return | 318 | return |
| 362 | } | 319 | } |
| 363 | - | 320 | + |
| 364 | const param = res.data || {} | 321 | const param = res.data || {} |
| 365 | if (param.action === 'sms') { | 322 | if (param.action === 'sms') { |
| 366 | this.$emit('sendTelMsg', { | 323 | this.$emit('sendTelMsg', { |
| @@ -410,7 +367,7 @@ export default { | @@ -410,7 +367,7 @@ export default { | ||
| 410 | } | 367 | } |
| 411 | }, | 368 | }, |
| 412 | uuid() { | 369 | uuid() { |
| 413 | - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | 370 | + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { |
| 414 | const r = Math.random() * 16 | 0 | 371 | const r = Math.random() * 16 | 0 |
| 415 | const v = c === 'x' ? r : (r & 0x3 | 0x8) | 372 | const v = c === 'x' ? r : (r & 0x3 | 0x8) |
| 416 | return v.toString(16) | 373 | return v.toString(16) |
| @@ -422,6 +379,7 @@ export default { | @@ -422,6 +379,7 @@ export default { | ||
| 422 | 379 | ||
| 423 | <style scoped> | 380 | <style scoped> |
| 424 | .vc-search-community-item { | 381 | .vc-search-community-item { |
| 382 | + text-align: left; | ||
| 425 | margin-bottom: 20px; | 383 | margin-bottom: 20px; |
| 426 | } | 384 | } |
| 427 | 385 |
src/views/system/assetImportLogDetailList.vue
| @@ -189,7 +189,6 @@ export default { | @@ -189,7 +189,6 @@ export default { | ||
| 189 | padding: 10px 15px; | 189 | padding: 10px 15px; |
| 190 | margin-bottom: -1px; | 190 | margin-bottom: -1px; |
| 191 | background-color: #fff; | 191 | background-color: #fff; |
| 192 | - border: 1px solid #ddd; | ||
| 193 | cursor: pointer; | 192 | cursor: pointer; |
| 194 | } | 193 | } |
| 195 | 194 |
src/views/system/publicWeChatManageList.vue
| @@ -8,9 +8,6 @@ | @@ -8,9 +8,6 @@ | ||
| 8 | @click="_openAddSmallWeChatModal(1100)"> | 8 | @click="_openAddSmallWeChatModal(1100)"> |
| 9 | <i class="el-icon-plus"></i>{{ $t('common.add') }} | 9 | <i class="el-icon-plus"></i>{{ $t('common.add') }} |
| 10 | </el-button> | 10 | </el-button> |
| 11 | - <el-button type="primary" size="small" @click="showMarkdown('/pages/property/publicWeChatManage')"> | ||
| 12 | - <i class="el-icon-document"></i>{{ $t('common.document') }} | ||
| 13 | - </el-button> | ||
| 14 | </div> | 11 | </div> |
| 15 | </div> | 12 | </div> |
| 16 | 13 |
src/views/system/storeInfoManageList.vue
| @@ -28,26 +28,23 @@ | @@ -28,26 +28,23 @@ | ||
| 28 | </el-col> | 28 | </el-col> |
| 29 | </el-row> | 29 | </el-row> |
| 30 | 30 | ||
| 31 | - <el-row :gutter="20" style="margin-top: 20px"> | ||
| 32 | - <el-col :span="24"> | ||
| 33 | - <el-card class="box-card"> | ||
| 34 | - <div slot="header" class="flex justify-between"> | ||
| 35 | - <span>{{ $t('storeInfoManage.storeInfo') }}</span> | ||
| 36 | - </div> | ||
| 37 | - <el-table :data="listStoreManageInfo.storeAttrDtoList" border style="width: 100%"> | ||
| 38 | - <el-table-column prop="name" :label="$t('storeInfoManage.attributeName')" align="center" /> | ||
| 39 | - <el-table-column prop="value" :label="$t('storeInfoManage.attributeValue')" align="center" /> | ||
| 40 | - <el-table-column :label="$t('storeInfoManage.operation')" align="center" width="150"> | ||
| 41 | - <template slot-scope="scope"> | ||
| 42 | - <el-button size="mini" type="primary" @click="_openEditStoreAttrModel(scope.row)"> | ||
| 43 | - {{ $t('storeInfoManage.edit') }} | ||
| 44 | - </el-button> | ||
| 45 | - </template> | ||
| 46 | - </el-table-column> | ||
| 47 | - </el-table> | ||
| 48 | - </el-card> | ||
| 49 | - </el-col> | ||
| 50 | - </el-row> | 31 | + <el-card class="box-card"> |
| 32 | + <div slot="header" class="flex justify-between"> | ||
| 33 | + <span>{{ $t('storeInfoManage.storeInfo') }}</span> | ||
| 34 | + </div> | ||
| 35 | + <el-table :data="listStoreManageInfo.storeAttrDtoList" border style="width: 100%"> | ||
| 36 | + <el-table-column prop="name" :label="$t('storeInfoManage.attributeName')" align="center" /> | ||
| 37 | + <el-table-column prop="value" :label="$t('storeInfoManage.attributeValue')" align="center" /> | ||
| 38 | + <el-table-column :label="$t('storeInfoManage.operation')" align="center" width="150"> | ||
| 39 | + <template slot-scope="scope"> | ||
| 40 | + <el-button size="mini" type="primary" @click="_openEditStoreAttrModel(scope.row)"> | ||
| 41 | + {{ $t('storeInfoManage.edit') }} | ||
| 42 | + </el-button> | ||
| 43 | + </template> | ||
| 44 | + </el-table-column> | ||
| 45 | + </el-table> | ||
| 46 | + </el-card> | ||
| 47 | + | ||
| 51 | 48 | ||
| 52 | <edit-store-info ref="editStoreInfo" @success="handleSuccess" /> | 49 | <edit-store-info ref="editStoreInfo" @success="handleSuccess" /> |
| 53 | <edit-store-attr ref="editStoreAttr" @success="handleSuccess" /> | 50 | <edit-store-attr ref="editStoreAttr" @success="handleSuccess" /> |
src/views/user/login/updatePwd.vue
| 1 | <template> | 1 | <template> |
| 2 | <div class="update-pwd-container"> | 2 | <div class="update-pwd-container"> |
| 3 | + <el-card> | ||
| 3 | <div class="update-pwd-title">{{ $t('updatePwd.title') }}</div> | 4 | <div class="update-pwd-title">{{ $t('updatePwd.title') }}</div> |
| 4 | - <el-form | ||
| 5 | - ref="pwdForm" | ||
| 6 | - :model="form" | ||
| 7 | - :rules="rules" | ||
| 8 | - label-width="100px" | ||
| 9 | - class="update-pwd-form" | ||
| 10 | - > | 5 | + <el-form ref="pwdForm" :model="form" :rules="rules" label-width="100px" class="update-pwd-form"> |
| 11 | <el-form-item :label="$t('updatePwd.oldPassword.label')" prop="oldPassword"> | 6 | <el-form-item :label="$t('updatePwd.oldPassword.label')" prop="oldPassword"> |
| 12 | - <el-input | ||
| 13 | - v-model="form.oldPassword" | ||
| 14 | - type="password" | ||
| 15 | - :placeholder="$t('updatePwd.oldPassword.placeholder')" | ||
| 16 | - show-password | ||
| 17 | - /> | 7 | + <el-input v-model="form.oldPassword" type="password" :placeholder="$t('updatePwd.oldPassword.placeholder')" |
| 8 | + show-password /> | ||
| 18 | </el-form-item> | 9 | </el-form-item> |
| 19 | <el-form-item :label="$t('updatePwd.newPassword.label')" prop="newPassword"> | 10 | <el-form-item :label="$t('updatePwd.newPassword.label')" prop="newPassword"> |
| 20 | - <el-input | ||
| 21 | - v-model="form.newPassword" | ||
| 22 | - type="password" | ||
| 23 | - :placeholder="$t('updatePwd.newPassword.placeholder')" | ||
| 24 | - show-password | ||
| 25 | - /> | 11 | + <el-input v-model="form.newPassword" type="password" :placeholder="$t('updatePwd.newPassword.placeholder')" |
| 12 | + show-password /> | ||
| 26 | </el-form-item> | 13 | </el-form-item> |
| 27 | <el-form-item :label="$t('updatePwd.confirmPassword.label')" prop="confirmPassword"> | 14 | <el-form-item :label="$t('updatePwd.confirmPassword.label')" prop="confirmPassword"> |
| 28 | - <el-input | ||
| 29 | - v-model="form.confirmPassword" | ||
| 30 | - type="password" | ||
| 31 | - :placeholder="$t('updatePwd.confirmPassword.placeholder')" | ||
| 32 | - show-password | ||
| 33 | - /> | 15 | + <el-input v-model="form.confirmPassword" type="password" |
| 16 | + :placeholder="$t('updatePwd.confirmPassword.placeholder')" show-password /> | ||
| 34 | </el-form-item> | 17 | </el-form-item> |
| 35 | <el-form-item> | 18 | <el-form-item> |
| 36 | <el-button type="primary" @click="handleSubmit">{{ $t('updatePwd.button') }}</el-button> | 19 | <el-button type="primary" @click="handleSubmit">{{ $t('updatePwd.button') }}</el-button> |
| 37 | </el-form-item> | 20 | </el-form-item> |
| 38 | </el-form> | 21 | </el-form> |
| 22 | + </el-card> | ||
| 39 | </div> | 23 | </div> |
| 40 | </template> | 24 | </template> |
| 41 | 25 | ||
| @@ -80,12 +64,12 @@ export default { | @@ -80,12 +64,12 @@ export default { | ||
| 80 | this.$refs.pwdForm.validate(async (valid) => { | 64 | this.$refs.pwdForm.validate(async (valid) => { |
| 81 | if (valid) { | 65 | if (valid) { |
| 82 | try { | 66 | try { |
| 83 | - const {code,msg} = await updatePassword({ | 67 | + const { code, msg } = await updatePassword({ |
| 84 | oldPwd: this.form.oldPassword, | 68 | oldPwd: this.form.oldPassword, |
| 85 | newPwd: this.form.newPassword, | 69 | newPwd: this.form.newPassword, |
| 86 | - reNewPwd:this.form.confirmPassword | 70 | + reNewPwd: this.form.confirmPassword |
| 87 | }) | 71 | }) |
| 88 | - if(code != 0){ | 72 | + if (code != 0) { |
| 89 | this.$message.error(msg) | 73 | this.$message.error(msg) |
| 90 | return; | 74 | return; |
| 91 | } | 75 | } |
| @@ -104,11 +88,7 @@ export default { | @@ -104,11 +88,7 @@ export default { | ||
| 104 | 88 | ||
| 105 | <style lang="scss" scoped> | 89 | <style lang="scss" scoped> |
| 106 | .update-pwd-container { | 90 | .update-pwd-container { |
| 107 | - width: 97%; | ||
| 108 | padding: 20px; | 91 | padding: 20px; |
| 109 | - background-color: #fff; | ||
| 110 | - border-radius: 4px; | ||
| 111 | - box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); | ||
| 112 | 92 | ||
| 113 | .update-pwd-title { | 93 | .update-pwd-title { |
| 114 | font-size: 16px; | 94 | font-size: 16px; |
| @@ -139,4 +119,4 @@ export default { | @@ -139,4 +119,4 @@ export default { | ||
| 139 | } | 119 | } |
| 140 | } | 120 | } |
| 141 | } | 121 | } |
| 142 | -</style> | ||
| 143 | \ No newline at end of file | 122 | \ No newline at end of file |
| 123 | +</style> | ||
| 144 | \ No newline at end of file | 124 | \ No newline at end of file |