@zscreate/zhxy-app-component 1.0.216 → 1.0.218
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.
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
<view style="min-width: 33px;">
|
|
34
34
|
<u-checkbox v-model="user.checked" @change="handleCheck" :name="user.id" v-if="multiple">
|
|
35
35
|
</u-checkbox>
|
|
36
|
-
<u-radio-group v-model="radioItem" v-else>
|
|
37
|
-
<u-radio @change="handleCheckRadio" :name="user.id"
|
|
36
|
+
<u-radio-group v-model="radioItem" v-else class="table-radio">
|
|
37
|
+
<u-radio @change="handleCheckRadio" :name="user.id"></u-radio>
|
|
38
38
|
</u-radio-group>
|
|
39
39
|
</view>
|
|
40
40
|
</u-td>
|
|
@@ -96,6 +96,8 @@ export default {
|
|
|
96
96
|
// #endif
|
|
97
97
|
methods: {
|
|
98
98
|
init(widget, value) {
|
|
99
|
+
this.roleChecked = ''
|
|
100
|
+
this.radioItem = ''
|
|
99
101
|
this.roleSelectShow = true
|
|
100
102
|
this.isLoading = true
|
|
101
103
|
if (widget.options.departRelation) {
|
|
@@ -106,7 +108,7 @@ export default {
|
|
|
106
108
|
this.role = widget.options.role
|
|
107
109
|
this.multiple = widget.options.multiple
|
|
108
110
|
this.currValue = cloneObj(value || [])
|
|
109
|
-
if(!this.multiple) this.radioItem = this.currValue[0].id
|
|
111
|
+
if(!this.multiple && this.currValue.length > 0) this.radioItem = this.currValue[0].id
|
|
110
112
|
this.$u.get('/sys/role/list', {
|
|
111
113
|
pageNo: 1,
|
|
112
114
|
pageSize: 100000,
|
|
@@ -226,7 +228,7 @@ export default {
|
|
|
226
228
|
flex: 1;
|
|
227
229
|
}
|
|
228
230
|
/deep/ .u-icon__icon {
|
|
229
|
-
top: -
|
|
231
|
+
top: -0px !important;
|
|
230
232
|
}
|
|
231
233
|
/deep/ .u-checkbox__label {
|
|
232
234
|
display: none !important;
|
|
@@ -234,6 +236,14 @@ export default {
|
|
|
234
236
|
/deep/ .table-radio .u-radio__label {
|
|
235
237
|
display: none !important;
|
|
236
238
|
}
|
|
239
|
+
// #ifdef MP-WEIXIN
|
|
240
|
+
/deep/ .table-radio .u-radio {
|
|
241
|
+
float: inherit !important;
|
|
242
|
+
}
|
|
243
|
+
/deep/ .u-icon__icon {
|
|
244
|
+
top: -3px !important;
|
|
245
|
+
}
|
|
246
|
+
// #endif
|
|
237
247
|
.role-select-body {
|
|
238
248
|
display: flex;
|
|
239
249
|
flex-direction: column;
|