agilebuilder-ui 1.1.34 → 1.1.35-sit2

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 (34) hide show
  1. package/lib/{401-7193e896.js → 401-10787110.js} +1 -1
  2. package/lib/{404-2852bd20.js → 404-81306f89.js} +1 -1
  3. package/lib/{iframe-page-bcc25b1c.js → iframe-page-bd0c7ac7.js} +1 -1
  4. package/lib/index-5d1deed4.js +73264 -0
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +89 -89
  8. package/lib/{tab-content-iframe-index-48b3b846.js → tab-content-iframe-index-84fee73c.js} +1 -1
  9. package/lib/{tab-content-index-d25e4873.js → tab-content-index-ddd15021.js} +1 -1
  10. package/lib/{tache-subprocess-history-a72dd967.js → tache-subprocess-history-00e89e0a.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
  13. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +343 -368
  14. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +113 -42
  15. package/packages/organization-input/src/organization-input.vue +11 -0
  16. package/packages/super-grid/src/apis.js +13 -13
  17. package/packages/super-grid/src/dynamic-input.vue +11 -1
  18. package/packages/super-grid/src/formatter.js +58 -57
  19. package/packages/super-grid/src/normal-column-content.vue +149 -56
  20. package/packages/super-grid/src/row-operation.vue +35 -18
  21. package/packages/super-grid/src/search-form-open.vue +0 -1
  22. package/packages/super-grid/src/super-grid-service.js +1 -1
  23. package/packages/super-grid/src/super-grid.vue +135 -97
  24. package/packages/super-icon/src/index.vue +35 -18
  25. package/packages/utils/value-set.js +147 -1
  26. package/src/styles/display-layout.scss +1 -1
  27. package/src/styles/index.scss +7 -1
  28. package/src/utils/auth-api.js +4 -0
  29. package/src/utils/common-util.js +3 -0
  30. package/src/utils/dingtalk-util.ts +23 -17
  31. package/src/utils/util.js +721 -715
  32. package/src/views/dsc-component/Sidebar/Item.vue +76 -60
  33. package/src/views/layout/components/Menubar/Item.vue +94 -74
  34. package/lib/index-d502d8fe.js +0 -72779
@@ -1,8 +1,19 @@
1
1
  import * as Vue from 'vue'
2
+ import { isPlateSys } from '../../src/utils/common-util'
3
+
4
+ export function packageEnumAndBeanColumnValueSets(columns, listCode, additionalParamMap, entity) {
5
+ if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
6
+ // 平台系统时,beanName和枚举类型时
7
+ return packageEnumAndBeanColumnValueSetsWhenPlate(columns, listCode)
8
+ } else {
9
+ // 业务系统时,获得选项配置
10
+ return packageEnumAndBeanColumnValueSetsWhenOtherSys(columns, listCode, additionalParamMap, entity)
11
+ }
12
+ }
2
13
  /**
3
14
  * 封装值设置为枚举 或 bean方式时的值为'key-value'键值对信息
4
15
  */
