adtec-core-package 2.1.9 → 2.2.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "2.1.9",
3
+ "version": "2.2.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -322,6 +322,18 @@ onMounted(() => {
322
322
  content: initHtml(model.value),
323
323
  ...defaultConfig,
324
324
  ...props.editorConfig,
325
+ fontFamily:{
326
+ values:[
327
+ {name: "宋体", value: "SimSun"},
328
+ {name: "仿宋", value: "FangSong"},
329
+ {name: "黑体", value: "SimHei"},
330
+ {name: "楷体", value: "KaiTi"},
331
+ {name: "微软雅黑", value: "Microsoft YaHei"},
332
+ {name: "方正仿宋简体_GBK", value: "FangSong_GB2312"},
333
+ {name: "Arial", value: "Arial"},
334
+ {name: "Times New Roman", value: "Times New Roman"},
335
+ ]
336
+ },
325
337
  onCreated: (editor: AiEditor) => {
326
338
  }
327
339
  }
@@ -140,6 +140,7 @@ interface Props<T extends IpageDataQuery, E extends IMdmEmployee> {
140
140
  defalutQueryParam?: any
141
141
  multiple?: boolean
142
142
  showOrgInfo?: boolean
143
+ defaultSelectUserCodes?: string
143
144
  }
144
145
 
145
146
  const props = withDefaults(defineProps<Props<IMdmEmployeeQuery, IMdmEmployee>>(), {
@@ -3,24 +3,33 @@
3
3
  <!--创建时间: 2024/12/2 下午1:59-->
4
4
  <!--修改时间: 2024/12/2 下午1:59-->
5
5
  <template>
6
- <el-flex v-if="!isEdlt" :vertical="vertical">
7
- <el-flex
8
- v-for="item of uploadFilesList"
9
- :key="item.id"
10
- class="file-class"
11
- @click="fileView(item.id)"
12
- :width="itemWidth"
13
- >
14
- <el-flex align="center" justify="flex-start">
15
- <el-tooltip class="box-item" :content="item.name" placement="top">
16
- <el-text truncated style="cursor: pointer">
6
+ <div v-if="!isEdlt">
7
+ <el-auto-tool-tip v-if="uploadFilesList?.length">
8
+ <template #tooltipContent>
9
+ <div style="display:flex;flex-direction:column">
10
+ <span
11
+ v-for="item in uploadFilesList"
12
+ :key="item.id"
13
+ style="margin: 0 2px"
14
+ >{{ item.name }}
15
+ </span>
16
+ </div>
17
+ </template>
18
+ <template #content>
19
+ <div style="display:flex;flex-direction:column">
20
+ <div v-for="item in uploadFilesList" :key="item.id"
21
+ class="file-item"
22
+ style="display:flex; align-items:center;">
17
23
  <el-icons :model-value="getIcon(item.name)" style="margin-right: 5px"></el-icons>
18
- {{ item.name }}
19
- </el-text>
20
- </el-tooltip>
21
- </el-flex>
22
- </el-flex>
23
- </el-flex>
24
+ <span class="link-name" @click="fileView(item.id)">{{ item.name }}</span>
25
+ </div>
26
+ </div>
27
+ </template>
28
+ </el-auto-tool-tip>
29
+ <div style="text-align: center;color: var(--el-disabled-text-color)" v-else>
30
+ 暂无附件
31
+ </div>
32
+ </div>
24
33
  <el-upload
25
34
  v-else
26
35
  ref="ref_upload"
@@ -62,7 +71,7 @@
62
71
  </el-flex>
63
72
  <el-flex align="center" justify="flex-end" width="50px">
64
73
  <el-text v-if="!file?.businessId && file.percentage !== 100"
65
- >{{ file.percentage }}%
74
+ >{{ file.percentage }}%
66
75
  </el-text>
67
76
  <el-icons
68
77
  v-if="file?.businessId || file.percentage === 100"
@@ -328,4 +337,28 @@ defineExpose({
328
337
  margin-bottom: 0;
329
338
  }
330
339
  }
340
+ .file-item {
341
+ position: relative;
342
+ padding: 2px 0;
343
+ border-radius: 4px;
344
+ transition: background-color 0.2s ease;
345
+
346
+ &:hover {
347
+ background-color: var(--el-fill-color-light);
348
+
349
+ .delete-icon {
350
+ visibility: visible;
351
+ opacity: 1;
352
+ transform: scale(1);
353
+ }
354
+ }
355
+ }
356
+ .link-name {
357
+ cursor: pointer;
358
+ }
359
+
360
+ .link-name:hover {
361
+ color: var(--el-color-primary);
362
+ text-decoration: underline;
363
+ }
331
364
  </style>
@@ -139,6 +139,7 @@ const openDialog = async (type: string) => {
139
139
  userId: userInfoStore().getUserInfo.id,
140
140
  comment: '同意。'
141
141
  })
142
+ if (res === false) return
142
143
  if (res?.readonly) {
143
144
  commentReadonly = true
144
145
  }