three-trees-ui 1.1.8 → 1.1.10

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.1.8",
3
+ "version": "1.1.10",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -438,8 +438,12 @@
438
438
  this.$refs.customDialogRef.removeSelectOrg(item)
439
439
  }
440
440
  },
441
- clear() {
441
+ async clear() {
442
442
  this.$emit('input', '')
443
+ if (this.isDialogShow === false) {
444
+ this.isDialogShow = true
445
+ await this.$nextTick()
446
+ }
443
447
  this.$refs.customDialogRef.clearAll()
444
448
  this.validateInput()
445
449
  },
@@ -2390,7 +2390,11 @@ export default {
2390
2390
  .then(() => {
2391
2391
  let s = []
2392
2392
  for (let i = 0; i < this.tableData.selectRows.length; i++) {
2393
- s.push(this.tableData.selectRows[i][this.templateInfo.pkField ? this.templateInfo.pkField : 'id_'])
2393
+ s.push(
2394
+ this.tableData.selectRows[i][
2395
+ this.templateInfo.pkField ? this.templateInfo.pkField : 'id_'
2396
+ ]
2397
+ )
2394
2398
  }
2395
2399
  let data = {
2396
2400
  ids: s.join(','),
@@ -2566,16 +2570,26 @@ export default {
2566
2570
  }
2567
2571
  //TODO 如果是模块开发 全部已新窗口打开
2568
2572
  if (openType == 'new' || this.isJoinFlow) {
2569
- window.open(
2570
- this.$router.resolve({
2573
+ if (this.$tabs) {
2574
+ this.$router.push({
2571
2575
  path: path + '&isNewPage=true',
2572
2576
  query: {
2573
2577
  quitAfterSaving,
2574
2578
  customTitleName,
2575
2579
  },
2576
- }).href,
2577
- '_blank'
2578
- )
2580
+ })
2581
+ } else {
2582
+ window.open(
2583
+ this.$router.resolve({
2584
+ path: path + '&isNewPage=true',
2585
+ query: {
2586
+ quitAfterSaving,
2587
+ customTitleName,
2588
+ },
2589
+ }).href,
2590
+ '_blank'
2591
+ )
2592
+ }
2579
2593
  } else if (openType === 'dialog' || isDataView) {
2580
2594
  this.$refs.templateFormDialog.showDialog({
2581
2595
  templateKey: this.templateInfo.alias,