agilebuilder-ui 1.1.46 → 1.1.48-rc1
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/lib/{401-1bde8dc9.js → 401-a94cd05b.js} +1 -1
- package/lib/{404-48d76996.js → 404-eb21244b.js} +1 -1
- package/lib/{iframe-page-77e184a0.js → iframe-page-7add4333.js} +1 -1
- package/lib/index-7a601895.js +92839 -0
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +33 -32
- package/lib/super-ui.umd.cjs +172 -133
- package/lib/{tab-content-iframe-index-39745d49.js → tab-content-iframe-index-483b398c.js} +1 -1
- package/lib/{tab-content-index-65696e56.js → tab-content-index-0862686f.js} +1 -1
- package/lib/{tache-subprocess-history-ef943f95.js → tache-subprocess-history-c80e8ed2.js} +1 -1
- package/package.json +7 -2
- package/packages/chat-embed/index.ts +6 -0
- package/packages/chat-embed/src/chat-embed-message.ts +79 -0
- package/packages/chat-embed/src/chat-embed.css +117 -0
- package/packages/chat-embed/src/chat-sender.vue +240 -0
- package/packages/chat-embed/src/header.vue +50 -0
- package/packages/chat-embed/src/index.vue +425 -0
- package/packages/chat-embed/src/recommendation-message.vue +37 -0
- package/packages/chat-embed/src/util.ts +33 -0
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +42 -34
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +53 -42
- package/packages/department-tree-inline/src/department-tree-service.js +17 -11
- package/packages/department-tree-inline/src/search-result.vue +187 -219
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +17 -4
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +52 -43
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +52 -42
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +23 -13
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +9 -5
- package/packages/department-user-tree-inline/src/group-user-tree-service.js +17 -11
- package/packages/department-user-tree-inline/src/search-result.vue +207 -220
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +14 -3
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +7 -2
- package/packages/empty-state/index.vue +28 -0
- package/packages/fs-preview/src/fs-preview.vue +12 -3
- package/packages/fs-upload/src/fs-upload-multi.vue +6 -4
- package/packages/fs-upload/src/fs-upload-single.vue +7 -6
- package/packages/fs-upload/src/fs-upload.vue +3 -1
- package/packages/fs-upload/src/see-big-picture.vue +3 -0
- package/packages/fs-upload-list/src/fs-upload-list.vue +8 -2
- package/packages/fs-upload-new/src/fs-button-upload.vue +11 -4
- package/packages/fs-upload-new/src/fs-drag-upload.vue +11 -4
- package/packages/fs-upload-new/src/fs-preview-new.vue +8 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +17 -0
- package/packages/index.js +16 -13
- package/packages/json-view/index.ts +3 -0
- package/packages/json-view/json-view-dialog.vue +53 -0
- package/packages/json-view/json-view.vue +126 -0
- package/packages/plugins/export-data-new.js +2 -0
- package/packages/super-grid/src/apis.js +11 -0
- package/packages/super-grid/src/components/grid-icon.vue +6 -3
- package/packages/super-grid/src/custom-formatter.js +15 -2
- package/packages/super-grid/src/dynamic-input.vue +46 -4
- package/packages/super-grid/src/formatter.js +5 -1
- package/packages/super-grid/src/normal-column-content.vue +30 -38
- package/packages/super-grid/src/normal-column.vue +8 -1
- package/packages/super-grid/src/super-grid.vue +23 -10
- package/packages/utils/utils.js +27 -9
- package/packages/workgroup-tree-inline/src/search-result.vue +2 -1
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +50 -41
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +16 -5
- package/packages/workgroup-user-tree-inline/src/search-result.vue +2 -1
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +30 -24
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +49 -37
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +281 -222
- package/src/assets/chat-embed/avatar.png +0 -0
- package/src/i18n/langs/cn.js +20 -6
- package/src/i18n/langs/en.js +19 -5
- package/src/store/modules/chat-ai-store.ts +78 -0
- package/src/store/modules/tab-content.js +9 -3
- package/src/styles/index.scss +45 -0
- package/src/utils/auth.js +10 -7
- package/src/utils/chat-ai-util.ts +31 -0
- package/src/utils/common-util.js +78 -8
- package/src/utils/global-prop.js +17 -0
- package/src/utils/insert_css.js +14 -1
- package/src/utils/jump-page-utils.js +8 -4
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +6 -0
- package/src/views/dsc-component/tabs/tab-content.vue +6 -0
- package/lib/index-465b0d69.js +0 -73558
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $emit } from '../../utils/gogocodeTransfer'
|
|
2
|
-
import { doFormat } from './formatter'
|
|
2
|
+
import { doFormat, formatDateTime } from './formatter'
|
|
3
3
|
import store from './store'
|
|
4
4
|
import { initialization, jumpToPage } from '../../../src/utils/jump-page-utils'
|
|
5
5
|
import { analysisFileSetObj, otherFilesToStandard } from './utils'
|
|
@@ -198,9 +198,10 @@ const customFormatter = {
|
|
|
198
198
|
jumpPageJson = column.formatter.options.format
|
|
199
199
|
}
|
|
200
200
|
if (jumpPageJson && jumpPageJson !== '') {
|
|
201
|
+
const jumpPageJsonObject = JSON.parse(jumpPageJson)
|
|
201
202
|
// 解析是否需要显示该超链接
|
|
202
203
|
const result = initialization(
|
|
203
|
-
|
|
204
|
+
jumpPageJsonObject,
|
|
204
205
|
row,
|
|
205
206
|
isSql,
|
|
206
207
|
additionalParamerter,
|
|
@@ -227,6 +228,18 @@ const customFormatter = {
|
|
|
227
228
|
hyperLinkResult.label = this.objectPropValueTwo(row, column)
|
|
228
229
|
hyperLinkResult.title = hyperLinkResult.label
|
|
229
230
|
}
|
|
231
|
+
if (hyperLinkResult.jumpPageItem) {
|
|
232
|
+
const jumpSetting = hyperLinkResult.jumpPageItem.jumpPageSetting
|
|
233
|
+
if (jumpSetting && jumpSetting.displayTextFormatType && jumpSetting.displayTextFormat) {
|
|
234
|
+
const formatValue = formatDateTime(
|
|
235
|
+
jumpSetting.displayTextFormatType,
|
|
236
|
+
hyperLinkResult.label,
|
|
237
|
+
jumpSetting.displayTextFormat
|
|
238
|
+
)
|
|
239
|
+
hyperLinkResult.label = formatValue
|
|
240
|
+
hyperLinkResult.title = formatValue
|
|
241
|
+
}
|
|
242
|
+
}
|
|
230
243
|
return hyperLinkResult
|
|
231
244
|
},
|
|
232
245
|
// 点击超链接
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-if="type && type.indexOf('custom:') >= 0 && componentName != ''"
|
|
4
|
-
:
|
|
4
|
+
:class="
|
|
5
|
+
!this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ? 'required_bg' : ''
|
|
6
|
+
"
|
|
5
7
|
>
|
|
6
8
|
<component
|
|
7
9
|
:is="componentName"
|
|
@@ -26,7 +28,12 @@
|
|
|
26
28
|
@input="cellEvent('input', $event)"
|
|
27
29
|
/>
|
|
28
30
|
</div>
|
|
29
|
-
<div
|
|
31
|
+
<div
|
|
32
|
+
v-else
|
|
33
|
+
:class="
|
|
34
|
+
!this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ? 'required_bg' : ''
|
|
35
|
+
"
|
|
36
|
+
>
|
|
30
37
|
<!--必须有@input ,否则无法输入值-->
|
|
31
38
|
<el-date-picker
|
|
32
39
|
v-if="type === 'year' || type === 'month' || type === 'week'"
|
|
@@ -293,6 +300,7 @@
|
|
|
293
300
|
@delete="deleteFile"
|
|
294
301
|
@delete-success="deleteSuccess"
|
|
295
302
|
@upload-success="uploadOnSuccess"
|
|
303
|
+
@on-error="onError"
|
|
296
304
|
/>
|
|
297
305
|
<multipart-upload
|
|
298
306
|
v-else-if="type === 'multipartUpload'"
|
|
@@ -713,7 +721,6 @@ export default {
|
|
|
713
721
|
newValue: null,
|
|
714
722
|
// disabled, // 当前用户是否禁止编辑该字段/ 是否新增行
|
|
715
723
|
componentName: '',
|
|
716
|
-
validateErrorField: '', // 保存行记录时,验证失败的字段名
|
|
717
724
|
annexUploadFlag: false,
|
|
718
725
|
defaultAction,
|
|
719
726
|
fileMultiple: false, // 文件是否多选
|
|
@@ -768,7 +775,8 @@ export default {
|
|
|
768
775
|
colConfigure, // v10字段配置原信息
|
|
769
776
|
designProperty, // 字段配置
|
|
770
777
|
myCustomParams: {},
|
|
771
|
-
systemCode
|
|
778
|
+
systemCode,
|
|
779
|
+
isFormSubTable: false // 是否是表单子表
|
|
772
780
|
}
|
|
773
781
|
},
|
|
774
782
|
computed: {},
|
|
@@ -816,6 +824,9 @@ export default {
|
|
|
816
824
|
},
|
|
817
825
|
created() {
|
|
818
826
|
const gridParams = store.get(this.listCode)
|
|
827
|
+
if (gridParams && gridParams.options && gridParams.options.isFormSubTable) {
|
|
828
|
+
this.isFormSubTable = gridParams.options.isFormSubTable
|
|
829
|
+
}
|
|
819
830
|
if (this.controlConfig?.customParams) {
|
|
820
831
|
if (!this.pageContext) {
|
|
821
832
|
this.pageContext = gridParams.options.pageContext
|
|
@@ -1111,6 +1122,7 @@ export default {
|
|
|
1111
1122
|
val = null
|
|
1112
1123
|
}
|
|
1113
1124
|
$emit(this, 'update:value', val)
|
|
1125
|
+
this.clearValidateErrorField()
|
|
1114
1126
|
isInputVal = true
|
|
1115
1127
|
// 在callCustomEvent方法中使用了innerValue属性
|
|
1116
1128
|
this.innerValue = val
|
|
@@ -1127,9 +1139,11 @@ export default {
|
|
|
1127
1139
|
if (this.innerValue.indexOf(saveAll) < 0) {
|
|
1128
1140
|
// 不包含“全选”时才走input,全选是在multiselectchange中特殊处理的
|
|
1129
1141
|
$emit(this, 'update:value', this.innerValue.join(','))
|
|
1142
|
+
this.clearValidateErrorField()
|
|
1130
1143
|
}
|
|
1131
1144
|
} else {
|
|
1132
1145
|
$emit(this, 'update:value', this.innerValue)
|
|
1146
|
+
this.clearValidateErrorField()
|
|
1133
1147
|
}
|
|
1134
1148
|
isInputVal = true
|
|
1135
1149
|
} else if (eventName === 'input' && isInputEventUpdateValue !== undefined && isInputEventUpdateValue === true) {
|
|
@@ -1137,6 +1151,7 @@ export default {
|
|
|
1137
1151
|
// 在callCustomEvent方法中使用了innerValue属性
|
|
1138
1152
|
this.innerValue = event
|
|
1139
1153
|
$emit(this, 'update:value', event)
|
|
1154
|
+
this.clearValidateErrorField()
|
|
1140
1155
|
isInputVal = true
|
|
1141
1156
|
} else if (eventName === 'blur' && !this.isSelectControll()) {
|
|
1142
1157
|
// 为了使输入时流畅,所以在blur时调用input,更改组件的数据
|
|
@@ -1193,9 +1208,16 @@ export default {
|
|
|
1193
1208
|
}
|
|
1194
1209
|
// 必须这样调用input事件 ,否则组件无法输入值
|
|
1195
1210
|
$emit(this, 'update:value', this.innerValue) // 现在的用法
|
|
1211
|
+
this.clearValidateErrorField()
|
|
1196
1212
|
// 扫描组件时监控值变化
|
|
1197
1213
|
this.watchScanValueChange(this.innerValue)
|
|
1198
1214
|
},
|
|
1215
|
+
// 清空单元格必填样式
|
|
1216
|
+
clearValidateErrorField() {
|
|
1217
|
+
if (this.row.validateErrorField) {
|
|
1218
|
+
this.row.validateErrorField = undefined
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1199
1221
|
// 是否是输入框
|
|
1200
1222
|
isInputControl() {
|
|
1201
1223
|
return this.type === 'input' || this.type === 'textarea'
|
|
@@ -2075,6 +2097,26 @@ export default {
|
|
|
2075
2097
|
} else {
|
|
2076
2098
|
this.departmentInfo = []
|
|
2077
2099
|
}
|
|
2100
|
+
},
|
|
2101
|
+
onError(error) {
|
|
2102
|
+
console.error('Upload error:', error)
|
|
2103
|
+
if (error.message) {
|
|
2104
|
+
let message = JSON.parse(error.message)
|
|
2105
|
+
if (message && message.message) {
|
|
2106
|
+
message = JSON.parse(message.message)
|
|
2107
|
+
}
|
|
2108
|
+
this.$message({
|
|
2109
|
+
type: 'error',
|
|
2110
|
+
message: message,
|
|
2111
|
+
showClose: true
|
|
2112
|
+
})
|
|
2113
|
+
} else {
|
|
2114
|
+
this.$message({
|
|
2115
|
+
type: 'error',
|
|
2116
|
+
message: this.$t('fsUpload.uploadFailed'),
|
|
2117
|
+
showClose: true
|
|
2118
|
+
})
|
|
2119
|
+
}
|
|
2078
2120
|
}
|
|
2079
2121
|
}
|
|
2080
2122
|
}
|
|
@@ -179,7 +179,7 @@ export function doFormatWithValueSet(column, value) {
|
|
|
179
179
|
label.push(item[0].label)
|
|
180
180
|
}
|
|
181
181
|
})
|
|
182
|
-
if(label.length > 0){
|
|
182
|
+
if (label.length > 0) {
|
|
183
183
|
value = label.join(',')
|
|
184
184
|
}
|
|
185
185
|
} else {
|
|
@@ -194,3 +194,7 @@ export function doFormatWithValueSet(column, value) {
|
|
|
194
194
|
}
|
|
195
195
|
return value
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
export function formatDateTime(type, value, format) {
|
|
199
|
+
return formatter[type](value, { format: format })
|
|
200
|
+
}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
@change-required="changeRequired"
|
|
35
35
|
@open-page="openPageEvent"
|
|
36
36
|
/>
|
|
37
|
-
<div v-else class="column-text-main">
|
|
37
|
+
<div v-else :class=" (options?.configureObj?.props?.base?.columnEditable ?? false) ? 'column-text-main' : ''">
|
|
38
38
|
<div
|
|
39
39
|
v-if="
|
|
40
40
|
lineEdit.editable &&
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
columnFormatter.options.format &&
|
|
148
148
|
columnFormatter.options.format !== ''
|
|
149
149
|
"
|
|
150
|
-
:class="
|
|
150
|
+
:class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
|
|
151
151
|
>
|
|
152
152
|
<!--:key="column.prop+'_'+rowIndex+'_'+currentPage" 为了解决子表分页时,新增自动跳转到下一页,第一条记录的自定义控件被复用,导致业务逻辑没执行 -->
|
|
153
153
|
<component
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
:component-id="componentId"
|
|
173
173
|
:additional-settings="additionalSettings"
|
|
174
174
|
:page-context="options?.pageContext"
|
|
175
|
-
:custom-params="
|
|
175
|
+
:custom-params="getCustomParams()"
|
|
176
176
|
@prohibitToEdit="prohibitToEdit"
|
|
177
177
|
@refresh-list="refreshList"
|
|
178
178
|
/></span>
|
|
@@ -221,12 +221,7 @@
|
|
|
221
221
|
@click="clickHyperLink(column, row, listCode, rowIndex)"
|
|
222
222
|
> -->
|
|
223
223
|
<el-link
|
|
224
|
-
v-else-if="
|
|
225
|
-
columnFormatter !== undefined &&
|
|
226
|
-
columnFormatter.type !== undefined &&
|
|
227
|
-
columnFormatter.type === 'hyperlinks' &&
|
|
228
|
-
getMyHyperLinkSetting(row, rowIndex).visible === true
|
|
229
|
-
"
|
|
224
|
+
v-else-if="columnFormatter?.type === 'hyperlinks' && linkObject.visible === true"
|
|
230
225
|
:type="getLinkType(row)"
|
|
231
226
|
@click="clickHyperLink(column, row, listCode, rowIndex)"
|
|
232
227
|
>
|
|
@@ -234,20 +229,14 @@
|
|
|
234
229
|
v-if="isShowOverflowTooltip"
|
|
235
230
|
:id="column.prop + 'DomData' + rowIndex"
|
|
236
231
|
:style="textOverflow === 'newline' ? {} : { width: cellWidth + 'px' }"
|
|
237
|
-
:title="
|
|
232
|
+
:title="linkObject.title"
|
|
238
233
|
:class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
|
|
239
|
-
>{{
|
|
240
|
-
<SuperIcon
|
|
241
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
242
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
243
|
-
></SuperIcon>
|
|
234
|
+
>{{ linkObject.label }}
|
|
235
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
244
236
|
</span>
|
|
245
237
|
<span v-else :id="column.prop + 'DomData' + rowIndex" :class="isShowForm ? '' : 'cell--span'"
|
|
246
|
-
>{{
|
|
247
|
-
<SuperIcon
|
|
248
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
249
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
250
|
-
></SuperIcon>
|
|
238
|
+
>{{ linkObject.label }}
|
|
239
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
251
240
|
</span>
|
|
252
241
|
</el-link>
|
|
253
242
|
<span
|
|
@@ -307,12 +296,7 @@
|
|
|
307
296
|
</span>
|
|
308
297
|
<!-- 超链接 -->
|
|
309
298
|
<el-link
|
|
310
|
-
v-else-if="
|
|
311
|
-
columnFormatter !== undefined &&
|
|
312
|
-
columnFormatter.type !== undefined &&
|
|
313
|
-
columnFormatter.type === 'hyperlinks' &&
|
|
314
|
-
getMyHyperLinkSetting(row, rowIndex).visible === true
|
|
315
|
-
"
|
|
299
|
+
v-else-if="columnFormatter?.type === 'hyperlinks' && linkObject.visible"
|
|
316
300
|
type="primary"
|
|
317
301
|
@click="clickHyperLink(column, row, listCode, rowIndex)"
|
|
318
302
|
>
|
|
@@ -320,20 +304,14 @@
|
|
|
320
304
|
v-if="isShowOverflowTooltip"
|
|
321
305
|
:id="column.prop + 'DomData' + rowIndex"
|
|
322
306
|
:style="textOverflow === 'newline' ? {} : { width: cellWidth + 'px' }"
|
|
323
|
-
:title="$escapeHtml(
|
|
307
|
+
:title="$escapeHtml(linkObject.title)"
|
|
324
308
|
:class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
|
|
325
|
-
>{{ $escapeHtml(
|
|
326
|
-
<SuperIcon
|
|
327
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
328
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
329
|
-
></SuperIcon>
|
|
309
|
+
>{{ $escapeHtml(linkObject.label) }}
|
|
310
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
330
311
|
</span>
|
|
331
312
|
<span v-else :id="column.prop + 'DomData' + rowIndex" :class="isShowForm ? '' : 'cell--span'"
|
|
332
|
-
>{{ $escapeHtml(
|
|
333
|
-
<SuperIcon
|
|
334
|
-
v-if="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
335
|
-
:iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
|
|
336
|
-
></SuperIcon>
|
|
313
|
+
>{{ $escapeHtml(linkObject.label) }}
|
|
314
|
+
<SuperIcon v-if="linkObject.icon" :iconValue="linkObject.icon"></SuperIcon>
|
|
337
315
|
</span>
|
|
338
316
|
</el-link>
|
|
339
317
|
<!-- 富文本 -->
|
|
@@ -554,7 +532,8 @@ export default {
|
|
|
554
532
|
requiredClass: '',
|
|
555
533
|
lineEdit,
|
|
556
534
|
options,
|
|
557
|
-
textOverflow
|
|
535
|
+
textOverflow,
|
|
536
|
+
linkObject: {}
|
|
558
537
|
}
|
|
559
538
|
},
|
|
560
539
|
computed: {
|
|
@@ -707,6 +686,9 @@ export default {
|
|
|
707
686
|
}
|
|
708
687
|
this.setScanRuleSets()
|
|
709
688
|
this.requiredClass = this.isRequired(this.row.$editing) ? 'm-requried column-text-main' : ''
|
|
689
|
+
if (this.columnFormatter?.type === 'hyperlinks') {
|
|
690
|
+
this.linkObject = this.getMyHyperLinkSetting(this.row, this.rowIndex)
|
|
691
|
+
}
|
|
710
692
|
},
|
|
711
693
|
mounted() {
|
|
712
694
|
if (this.controlConfig) {
|
|
@@ -1280,6 +1262,16 @@ export default {
|
|
|
1280
1262
|
}
|
|
1281
1263
|
}
|
|
1282
1264
|
return true
|
|
1265
|
+
},
|
|
1266
|
+
getCustomParams() {
|
|
1267
|
+
if (this.column.formatter.type === 'customControl') {
|
|
1268
|
+
if (this.column.formatter?.options?.controlConfig) {
|
|
1269
|
+
const controlConfig = JSON.parse(this.column.formatter.options.controlConfig)
|
|
1270
|
+
if (controlConfig && controlConfig.customParams) {
|
|
1271
|
+
return formatCustomParams(controlConfig.customParams, this.options?.pageContext, this.row)
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1283
1275
|
}
|
|
1284
1276
|
},
|
|
1285
1277
|
emits: ['refresData', 'refresPortData', 'refresPortsData', 'refresMainTableFields', 'prohibitToEdit']
|
|
@@ -49,6 +49,8 @@
|
|
|
49
49
|
:row-index="scope.$index"
|
|
50
50
|
:line-edit="lineEdit"
|
|
51
51
|
:custom-format="customFormat"
|
|
52
|
+
:class="isValidateError(scope.row,scope.$index)?'required_bg required-corner':''"
|
|
53
|
+
:style="isValidateError(scope.row,scope.$index)?'display:block;':''"
|
|
52
54
|
@open-page="openPageEvent"
|
|
53
55
|
@refresData="refresData"
|
|
54
56
|
@refresh-list="refreshList"
|
|
@@ -60,7 +62,6 @@
|
|
|
60
62
|
</template>
|
|
61
63
|
</el-table-column>
|
|
62
64
|
</template>
|
|
63
|
-
|
|
64
65
|
<script>
|
|
65
66
|
import { CirclePlus, ZoomIn as ElIconZoomIn } from '@element-plus/icons-vue'
|
|
66
67
|
import { $emit, $off, $on } from '../../utils/gogocodeTransfer'
|
|
@@ -77,6 +78,7 @@ import RichEditorViewer from '../../rich-editor/viewer.vue'
|
|
|
77
78
|
import GridIcon from './components/grid-icon.vue'
|
|
78
79
|
import NormalColumnContent from './normal-column-content.vue'
|
|
79
80
|
import eventBus from './eventBus'
|
|
81
|
+
// border:1px solid red;padding: 10px;
|
|
80
82
|
export default {
|
|
81
83
|
components: {
|
|
82
84
|
DynamicInput,
|
|
@@ -359,6 +361,11 @@ export default {
|
|
|
359
361
|
openPageEvent(openPageParams) {
|
|
360
362
|
console.log('normalColumn----openPageEvent----', openPageParams)
|
|
361
363
|
this.$emit('open-page', openPageParams)
|
|
364
|
+
},
|
|
365
|
+
isValidateError(row,rowIndex) {
|
|
366
|
+
// const gridParams = store.get(this.listCode)
|
|
367
|
+
console.log('row.validateErrorField-----',row)
|
|
368
|
+
return this.isFormSubTable && row && row['validateErrorField'] && row['validateErrorField'] === this.column.prop
|
|
362
369
|
}
|
|
363
370
|
},
|
|
364
371
|
emits: ['refresData', 'refresPortData', 'refresPortsData', 'refresMainTableFields', 'prohibitToEdit']
|
|
@@ -226,7 +226,7 @@ import { checkPermission } from '../../../src/utils/permission'
|
|
|
226
226
|
import { getGuId } from '../../../src/utils/guid.js'
|
|
227
227
|
// import resizeMixin from '../../../src/mixins/resizeMixin.js';
|
|
228
228
|
import storeVuex from '../../../src/store'
|
|
229
|
-
|
|
229
|
+
import { setPageDataToChatAiStore, setPageInfoToChatStore } from '../../../src/utils/chat-ai-util.ts'
|
|
230
230
|
export default {
|
|
231
231
|
components: {
|
|
232
232
|
IndexColumn,
|
|
@@ -460,7 +460,7 @@ export default {
|
|
|
460
460
|
// 限制高度最低值
|
|
461
461
|
hasMaxHeight() {
|
|
462
462
|
if (this.maxHeight) {
|
|
463
|
-
return this.maxHeight <= 100 ? 100 : this.maxHeight + (this.heightOffset!==0?this.heightOffset:30)
|
|
463
|
+
return this.maxHeight <= 100 ? 100 : this.maxHeight + (this.heightOffset !== 0 ? this.heightOffset : 30)
|
|
464
464
|
}
|
|
465
465
|
return undefined
|
|
466
466
|
},
|
|
@@ -468,7 +468,7 @@ export default {
|
|
|
468
468
|
// 是指固定高度最低值
|
|
469
469
|
hasTableHeight() {
|
|
470
470
|
if (this.tableHeight) {
|
|
471
|
-
return this.tableHeight <= 100 ? 100 : this.tableHeight + (this.heightOffset!==0?this.heightOffset:30)
|
|
471
|
+
return this.tableHeight <= 100 ? 100 : this.tableHeight + (this.heightOffset !== 0 ? this.heightOffset : 30)
|
|
472
472
|
}
|
|
473
473
|
return undefined
|
|
474
474
|
},
|
|
@@ -924,6 +924,16 @@ export default {
|
|
|
924
924
|
deep: true
|
|
925
925
|
}
|
|
926
926
|
)
|
|
927
|
+
if (!this.isFormSubTable) {
|
|
928
|
+
setPageInfoToChatStore(this.pageContext, {
|
|
929
|
+
listRefs: [
|
|
930
|
+
{
|
|
931
|
+
ref: this
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
pageType: 'list'
|
|
935
|
+
})
|
|
936
|
+
}
|
|
927
937
|
})
|
|
928
938
|
},
|
|
929
939
|
beforeDestroy() {
|
|
@@ -1649,16 +1659,16 @@ export default {
|
|
|
1649
1659
|
}
|
|
1650
1660
|
return isCanRefreshTableData
|
|
1651
1661
|
},
|
|
1652
|
-
getSubTableGridData(subTableData) {
|
|
1662
|
+
getSubTableGridData(subTableData, currentPage) {
|
|
1653
1663
|
let gridData = subTableData
|
|
1654
1664
|
if (this.isSubTableShowPage === true) {
|
|
1655
1665
|
if (subTableData && subTableData.length > 0) {
|
|
1656
1666
|
// const subTableData = JSON.parse(JSON.stringify(this.subTableData))
|
|
1657
1667
|
this.pagination.total = subTableData.length
|
|
1658
1668
|
// 当前是第几页
|
|
1659
|
-
let
|
|
1660
|
-
if (
|
|
1661
|
-
|
|
1669
|
+
let newCurrentPage = currentPage !== undefined && currentPage !== null ? currentPage : this.currentPage
|
|
1670
|
+
if (newCurrentPage === undefined || newCurrentPage === null) {
|
|
1671
|
+
newCurrentPage = 1
|
|
1662
1672
|
}
|
|
1663
1673
|
// 每页显示多少条记录
|
|
1664
1674
|
let pageSize = this.pageSize
|
|
@@ -1669,7 +1679,7 @@ export default {
|
|
|
1669
1679
|
pageSize = 20
|
|
1670
1680
|
}
|
|
1671
1681
|
// 当前页的第一条记录的数组下标
|
|
1672
|
-
const startRowIndex = (
|
|
1682
|
+
const startRowIndex = (newCurrentPage - 1) * pageSize
|
|
1673
1683
|
// 当前页的最后一条记录的数组下标
|
|
1674
1684
|
let lastRowIndex = startRowIndex + pageSize
|
|
1675
1685
|
if (subTableData.length > startRowIndex) {
|
|
@@ -2380,13 +2390,13 @@ export default {
|
|
|
2380
2390
|
this.changePage()
|
|
2381
2391
|
}
|
|
2382
2392
|
},
|
|
2383
|
-
changePage() {
|
|
2393
|
+
changePage(currentPage) {
|
|
2384
2394
|
console.log('点击了分页')
|
|
2385
2395
|
// 翻页操作会导致筛选项发生变化,所以需要清空已有的
|
|
2386
2396
|
this.$refs.superGrid?.clearFilter()
|
|
2387
2397
|
// TODO: 把当前页数、每页条数、查询条件、排序信息传回后台
|
|
2388
2398
|
if (this.isSubTableShowPage) {
|
|
2389
|
-
this.gridData = this.getSubTableGridData(this.subTableData)
|
|
2399
|
+
this.gridData = this.getSubTableGridData(this.subTableData, currentPage)
|
|
2390
2400
|
const gridParams = store.get(this.code)
|
|
2391
2401
|
gridParams.gridData = this.gridData
|
|
2392
2402
|
// 完成深拷贝,复制一份对象,行编辑时使用
|
|
@@ -3222,6 +3232,9 @@ export default {
|
|
|
3222
3232
|
// this.$refs.superGrid?.toggleRowSelection(newSelection[newSelection.length - 1], false)
|
|
3223
3233
|
// }
|
|
3224
3234
|
}
|
|
3235
|
+
if (!this.isFormSubTable) {
|
|
3236
|
+
setPageDataToChatAiStore(newSelection)
|
|
3237
|
+
}
|
|
3225
3238
|
this.selectionChange(newSelection)
|
|
3226
3239
|
},
|
|
3227
3240
|
// 显示移动端查询区域
|
package/packages/utils/utils.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { getI18n } from '../../src/utils/util'
|
|
2
2
|
import * as Vue from 'vue'
|
|
3
|
+
import { cacheCanShowOrgTree, getCanShowOrgTree } from '../../src/utils/global-prop.js'
|
|
3
4
|
const utils = {
|
|
4
5
|
getSearchUserFields() {
|
|
5
6
|
const i18n = getI18n()
|
|
6
7
|
return [
|
|
7
8
|
{
|
|
8
9
|
value: 'name',
|
|
9
|
-
label: i18n.t('departmentUserTree.searchFieldUserName')
|
|
10
|
+
label: i18n.t('departmentUserTree.searchFieldUserName')
|
|
10
11
|
},
|
|
11
12
|
{
|
|
12
13
|
value: 'loginName',
|
|
13
|
-
label: i18n.t('departmentUserTree.searchFieldLoginName')
|
|
14
|
+
label: i18n.t('departmentUserTree.searchFieldLoginName')
|
|
14
15
|
},
|
|
15
16
|
{ value: 'email', label: i18n.t('departmentUserTree.searchFieldEmail') },
|
|
16
17
|
{
|
|
17
18
|
value: 'telephone',
|
|
18
|
-
label: i18n.t('departmentUserTree.searchFieldTelephone')
|
|
19
|
+
label: i18n.t('departmentUserTree.searchFieldTelephone')
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
value: 'jobNumber',
|
|
22
|
-
label: i18n.t('departmentUserTree.searchFieldJobNumber')
|
|
23
|
+
label: i18n.t('departmentUserTree.searchFieldJobNumber')
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
value: 'honorificName',
|
|
26
|
-
label: i18n.t('departmentUserTree.searchFieldHonorificName')
|
|
27
|
-
}
|
|
27
|
+
label: i18n.t('departmentUserTree.searchFieldHonorificName')
|
|
28
|
+
}
|
|
28
29
|
]
|
|
29
30
|
},
|
|
30
31
|
removeRow(arr, row) {
|
|
@@ -70,9 +71,7 @@ const utils = {
|
|
|
70
71
|
},
|
|
71
72
|
createFilter(queryString) {
|
|
72
73
|
return (restaurant) => {
|
|
73
|
-
return (
|
|
74
|
-
restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
|
|
75
|
-
)
|
|
74
|
+
return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
|
|
76
75
|
}
|
|
77
76
|
},
|
|
78
77
|
handleSelectUtil(item, localStorage) {
|
|
@@ -176,5 +175,24 @@ const utils = {
|
|
|
176
175
|
}
|
|
177
176
|
})
|
|
178
177
|
},
|
|
178
|
+
canShowOrgTree() {
|
|
179
|
+
return new Promise((resolve, reject) => {
|
|
180
|
+
const cacheShowOrgTree = getCanShowOrgTree()
|
|
181
|
+
if (cacheShowOrgTree === 'false' || cacheShowOrgTree === 'true') {
|
|
182
|
+
let showOrgTree = cacheShowOrgTree === 'true'
|
|
183
|
+
resolve(showOrgTree)
|
|
184
|
+
} else {
|
|
185
|
+
window.$http
|
|
186
|
+
.get(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/show-org-tree')
|
|
187
|
+
.then((canshow) => {
|
|
188
|
+
cacheCanShowOrgTree(canshow)
|
|
189
|
+
resolve(canshow)
|
|
190
|
+
})
|
|
191
|
+
.catch((error) => {
|
|
192
|
+
resolve(false)
|
|
193
|
+
})
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
}
|
|
179
197
|
}
|
|
180
198
|
export default utils
|
|
@@ -162,7 +162,8 @@ export default {
|
|
|
162
162
|
},
|
|
163
163
|
// 添加工作组
|
|
164
164
|
addWorkgroup(index, row) {
|
|
165
|
-
|
|
165
|
+
// JSON.parse(JSON.stringify(row)) 转换对象是为了解决添加数据时浏览器崩溃
|
|
166
|
+
$emit(this, 'addWorkgroup', index, JSON.parse(JSON.stringify(row)))
|
|
166
167
|
},
|
|
167
168
|
// 选中工作组
|
|
168
169
|
selectWorkgroup(selectVal) {
|