agilebuilder-ui 1.1.41 → 1.1.42

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 (28) hide show
  1. package/lib/{401-deb6f978.js → 401-89fd25ba.js} +1 -1
  2. package/lib/{404-ca0b33ee.js → 404-4264aeb1.js} +1 -1
  3. package/lib/{iframe-page-eb39ba95.js → iframe-page-4a8dcdbb.js} +1 -1
  4. package/lib/{index-a36c91b2.js → index-50fdf8ae.js} +4630 -4580
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +85 -85
  8. package/lib/{tab-content-iframe-index-094835e7.js → tab-content-iframe-index-16207fb9.js} +1 -1
  9. package/lib/{tab-content-index-92b24462.js → tab-content-index-8ae8c396.js} +1 -1
  10. package/lib/{tache-subprocess-history-0d32337a.js → tache-subprocess-history-110e29f2.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/fs-preview/src/fs-preview.vue +38 -29
  13. package/packages/fs-upload-new/src/fs-button-upload.vue +34 -1
  14. package/packages/fs-upload-new/src/fs-drag-upload.vue +43 -2
  15. package/packages/fs-upload-new/src/fs-preview-new.vue +6 -4
  16. package/packages/super-grid/src/custom-formatter.js +16 -10
  17. package/packages/super-grid/src/dynamic-input.vue +7 -2
  18. package/packages/super-grid/src/normal-column.vue +8 -4
  19. package/packages/super-grid/src/search-form-advancedQuery.vue +1 -1
  20. package/packages/super-grid/src/search-form-item.vue +23 -23
  21. package/packages/super-grid/src/search-form-open.vue +164 -158
  22. package/packages/super-grid/src/super-grid-service.js +141 -153
  23. package/packages/super-grid/src/super-grid.vue +43 -14
  24. package/packages/super-nine-grid/src/search-form.vue +465 -659
  25. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +515 -539
  26. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +24 -44
  27. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +626 -665
  28. package/src/utils/permission.js +86 -9
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-a36c91b2.js";
2
+ import { _ as s } from "./index-50fdf8ae.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-a36c91b2.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-50fdf8ae.js";
2
2
  import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, 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-a36c91b2.js";
2
+ import { _ as I } from "./index-50fdf8ae.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.41",
3
+ "version": "1.1.42",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -11,25 +11,15 @@
11
11
  </span>
12
12
  </template>
13
13
  <div v-if="firstFileName" ref="toolRef" class="fs-preview-tool">
14
- <el-link v-if="enableDelete && !disabled" type="danger" :underline="false" @click="deleteFirst()">
15
- {{ $t('fsUpload.delete') }}
16
- </el-link>
17
- <el-link
18
- v-if="!disabled || !fileSetObj.disabledNoPreview"
19
- type="primary"
20
- :underline="false"
21
- @click="previewFirst()"
22
- >
23
- {{ $t('fsUpload.preview') }}
24
- </el-link>
25
- <el-link
26
- v-if="!disabled || !fileSetObj.disabledNoDownload"
27
- type="primary"
28
- :underline="false"
29
- @click="downloadFirst()"
30
- >
31
- {{ $t('fsUpload.download') }}
32
- </el-link>
14
+ <el-tooltip v-if="enableDelete && !disabled" :content="$t('fsUpload.delete')">
15
+ <super-icon @click="deleteFirst()" iconValue="amb-color-icon-shanchu" />
16
+ </el-tooltip>
17
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoPreview" :content="$t('fsUpload.preview')">
18
+ <super-icon @click="previewFirst()" iconValue="amb-color-icon-yulan" />
19
+ </el-tooltip>
20
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoDownload" :content="$t('fsUpload.download')">
21
+ <super-icon @click="downloadFirst()" iconValue="amb-color-icon-xiazai" />
22
+ </el-tooltip>
33
23
  <el-divider v-if="showMultipleFile" direction="vertical" />
34
24
  <el-popover :width="450" trigger="click">
35
25
  <template #reference>
@@ -41,7 +31,7 @@
41
31
  <div style="max-height: 300px; overflow-y: auto">
42
32
  <div v-for="(item, index) in fileList" :ref="item.serverPath" :key="item.serverPath" class="file-item">
43
33
  <div style="display: flex; align-items: center; flex: 1">
44
- <span>
34
+ <span class="more-file-icon">
45
35
  <super-icon :iconValue="getFileIconByName(item.showName)" />
46
36
  </span>
47
37
  <span class="amb-list-preivew-name" style="width: 230px; margin-left: 10px">
@@ -49,7 +39,7 @@
49
39
  </span>
50
40
  </div>
51
41
  <div class="file-actions">
52
- <el-link v-if="enableDelete" type="danger" underline @click="deleteFile(item)">
42
+ <!-- <el-link v-if="enableDelete" type="danger" underline @click="deleteFile(item)">
53
43
  {{ $t('fsUpload.delete') }}
54
44
  </el-link>
55
45
  <el-link
@@ -60,14 +50,18 @@
60
50
  >
61
51
  {{ $t('fsUpload.preview') }}
62
52
  </el-link>
63
- <el-link
64
- type="primary"
65
- v-if="!disabled || !fileSetObj.disabledNoDownload"
66
- underline
67
- @click="donwloadFile(index)"
68
- >
53
+ <el-link type="primary" v-if="!disabled || !fileSetObj.disabledNoDownload" underline>
69
54
  {{ $t('fsUpload.download') }}
70
- </el-link>
55
+ </el-link> -->
56
+ <el-tooltip v-if="enableDelete" :content="$t('fsUpload.delete')">
57
+ <super-icon @click="deleteFile(item)" iconValue="amb-color-icon-shanchu" />
58
+ </el-tooltip>
59
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoPreview" :content="$t('fsUpload.preview')">
60
+ <super-icon @click="previewSingle(item)" iconValue="amb-color-icon-yulan" />
61
+ </el-tooltip>
62
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoDownload" :content="$t('fsUpload.download')">
63
+ <super-icon @click="donwloadFile(index)" iconValue="amb-color-icon-xiazai" />
64
+ </el-tooltip>
71
65
  </div>
72
66
  </div>
73
67
  </div>
@@ -413,10 +407,22 @@ export default {
413
407
  min-width: max-content;
414
408
  margin-left: auto; /* 添加这行,将工具栏推到右侧 */
415
409
  }
416
- .amb-color-iconfont {
410
+
411
+ .fs-preview-container :deep(.amb-color-iconfont),
412
+ .more-file-icon :deep(.amb-color-iconfont) {
417
413
  width: 30px;
418
414
  height: 30px;
419
415
  }
416
+ .fs-preview-tool :deep(.amb-color-iconfont),
417
+ .file-actions :deep(.amb-color-iconfont) {
418
+ font-size: 15px !important; /* 图标实际大小,按需改 */
419
+ display: inline-block;
420
+ width: 1em !important; /* 覆盖子组件 .super-icon 的 14px */
421
+ height: 1em !important;
422
+ line-height: 1em;
423
+ cursor: pointer;
424
+ }
425
+
420
426
  .amb-list-preivew-name {
421
427
  overflow: hidden;
422
428
  text-overflow: ellipsis;
@@ -450,4 +456,7 @@ export default {
450
456
  gap: 5px;
451
457
  flex-shrink: 0; /* 防止按钮被压缩 */
452
458
  }
459
+ .super-icon + .super-icon {
460
+ margin-left: 5px;
461
+ }
453
462
  </style>
@@ -46,6 +46,8 @@ import { getToken } from '../../../src/utils/auth'
46
46
  import type { UploadFile, UploadFiles } from 'element-plus'
47
47
  import fsPreviewNew from './fs-preview-new.vue'
48
48
  import { ElMessage } from 'element-plus'
49
+ import { useI18n } from 'vue-i18n'
50
+ const { t } = useI18n()
49
51
  const props = defineProps({
50
52
  openFsUpload: {
51
53
  type: Boolean,
@@ -129,12 +131,18 @@ const props = defineProps({
129
131
  disabledNoDownload: {
130
132
  type: Boolean,
131
133
  default: false
134
+ },
135
+ // limit
136
+ limit: {
137
+ type: Number,
138
+ default: 0
132
139
  }
133
140
  })
134
141
  const baseURL = window.$vueApp.config.globalProperties.baseURL
135
142
  const baseAPI = window.$vueApp.config.globalProperties.baseAPI
136
143
  const defaultAction = ref<string>('')
137
144
  const buttonUploadRef = ref()
145
+ const innerLimitFileSize = ref(props.limitFileSize)
138
146
  if (props.action) {
139
147
  defaultAction.value = props.action
140
148
  } else {
@@ -149,6 +157,31 @@ if (!props.headers || !props.headers['Authorization']) {
149
157
  props.headers.Authorization = getToken()
150
158
  }
151
159
  const handleBeforeUpload = (file: File) => {
160
+ if (props.fileList?.length !== 0 && props.limit > 0 && props.fileList.length >= props.limit) {
161
+ ElMessage({
162
+ type: 'warning',
163
+ message: t('fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs') + ': ' + props.limit,
164
+ showClose: true
165
+ })
166
+ return false
167
+ }
168
+ if (!innerLimitFileSize.value) {
169
+ // 默认是30M
170
+ innerLimitFileSize.value = 30
171
+ }
172
+ if (file.size > innerLimitFileSize.value * 1024 * 1024) {
173
+ // 超过最大限制
174
+ ElMessage({
175
+ type: 'warning',
176
+ message: t('imatrixUIMessage.exceedFileSize', {
177
+ fileSize: innerLimitFileSize.value
178
+ }),
179
+ showClose: true
180
+ })
181
+ // 返回false停止上传
182
+ return false
183
+ }
184
+
152
185
  const isMobile = false
153
186
  return props.beforeUpload({
154
187
  fileObj: file,
@@ -159,7 +192,7 @@ const handleBeforeUpload = (file: File) => {
159
192
  })
160
193
  }
161
194
  const onSuccess = (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => {
162
- ElMessage.success('上传成功')
195
+ ElMessage.success(t('fsUpload.uploadSucceeded'))
163
196
  // eslint-disable-next-line vue/no-mutating-props
164
197
  props.fileList.push({
165
198
  showName: response.name,
@@ -9,6 +9,7 @@
9
9
  :headers="headers"
10
10
  :action="defaultAction"
11
11
  :multiple="multiple"
12
+ :before-upload="handleBeforeUpload"
12
13
  :on-success="onUploadSuccess"
13
14
  :before-remove="beforeRemove"
14
15
  >
@@ -43,6 +44,8 @@ import { getToken } from '../../../src/utils/auth'
43
44
  import type { UploadFile, UploadFiles } from 'element-plus'
44
45
  import fsPreviewNew from './fs-preview-new.vue'
45
46
  import { ElMessage } from 'element-plus'
47
+ import { useI18n } from 'vue-i18n'
48
+ const { t } = useI18n()
46
49
  const props = defineProps({
47
50
  openFsUpload: {
48
51
  type: Boolean,
@@ -126,11 +129,17 @@ const props = defineProps({
126
129
  disabledNoDownload: {
127
130
  type: Boolean,
128
131
  default: false
132
+ },
133
+ // limit
134
+ limit: {
135
+ type: Number,
136
+ default: 0
129
137
  }
130
138
  })
131
139
  const baseURL = window.$vueApp.config.globalProperties.baseURL
132
140
  const baseAPI = window.$vueApp.config.globalProperties.baseAPI
133
141
  const defaultAction = ref<string>('')
142
+ const innerLimitFileSize = ref(props.limitFileSize)
134
143
  if (props.action) {
135
144
  defaultAction.value = props.action
136
145
  } else {
@@ -145,10 +154,42 @@ if (!props.headers || !props.headers['Authorization']) {
145
154
  props.headers.Authorization = getToken()
146
155
  }
147
156
  const handleBeforeUpload = (file: File) => {
148
- return props.beforeUpload(file)
157
+ if (props.fileList?.length !== 0 && props.limit > 0 && props.fileList.length >= props.limit) {
158
+ ElMessage({
159
+ type: 'warning',
160
+ message: t('fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs') + ': ' + props.limit,
161
+ showClose: true
162
+ })
163
+ return false
164
+ }
165
+ if (!innerLimitFileSize.value) {
166
+ // 默认是30M
167
+ innerLimitFileSize.value = 30
168
+ }
169
+ if (file.size > innerLimitFileSize.value * 1024 * 1024) {
170
+ // 超过最大限制
171
+ ElMessage({
172
+ type: 'warning',
173
+ message: t('imatrixUIMessage.exceedFileSize', {
174
+ fileSize: innerLimitFileSize.value
175
+ }),
176
+ showClose: true
177
+ })
178
+ // 返回false停止上传
179
+ return false
180
+ }
181
+
182
+ const isMobile = false
183
+ return props.beforeUpload({
184
+ fileObj: file,
185
+ files: [file],
186
+ isMobile,
187
+ pageContext: props.pageContext,
188
+ configureObj: props.configure
189
+ })
149
190
  }
150
191
  const onUploadSuccess = (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => {
151
- ElMessage.success('上传成功')
192
+ ElMessage.success(t('fsUpload.uploadSucceeded'))
152
193
  // eslint-disable-next-line vue/no-mutating-props
153
194
  props.fileList.push({
154
195
  showName: response.name,
@@ -13,18 +13,18 @@
13
13
  </span>
14
14
  </template>
15
15
  <template v-if="!disabled || !disabledNoPreview">
16
- <el-tooltip content="预览" placement="top">
16
+ <el-tooltip :content="t('fsUpload.preview')" placement="top">
17
17
  <span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
18
18
  <span style="margin-left: 6.5px">{{ file.showName }}</span>
19
19
  </span>
20
20
  </el-tooltip>
21
21
  </template>
22
- <el-tooltip v-if="!disabled || !disabledNoDownload" content="下载" placement="top">
22
+ <el-tooltip v-if="!disabled || !disabledNoDownload" :content="t('fsUpload.download')" placement="top">
23
23
  <el-icon style="margin-left: 10px" @click="handleDownload(file)">
24
24
  <Download />
25
25
  </el-icon>
26
26
  </el-tooltip>
27
- <el-tooltip v-if="!disabled" content="移除" placement="top">
27
+ <el-tooltip v-if="!disabled" :content="t('fsUpload.delete')" placement="top">
28
28
  <el-icon @click="handleOnRemove(file)"><Close /></el-icon>
29
29
  </el-tooltip>
30
30
  </div>
@@ -47,7 +47,7 @@
47
47
  <el-icon><Delete /></el-icon>
48
48
  </span>
49
49
  </span>
50
- <el-dialog v-model="dialogVisible" title="预览" width="500">
50
+ <el-dialog v-model="dialogVisible" :title="t('fsUpload.preview')" width="500">
51
51
  <el-image :preview-src-list="previewSrcList" :src="previewImageInfo.src" />
52
52
  </el-dialog>
53
53
  </div>
@@ -66,6 +66,8 @@ import { getToken } from '../../../src/utils/auth'
66
66
  import { isImage } from '../../../src/utils/util'
67
67
  import { Base64 } from 'js-base64'
68
68
  import { getFileIconByName } from '../../../src/utils/file-util'
69
+ import { useI18n } from 'vue-i18n'
70
+ const { t } = useI18n()
69
71
  const props = defineProps({
70
72
  systemCode: {
71
73
  type: String,
@@ -212,7 +212,7 @@ const customFormatter = {
212
212
  // console.log('getHyperLinkSetting--resut=', result)
213
213
  if (result && result.label && result.label !== '') {
214
214
  console.log('label存在')
215
- } else if(result && (result.displayTextJudge === undefined || result.displayTextJudge)){
215
+ } else if (result && (result.displayTextJudge === undefined || result.displayTextJudge)) {
216
216
  result.label = this.objectPropValueTwo(row, column)
217
217
  }
218
218
  if (result && result.title && result.title !== '') {
@@ -249,14 +249,8 @@ const customFormatter = {
249
249
  // 解析是否需要显示该超链接
250
250
  let canClick = true
251
251
  const gridParams = store.get(listCode)
252
- console.log('super-grid---jumpPageLink--jumpPageSetting=', jumpPageSetting)
253
252
  if (jumpPageSetting.beforeClick) {
254
253
  const funName = jumpPageSetting.beforeClick
255
- console.log('super-grid---jumpPageLink--jumpPageSetting.beforeClick=', funName)
256
- console.log(
257
- 'super-grid---jumpPageLink--gridParams.options[eventCallBack]=',
258
- gridParams.options['eventCallBack']
259
- )
260
254
  if (
261
255
  gridParams.options &&
262
256
  gridParams.options['eventCallBack'] &&
@@ -287,11 +281,23 @@ const customFormatter = {
287
281
  if (gridParams.options.extraParam && gridParams.options.extraParam.entityMap) {
288
282
  parentFormData = gridParams.options.extraParam.entityMap
289
283
  }
290
- console.log('gridParams.options.extraParam.entityMap', gridParams.options.extraParam)
291
-
284
+ if (gridParams.isSubTableShowPage && jumpPageSetting.jumpPageAdditional?.length > 0) {
285
+ // 如果是子表,则需要把配置的 ${data.字段} 改成 ${parent.字段}
286
+ jumpPageSetting.jumpPageAdditional.forEach((item, index) => {
287
+ if (item && item.paramValue) {
288
+ if (item.paramValue.startsWith('${data.')) {
289
+ item.paramValue = item.paramValue.replace('${data.', '${parent.')
290
+ }
291
+ }
292
+ })
293
+ }
292
294
  /// 把父页面的pageData传给弹出的页面或新页签
293
295
  const copyPageData = JSON.parse(
294
- JSON.stringify(gridParams.pageContext && gridParams.pageContext.entity && gridParams.pageContext.entity.page ? gridParams.pageContext.entity.page : {})
296
+ JSON.stringify(
297
+ gridParams.pageContext && gridParams.pageContext.entity && gridParams.pageContext.entity.page
298
+ ? gridParams.pageContext.entity.page
299
+ : {}
300
+ )
295
301
  )
296
302
  jumpPageSetting._pageData = copyPageData
297
303
  jumpToPage(
@@ -699,6 +699,10 @@ export default {
699
699
  const colConfigure = gridParams.colConfigureMap ? gridParams.colConfigureMap[this.column.prop] : null
700
700
  const runtimeInfo = colConfigure && colConfigure.runtime ? colConfigure.runtime : {}
701
701
  const designProperty = runtimeInfo.props ? runtimeInfo.props : {}
702
+ let systemCode
703
+ if (gridParams && gridParams.basicInfo && gridParams.basicInfo.systemCode) {
704
+ systemCode = gridParams.basicInfo.systemCode
705
+ }
702
706
  return {
703
707
  deptManTree: false, // 是否是部门人员树
704
708
  isMultiTree: false, // 是否是多选树
@@ -763,7 +767,8 @@ export default {
763
767
  baseURL,
764
768
  colConfigure, // v10字段配置原信息
765
769
  designProperty, // 字段配置
766
- myCustomParams: {}
770
+ myCustomParams: {},
771
+ systemCode
767
772
  }
768
773
  },
769
774
  computed: {},
@@ -1943,7 +1948,7 @@ export default {
1943
1948
  const message = {
1944
1949
  type: 'scan',
1945
1950
  componentId: this.componentId,
1946
- systemCode: this.pageContext.systemCode,
1951
+ systemCode: this.systemCode,
1947
1952
  listCode: this.listCode
1948
1953
  }
1949
1954
  if (this.isDingTalk) {
@@ -151,7 +151,10 @@ export default {
151
151
  if (gridParams.options.extraParam && gridParams.options.extraParam.entityMap) {
152
152
  parentFormData = gridParams.options.extraParam.entityMap
153
153
  }
154
-
154
+ let controlConfig = {}
155
+ if (this.column.controlConfig) {
156
+ controlConfig = JSON.parse(this.column.controlConfig)
157
+ }
155
158
  return {
156
159
  selectRow: null,
157
160
  that: this,
@@ -162,7 +165,8 @@ export default {
162
165
  isShowAdd: false, // 是否显示表头的新增按钮
163
166
  cellWidth: null,
164
167
  parentFormData,
165
- options
168
+ options,
169
+ controlConfig
166
170
  }
167
171
  },
168
172
  computed: {
@@ -290,9 +294,9 @@ export default {
290
294
  gridParams.options.showOperationButton
291
295
  },
292
296
  mounted() {
293
- if(this.column.prop === 'operation'){
297
+ if (this.column.prop === 'operation') {
294
298
  const that = this
295
- eventBus.$on('change-add-state',(value)=>{
299
+ eventBus.$on('change-add-state', (value) => {
296
300
  that.isShowAdd = value
297
301
  })
298
302
  }
@@ -278,7 +278,7 @@
278
278
  @focus="selectRow(scope.row)"
279
279
  @input="setValueToModelProp(scope.$index, $event)"
280
280
  />
281
- <span v-else-if="customComponent(scope.row.prop) === true">
281
+ <span v-else-if="customComponent(scope.row.prop) === true" style="width: 100%">
282
282
  <component
283
283
  :is="scope.row.componentName"
284
284
  :ref="scope.row.componentName"
@@ -9,7 +9,7 @@
9
9
  v-html="(column.searchLabel ?? column.label).replace(/\\n/g, '</br>')"
10
10
  />
11
11
  </template>
12
- <span v-if="customComponent(column) === true">
12
+ <span v-if="customComponent(column) === true" style="width: 100%">
13
13
  <component
14
14
  :is="column.componentName"
15
15
  :ref="column.componentName"
@@ -169,7 +169,6 @@
169
169
  :options="getDynamicDataSourceOptions(column)"
170
170
  :table-name="tableName"
171
171
  @change="multiselectChange"
172
- @input="setValueToModelProp(column.prop, $event)"
173
172
  />
174
173
  </template>
175
174
  <!--
@@ -217,11 +216,8 @@
217
216
  @blur="hiddenEmpty()"
218
217
  >
219
218
  <template #suffix>
220
- <el-tooltip
221
- :content="$t('superGrid.searchEmpty')"
222
- placement="bottom"
223
- >
224
- <el-checkbox v-if="isShowEmtpty" v-model="checkedEmpty" @change="checkEmptyChange"/>
219
+ <el-tooltip :content="$t('superGrid.searchEmpty')" placement="bottom">
220
+ <el-checkbox v-if="isShowEmtpty" v-model="checkedEmpty" @change="checkEmptyChange" />
225
221
  </el-tooltip>
226
222
  </template>
227
223
  </el-input>
@@ -293,7 +289,7 @@ export default {
293
289
  moduleConfig: {},
294
290
  dateVal: this.getFormItemValue(this.column.prop),
295
291
  controlConfig: getControlConfig(this.column),
296
- isShowEmtptyFlag: false,
292
+ isShowEmtptyFlag: false
297
293
  // checkedEmpty: false,
298
294
  }
299
295
  },
@@ -308,12 +304,12 @@ export default {
308
304
  isShowEmtpty() {
309
305
  return this.isShowEmtptyFlag
310
306
  },
311
- checkedEmpty(){
312
- if(this.column._emptyValue && this.column._emptyValue === '#blank#'){
307
+ checkedEmpty() {
308
+ if (this.column._emptyValue && this.column._emptyValue === '#blank#') {
313
309
  return true
314
310
  }
315
- if(this.column._resetValue || this.column._resetValue === undefined){
316
- if(this.column._resetValue){
311
+ if (this.column._resetValue || this.column._resetValue === undefined) {
312
+ if (this.column._resetValue) {
317
313
  this.column._resetValue = undefined
318
314
  this.isShowEmtptyFlag = false
319
315
  }
@@ -350,9 +346,7 @@ export default {
350
346
  return isDynamicDataSourceSource(column)
351
347
  },
352
348
  setValueToModelProp(prop, value, componentName, index) {
353
- console.log(
354
- '%c描述-105004',
355
- 'color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',
349
+ console.log('setValueToModelProp',
356
350
  prop,
357
351
  value,
358
352
  componentName,
@@ -503,31 +497,37 @@ export default {
503
497
  return ['00:00:00']
504
498
  }
505
499
  } else {
506
- return ['00:00:00']
500
+ const now = new Date();
501
+ const year = now.getFullYear(); // e.g., 2023
502
+ const month = now.getMonth() + 1; // Months are 0-indexed, so add 1
503
+ const day = now.getDate(); // Day of the month
504
+ return [`${year}-${month}-${day} 00:00:00`, `${year}-${month}-${day} 23:59:59`]
507
505
  }
508
506
  },
509
507
  multiselectChange(arr, selectedItem) {
510
- if (arr.indexOf('saveAll') !== -1) {
508
+ debugger
509
+ if (arr && arr.indexOf('saveAll') !== -1) {
511
510
  if (this.searchForm[this.column.prop] && typeof this.searchForm[this.column.prop] === 'string') {
512
511
  this.searchForm[this.column.prop] = this.searchForm[this.column.prop].split(',')
513
512
  }
514
513
  } else {
514
+ debugger
515
515
  this.searchForm[this.column.prop] = arr
516
516
  }
517
517
  },
518
- showEmpty(){
518
+ showEmpty() {
519
519
  this.isShowEmtptyFlag = true
520
520
  },
521
- hiddenEmpty(){
522
- if(!this.checkedEmpty){
521
+ hiddenEmpty() {
522
+ if (!this.checkedEmpty) {
523
523
  this.isShowEmtptyFlag = false
524
524
  }
525
525
  },
526
526
  checkEmptyChange(newValue) {
527
- if(newValue){
528
- this.column._emptyValue='#blank#'
527
+ if (newValue) {
528
+ this.column._emptyValue = '#blank#'
529
529
  } else {
530
- this.column._emptyValue=undefined
530
+ this.column._emptyValue = undefined
531
531
  }
532
532
  }
533
533
  },