three-trees-ui 1.0.86 → 1.0.88

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-trees-ui",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -693,7 +693,7 @@
693
693
  })
694
694
  this.$nextTick(() => {
695
695
  if (this.value && !this.isReadOnly) {
696
- this.showDialog(true)
696
+ // this.showDialog(true)
697
697
  }
698
698
  })
699
699
  },
@@ -1137,7 +1137,7 @@
1137
1137
  }
1138
1138
  const pInst = utils.getOnlineFormInstance(this)
1139
1139
  this.selectOrgs = this.convertComment2Field(str, field)
1140
- this.custdialog.custDialog.mappingConf.forEach((con) => {
1140
+ this.custdialog.custDialog.mappingConf.forEach((con) => {
1141
1141
  let val = ''
1142
1142
  let bindValue = ''
1143
1143
  //改造,绑定值,表单列表查询字段绑定对话框时,新增的绑定字段选项
@@ -1176,19 +1176,29 @@
1176
1176
  thisIndex
1177
1177
  )
1178
1178
  } else if (this.modelName == 'searchForm.' + con['target'][0]) {
1179
- const bInst = pInst['searchForm'] ? pInst: pInst.data
1179
+ const bInst = pInst['searchForm'] ? pInst : pInst.data
1180
1180
  const currentValue = val.substring(0, val.length - 1)
1181
1181
  if (this.modelName && this.modelName.endsWith(con['target'][0])) {
1182
- this.$emit('updateInput', currentValue);
1182
+ this.$emit('updateInput', currentValue)
1183
1183
  }
1184
- utils.setValueByPath(bInst, 'searchForm.' + con['target'][0], currentValue, thisIndex)
1184
+ utils.setValueByPath(
1185
+ bInst,
1186
+ 'searchForm.' + con['target'][0],
1187
+ currentValue,
1188
+ thisIndex
1189
+ )
1185
1190
  //绑定字段值处理,bindValue: {target: {id: xxx}}, bindKey: {target: id }
1186
1191
  if (bindValue && bindValueField) {
1187
1192
  const bindValueObj = {}
1188
1193
  //显示value对象
1189
- bindValueObj[bindValueField] = bindValue.substring(0, bindValue.length - 1)
1194
+ bindValueObj[bindValueField] = bindValue.substring(
1195
+ 0,
1196
+ bindValue.length - 1
1197
+ )
1190
1198
 
1191
- const anInst = pInst['searchForm'] ? pInst['searchForm'] : pInst.data.searchForm
1199
+ const anInst = pInst['searchForm']
1200
+ ? pInst['searchForm']
1201
+ : pInst.data.searchForm
1192
1202
  //若bindKey不存在,则默认空对象,若存在,则取出bindKey
1193
1203
  anInst.bindKey = anInst.bindKey || {}
1194
1204
  //格式 {target: id }
@@ -1222,7 +1232,11 @@
1222
1232
  }
1223
1233
  utils.setValueByPath(
1224
1234
  pInst,
1225
- `${pInst.data ? 'data.' : 'model.'}${this.modelName.includes('searchForm') ? `searchForm.${path}` : path}`,
1235
+ `${pInst.data ? 'data.' : 'model.'}${
1236
+ this.modelName.includes('searchForm')
1237
+ ? `searchForm.${path}`
1238
+ : path
1239
+ }`,
1226
1240
  _val,
1227
1241
  thisIndex
1228
1242
  )
@@ -1230,9 +1244,14 @@
1230
1244
  if (bindValue && bindValueField) {
1231
1245
  const bindValueObj = {}
1232
1246
  //显示value对象
1233
- bindValueObj[bindValueField] = bindValue.substring(0, bindValue.length - 1)
1247
+ bindValueObj[bindValueField] = bindValue.substring(
1248
+ 0,
1249
+ bindValue.length - 1
1250
+ )
1234
1251
 
1235
- const anInst = pInst['searchForm'] ? pInst['searchForm'] : pInst.data.searchForm
1252
+ const anInst = pInst['searchForm']
1253
+ ? pInst['searchForm']
1254
+ : pInst.data.searchForm
1236
1255
  //若bindKey不存在,则默认空对象,若存在,则取出bindKey
1237
1256
  anInst.bindKey = anInst.bindKey || {}
1238
1257
  //格式 {target: id }
@@ -1948,17 +1967,27 @@
1948
1967
  ) {
1949
1968
  const currentValue = val.substring(0, val.length - 1)
1950
1969
  if (this.modelName && this.modelName.endsWith(con['target'][0])) {
1951
- this.$emit('updateInput', currentValue);
1970
+ this.$emit('updateInput', currentValue)
1952
1971
  }
1953
1972
  let prePath = pInst['searchForm'] ? '' : 'data.'
1954
- utils.setValueByPath(pInst, prePath + 'searchForm.' + con['target'][0], currentValue, thisIndex)
1973
+ utils.setValueByPath(
1974
+ pInst,
1975
+ prePath + 'searchForm.' + con['target'][0],
1976
+ currentValue,
1977
+ thisIndex
1978
+ )
1955
1979
  //绑定字段值处理,bindValue: {target: {id: xxx}}, bindKey: {target: id }
1956
1980
  if (bindValue && bindValueField) {
1957
1981
  const bindValueObj = {}
1958
1982
  //显示value对象
1959
- bindValueObj[bindValueField] = bindValue.substring(0, bindValue.length - 1)
1983
+ bindValueObj[bindValueField] = bindValue.substring(
1984
+ 0,
1985
+ bindValue.length - 1
1986
+ )
1960
1987
 
1961
- const anInst = pInst['searchForm'] ? pInst['searchForm'] : pInst.data.searchForm
1988
+ const anInst = pInst['searchForm']
1989
+ ? pInst['searchForm']
1990
+ : pInst.data.searchForm
1962
1991
  //若bindKey不存在,则默认空对象,若存在,则取出bindKey
1963
1992
  anInst.bindKey = anInst.bindKey || {}
1964
1993
  //格式 {target: id }
@@ -227,7 +227,7 @@
227
227
  })
228
228
  }
229
229
  const instKey = SubPagination._vueComponentKey(this.dataSubname)
230
- if (!SubPagination._map.has(instKey) && pInst) {
230
+ if (pInst) {
231
231
  // 将子表数据所属的VueComponent对象实例存储(用于数据导入)
232
232
  SubPagination._map.set(instKey, pInst)
233
233
  }