Commit 222dee41d30b60b677f3b5ed15a41fdde1d44d76

Authored by wuxw
1 parent 48a86123

v1.9 系统菜单 部分bug 修复

src/components/system/deleteFeePrintSpec.vue
1 1 <template>
2 2 <el-dialog
3   - :title="$t('feePrintSpec.deleteTitle')"
  3 + :title="$t('common.delete')"
4 4 :visible.sync="visible"
5 5 width="30%"
6 6 center>
7 7 <div class="text-center">
8   - <p>{{ $t('feePrintSpec.deleteConfirm') }}</p>
  8 + <p>{{ $t('common.deleteConfirm') }}</p>
9 9 </div>
10 10 <span slot="footer" class="dialog-footer">
11 11 <el-button @click="visible = false">
... ...
src/components/system/searchCommunityDataList.vue
1 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 3 <el-row class="margin-bottom">
9 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 7 </el-col>
16 8 <el-col :span="3" :offset="1">
17 9 <el-button type="primary" @click="doSearch">
... ... @@ -30,11 +22,7 @@
30 22 <div class="vc-search-community-item" v-if="rooms.length > 0">
31 23 <div class="item-title">{{ $t('searchCommunityData.roomInfo') }}</div>
32 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 26 {{ item.roomName }}
39 27 </el-link>
40 28 </div>
... ... @@ -42,12 +30,8 @@
42 30 <div class="vc-search-community-item" v-if="owners.length > 0">
43 31 <div class="item-title">{{ $t('searchCommunityData.ownerInfo') }}</div>
44 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 35 {{ item.name }}
52 36 </el-link>
53 37 </div>
... ... @@ -55,12 +39,8 @@
55 39 <div class="vc-search-community-item" v-if="ownerMembers.length > 0">
56 40 <div class="item-title">{{ $t('searchCommunityData.ownerMember') }}</div>
57 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 44 {{ item.name }}
65 45 </el-link>
66 46 </div>
... ... @@ -68,12 +48,8 @@
68 48 <div class="vc-search-community-item" v-if="cars.length > 0">
69 49 <div class="item-title">{{ $t('searchCommunityData.communityCar') }}</div>
70 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 53 {{ item.carNum }}
78 54 </el-link>
79 55 </div>
... ... @@ -81,12 +57,8 @@
81 57 <div class="vc-search-community-item" v-if="carMembers.length > 0">
82 58 <div class="item-title">{{ $t('searchCommunityData.memberCar') }}</div>
83 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 62 {{ item.carNum }}
91 63 </el-link>
92 64 </div>
... ... @@ -94,12 +66,8 @@
94 66 <div class="vc-search-community-item" v-if="contracts.length > 0">
95 67 <div class="item-title">{{ $t('searchCommunityData.contract') }}</div>
96 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 71 {{ item.contractName }}
104 72 </el-link>
105 73 </div>
... ... @@ -107,12 +75,8 @@
107 75 <div class="vc-search-community-item" v-if="repairs.length > 0">
108 76 <div class="item-title">{{ $t('searchCommunityData.repairOrder') }}</div>
109 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 80 {{ item.repairName }}
117 81 </el-link>
118 82 </div>
... ... @@ -120,12 +84,8 @@
120 84 <div class="vc-search-community-item" v-if="visits.length > 0">
121 85 <div class="item-title">{{ $t('searchCommunityData.visitor') }}</div>
122 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 89 {{ item.vName }}
130 90 </el-link>
131 91 </div>
... ... @@ -133,12 +93,8 @@
133 93 <div class="vc-search-community-item" v-if="staffs.length > 0">
134 94 <div class="item-title">{{ $t('searchCommunityData.staff') }}</div>
135 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 98 {{ item.name }}
143 99 </el-link>
144 100 </div>
... ... @@ -215,7 +171,7 @@ export default {
215 171 this.$message.warning(this.$t('searchCommunityData.inputTip'))
216 172 return
217 173 }
218   -
  174 +
