agilebuilder-ui 1.1.50-sit4 → 1.1.51

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 (26) hide show
  1. package/lib/{401-53507b6f.js → 401-aead36a9.js} +1 -1
  2. package/lib/{404-f3c9f985.js → 404-9ad11c2e.js} +1 -1
  3. package/lib/{iframe-page-737b57ae.js → iframe-page-bf851287.js} +1 -1
  4. package/lib/{index-90b19f05.js → index-75ff2a06.js} +14273 -14178
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +110 -110
  8. package/lib/{tab-content-iframe-index-a6efa4fc.js → tab-content-iframe-index-c7bb8381.js} +1 -1
  9. package/lib/{tab-content-index-fecc0e4d.js → tab-content-index-95a59e50.js} +1 -1
  10. package/lib/{tache-subprocess-history-3204f7f2.js → tache-subprocess-history-106dc6ec.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/chat-embed/src/chat-embed-message.ts +5 -2
  13. package/packages/chat-embed/src/chat-sender.vue +41 -30
  14. package/packages/chat-embed/src/header.vue +2 -2
  15. package/packages/chat-embed/src/index.vue +503 -158
  16. package/packages/department-tree-inline/src/search-result.vue +1 -2
  17. package/packages/department-user-tree-inline/src/search-result.vue +1 -2
  18. package/packages/fs-preview/src/fs-preview.vue +1 -1
  19. package/packages/fs-upload-new/src/fs-button-upload.vue +1 -0
  20. package/packages/fs-upload-new/src/fs-drag-upload.vue +1 -0
  21. package/packages/fs-upload-new/src/fs-preview-new.vue +39 -13
  22. package/packages/fs-upload-new/src/fs-upload-new.vue +3 -3
  23. package/packages/super-grid/src/normal-column-content.vue +0 -1
  24. package/packages/super-grid/src/row-operation.vue +9 -13
  25. package/packages/utils/value-set.js +1 -5
  26. package/src/views/login/update-password.vue +3 -0
@@ -151,8 +151,7 @@ export default {
151
151
  },
152
152
  // 添加用户
153
153
  addUser(index, row) {
154
- // JSON.parse(JSON.stringify(row)) 转换对象是为了解决添加数据时浏览器崩溃
155
- $emit(this, 'addUser', index, JSON.parse(JSON.stringify(row)))
154
+ $emit(this, 'addUser', index, JSON.parse(JSON.stringify(row)))
156
155
  },
157
156
  selectUser(selectVal) {
158
157
  // console.log('selectUser', selectVal)
@@ -202,8 +202,7 @@ export default {
202
202
  },
203
203
  // 添加用户
204
204
  addUser(index, row) {
205
- // JSON.parse(JSON.stringify(row)) 转换对象是为了解决添加数据时浏览器崩溃
206
- this.$emit('addUser', index, JSON.parse(JSON.stringify(row)))
205
+ this.$emit('addUser', index, JSON.parse(JSON.stringify(row)))
207
206
  },
208
207
  selectUser(selectVal) {
209
208
  // console.log('selectUser', selectVal)
@@ -304,7 +304,7 @@ export default {
304
304
  // window.$vueApp.config.globalProperties.kkFileViewUrl +
305
305
  // '?url=' +
306
306
  // encodeURIComponent(Base64.encode(myPreviewUrl))
307
- //window.open(previewUrl, showName)
307
+ /window.open(previewUrl, showName)
308
308
  console.log('previewUrl====', previewUrl)
309
309
  } else {
310
310
  previewUrl = baseUrl + '/common/fs-upload/preview?jwt=' + token
@@ -33,6 +33,7 @@
33
33
  :file-list="fileList"
34
34
  :system-code="systemCode"
35
35
  :before-remove="beforeRemove"
36
+ :watermark="watermark"
36
37
  :on-remove="onRemove"
37
38
  :before-download="beforeDownload"
38
39
  :downloadable="downloadable"
@@ -30,6 +30,7 @@
30
30
  :disabled-no-download="disabledNoDownload"
31
31
  :file-list="fileList"
32
32
  :system-code="systemCode"
33
+ :watermark="watermark"
33
34
  :before-remove="beforeRemove"
34
35
  :on-remove="onRemove"
35
36
  :before-download="beforeDownload"
@@ -20,12 +20,13 @@
20
20
  </el-tooltip>
21
21
  </template>
22
22
  <el-tooltip v-if="!disabled || !disabledNoDownload" :content="t('fsUpload.download')" placement="top">
23
- <el-icon style="margin-left: 10px" @click="handleDownload(file)">
23
+ <!-- <el-icon style="margin-left: 10px" @click="handleDownload(file)">
24
24
  <Download />
25
- </el-icon>
25
+ </el-icon> -->
26
+ <super-icon class="fs-preview-icon" @click="handleDownload(file)" iconValue="amb-color-icon-xiazai" />
26
27
  </el-tooltip>
27
28
  <el-tooltip v-if="!disabled" :content="t('fsUpload.delete')" placement="top">
28
- <el-icon @click="handleOnRemove(file)"><Close /></el-icon>
29
+ <super-icon class="fs-preview-icon" @click="handleOnRemove(file)" iconValue="amb-color-icon-shanchu" />
29
30
  </el-tooltip>
30
31
  </div>
31
32
  </template>
@@ -61,7 +62,14 @@
61
62
  <script setup lang="ts">
62
63
  import { Close, Paperclip, Download } from '@element-plus/icons-vue'
63
64
  import { ref, defineProps } from 'vue'
64
- import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain, getRelativeBaseUrl, getKkFilePreviewUrl } from '../../../src/utils/common-util'
65
+ import {
66
+ getSystemFrontendUrl,
67
+ isPlateSys,
68
+ isMobileBrowser,
69
+ getReplaceUrlDomain,
70
+ getRelativeBaseUrl,
71
+ getKkFilePreviewUrl
72
+ } from '../../../src/utils/common-util'
65
73
  import { getToken } from '../../../src/utils/auth'
66
74
  import { isImage } from '../../../src/utils/util'
67
75
  import { Base64 } from 'js-base64'
@@ -125,7 +133,7 @@ const props = defineProps({
125
133
  default: false
126
134
  },
127
135
  // 水印配置{isShowWatermark:true/false,content:'xxxxx'}
128
- watermark:{
136
+ watermark: {
129
137
  type: Object,
130
138
  default: () => ({})
131
139
  }
@@ -134,10 +142,10 @@ let baseURL = props.baseURL ? props.baseURL : window.$vueApp.config.globalProper
134
142
  let baseAPI = window.$vueApp.config.globalProperties.baseAPI
135
143
  baseURL = getRelativeBaseUrl(baseURL)
136
144
  baseAPI = getRelativeBaseUrl(baseAPI)
137
- if(!props.watermark.content){
145
+ if (!props.watermark.content) {
138
146
  // 如果没有传水印配置,从按钮配置configure中获取
139
147
  props.watermark.isShowWatermark = props.configure.props?.watermark?.isShowWatermark===undefined?'true':props.configure.props?.watermark.isShowWatermark+''
140
- props.watermark.content = props.configure.props.watermark.content
148
+ props.watermark.content = props.configure.props?.watermark?.content
141
149
  }
142
150
  const dialogVisible = ref<boolean>(false)
143
151
  const previewImageInfo = ref<any>({})
@@ -167,7 +175,7 @@ const download = (file: any) => {
167
175
  const showName = fileName.replace('#', '~~').replace('?', '~$').replace('&', '$')
168
176
  const isShowWatermark = props.watermark?.isShowWatermark
169
177
  let watermarkContent = props.watermark?.content
170
- if(!watermarkContent){
178
+ if (!watermarkContent) {
171
179
  watermarkContent = ''
172
180
  }
173
181
  let url =
@@ -178,8 +186,10 @@ const download = (file: any) => {
178
186
  file.serverPath +
179
187
  '&jwt=' +
180
188
  token +
181
- '&isShowWatermark='+isShowWatermark +
182
- '&watermark='+encodeURI(watermarkContent)
189
+ '&isShowWatermark=' +
190
+ isShowWatermark +
191
+ '&watermark=' +
192
+ encodeURI(watermarkContent)
183
193
  if (isPlateSys(props.systemCode)) {
184
194
  url =
185
195
  baseAPI +
@@ -269,7 +279,7 @@ const previweDoc = (showName: string, serverPath: string) => {
269
279
  const myPreviewUrl = originUrl + '&fullfilename=' + showName
270
280
  console.log('myPreviewUrl====', myPreviewUrl)
271
281
  // http://127.0.0.1:8012/onlinePreview
272
- getKkFilePreviewUrl(myPreviewUrl).then(url=>{
282
+ getKkFilePreviewUrl(myPreviewUrl).then((url) => {
273
283
  window.open(url, showName)
274
284
  })
275
285
  // previewUrl =
@@ -315,7 +325,23 @@ const isPreview = (fileName: string) => {
315
325
  </script>
316
326
  <style lang="scss" scoped>
317
327
  .amb-color-iconfont {
318
- width: 30px;
319
- height: 30px;
328
+ width: 25px;
329
+ height: 25px;
330
+ }
331
+ .fs-preview-icon {
332
+ font-size: 15px !important;
333
+ display: inline-block;
334
+ width: 1em !important;
335
+ height: 1em !important;
336
+ line-height: 1em;
337
+ cursor: pointer;
338
+
339
+ &:not(:first-of-type) {
340
+ margin-left: 20px;
341
+ }
342
+
343
+ & + & {
344
+ margin-left: 5px;
345
+ }
320
346
  }
321
347
  </style>
@@ -283,7 +283,7 @@ const props = defineProps({
283
283
  default: false
284
284
  },
285
285
  // 水印配置{isShowWatermark:true/false,content:'xxxxx'}
286
- watermark:{
286
+ watermark: {
287
287
  type: Object,
288
288
  default: () => ({})
289
289
  }
@@ -302,10 +302,10 @@ console.log(
302
302
  'props.pageContext=',
303
303
  props.pageContext
304
304
  )
305
- if(!props.watermark.content){
305
+ if (!props.watermark.content) {
306
306
  // 如果没有传水印配置,从按钮配置configure中获取
307
307
  props.watermark.isShowWatermark = props.configure?.props?.watermark?.isShowWatermark===undefined?'true':props.configure?.props?.watermark.isShowWatermark+''
308
- props.watermark.content = props.configure?.props?.watermark.content
308
+ props.watermark.content = props.configure?.props?.watermark?.content
309
309
  }
310
310
  const listFileLabel = ref<string>('')
311
311
  if (props.displayType === 'input') {
@@ -107,7 +107,6 @@
107
107
  :is-show="operation.isShow"
108
108
  :label="operation.props.label ? operation.props.label : row[column.prop]"
109
109
  :on-click="operation.onClick"
110
- :operation="operation"
111
110
  :operation-index="operationIndex"
112
111
  :operation-setting="operation.props"
113
112
  :event-name="operation.eventName"
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <!--将@click改为@mousedown.native是因为操作列保存按钮时事件和input等组件的@blur冲突,导致保存需要保存两次,因为
3
3
  @blur先于@click执行的,所以只会执行@blur,@click就失效了,@mousedown是先于@blur执行的-->
4
- <span class="table-operation-row-btn" :style="myStyle">
4
+ <span :style="myStyle">
5
5
  <template v-if="isShowButton()">
6
6
  <el-tooltip :disabled="tooltipDisabled" :content="label" placement="top">
7
- <template v-if="operationSettingData?.permission">
7
+ <template v-if="operationSettingData.permission">
8
8
  <component
9
9
  v-bind="operationSettingData"
10
10
  :is="isElementType"
@@ -77,13 +77,9 @@ export default {
77
77
  type: String,
78
78
  default: null,
79
79
  },
80
- operation: {
81
- type: Object,
82
- default: () => ({}),
83
- },
84
80
  operationSetting: {
85
81
  type: Object,
86
- default: () => ({}),
82
+ default: null,
87
83
  },
88
84
  operationIndex: {
89
85
  type: Number,
@@ -152,16 +148,16 @@ export default {
152
148
  },
153
149
  // 后置图标
154
150
  suffixIcon() {
155
- if(['right'].includes(this.operationSetting.iconPosition)) return this.operationSetting.iconValue
151
+ if(['right'].includes(this.operationSettingData.iconPosition)) return this.operationSetting.iconValue
156
152
  return undefined
157
153
  },
158
154
  // 是否显示文字按钮 > 图标模式
159
155
  isTextIcon() {
160
156
  if (this.isTableBtnLinkShow) {
161
- if (this.operationSetting.isTextIcon === undefined) {
157
+ if (this.operationSettingData.isTextIcon === undefined) {
162
158
  return this.isSaveRow || this.isDeleteRow || this.isEditRow || this.isRestoreRow
163
159
  }
164
- return this.operationSetting.isTextIcon
160
+ return this.operationSettingData.isTextIcon
165
161
  } else {
166
162
  return false
167
163
  }
@@ -176,14 +172,14 @@ export default {
176
172
  },
177
173
  // 是否自动开启表格 按钮 转 文字按钮
178
174
  isTableBtnLinkShow() {
179
- if (this.operationSetting?.text) return true
175
+ if (this.operationSetting.text) return true
180
176
  if (this.isTableBtnLink && this.elementType === 'el-button') {
181
- return [this.operationSetting?.text, this.operationSetting?.plain, this.operationSetting?.round].every(v => v === undefined)
177
+ return [this.operationSetting.text, this.operationSetting.plain, this.operationSetting.round].every(v => v === undefined)
182
178
  }
183
179
  return false
184
180
  },
185
181
  operationSettingData() {
186
- const dataList = { ...(this.operationSetting ?? {}) }
182
+ const dataList = { ...this.operationSetting }
187
183
  if (this.isTableBtnLinkShow) {
188
184
  dataList.underline = false
189
185
  delete dataList.text
@@ -24,11 +24,7 @@ function packageEnumAndBeanColumnValueSetsWhenPlate(columns, listCode) {
24
24
  const column = columns[i]
25
25
  const prop = column.prop ? column.prop : column.label
26
26
  const columnValueSet = packageEnumAndBeanColumnValueSet(column)
27
- let titleValueSet = null
28
- const titleValueSetJson = column.titleValueSet
29
- if (titleValueSetJson) {
30
- titleValueSet = column.titleValueSet
31
- }
27
+ const titleValueSet = column.titleValueSet
32
28
  if (columnValueSet || titleValueSet) {
33
29
  const valueSetMeta = {
34
30
  prop: prop
@@ -28,6 +28,7 @@
28
28
  v-model="loginForm.password"
29
29
  type="password"
30
30
  name="password"
31
+ show-password
31
32
  auto-complete="on"
32
33
  placeholder="密码"
33
34
  />
@@ -36,6 +37,7 @@
36
37
  <el-input
37
38
  v-model="loginForm.newPassword"
38
39
  type="password"
40
+ show-password
39
41
  name="newPassword"
40
42
  auto-complete="on"
41
43
  placeholder="新密码"
@@ -45,6 +47,7 @@
45
47
  <el-input
46
48
  v-model="loginForm.confirmNewPassword"
47
49
  type="password"
50
+ show-password
48
51
  name="confirmNewPassword"
49
52
  auto-complete="on"
50
53
  placeholder="请再次输入新密码"