agilebuilder-ui 1.1.13-tmp5 → 1.1.13-tmp7

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-e8b65d1a.js";
2
+ import { _ as s } from "./index-42d5d61b.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 v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-e8b65d1a.js";
1
+ import { _ as v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-42d5d61b.js";
2
2
  import { resolveComponent as m, openBlock as l, createBlock as b, withCtx as g, createVNode as w, TransitionGroup as L, createElementBlock as p, Fragment as T, renderList as C, createElementVNode as u, toDisplayString as y, createCommentVNode as f, normalizeClass as S } from "vue";
3
3
  const A = { class: "no-redirect" }, k = v({ 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-e8b65d1a.js";
2
+ import { _ as I } from "./index-42d5d61b.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.13-tmp5",
3
+ "version": "1.1.13-tmp7",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -5,28 +5,9 @@
5
5
  {{ label }}
6
6
  <el-icon class="annex-cell"><el-icon-view /></el-icon>
7
7
  </div>
8
-
9
- <el-dialog
10
- :append-to-body="true"
11
- :show-close="true"
12
- :title="$t('imatrixUIPublicModel.previewImage')"
13
- v-model="showPreviewSingleImage"
14
- @close="$emit('close')"
15
- >
16
- <template v-slot:title>
17
- <span
18
- >{{ $t('imatrixUIPublicModel.previewImage') }}
19
- <!-- <i v-if="downloadable" class="el-icon-download" style="padding-left:5px;cursor:pointer;color:#409EFF" @click="downloadFile()" /> -->
20
- <!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
21
- </span>
22
- </template>
23
- <el-image
24
- v-if="previewImageInfo && previewImageInfo.isImg"
25
- :preview-src-list="[previewImageInfo.src]"
26
- :src="previewImageInfo.src"
27
- />
28
- </el-dialog>
8
+ <el-image-viewer v-if="showPreviewSingleImage" teleported :url-list="[previewImageInfo.src]" @close="showPreviewSingleImage = false" />
29
9
  <el-dialog
10
+ layout-mobile="bottom"
30
11
  :append-to-body="true"
31
12
  :show-close="true"
32
13
  :title="$t('imatrixUIPublicModel.preview')"
@@ -41,22 +22,24 @@
41
22
  <!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
42
23
  </span>
43
24
  </template>
44
- <el-table :show-header="false" :data="fileList">
45
- <el-table-column prop="showName" width="200" />
46
- <el-table-column align="right">
25
+ <el-table :show-header="false" :data="fileList" max-height="60vh">
26
+ <el-table-column prop="showName" show-overflow-tooltip />
27
+ <el-table-column width="80" align="center">
47
28
  <template v-slot="scope">
48
- <el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
49
- <el-icon @click="previewSingle(scope.row)" style="cursor: pointer"><el-icon-view /></el-icon>
50
- </el-tooltip>
51
- </template>
52
- </el-table-column>
53
- <el-table-column>
54
- <template v-slot="scope">
55
- <el-tooltip :content="$t('imatrixUIPublicModel.download')" class="item" effect="dark" placement="top">
56
- <el-icon v-if="downloadable" @click="donwloadFile(scope.$index, fileList)" style="cursor: pointer"
57
- ><el-icon-download
58
- /></el-icon>
59
- </el-tooltip>
29
+ <div style="margin: -10px 0;">
30
+ <el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
31
+ <el-button type="text" @click="previewSingle(scope.row)">
32
+ <el-icon style="cursor: pointer"><el-icon-view /></el-icon>
33
+ </el-button>
34
+ </el-tooltip>
35
+ <el-tooltip :content="$t('imatrixUIPublicModel.download')" class="item" effect="dark" placement="top">
36
+ <el-button type="text" @click="donwloadFile(scope.$index, fileList)">
37
+ <el-icon v-if="downloadable" style="cursor: pointer">
38
+ <el-icon-download />
39
+ </el-icon>
40
+ </el-button>
41
+ </el-tooltip>
42
+ </div>
60
43
  </template>
61
44
  </el-table-column>
62
45
  </el-table>
@@ -65,6 +48,7 @@
65
48
  </template>
66
49
 
67
50
  <script>
51
+ // import { Image } from 'antd';
68
52
  import { Paperclip as ElIconPaperclip, View as ElIconView, Download as ElIconDownload } from '@element-plus/icons-vue'
69
53
  import * as Vue from 'vue'
70
54
  import { isPlateSys, getSystemFrontendUrl } from '../../../src/utils/common-util'
@@ -148,6 +132,7 @@ export default {
148
132
  },
149
133
  previewSingle(fileInfo) {
150
134
  fileInfo = packageFile(fileInfo.showName, fileInfo.serverPath)
135
+ debugger
151
136
  if (isImage(fileInfo.showName)) {
152
137
  this.previewImageInfo = fileInfo
153
138
  this.showPreviewSingleImage = true
@@ -281,3 +266,6 @@ export default {
281
266
  emits: ['close']
282
267
  }
283
268
  </script>
269
+
270
+ <style lang="scss" scoped>
271
+ </style>
@@ -113,6 +113,17 @@ export default defineComponent({
113
113
  }
114
114
  });
115
115
 
116
+ // 获取包含所有子表数据 LIST 一般用于勾选
117
+ const dataChildrenList = computed(() => {
118
+ const getChildrenData = (data) => {
119
+ return data?.flatMap(item => {
120
+ if (item?.children?.length) return [item, ...getChildrenData(item.children)]
121
+ return [item]
122
+ }) ?? []
123
+ }
124
+ return getChildrenData(dataList.value)
125
+ });
126
+
116
127
  const isLoadPaginationData = computed(() => {
117
128
  if (props.isStackingPaginatedData) {
118
129
  return (paginationList.value[props.currentPage - 1]?.length ?? 0) > 0
@@ -195,6 +206,7 @@ export default defineComponent({
195
206
 
196
207
  // 写入选中
197
208
  const setCheckedList = (value) => {
209
+ debugger;
198
210
  if (!isCheck.value) return
199
211
  if (checkedList.value.includes(value)) {
200
212
  checkedList.value = checkedList.value.filter(v => v !== value)
@@ -275,8 +287,8 @@ export default defineComponent({
275
287
  if (attrs.selection.length === newValue.length) {
276
288
  if (attrs.selection.every(({ $rowDataGuId }) => newValue.includes($rowDataGuId ) )) return
277
289
  }
278
- const selectData = dataList.value.filter(({ $rowDataGuId }) => newValue?.includes($rowDataGuId))
279
- const findData = checkedClickId.value ? dataList.value.find(({ $rowDataGuId }) => checkedClickId.value === $rowDataGuId) : undefined
290
+ const selectData = dataChildrenList.value.filter(({ $rowDataGuId }) => newValue?.includes($rowDataGuId))
291
+ const findData = checkedClickId.value ? dataChildrenList.value.find(({ $rowDataGuId }) => checkedClickId.value === $rowDataGuId) : undefined
280
292
  // 新增选中
281
293
  if (newValue.length > oldValue?.length && findData) {
282
294
  emit('select', selectData, findData)
@@ -367,7 +379,8 @@ export default defineComponent({
367
379
  isChecked={isChecked}
368
380
  isSubTable={isSubTable}
369
381
  isCheck={isCheck.value}
370
- isShowDetailsMore={isShowDetailsMore.value && !columnFormData.$editing}
382
+ isMore={!columnFormData.$editing}
383
+ isShowDetailsMore={isShowDetailsMore.value}
371
384
  onChecked={onChecked}
372
385
  onShowSubTable={() => {
373
386
  childrenBreadcrumbData.value =[...childrenBreadcrumbData.value, columnFormData];
@@ -412,7 +425,8 @@ export default defineComponent({
412
425
  isChecked={isChecked}
413
426
  isSubTable={isSubTable}
414
427
  isCheck={isCheck.value}
415
- isShowDetailsMore={isShowDetailsMore.value && !columnFormData.$editing}
428
+ isMore={!columnFormData.$editing}
429
+ isShowDetailsMore={isShowDetailsMore.value}
416
430
  onChecked={onChecked}
417
431
  onShowSubTable={() => {
418
432
  childrenBreadcrumbData.value =[columnFormData];
@@ -71,7 +71,7 @@
71
71
  :highlight-current-row="true"
72
72
  :span-method="rowSpan"
73
73
  :max-height="maxHeight"
74
- :height="maxHeight && maxHeight <= tableHeight ? maxHeight : tableHeight"
74
+ :height="tableHeight"
75
75
  :class="tableClass"
76
76
  :tree-props="getTreeProps(parentProp, isSql, isLazy, dataSourceType)"
77
77
  @sort-change="handleSortChange"
@@ -3315,4 +3315,9 @@ export default {
3315
3315
  padding: 2px 0 !important;
3316
3316
  }
3317
3317
  }
3318
+ .el-table ::v-deep {
3319
+ & > .el-table__inner-wrapper {
3320
+ height: 100% !important;
3321
+ }
3322
+ }
3318
3323
  </style>
@@ -41,6 +41,11 @@ export default defineComponent({
41
41
  type: Boolean,
42
42
  default: () => false
43
43
  },
44
+ // 是否收起
45
+ isMore: {
46
+ type: Boolean,
47
+ default: () => true
48
+ },
44
49
  setMaxHeight: {
45
50
  type: [Function, undefined],
46
51
  default: () => undefined
@@ -84,6 +89,10 @@ export default defineComponent({
84
89
  isMore.value = newValue
85
90
  });
86
91
 
92
+ watch(() => props.isMore, (newValue) => {
93
+ isMore.value = newValue
94
+ });
95
+
87
96
  onMounted(() => {
88
97
  const scrollElement = scrollbarRef.value?.$el?.querySelector?.('.el-scrollbar__view');
89
98
  if (scrollElement) {
@@ -93,13 +93,22 @@
93
93
  .yx-card-main {
94
94
  &.is-checked {
95
95
  border-color: #409eff;
96
+ background-color: #ecf5ff;
96
97
  }
97
98
  &[header-padding] {
98
99
  & > .el-card__header {
100
+ display: flex;
101
+ flex-direction: column;
102
+ justify-content: center;
103
+ align-items: stretch;
99
104
  padding: 0 !important;
100
105
  overflow: hidden;
101
106
  min-height: 50px;
102
107
 
108
+ @media (max-width: 450px) {
109
+ min-height: 40px;
110
+ }
111
+
103
112
  & > .yx-flex-wrap {
104
113
  gap: 10px;
105
114
  height: 100%;
@@ -113,6 +122,7 @@
113
122
  }
114
123
  }
115
124
  .el-card__header {
125
+
116
126
  & > .yx-flex-wrap {
117
127
  flex: 1 1 auto;
118
128
 
@@ -131,6 +141,7 @@
131
141
  }
132
142
  .yx-card-body {
133
143
  padding: var(--el-card-padding);
144
+ background-color: var(--el-fill-color-blank);
134
145
  }
135
146
  @media (max-width: 450px) {
136
147
  &[header-padding] {
@@ -208,7 +219,6 @@
208
219
  .app-wrapper {
209
220
  .tab-main-container {
210
221
  & > .app-main {
211
- padding: 10px 0;
212
222
 
213
223
  & > [style*='min-height'] {
214
224
  min-height: calc(100vh - 20px) !important;
@@ -261,3 +271,16 @@
261
271
  }
262
272
  }
263
273
  }
274
+
275
+ .el-dialog {
276
+ @media (max-width: 768px) {
277
+ &[layout-mobile='bottom'] {
278
+ position: absolute;
279
+ bottom: 0;
280
+ left: 0;
281
+ right: 0;
282
+ width: 100%;
283
+ margin: 0;
284
+ }
285
+ }
286
+ }