219 175 searchCommunityData({
220 176 searchValue: this.searchValue,
221 177 communityId: this.communityId
... ... @@ -224,7 +180,7 @@ export default {
224 180 this.$message.error(res.msg)
225 181 return
226 182 }
227   -
  183 +
228 184 this.noData = false
229 185 const data = res.data
230 186 this.rooms = data.rooms || []
... ... @@ -236,24 +192,25 @@ export default {
236 192 this.repairs = data.repairs || []
237 193 this.visits = data.visitDtos || []
238 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 201 }).catch(error => {
246 202 console.error('Search failed:', error)
247 203 })
248 204 },
249 205 toSimplifyAcceptance(room) {
  206 + this.visible = false
250 207 this.$router.push('/pages/property/simplifyAcceptance?tab=业务受理&searchType=1&searchValue=' + `${room.floorNum}-${room.unitNum}-${room.roomNum}`)
251 208  
252 209 },
253 210 clearSearchData() {
254 211 const ws = this.ws
255 212 const machine = this.machine
256   -
  213 +
257 214 this.searchValue = ''
258 215 this.noData = true
259 216 this.rooms = []
... ... @@ -286,29 +243,29 @@ export default {
286 243 url = "wss://"
287 244 }
288 245 url = `${url}${machine.machineIp}:${machine.machinePort}/APP_2AD85C71-BEF8-463C-9B4B-B672F603542A_fast`
289   -
  246 +
290 247 const ws = new WebSocket(url)
291   -
  248 +
292 249 ws.onerror = (event) => {
293 250 console.log('WebSocket error:', event)
294 251 setTimeout(() => {
295 252 this.connectTelMachine(machine)
296 253 }, 2000)
297 254 }
298   -
  255 +
299 256 ws.onclose = () => {
300 257 console.log('WebSocket closed')
301 258 }
302   -
  259 +
303 260 ws.onopen = () => {
304 261 console.log('WebSocket connected')
305 262 }
306   -
  263 +
307 264 ws.onmessage = (event) => {
308 265 try {
309 266 const data = JSON.parse(event.data)
310 267 console.log('WebSocket message:', data)
311   -
  268 +
312 269 if (data.message === 'query') {
313 270 if (data.name === 'Device' && data.param.CallerId) {
314 271 this.clearSearchData()
... ... @@ -322,9 +279,9 @@ export default {
322 279 }
323 280 return
324 281 }
325   -
  282 +
326 283 const param = data.param
327   -
  284 +
328 285 if (param && param.status === 'CallIn') {
329 286 this.clearSearchData()
330 287 this.searchValue = param.number
... ... @@ -332,35 +289,35 @@ export default {
332 289 this.doSearch()
333 290 return
334 291 }
335   -
  292 +
336 293 if (param && param.status === 'TalkingStart') {
337 294 this.$emit('TalkingStart', param)
338 295 return
339 296 }
340   -
  297 +
341 298 if (param && param.status === 'TalkingEnd') {
342 299 this.$emit('TalkingEnd', param)
343 300 return
344 301 }
345   -
  302 +
346 303 this.saveTelMachineMsg(data)
347 304 } catch (error) {
348 305 console.error('Error parsing WebSocket message:', error)
349 306 }
350 307 }
351   -
  308 +
352 309 this.ws = ws
353 310 },
354 311 saveTelMachineMsg(data) {
355 312 data.communityId = this.communityId
356 313 data.machineId = this.machine.machineId
357   -
  314 +
358 315 saveTelMachineMsg(data).then(res => {
359 316 if (res.code !== 0) {
360 317 console.error('Failed to save tel machine message:', res.msg)
361 318 return
362 319 }
363   -
  320 +
364 321 const param = res.data || {}
365 322 if (param.action === 'sms') {
366 323 this.$emit('sendTelMsg', {
... ... @@ -410,7 +367,7 @@ export default {
410 367 }
411 368 },
412 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 371 const r = Math.random() * 16 | 0
415 372 const v = c === 'x' ? r : (r & 0x3 | 0x8)
416 373 return v.toString(16)
... ... @@ -422,6 +379,7 @@ export default {
422 379  
423 380 <style scoped>
424 381 .vc-search-community-item {
  382 + text-align: left;
425 383 margin-bottom: 20px;
426 384 }
427 385  
... ...
src/views/system/assetImportLogDetailList.vue
... ... @@ -189,7 +189,6 @@ export default {
189 189 padding: 10px 15px;
190 190 margin-bottom: -1px;
191 191 background-color: #fff;
192   - border: 1px solid #ddd;
193 192 cursor: pointer;
194 193 }
195 194  
... ...
src/views/system/publicWeChatManageList.vue
... ... @@ -8,9 +8,6 @@
8 8 @click="_openAddSmallWeChatModal(1100)">
9 9 <i class="el-icon-plus"></i>{{ $t('common.add') }}
10 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 11 </div>
15 12 </div>
16 13  
... ...
src/views/system/storeInfoManageList.vue
... ... @@ -28,26 +28,23 @@
28 28 </el-col>
29 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 49 <edit-store-info ref="editStoreInfo" @success="handleSuccess" />
53 50 <edit-store-attr ref="editStoreAttr" @success="handleSuccess" />
... ...
src/views/user/login/updatePwd.vue
1 1 <template>
2 2 <div class="update-pwd-container">
  3 + <el-card>
3 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 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 9 </el-form-item>
19 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 13 </el-form-item>
27 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 17 </el-form-item>
35 18 <el-form-item>
36 19 <el-button type="primary" @click="handleSubmit">{{ $t('updatePwd.button') }}</el-button>
37 20 </el-form-item>
38 21 </el-form>
  22 + </el-card>
39 23 </div>
40 24 </template>
41 25  
... ... @@ -80,12 +64,12 @@ export default {
80 64 this.$refs.pwdForm.validate(async (valid) => {
81 65 if (valid) {
82 66 try {
83   - const {code,msg} = await updatePassword({
  67 + const { code, msg } = await updatePassword({
84 68 oldPwd: this.form.oldPassword,
85 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 73 this.$message.error(msg)
90 74 return;
91 75 }
... ... @@ -104,11 +88,7 @@ export default {
104 88  
105 89 <style lang="scss" scoped>
106 90 .update-pwd-container {
107   - width: 97%;
108 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 93 .update-pwd-title {
114 94 font-size: 16px;
... ... @@ -139,4 +119,4 @@ export default {
139 119 }
140 120 }
141 121 }
142   -</style>
143 122 \ No newline at end of file
  123 +</style>
144 124 \ No newline at end of file
... ...