@zscreate/zhxy-app-component 1.0.84 → 1.0.86

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.
@@ -70,7 +70,6 @@ textarea {
70
70
  width: 100%;
71
71
  }
72
72
  .textarea-wrapper {
73
- z-index: 999;
74
73
  position: relative;
75
74
  display: block;
76
75
  height: 100%;
@@ -23,8 +23,9 @@
23
23
  <u-checkbox :value="isAllCheck" @change="roleCheckAll">
24
24
  </u-checkbox>
25
25
  </view>
26
+ <view v-else>选择</view>
26
27
  </u-th>
27
- <u-th>姓名</u-th>
28
+ <u-th >姓名</u-th>
28
29
  <u-th>所属部门</u-th>
29
30
  </u-tr>
30
31
  <u-tr v-for="user in roleUserList" :key="user.id">
@@ -34,8 +35,8 @@
34
35
  </u-checkbox>
35
36
  </view>
36
37
  </u-td>
37
- <u-td><view>{{ user.realname }}</view></u-td>
38
- <u-td style="word-break: break-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"><view>{{ user.departName }}</view></u-td>
38
+ <u-td style="flex: 1"><view>{{ user.realname }}</view></u-td>
39
+ <u-td style="flex: 1; word-break: break-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"><view>{{ user.departName }}</view></u-td>
39
40
  </u-tr>
40
41
  </u-table>
41
42
 
@@ -48,6 +49,7 @@
48
49
  </view>
49
50
 
50
51
 
52
+ <t-loading :isLoading="isLoading"/>
51
53
  </u-popup>
52
54
  </template>
53
55
 
@@ -69,6 +71,7 @@ export default {
69
71
  multiple: false,
70
72
  depId: '',
71
73
  roleChecked: '',
74
+ isLoading: true,
72
75
  }
73
76
  },
74
77
  computed: {
@@ -83,7 +86,7 @@ export default {
83
86
  methods: {
84
87
  init(widget, value) {
85
88
  this.roleSelectShow = true
86
-
89
+ this.isLoading = true
87
90
  if (widget.options.departRelation) {
88
91
  const userInfo = uni.getStorageSync('userinfo')
89
92
  console.log("userInfo: ", userInfo)
@@ -91,7 +94,7 @@ export default {
91
94
  }
92
95
  this.role = widget.options.role
93
96
  this.multiple = widget.options.multiple
94
- this.currValue = value || []
97
+ this.currValue = cloneObj(value || [])
95
98
  this.$u.get('/sys/role/list', {
96
99
  pageNo: 1,
97
100
  pageSize: 100000,
@@ -99,8 +102,9 @@ export default {
99
102
  this.rolesList = res.result.records.filter((item) => {
100
103
  return this.role.includes(item.id);
101
104
  });
105
+ }).finally(() => {
106
+ this.isLoading = false
102
107
  })
103
- this.currValue = cloneObj(value)
104
108
  },
105
109
  removeClick(val) {
106
110
  this.currValue = this.currValue.filter(item => item.id !== val.id)
@@ -168,6 +172,7 @@ export default {
168
172
  }
169
173
  },
170
174
  roleChange(roleId) {
175
+ this.isLoading = true
171
176
  this.$u.get('/formApi/listFormUserByRole', {
172
177
  pageNo: 1,
173
178
  pageSize: 100000,
@@ -178,6 +183,10 @@ export default {
178
183
  item.checked = this.checkIds.includes(item.id)
179
184
  return item
180
185
  })
186
+ }).finally( () => {
187
+ this.$nextTick(() => {
188
+ this.isLoading = false
189
+ })
181
190
  })
182
191
 
183
192
  },
@@ -186,5 +195,10 @@ export default {
186
195
  </script>
187
196
 
188
197
  <style scoped>
189
-
198
+ /deep/ u-th:nth-child(1) {
199
+ flex: 0 0 40px;
200
+ }
201
+ /deep/ u-th {
202
+ flex: 1;
203
+ }
190
204
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",