@zscreate/zhxy-app-component 1.0.256 → 1.0.257

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.
@@ -0,0 +1,15 @@
1
+ <script setup>
2
+
3
+ </script>
4
+
5
+ <template>
6
+ <view
7
+ class="uni-date__icon-clear clear-btn"
8
+ @click.stop="clear">
9
+
10
+ </view>
11
+ </template>
12
+
13
+ <style scoped lang="scss">
14
+
15
+ </style>
@@ -572,7 +572,9 @@
572
572
  {{ widget.name }}
573
573
  </view>
574
574
  <view class="evan-form-item-container__main dataTable" :style="mContentStyle" @click="selectCommonPicker(widget)">
575
- <view class="form-input" >{{ dataModelShow ? dataModelShow : widget.options.placeholder }}</view>
575
+ <view class="form-input" style="display: flex">{{ dataModelShow ? dataModelShow : widget.options.placeholder }}
576
+ <uni-icons style="margin-left: auto; height: 60rpx; line-height: 60rpx" @click.native.stop="handleClear" v-if="!widget.options.disabled && dataModelShow" type="clear" color="#e1e1e1" size="14"></uni-icons>
577
+ </view>
576
578
  </view>
577
579
  </view>
578
580
 
@@ -823,6 +825,11 @@ export default {
823
825
  uni.$off(this.widget.model);
824
826
  },
825
827
  methods: {
828
+ handleClear() {
829
+ debugger
830
+ this.dataModel = []
831
+ this.dataModelShow = ''
832
+ },
826
833
  correctOldValue(oldValue) {
827
834
  const type = this.widget.type
828
835
  if (Array.isArray(oldValue) && oldValue.length === 0) return '【空】'
@@ -1555,7 +1562,13 @@ export default {
1555
1562
  this.$refs.userSelectByRole && this.$refs.userSelectByRole.init(widget, this.dataModel)
1556
1563
  },
1557
1564
  selectCommonPicker(widget) {
1558
- if (widget.options.disabled) return
1565
+ if (widget.options.disabled || this.dataModelShow) {
1566
+ const { business_name, id } = this.dataModel[0]
1567
+ uni.navigateTo({
1568
+ url: `/pagesA/view/appform/appApplyDeatil?title=${business_name}&applyId=${id}`
1569
+ });
1570
+ return
1571
+ }
1559
1572
  this.isClickByUser = true
1560
1573
  var PubsubSign = widget.type + String(Math.random()).split('.')[1];
1561
1574
  Pubsub.subscribe(PubsubSign, (msg, data) => {
@@ -133,7 +133,7 @@ export default {
133
133
  statusShow: false,
134
134
  ipage: {
135
135
  current: 1,
136
- pageSize: 5
136
+ pageSize: 20
137
137
  },
138
138
  statusRange: Object.keys(stautsObject).map(item => ({ id: item, label: stautsObject[item] })),
139
139
  //表头
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.256",
3
+ "version": "1.0.257",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",