agilebuilder-ui 1.1.10 → 1.1.12-tmp1

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.
Files changed (35) hide show
  1. package/lib/super-ui.css +1 -1
  2. package/lib/super-ui.js +18680 -18550
  3. package/lib/super-ui.umd.cjs +78 -72
  4. package/package.json +1 -1
  5. package/packages/department-tree/src/department-tree.vue +2 -0
  6. package/packages/department-tree-mobile/src/department-tree-app.vue +1 -1
  7. package/packages/department-user-tree/src/department-user-multiple-tree.vue +1 -0
  8. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +704 -750
  9. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +1 -1
  10. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +1 -1
  11. package/packages/fs-upload-list/src/fs-upload-list.vue +1 -1
  12. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-app.vue +16 -2
  13. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +9 -9
  14. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-component.vue +3 -3
  15. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-input.vue +1 -0
  16. package/packages/fs-upload-new/src/fs-preview-new.vue +3 -2
  17. package/packages/organization-input/src/organization-input.vue +13 -8
  18. package/packages/row-form/index.vue +68 -4
  19. package/packages/row-form/operation.vue +151 -0
  20. package/packages/super-grid/src/dynamic-input.vue +11 -0
  21. package/packages/super-grid/src/normal-column-content.vue +1 -7
  22. package/packages/super-grid/src/row-operation.vue +1 -0
  23. package/packages/super-grid/src/super-grid-service.js +1 -0
  24. package/packages/super-grid/src/super-grid.vue +19 -3
  25. package/packages/workgroup-tree/src/workgroup-tree.vue +2 -0
  26. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +1 -1
  27. package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +2 -0
  28. package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue +1 -1
  29. package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +1 -1
  30. package/src/styles/index.scss +32 -0
  31. package/src/styles/theme/tiffany-blue-mobile/drawer.scss +6 -2
  32. package/src/utils/calculator/calculator-factory.js +18 -30
  33. package/src/utils/common-util.js +23 -1
  34. package/src/views/dsc-component/Sidebar/SidebarItem.vue +32 -61
  35. package/vite.config.js +0 -4
@@ -199,4 +199,36 @@ body .el-table colgroup.gutter {
199
199
  text-align: center;
200
200
  vertical-align: middle;
201
201
  justify-content: center;
202
+ }
203
+
204
+
205
+ /* 分隔组件 */
206
+ .amb-widget-separatelabel {
207
+ --el-card-border-color: var(--el-border-color-light);
208
+ --el-card-border-radius: 4px;
209
+ --el-card-padding: 20px;
210
+ --el-card-bg-color: var(--el-fill-color-blank);
211
+ background-color: var(--el-card-bg-color);
212
+ /* border: 1px solid var(--el-card-border-color); */
213
+ border-bottom: 1px solid var(--el-card-border-color);
214
+ border-radius: var(--el-card-border-radius);
215
+ color: var(--el-text-color-primary);
216
+ overflow: hidden;
217
+ transition: var(--el-transition-duration);
218
+ /* box-shadow: var(--el-box-shadow-light); */
219
+ padding: 10px;
220
+ padding-left: 0px;
221
+ margin-bottom: 18px;
222
+ }
223
+
224
+ .amb-widget-separatelabel>.label {
225
+ /* border-left: 4px solid #5893ef; */
226
+ border-bottom: 2px solid #5893ef;
227
+ color: #5893ef;
228
+ display: inline-block;
229
+ padding-left: 6px;
230
+ padding-right: 6px;
231
+ padding-bottom: 10px;
232
+ /* font-size: 14px; */
233
+ margin-bottom: -8px;
202
234
  }
@@ -5,6 +5,10 @@
5
5
  .el-drawer__header {
6
6
  margin-bottom: 10px;
7
7
  }
8
-
9
-
8
+
9
+ .content-drawer {
10
+ .el-drawer__body {
11
+ overflow: hidden;
12
+ }
13
+ }
10
14
  }
