@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.
|
@@ -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 }}
|
|
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)
|
|
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) => {
|