@zscreate/zhxy-app-component 1.0.330 → 1.0.332

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.
@@ -1680,7 +1680,25 @@ export default {
1680
1680
  [this.widget.model]: null
1681
1681
  }
1682
1682
  let options = this.widget.options
1683
- if (this.widget.options.dictCode || this.widget.options.dictName) {
1683
+ if(options.remoteNumber == '4') {
1684
+ global.dictData[this.widget.model] = options.designDataList.map(item => {
1685
+ return {
1686
+ value: item.value,
1687
+ label: item.label,
1688
+ text: item.label
1689
+ }
1690
+ })
1691
+ let str = ''
1692
+ let newArr = []
1693
+ options.designDataList.forEach(item => {
1694
+ newArr = Array.isArray(this.dataModel) ? this.dataModel : this.dataModel.split(',')
1695
+ if(newArr.includes(item.value)) {
1696
+ str += ',' + item.label
1697
+ }
1698
+ })
1699
+ this.dataModelShow = str.substring(1)
1700
+ } else {
1701
+ if (this.widget.options.dictCode || this.widget.options.dictName) {
1684
1702
  //根据字典Code, 初始化字典数组
1685
1703
  await this.$u.get(
1686
1704
  `/sys/dict/getDictItems/${this.widget.options.dictCode ? this.widget.options.dictCode : this.widget.options.dictName}`,
@@ -1739,6 +1757,7 @@ export default {
1739
1757
  }
1740
1758
 
1741
1759
  }
1760
+ }
1742
1761
  },
1743
1762
  //处理下拉框接口地址数据
1744
1763
  getSelectUrl(url, params) {
@@ -2118,8 +2137,8 @@ export default {
2118
2137
  if (this.widget.options.disabled) {
2119
2138
  return false
2120
2139
  } else {
2121
- const { multiple, dictName, dictUrl, dictTable, options, linkage } = this.widget.options
2122
- var optionsData = JSON.stringify({ dictName, dictUrl, dictTable, options, linkage })
2140
+ const { multiple, dictName, dictUrl, dictTable, options, linkage, designDataList,remoteNumber } = this.widget.options
2141
+ var optionsData = JSON.stringify({ dictName, dictUrl, dictTable, options, linkage,designDataList, remoteNumber })
2123
2142
  var PubsubSign = String(Math.random()).split('.')[1];
2124
2143
  Pubsub.subscribe(PubsubSign, (msg, data) => {
2125
2144
  console.log(data)
@@ -2161,7 +2180,15 @@ export default {
2161
2180
  id = this.linkage[model]
2162
2181
  }
2163
2182
  console.log(this.models);
2164
- if(this.zjfmFormDesign) {
2183
+ // 代表自定义选择
2184
+ if(this.widget.options.remoteNumber == '4') {
2185
+ uni.setStorageSync('designDataList',designDataList)
2186
+ uni.navigateTo({
2187
+ url: '/pages/picker/service?sign=' + PubsubSign + '&multiple=' + flag + '&optionsData=' +
2188
+ encodeURIComponent(optionsData) + '&dataModel=' + JSON.stringify(this.dataModel) + '&id=' + id + '&applyId=' + this.applyId +'&dictLabelAnalysis=' + this.widget.options.dictLabelAnalysis
2189
+ });
2190
+ } else {
2191
+ if(this.zjfmFormDesign) {
2165
2192
  uni.setStorageSync('zjfmFormDesignModels', this.models)
2166
2193
  uni.navigateTo({
2167
2194
  url: '/pages/picker/service?sign=' + PubsubSign + '&zjfmFormDesign=true'
@@ -2173,6 +2200,7 @@ export default {
2173
2200
  encodeURIComponent(optionsData) + '&dataModel=' + JSON.stringify(this.dataModel) + '&id=' + id + '&applyId=' + this.applyId +'&dictLabelAnalysis=' + this.widget.options.dictLabelAnalysis
2174
2201
  });
2175
2202
  }
2203
+ }
2176
2204
 
2177
2205
  }
2178
2206
  },
@@ -38,10 +38,12 @@
38
38
  </view>
39
39
  </view>
40
40
  </view>
41
+ <!-- #ifdef H5 -->
41
42
  <page-pagination v-if="tablePageInfo[item.model]&&tablePageInfo[item.model].total" :total="tablePageInfo[item.model]&&tablePageInfo[item.model].total"
42
43
  :currentPage="tablePageInfo[item.model]&&tablePageInfo[item.model].current"
43
44
  @change="(...args) => tablePageChange(item,...args)"
44
45
  :numAround="true" :showBorder="false"></page-pagination>
46
+ <!-- #endif -->
45
47
  </template>
46
48
  <template v-else>
47
49
  <view class="table-item" v-for="(table, tableCIndex) in tableData[item.model]"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.330",
3
+ "version": "1.0.332",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",