three-trees-ui 1.0.75 → 1.0.77

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.75",
3
+ "version": "1.0.77",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -10,8 +10,8 @@
10
10
  >
11
11
  <span>
12
12
  <ht-template-form
13
- class="template-form-dialog_form"
14
13
  v-if="dialogVisible"
14
+ class="template-form-dialog_form"
15
15
  :template-key="templateKey"
16
16
  :is-share="false"
17
17
  open-type="dialog"
@@ -77,6 +77,11 @@
77
77
  margin-right: 10px;
78
78
  }
79
79
  .template-form-dialog_form {
80
+ .el-form {
81
+ .el-main {
82
+ padding: 20px;
83
+ }
84
+ }
80
85
  width: 100%;
81
86
  padding: 0;
82
87
  .base-main_box {
@@ -16,7 +16,7 @@ export default {
16
16
  // 子表前端分页过滤器
17
17
  pagingSubData() {
18
18
  const me = this
19
- return function(datapath) {
19
+ return function (datapath) {
20
20
  // 通过子表数据路径获取分页数据
21
21
  return SubPagination.pagingByPath(datapath, me)
22
22
  }
@@ -257,7 +257,7 @@ export default {
257
257
  let exp = calc.mathExp
258
258
  if (!exp) return null
259
259
  var reg = /([\[|\{]).*?\((.*?)\)[\}|\]]/g
260
- exp = exp.replace(reg, function() {
260
+ exp = exp.replace(reg, function () {
261
261
  var symbol = arguments[1],
262
262
  name = arguments[2]
263
263
  const prop = name.split('.')[1]
@@ -368,7 +368,7 @@ export default {
368
368
  if (this.isPrint) {
369
369
  this.$router.go(-1)
370
370
  }
371
- setTimeout(function() {
371
+ setTimeout(function () {
372
372
  location.reload()
373
373
  }, 200)
374
374
  },
@@ -412,6 +412,12 @@ export default {
412
412
  if (newOne.sub_row_readonly) {
413
413
  delete newOne.sub_row_readonly
414
414
  }
415
+ if (newOne.sub_row_copy) {
416
+ delete newOne.sub_row_copy
417
+ }
418
+ if (newOne.sub_row_delete) {
419
+ delete newOne.sub_row_delete
420
+ }
415
421
  //有孙表时,删除孙表id_
416
422
  for (let key in newOne) {
417
423
  if (key.startsWith('sub_') && Array.isArray(newOne[key])) {
@@ -508,13 +514,14 @@ export default {
508
514
  return { '--headerBgColor': color ? color : '#f4f4f4' }
509
515
  },
510
516
  guid() {
511
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(
512
- c
513
- ) {
514
- var r = (Math.random() * 16) | 0,
515
- v = c == 'x' ? r : (r & 0x3) | 0x8
516
- return v.toString(16)
517
- })
517
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(
518
+ /[xy]/g,
519
+ function (c) {
520
+ var r = (Math.random() * 16) | 0,
521
+ v = c == 'x' ? r : (r & 0x3) | 0x8
522
+ return v.toString(16)
523
+ }
524
+ )
518
525
  },
519
526
  //孙表默认值回填
520
527
  addSunTab(subTabPath, index) {
@@ -791,17 +798,15 @@ export default {
791
798
  if (conf.code) {
792
799
  const codePath = conf.code.split('.')
793
800
  if (!this.data[paths[0]][paths[1]][0][codePath[2]]) {
794
- this.data[paths[0]][paths[1]][0][
795
- codePath[2]
796
- ] = this.fillOrg.code
801
+ this.data[paths[0]][paths[1]][0][codePath[2]] =
802
+ this.fillOrg.code
797
803
  }
798
804
  }
799
805
  if (conf.name) {
800
806
  const namePath = conf.name.split('.')
801
807
  if (!this.data[paths[0]][paths[1]][0][namePath[2]]) {
802
- this.data[paths[0]][paths[1]][0][
803
- namePath[2]
804
- ] = this.fillOrg.name
808
+ this.data[paths[0]][paths[1]][0][namePath[2]] =
809
+ this.fillOrg.name
805
810
  }
806
811
  }
807
812
  }
@@ -2221,7 +2221,7 @@ export default {
2221
2221
  path = url + startFlowStr + dataUrl
2222
2222
  }
2223
2223
  //TODO 如果是模块开发 全部已新窗口打开
2224
- if (openType == 'new' || this.isJoinFlow || isDataView) {
2224
+ if (openType == 'new' || this.isJoinFlow) {
2225
2225
  window.open(
2226
2226
  this.$router.resolve({
2227
2227
  path: path + '&isNewPage=true',
@@ -2232,7 +2232,7 @@ export default {
2232
2232
  }).href,
2233
2233
  '_blank'
2234
2234
  )
2235
- } else if (openType === 'dialog') {
2235
+ } else if (openType === 'dialog' || isDataView) {
2236
2236
  this.$refs.templateFormDialog.showDialog({
2237
2237
  templateKey: this.templateInfo.alias,
2238
2238
  action,