agilebuilder-ui 1.1.50-rc2 → 1.1.50-rc3

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.
@@ -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') {
@@ -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