agilebuilder-ui 1.1.36-sit3 → 1.1.36-sit4

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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-e982c337.js";
2
+ import { _ as s } from "./index-c739d5d5.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-e982c337.js";
1
+ import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-c739d5d5.js";
2
2
  import { resolveComponent as u, openBlock as d, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as T, renderList as C, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
3
3
  const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-e982c337.js";
2
+ import { _ as I } from "./index-c739d5d5.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.36-sit3",
3
+ "version": "1.1.36-sit4",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -37,7 +37,16 @@
37
37
  </span>
38
38
  </template>
39
39
  <el-table :show-header="false" :data="fileList" max-height="60vh">
40
- <el-table-column prop="showName" show-overflow-tooltip />
40
+ <el-table-column prop="showName" show-overflow-tooltip>
41
+ <template v-slot="scope">
42
+ <div style="display: flex; align-items: center">
43
+ <super-icon :iconValue="getFileIconByName(scope.row.showName)" />
44
+ <span style="margin-left: 10px; cursor: pointer" @click="previewSingle(scope.row)">
45
+ {{ scope.row.showName }}
46
+ </span>
47
+ </div>
48
+ </template>
49
+ </el-table-column>
41
50
  <el-table-column width="80" align="center">
42
51
  <template v-slot="scope">
43
52
  <div style="margin: -10px 0">
@@ -69,6 +78,7 @@ import { isPlateSys, getSystemFrontendUrl } from '../../../src/utils/common-util
69
78
  import { isImage, getEntityFieldValue } from '../../../src/utils/util'
70
79
  import { packageFile } from '../../super-grid/src/utils'
71
80
  import { getToken } from '../../../src/utils/auth'
81
+ import { getFileIconByName } from '../../../src/utils/file-util'
72
82
  import { Base64 } from 'js-base64'
73
83
  export default {
74
84
  components: {
@@ -284,10 +294,18 @@ export default {
284
294
  },
285
295
  formatFileName(fileName) {
286
296
  return fileName.replace('#', '~~').replace('?', '~$').replace('&', '$')
297
+ },
298
+ getFileIconByName(fileName) {
299
+ return getFileIconByName(fileName)
287
300
  }
288
301
  },
289
302
  emits: ['close']
290
303
  }
291
304
  </script>
292
305
 
293
- <style lang="scss" scoped></style>
306
+ <style lang="scss" scoped>
307
+ .amb-color-iconfont {
308
+ width: 30px;
309
+ height: 30px;
310
+ }
311
+ </style>
@@ -82,22 +82,35 @@
82
82
  </span>
83
83
  </template>
84
84
  <el-table :data="showFileList" :show-header="false">
85
- <el-table-column prop="showName" width="300" />
85
+ <el-table-column prop="showName" width="300" show-overflow-tooltip>
86
+ <template v-slot="scope">
87
+ <div style="display: flex; align-items: center">
88
+ <super-icon :iconValue="getFileIconByName(scope.row.showName)" />
89
+ <span style="margin-left: 10px; cursor: pointer" @click="previewSingle(scope.row)">
90
+ {{ scope.row.showName }}
91
+ </span>
92
+ </div>
93
+ </template>
94
+ </el-table-column>
86
95
  <el-table-column align="right">
87
96
  <template v-slot="scope">
88
97
  <el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
89
- <el-icon style="cursor: pointer" @click="previewSingle(scope.row)">
90
- <el-icon-view />
91
- </el-icon>
98
+ <el-button type="text" @click="previewSingle(scope.row)">
99
+ <el-icon style="cursor: pointer">
100
+ <el-icon-view />
101
+ </el-icon>
102
+ </el-button>
92
103
  </el-tooltip>
93
104
  </template>
94
105
  </el-table-column>
95
106
  <el-table-column v-if="!disabled">
96
107
  <template v-slot="scope">
97
108
  <el-tooltip :content="$t('imatrixUIPublicModel.delete')" class="item" effect="dark" placement="top">
98
- <el-icon style="cursor: pointer" @click="deleteRow(scope.$index)">
99
- <el-icon-delete />
100
- </el-icon>
109
+ <el-button type="text" @click="deleteRow(scope.$index)">
110
+ <el-icon style="cursor: pointer">
111
+ <el-icon-delete />
112
+ </el-icon>
113
+ </el-button>
101
114
  </el-tooltip>
102
115
  </template>
103
116
  </el-table-column>
@@ -144,6 +157,7 @@ import FsPreview from '../../fs-preview/src/fs-preview.vue'
144
157
  import { packageFile } from '../../super-grid/src/utils'
145
158
  import FileUploadInputMobile from '../../fs-upload-new/src/file-upload-mobile/file-upload-input.vue'
146
159
  import { Base64 } from 'js-base64'
160
+ import { getFileIconByName } from '../../../src/utils/file-util'
147
161
  export default {
148
162
  name: 'FsUploadList',
149
163
  props: {
@@ -418,8 +432,17 @@ export default {
418
432
  },
419
433
  uploadFileDone(data) {
420
434
  this.$refs.fileUploadRef.uploadFileDone(data)
435
+ },
436
+ getFileIconByName(fileName) {
437
+ return getFileIconByName(fileName)
421
438
  }
422
439
  },
423
440
  emits: ['close', 'upload-success', 'delete-success', 'delete', 'update:value', 'close', 'update:value']
424
441
  }
425
442
  </script>
443
+ <style lang="scss" scoped>
444
+ .amb-color-iconfont {
445
+ width: 30px;
446
+ height: 30px;
447
+ }
448
+ </style>
@@ -2,21 +2,26 @@
2
2
  <div>
3
3
  <div v-if="!isMobile">
4
4
  <div v-for="(file, index) in fileList" :key="index" style="width: 100%">
5
- <el-tag>
6
- <el-tooltip content="预览" placement="top">
7
- <span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
8
- <el-icon><Paperclip /></el-icon>
9
- <span style="margin-left: 6.5px">{{ file.showName }}</span>
10
- </span>
11
- </el-tooltip>
12
- <el-tooltip v-if="!disabled" content="下载" placement="top">
13
- <el-icon @click="handleDownload(file)">
14
- <Download />
15
- </el-icon>
16
- </el-tooltip>
17
- <el-tooltip v-if="!disabled" content="移除" placement="top">
18
- <el-icon @click="handleOnRemove(file)"><Close /></el-icon>
19
- </el-tooltip>
5
+ <el-tag color="white" size="large">
6
+ <template #default>
7
+ <div style="display: flex; align-items: center">
8
+ <!-- 'amb-color-icon-XLS' -->
9
+ <super-icon :iconValue="getFileIconByName(file.showName)" />
10
+ <el-tooltip content="预览" placement="top">
11
+ <span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
12
+ <span style="margin-left: 6.5px">{{ file.showName }}</span>
13
+ </span>
14
+ </el-tooltip>
15
+ <el-tooltip v-if="!disabled" content="下载" placement="top">
16
+ <el-icon style="margin-left: 10px" @click="handleDownload(file)">
17
+ <Download />
18
+ </el-icon>
19
+ </el-tooltip>
20
+ <el-tooltip v-if="!disabled" content="移除" placement="top">
21
+ <el-icon @click="handleOnRemove(file)"><Close /></el-icon>
22
+ </el-tooltip>
23
+ </div>
24
+ </template>
20
25
  </el-tag>
21
26
  </div>
22
27
  </div>
@@ -53,6 +58,7 @@ import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain
53
58
  import { getToken } from '../../../src/utils/auth'
54
59
  import { isImage } from '../../../src/utils/util'
55
60
  import { Base64 } from 'js-base64'
61
+ import { getFileIconByName } from '../../../src/utils/file-util'
56
62
  const props = defineProps({
57
63
  systemCode: {
58
64
  type: String,
@@ -264,3 +270,9 @@ const isPreview = (fileName: string) => {
264
270
  return false
265
271
  }
266
272
  </script>
273
+ <style lang="scss" scoped>
274
+ .amb-color-iconfont {
275
+ width: 30px;
276
+ height: 30px;
277
+ }
278
+ </style>