5
- export function packageEnumAndBeanColumnValueSets(columns, listCode) {
16
+ function packageEnumAndBeanColumnValueSetsWhenPlate(columns, listCode) {
6
17
  return new Promise((resolve, reject) => {
7
18
  const valueSetColumnsInfo = {
8
19
  listCode: listCode,
@@ -95,3 +106,138 @@ function packageEnumAndBeanColumnValueSet(valueSetInfo) {
95
106
  return BEAN_NAME_PREFIX + beanName
96
107
  }
97
108
  }
109
+
110
+ /**
111
+ * 封装值设置为枚举 或 bean方式时的值为'key-value'键值对信息
112
+ */
113
+ function packageEnumAndBeanColumnValueSetsWhenOtherSys(columns, listCode, additionalParamMap, entity, systemCode) {
114
+ return new Promise((resolve, reject) => {
115
+ const dataSourceList = getDataSourceConfigList(columns)
116
+ const valueSetColumnIndexs = dataSourceList.valueSetColumnIndexs
117
+ const param = {
118
+ listCode: listCode,
119
+ entityMap: entity,
120
+ additionalParamMap: additionalParamMap,
121
+ dataSourceList: dataSourceList.dataSourceConfigList,
122
+ dataSourceListTitle: dataSourceList.dataSourceConfigListTitle,
123
+ systemCode: systemCode
124
+ }
125
+ const url = window.$vueApp.config.globalProperties.baseURL + '/common/common-data/find-grid-datas'
126
+ //const url = window['$vueApp'].config.globalProperties.baseAPI + '/common/common-data/xxxx'
127
+ window.$vueApp.config.globalProperties.$http
128
+ .post(url, param)
129
+ .then((result) => {
130
+ const columnValueSet = result.columnValueSet
131
+ const columnTitleValueSet = result.columnTitleValueSet
132
+ for(let prop in valueSetColumnIndexs){
133
+ const columnIndex = valueSetColumnIndexs[prop]
134
+ const valueSet = columnValueSet[prop]
135
+ if (valueSet) {
136
+ columns[columnIndex].valueSet = valueSet
137
+ }
138
+ const valueSetTitle = columnTitleValueSet[prop]
139
+ if (valueSetTitle) {
140
+ columns[columnIndex].titleValueSetValue = valueSetTitle
141
+ }
142
+ }
143
+ console.log('查询选项数据完成', result)
144
+ resolve(result)
145
+ })
146
+ .catch((error) => {
147
+ console.log('查询选项数据失败', error)
148
+ //失败时
149
+ reject(error)
150
+ })
151
+ })
152
+ }
153
+
154
+ function getDataSourceConfigList(columns) {
155
+ const dataSourceConfigList = []
156
+ const dataSourceConfigListTitle = []
157
+ const valueSetColumnIndexs = {}
158
+ for (let i = 0; i < columns.length; i++) {
159
+ const column = columns[i]
160
+ const prop = column.prop ? column.prop : column.label
161
+ const columnValueSet = getConfigWithValueSet(column, prop, column)
162
+ let titleValueSet = null
163
+ const titleValueSetJson = column.titleValueSet
164
+ if (titleValueSetJson) {
165
+ titleValueSet = getConfigWithValueSet(JSON.parse(titleValueSetJson), prop)
166
+ }
167
+ if (columnValueSet || titleValueSet) {
168
+ if (columnValueSet) {
169
+ // 字段的值设置
170
+ dataSourceConfigList.push(columnValueSet)
171
+ }
172
+ if (titleValueSet) {
173
+ dataSourceConfigListTitle.push(titleValueSet)
174
+ }
175
+ valueSetColumnIndexs[prop] = i
176
+ }
177
+ }
178
+ return {dataSourceConfigList, dataSourceConfigListTitle, valueSetColumnIndexs}
179
+ }
180
+
181
+ function getConfigWithValueSet(valueSetInfo, prop, column) {
182
+ /**
183
+ * 枚举类型值设置前缀
184
+ */
185
+ const ENUM_NAME_PREFIX = 'enumname:'
186
+ /**
187
+ * bean形式值设置前缀
188
+ */
189
+ const BEAN_NAME_PREFIX = 'beanname:'
190
+ const enumName = valueSetInfo.enumName
191
+ const beanName = valueSetInfo.beanName
192
+ let infoObj = {
193
+ uuid: prop
194
+ }
195
+ // 选项组的在解析列表字段配置时就获得了,不需要在此处获得了
196
+ if (enumName && enumName !== '') {
197
+ if (valueSetInfo.remoteEnum === true) {
198
+ // 需要远程获得枚举值
199
+ infoObj.type = 'enumName'
200
+ infoObj.props = {
201
+ prop: prop,
202
+ valueSet: ENUM_NAME_PREFIX + enumName
203
+ }
204
+ }
205
+ } else if (beanName && beanName !== '') {
206
+ infoObj.type = 'beanName'
207
+ infoObj.props = {
208
+ prop: prop,
209
+ valueSet: BEAN_NAME_PREFIX + beanName
210
+ }
211
+ }else if(column && column.valueSetOptions) {
212
+ // 动态数据源、数据表/视图、服务
213
+ const valueSetOptionsObj = JSON.parse(column.valueSetOptions)
214
+ if((valueSetOptionsObj.type || valueSetOptionsObj.dynamicDataSourceCode) && (valueSetOptionsObj.valueLabelSwitch || valueSetOptionsObj.valueLabelSwitch=== undefined)){
215
+ // 表示是动态数据源等值设置信息
216
+ // const isShouldInitSearch = (valueSetOptionsObj.filterType === undefined || valueSetOptionsObj.filterType != 'remote')
217
+ if(!valueSetOptionsObj.type || valueSetOptionsObj.type !== 'optionGroup'){
218
+ // 选项组时不需要在此处获得
219
+ Object.assign(infoObj, valueSetOptionsObj)
220
+ // 更新uuid为字段名
221
+ infoObj.uuid = prop
222
+ if(!infoObj.props){
223
+ infoObj.props = {}
224
+ }
225
+ infoObj.props.prop = prop
226
+ }
227
+ if(valueSetOptionsObj.dynamicDataSourceCode){
228
+ infoObj.type = 'dynamicData'
229
+ if(!infoObj.props){
230
+ infoObj.props = {}
231
+ }
232
+ infoObj.props.code = valueSetOptionsObj.dynamicDataSourceCode
233
+ }
234
+ }
235
+ }
236
+ if(infoObj.type){
237
+ // 表示是有效的值设置
238
+ return infoObj
239
+ }
240
+ return null
241
+ }
242
+
243
+
@@ -369,7 +369,7 @@
369
369
  }
370
370
 
371
371
  // 初始字体默认继承
372
- .amb-iconfont {
372
+ .amb-iconfont,.amb-color-iconfont {
373
373
  font-size: inherit !important;
374
374
  }
375
375
 
@@ -43,12 +43,17 @@ body {
43
43
  box-sizing: border-box
44
44
  }
45
45
 
46
+ .wrap-text {
47
+ white-space: pre-line;
48
+ word-break: break-all;
49
+ }
50
+
46
51
  // 省略号
47
52
  .ellipsis {
48
53
  // display: inline-block;
49
54
  overflow: hidden;
50
55
  text-overflow: ellipsis;
51
- white-space: nowrap;
56
+ white-space: pre;
52
57
  word-break: keep-all;
53
58
  width: 100%;
54
59
 
@@ -73,6 +78,7 @@ body {
73
78
  }
74
79
  }
75
80
 
81
+
76
82
  [break-word] {
77
83
  word-wrap: break-word;
78
84
  }
@@ -214,6 +214,10 @@ function getLanguage() {
214
214
  }
215
215
 
216
216
  function setLanguage(lang) {
217
+ if(!lang){
218
+ // 默认是中文
219
+ lang = 'zh_CN'
220
+ }
217
221
  setCookieCache(langKey, lang)
218
222
  setSessionCache(langKey, lang)
219
223
  }
@@ -246,6 +246,9 @@ export function getServerConfigUtil(http) {
246
246
  if (config.fontIconAddress && window.insertCssFile) {
247
247
  window.insertCssFile(`${config.fontIconAddress}/iconfont.css`)
248
248
  }
249
+ if (config.fontIconAddress && window.insertCssFile) {
250
+ window.insertCssFile(`${config.fontIconAddress}-color/iconfont.css`)
251
+ }
249
252
  resolve()
250
253
  })
251
254
  })
@@ -12,26 +12,32 @@ export function checkDingtalkEnvironment() {
12
12
  window.$dd = dd
13
13
  const nonceStr = '1234567890' // 必填,自定义固定字符串。
14
14
  const timeStamp = new Date().getTime() // 必填,生成签名的时间戳
15
- window.$http
16
- .post(window.$vueApp.config.globalProperties.baseAPI + '/component/dingtalk/jsticket-sign', {
17
- nonceStr: nonceStr, // 必填,自定义固定字符串。
18
- timeStamp: timeStamp, // 必填,生成签名的时间戳
19
- url: window.location.href // 必填,当前页面的url
20
- })
21
- .then((response: any) => {
22
- dd.config({
23
- agentId: response.agentId, // 必填,授权应用的agentid
24
- corpId: response.corpId, //必填,企业ID
25
- timeStamp: timeStamp, // 必填,生成签名的时间戳
15
+ try {
16
+ window.$http
17
+ .post(window.$vueApp.config.globalProperties.baseAPI + '/component/dingtalk/jsticket-sign', {
26
18
  nonceStr: nonceStr, // 必填,自定义固定字符串。
27
- signature: response.signature, // 必填,签名
28
- type: 0, //选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
29
- jsApiList: ['biz.util.chooseImage'] // 必填,需要使用的jsapi列表,注意:不要带dd。
19
+ timeStamp: timeStamp, // 必填,生成签名的时间戳
20
+ url: window.location.href // 必填,当前页面的url
30
21
  })
31
- dd.error(function (err) {
32
- console.error('dd error: ' + JSON.stringify(err))
22
+ .then((response: any) => {
23
+ dd.config({
24
+ agentId: response.agentId, // 必填,授权应用的agentid
25
+ corpId: response.corpId, //必填,企业ID
26
+ timeStamp: timeStamp, // 必填,生成签名的时间戳
27
+ nonceStr: nonceStr, // 必填,自定义固定字符串。
28
+ signature: response.signature, // 必填,签名
29
+ type: 0, //选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
30
+ jsApiList: ['biz.util.chooseImage'] // 必填,需要使用的jsapi列表,注意:不要带dd。
31
+ })
32
+ dd.error(function (err) {
33
+ window.$dd = null
34
+ console.error('dd error: ' + JSON.stringify(err))
35
+ })
33
36
  })
34
- })
37
+ } catch (e) {
38
+ window.$dd = null
39
+ console.error('DingTalk SDK initialization failed: ', e)
40
+ }
35
41
  })
36
42
  }
37
43
  }