vue2-client 1.14.7 → 1.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -335,7 +335,6 @@ export default {
|
|
|
335
335
|
this.model[4].code = item.code
|
|
336
336
|
}
|
|
337
337
|
this.getResultText(5)
|
|
338
|
-
this.selectOpen = false
|
|
339
338
|
}
|
|
340
339
|
},
|
|
341
340
|
getResultText (tag) {
|
|
@@ -349,6 +348,7 @@ export default {
|
|
|
349
348
|
}
|
|
350
349
|
this.valueView = address.length === 0 ? undefined : address.join('')
|
|
351
350
|
if (tag === this.contexts) {
|
|
351
|
+
this.selectOpen = false
|
|
352
352
|
this.$refs.select.blur()
|
|
353
353
|
// this.$emit('onChange', this.valueType === 'address' ? address.join('') : code)
|
|
354
354
|
this.$emit('onChange', code)
|
|
@@ -356,7 +356,6 @@ export default {
|
|
|
356
356
|
},
|
|
357
357
|
// 失去焦点回调
|
|
358
358
|
selectBlurHandle () {
|
|
359
|
-
console.log(this.model[this.contexts - 1])
|
|
360
359
|
if (!this.model[this.contexts - 1].code || this.model[this.contexts - 1].code === '') {
|
|
361
360
|
this.valueView = undefined
|
|
362
361
|
}
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
</x-descriptions>
|
|
29
29
|
<user-info-detail-query-tabs :userInfo="userInfo"/>
|
|
30
30
|
<template #extra>
|
|
31
|
-
<a-button type="primary" v-if="
|
|
32
|
-
<a-button type="primary" v-if="
|
|
31
|
+
<a-button type="primary" v-if="openUserBtnShow" @click="openUser">开户</a-button>
|
|
32
|
+
<a-button type="primary" v-if="valveBtnShow" @click="valvecontrol">开关阀</a-button>
|
|
33
33
|
<a-button type="dashed" @click="refresh">刷新</a-button>
|
|
34
34
|
</template>
|
|
35
35
|
</a-page-header>
|
|
@@ -121,6 +121,8 @@ export default {
|
|
|
121
121
|
return {
|
|
122
122
|
userInfo: undefined,
|
|
123
123
|
userInfoDetailVisible: false,
|
|
124
|
+
openUserBtnShow: false,
|
|
125
|
+
valveBtnShow: false,
|
|
124
126
|
valve: false,
|
|
125
127
|
networkValveOptions: [
|
|
126
128
|
'手动',
|
|
@@ -134,6 +136,18 @@ export default {
|
|
|
134
136
|
operateReason: '',
|
|
135
137
|
}
|
|
136
138
|
},
|
|
139
|
+
watch: {
|
|
140
|
+
userInfo: {
|
|
141
|
+
handler () {
|
|
142
|
+
if (this.userInfo) {
|
|
143
|
+
console.log('userinfo', this.userInfo)
|
|
144
|
+
this.openUserBtnShow = this.userInfo.f_meter_type.includes('物联网表')
|
|
145
|
+
this.valveBtnShow = this.userInfo.f_meter_type.includes('物联网表') && this.userInfo.f_user_state !== '停用'
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
deep: true
|
|
149
|
+
}
|
|
150
|
+
},
|
|
137
151
|
methods: {
|
|
138
152
|
refresh () {
|
|
139
153
|
return runLogic('getUserInfoDetailV4', this.userInfo, 'af-revenue').then(res => {
|
|
@@ -144,7 +158,7 @@ export default {
|
|
|
144
158
|
this.$confirm({
|
|
145
159
|
title: '开户确认',
|
|
146
160
|
content: '是否需要给用户进行开户?',
|
|
147
|
-
onOk: ()=> {
|
|
161
|
+
onOk: () => {
|
|
148
162
|
const data = {
|
|
149
163
|
f_userfiles_id: this.userInfo.f_userfiles_id
|
|
150
164
|
}
|
|
@@ -167,7 +181,7 @@ export default {
|
|
|
167
181
|
this.selectedOption = ''
|
|
168
182
|
this.operateReason = ''
|
|
169
183
|
},
|
|
170
|
-
|
|
184
|
+
async init (user) {
|
|
171
185
|
this.userInfo = user
|
|
172
186
|
await this.refresh()
|
|
173
187
|
this.userInfoDetailVisible = true
|
|
@@ -237,7 +251,7 @@ export default {
|
|
|
237
251
|
if (_this.selectedOption !== '手动') {
|
|
238
252
|
const msg = _this.selectedOption !== '自动' ? `阀控状态将在${_this.selectedOption}后自动调整为【自动】` : `阀控状态自动调整为 【自动】`
|
|
239
253
|
this.$message.success(msg)
|
|
240
|
-
runLogic('iot_processDelayedOperations',datas,'af-revenue').then(res => {
|
|
254
|
+
runLogic('iot_processDelayedOperations', datas, 'af-revenue').then(res => {
|
|
241
255
|
this.$emit('refresh')
|
|
242
256
|
console.log('延时操作逻辑已执行')
|
|
243
257
|
})
|