@@ -11,12 +11,7 @@ class CalculatorFactory {
11
11
  * @return
12
12
  */
13
13
  isNullValue(leftValue, operator) {
14
- return (
15
- (leftValue === undefined ||
16
- leftValue === null ||
17
- leftValue + '' === '') &&
18
- operator === 'IS_NULL'
19
- )
14
+ return (leftValue === undefined || leftValue === null || leftValue + '' === '') && operator === 'IS_NULL'
20
15
  }
21
16
  /**
22
17
  * 空IS NOT NULL操作符时的处理
@@ -25,12 +20,7 @@ class CalculatorFactory {
25
20
  * @return true 表示给定的值不为空
26
21
  */
27
22
  isNotNullValue(leftValue, operator) {
28
- return (
29
- leftValue !== undefined &&
30
- leftValue !== null &&
31
- leftValue + '' !== '' &&
32
- operator === 'IS_NOT_NULL'
33
- )
23
+ return leftValue !== undefined && leftValue !== null && leftValue + '' !== '' && operator === 'IS_NOT_NULL'
34
24
  }
35
25
  /**
36
26
  * 空值时相等的处理
@@ -42,9 +32,7 @@ class CalculatorFactory {
42
32
  isEQEmptyValue(leftVale, operator, rightValue) {
43
33
  return (
44
34
  (leftVale === undefined || leftVale === null || leftVale + '' === '') &&
45
- (rightValue === undefined ||
46
- rightValue === null ||
47
- rightValue + '' === '') &&
35
+ (rightValue === undefined || rightValue === null || rightValue + '' === '') &&
48
36
  (operator === 'EQ' || operator === 'CONTAIN')
49
37
  )
50
38
  }
@@ -81,9 +69,7 @@ class NumberCalculator extends CalculatorFactory {
81
69
  } else if (operator === 'IS_NOT_NULL') {
82
70
  this.result = leftVale !== undefined && leftVale !== null
83
71
  } else {
84
- throw new Error(
85
- '表达式不合法:' + leftVale + ' ' + operator + ' ' + rightValue
86
- )
72
+ throw new Error('表达式不合法:' + leftVale + ' ' + operator + ' ' + rightValue)
87
73
  }
88
74
  }
89
75
  }
@@ -98,26 +84,28 @@ class TextCalculator extends CalculatorFactory {
98
84
  } else if (this.isNotNullValue(leftVale, operator)) {
99
85
  this.result = true
100
86
  } else if (leftVale === undefined || leftVale === null) {
101
- this.result = false
87
+ if (operator === 'NET') {
88
+ this.result = leftVale + '' !== rightValue + ''
89
+ } else if (operator === 'EQ') {
90
+ this.result = leftVale + '' === rightValue + ''
91
+ } else {
92
+ this.result = false
93
+ }
102
94
  } else {
103
95
  if (operator === 'NET') {
104
- this.result = (leftVale+'') !== (rightValue+'')
96
+ this.result = leftVale + '' !== rightValue + ''
105
97
  } else if (operator === 'EQ') {
106
- this.result = (leftVale+'') === (rightValue+'')
98
+ this.result = leftVale + '' === rightValue + ''
107
99
  } else if (operator === 'NOT_CONTAIN') {
108
- this.result = !(leftVale+'').includes(rightValue+'')
100
+ this.result = !(leftVale + '').includes(rightValue + '')
109
101
  } else if (operator === 'CONTAIN') {
110
- this.result = (leftVale+'').includes(rightValue+'')
102
+ this.result = (leftVale + '').includes(rightValue + '')
111
103
  } else if (operator === 'IS_NULL') {
112
- this.result =
113
- leftVale === undefined || leftVale === null || leftVale === ''
104
+ this.result = leftVale === undefined || leftVale === null || leftVale === ''
114
105
  } else if (operator === 'IS_NOT_NULL') {
115
- this.result =
116
- leftVale !== undefined && leftVale !== null && leftVale !== ''
106
+ this.result = leftVale !== undefined && leftVale !== null && leftVale !== ''
117
107
  } else {
118
- throw new Error(
119
- '表达式不合法:' + leftVale + ' ' + operator + ' ' + rightValue
120
- )
108
+ throw new Error('表达式不合法:' + leftVale + ' ' + operator + ' ' + rightValue)
121
109
  }
122
110
  }
123
111
  }
@@ -1,6 +1,6 @@
1
1
  import * as Vue from 'vue'
2
2
  import authApi from './auth-api'
3
- import { getToken, getLanguage, getAllLanguages, setAllLanguages } from './auth'
3
+ import { getToken, getLanguage, getAllLanguages, setAllLanguages, removeToken } from './auth'
4
4
  import { v4 as uuidv4 } from 'uuid'
5
5
  import { getCookieCache } from './auth'
6
6
  import i18nUtil from './i18n-util'
@@ -672,3 +672,25 @@ export function getCurrentSystemCode() {
672
672
  return window.$vueApp.config.globalProperties.systemCode
673
673
  }
674
674
  }
675
+
676
+ export function isLogoutTimeout(event) {
677
+ let isTimeout = false
678
+ if (
679
+ event &&
680
+ typeof event.data === 'string' &&
681
+ event.data.indexOf('loginTimeout') >= 0
682
+ ) {
683
+ if (
684
+ event &&
685
+ typeof event.data === 'string' &&
686
+ event.data.indexOf('loginTimeout') >= 0
687
+ ) {
688
+ // removeToken()
689
+ // this.$router.replace({
690
+ // path: '/login'
691
+ // })
692
+ isTimeout = true
693
+ }
694
+ }
695
+ return isTimeout
696
+ }
@@ -6,11 +6,7 @@
6
6
  :index="resolvePath(item.code, item.path, item.pageType, item.newPage)"
7
7
  :class="{ 'submenu-title-noDropdown': !isNest }"
8
8
  >
9
- <item
10
- :icon="item.iconName"
11
- :title="getI18nName(item)"
12
- :is-root="true"
13
- />
9
+ <item :icon="item.iconName" :title="getI18nName(item)" :is-root="true" />
14
10
  </el-menu-item>
15
11
  </app-link>
16
12
  </template>
@@ -38,9 +34,7 @@
38
34
  class="nest-menu"
39
35
  />
40
36
  <app-link v-else :to="toPath(child)" @click="clickMenu(toPath(child))">
41
- <el-menu-item
42
- :index="resolvePath(child.code, child.path, child.pageType, child.newPage)"
43
- >
37
+ <el-menu-item :index="resolvePath(child.code, child.path, child.pageType, child.newPage)">
44
38
  <item :icon="child.iconName" :title="getI18nName(child)" />
45
39
  </el-menu-item>
46
40
  </app-link>
@@ -64,12 +58,12 @@ export default {
64
58
  // route object
65
59
  item: {
66
60
  type: Object,
67
- required: true,
61
+ required: true
68
62
  },
69
63
  isNest: {
70
64
  type: Boolean,
71
- default: false,
72
- },
65
+ default: false
66
+ }
73
67
  // basePath: {
74
68
  // type: String,
75
69
  // default: ''
@@ -77,7 +71,7 @@ export default {
77
71
  },
78
72
  data() {
79
73
  return {
80
- onlyOneChild: null,
74
+ onlyOneChild: null
81
75
  }
82
76
  },
83
77
  methods: {
@@ -115,12 +109,11 @@ export default {
115
109
  toPathObj.path = '/dsc-index/iframe-page'
116
110
  toPathObj.tabPath = '/dsc/iframe-page'
117
111
  toPathObj.query = {}
118
- toPathObj.query.isNewPage=menu.newPage
112
+ toPathObj.query.isNewPage = menu.newPage
119
113
  toPathObj.query.src = routePath
120
114
  toPathObj.isExternal = true
121
115
  // 如果路径中没有拼系统编码,才需要把系统编码放到参数中
122
- toPathObj.query.customSystem =
123
- window.$vueApp.config.globalProperties.customSystem
116
+ toPathObj.query.customSystem = window.$vueApp.config.globalProperties.customSystem
124
117
  toPathObj.query._menuCode = menu.code
125
118
  toPathObj.query._menuName = getI18nName(menu)
126
119
  } else {
@@ -129,9 +122,8 @@ export default {
129
122
  toPathObj.tabPath = '/dsc/page'
130
123
  toPathObj.query = {}
131
124
  toPathObj.query.pageCode = pageCode
132
- toPathObj.query.isNewPage= menu.newPage
133
- toPathObj.query.customSystem =
134
- window.$vueApp.config.globalProperties.customSystem
125
+ toPathObj.query.isNewPage = menu.newPage
126
+ toPathObj.query.customSystem = window.$vueApp.config.globalProperties.customSystem
135
127
  toPathObj.query._menuCode = menu.code
136
128
  toPathObj.query._menuName = getI18nName(menu)
137
129
  }
@@ -154,53 +146,32 @@ export default {
154
146
  },
155
147
  clickMenu(toPathObj) {
156
148
  // console.log('clickMenu----toPathObj=', toPathObj)
157
- if (
158
- toPathObj.openWay &&
159
- toPathObj.openWay === 'NEW_PAGE_OPEN' &&
160
- toPathObj.query
161
- ) {
149
+ if (toPathObj.openWay && toPathObj.openWay === 'NEW_PAGE_OPEN' && toPathObj.query) {
162
150
  // 新页签打开菜单
163
151
  let url = toPathObj.query.src
164
- if (url && url.indexOf('?') > 0) {
165
- url += '&'
166
- } else {
167
- url += '?'
168
- }
169
- if (toPathObj.query.customSystem) {
170
- url += 'customSystem=' + toPathObj.query.customSystem
171
- }
172
- if (url && url.indexOf('?') > 0) {
173
- url += '&'
174
- } else {
175
- url += '?'
176
- }
177
- if (toPathObj.query._menuCode) {
178
- url += '_menuCode=' + toPathObj.query._menuCode
179
- }
180
- if (url && url.indexOf('?') > 0) {
181
- url += '&'
182
- } else {
183
- url += '?'
184
- }
185
- if (toPathObj.query._menuCode) {
186
- url += '_menuName=' + toPathObj.query._menuName
187
- }
188
- if (url && url.indexOf('?') > 0) {
189
- url += '&'
152
+ if (url) {
153
+ if (!toPathObj.isExternal) {
154
+ if (url.indexOf('?') > 0) {
155
+ url += '&'
156
+ } else {
157
+ url += '?'
158
+ }
159
+ }
190
160
  } else {
191
- url += '?'
192
- }
193
- if (toPathObj.query.isNewPage) {
194
- url += 'isNewPage=' + toPathObj.query.isNewPage
161
+ url = '#' + toPathObj.tabPath + '?'
162
+ if (toPathObj.query) {
163
+ for (const key in toPathObj.query) {
164
+ url += key + '=' + toPathObj.query[key] + '&'
165
+ }
166
+ }
167
+ if (url && url.length > 0 && url.lastIndexOf('&') === url.length - 1) {
168
+ url = url.substring(0, url.lastIndexOf('&'))
169
+ }
195
170
  }
196
- window.open(url, toPathObj.query._menuCode)
171
+ window.open(url, toPathObj.query._menuName)
197
172
  } else {
198
173
  // 刷新页签打开菜单
199
- this.addTabs(
200
- toPathObj.query,
201
- this.$store.state.tabContent.openTab,
202
- toPathObj.tabPath
203
- )
174
+ this.addTabs(toPathObj.query, this.$store.state.tabContent.openTab, toPathObj.tabPath)
204
175
  }
205
176
  },
206
177
  isExternalLink(pageType) {
@@ -211,7 +182,7 @@ export default {
211
182
  },
212
183
  getI18nName(menu) {
213
184
  return getI18nName(menu)
214
- },
215
- },
185
+ }
186
+ }
216
187
  }
217
188
  </script>
package/vite.config.js CHANGED
@@ -7,10 +7,6 @@ export default defineConfig({
7
7
  plugins: [
8
8
  vue(),
9
9
  terser({
10
- compress: {
11
- drop_console: true,
12
- drop_debugger: true
13
- },
14
10
  output: {
15
11
  // 对于console.error,不做任何处理
16
12
  comments: (node, comment) => comment.type === 'error'