agilebuilder-ui 1.1.50-sit3 → 1.1.50
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-60b8f546.js → 401-aead36a9.js} +1 -1
- package/lib/{404-4a538d4c.js → 404-9ad11c2e.js} +1 -1
- package/lib/{iframe-page-f160b79e.js → iframe-page-bf851287.js} +1 -1
- package/lib/{index-aad7870b.js → index-75ff2a06.js} +14279 -14184
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +110 -110
- package/lib/{tab-content-iframe-index-0768e207.js → tab-content-iframe-index-c7bb8381.js} +1 -1
- package/lib/{tab-content-index-dedfc960.js → tab-content-index-95a59e50.js} +1 -1
- package/lib/{tache-subprocess-history-81710a48.js → tache-subprocess-history-106dc6ec.js} +1 -1
- package/package.json +1 -1
- package/packages/chat-embed/src/chat-embed-message.ts +5 -2
- package/packages/chat-embed/src/chat-sender.vue +41 -30
- package/packages/chat-embed/src/header.vue +2 -2
- package/packages/chat-embed/src/index.vue +503 -158
- package/packages/department-tree-inline/src/search-result.vue +1 -2
- package/packages/department-user-tree-inline/src/search-result.vue +1 -2
- package/packages/fs-preview/src/fs-preview.vue +1 -1
- package/packages/fs-upload-new/src/fs-button-upload.vue +1 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +1 -0
- package/packages/fs-upload-new/src/fs-preview-new.vue +39 -13
- package/packages/fs-upload-new/src/fs-upload-new.vue +3 -3
- package/packages/super-grid/src/normal-column-content.vue +0 -1
- package/packages/super-grid/src/row-operation.vue +9 -13
- package/packages/super-grid/src/search-methods.js +3 -3
- package/packages/super-grid/src/super-grid.vue +2 -0
- package/packages/utils/value-set.js +1 -5
- package/src/views/login/update-password.vue +3 -0
|
@@ -151,8 +151,7 @@ export default {
|
|
|
151
151
|
},
|
|
152
152
|
// 添加用户
|
|
153
153
|
addUser(index, row) {
|
|
154
|
-
|
|
155
|
-
$emit(this, 'addUser', index, JSON.parse(JSON.stringify(row)))
|
|
154
|
+
$emit(this, 'addUser', index, JSON.parse(JSON.stringify(row)))
|
|
156
155
|
},
|
|
157
156
|
selectUser(selectVal) {
|
|
158
157
|
// console.log('selectUser', selectVal)
|
|
@@ -202,8 +202,7 @@ export default {
|
|
|
202
202
|
},
|
|
203
203
|
// 添加用户
|
|
204
204
|
addUser(index, row) {
|
|
205
|
-
|
|
206
|
-
this.$emit('addUser', index, JSON.parse(JSON.stringify(row)))
|
|
205
|
+
this.$emit('addUser', index, JSON.parse(JSON.stringify(row)))
|
|
207
206
|
},
|
|
208
207
|
selectUser(selectVal) {
|
|
209
208
|
// console.log('selectUser', selectVal)
|
|
@@ -304,7 +304,7 @@ export default {
|
|
|
304
304
|
// window.$vueApp.config.globalProperties.kkFileViewUrl +
|
|
305
305
|
// '?url=' +
|
|
306
306
|
// encodeURIComponent(Base64.encode(myPreviewUrl))
|
|
307
|
-
|
|
307
|
+
/window.open(previewUrl, showName)
|
|
308
308
|
console.log('previewUrl====', previewUrl)
|
|
309
309
|
} else {
|
|
310
310
|
previewUrl = baseUrl + '/common/fs-upload/preview?jwt=' + token
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
</el-tooltip>
|
|
21
21
|
</template>
|
|
22
22
|
<el-tooltip v-if="!disabled || !disabledNoDownload" :content="t('fsUpload.download')" placement="top">
|
|
23
|
-
<el-icon style="margin-left: 10px" @click="handleDownload(file)">
|
|
23
|
+
<!-- <el-icon style="margin-left: 10px" @click="handleDownload(file)">
|
|
24
24
|
<Download />
|
|
25
|
-
</el-icon>
|
|
25
|
+
</el-icon> -->
|
|
26
|
+
<super-icon class="fs-preview-icon" @click="handleDownload(file)" iconValue="amb-color-icon-xiazai" />
|
|
26
27
|
</el-tooltip>
|
|
27
28
|
<el-tooltip v-if="!disabled" :content="t('fsUpload.delete')" placement="top">
|
|
28
|
-
<
|
|
29
|
+
<super-icon class="fs-preview-icon" @click="handleOnRemove(file)" iconValue="amb-color-icon-shanchu" />
|
|
29
30
|
</el-tooltip>
|
|
30
31
|
</div>
|
|
31
32
|
</template>
|
|
@@ -61,7 +62,14 @@
|
|
|
61
62
|
<script setup lang="ts">
|
|
62
63
|
import { Close, Paperclip, Download } from '@element-plus/icons-vue'
|
|
63
64
|
import { ref, defineProps } from 'vue'
|
|
64
|
-
import {
|
|
65
|
+
import {
|
|
66
|
+
getSystemFrontendUrl,
|
|
67
|
+
isPlateSys,
|
|
68
|
+
isMobileBrowser,
|
|
69
|
+
getReplaceUrlDomain,
|
|
70
|
+
getRelativeBaseUrl,
|
|
71
|
+
getKkFilePreviewUrl
|
|
72
|
+
} from '../../../src/utils/common-util'
|
|
65
73
|
import { getToken } from '../../../src/utils/auth'
|
|
66
74
|
import { isImage } from '../../../src/utils/util'
|
|
67
75
|
import { Base64 } from 'js-base64'
|
|
@@ -125,7 +133,7 @@ const props = defineProps({
|
|
|
125
133
|
default: false
|
|
126
134
|
},
|
|
127
135
|
// 水印配置{isShowWatermark:true/false,content:'xxxxx'}
|
|
128
|
-
watermark:{
|
|
136
|
+
watermark: {
|
|
129
137
|
type: Object,
|
|
130
138
|
default: () => ({})
|
|
131
139
|
}
|
|
@@ -134,10 +142,10 @@ let baseURL = props.baseURL ? props.baseURL : window.$vueApp.config.globalProper
|
|
|
134
142
|
let baseAPI = window.$vueApp.config.globalProperties.baseAPI
|
|
135
143
|
baseURL = getRelativeBaseUrl(baseURL)
|
|
136
144
|
baseAPI = getRelativeBaseUrl(baseAPI)
|
|
137
|
-
if(!props.watermark.content){
|
|
145
|
+
if (!props.watermark.content) {
|
|
138
146
|
// 如果没有传水印配置,从按钮配置configure中获取
|
|
139
147
|
props.watermark.isShowWatermark = props.configure.props?.watermark?.isShowWatermark===undefined?'true':props.configure.props?.watermark.isShowWatermark+''
|
|
140
|
-
props.watermark.content = props.configure.props
|
|
148
|
+
props.watermark.content = props.configure.props?.watermark?.content
|
|
141
149
|
}
|
|
142
150
|
const dialogVisible = ref<boolean>(false)
|
|
143
151
|
const previewImageInfo = ref<any>({})
|
|
@@ -167,7 +175,7 @@ const download = (file: any) => {
|
|
|
167
175
|
const showName = fileName.replace('#', '~~').replace('?', '~$').replace('&', '$')
|
|
168
176
|
const isShowWatermark = props.watermark?.isShowWatermark
|
|
169
177
|
let watermarkContent = props.watermark?.content
|
|
170
|
-
if(!watermarkContent){
|
|
178
|
+
if (!watermarkContent) {
|
|
171
179
|
watermarkContent = ''
|
|
172
180
|
}
|
|
173
181
|
let url =
|
|
@@ -178,8 +186,10 @@ const download = (file: any) => {
|
|
|
178
186
|
file.serverPath +
|
|
179
187
|
'&jwt=' +
|
|
180
188
|
token +
|
|
181
|
-
'&isShowWatermark='
|
|
182
|
-
|
|
189
|
+
'&isShowWatermark=' +
|
|
190
|
+
isShowWatermark +
|
|
191
|
+
'&watermark=' +
|
|
192
|
+
encodeURI(watermarkContent)
|
|
183
193
|
if (isPlateSys(props.systemCode)) {
|
|
184
194
|
url =
|
|
185
195
|
baseAPI +
|
|
@@ -269,7 +279,7 @@ const previweDoc = (showName: string, serverPath: string) => {
|
|
|
269
279
|
const myPreviewUrl = originUrl + '&fullfilename=' + showName
|
|
270
280
|
console.log('myPreviewUrl====', myPreviewUrl)
|
|
271
281
|
// http://127.0.0.1:8012/onlinePreview
|
|
272
|
-
getKkFilePreviewUrl(myPreviewUrl).then(url=>{
|
|
282
|
+
getKkFilePreviewUrl(myPreviewUrl).then((url) => {
|
|
273
283
|
window.open(url, showName)
|
|
274
284
|
})
|
|
275
285
|
// previewUrl =
|
|
@@ -315,7 +325,23 @@ const isPreview = (fileName: string) => {
|
|
|
315
325
|
</script>
|
|
316
326
|
<style lang="scss" scoped>
|
|
317
327
|
.amb-color-iconfont {
|
|
318
|
-
width:
|
|
319
|
-
height:
|
|
328
|
+
width: 25px;
|
|
329
|
+
height: 25px;
|
|
330
|
+
}
|
|
331
|
+
.fs-preview-icon {
|
|
332
|
+
font-size: 15px !important;
|
|
333
|
+
display: inline-block;
|
|
334
|
+
width: 1em !important;
|
|
335
|
+
height: 1em !important;
|
|
336
|
+
line-height: 1em;
|
|
337
|
+
cursor: pointer;
|
|
338
|
+
|
|
339
|
+
&:not(:first-of-type) {
|
|
340
|
+
margin-left: 20px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
& + & {
|
|
344
|
+
margin-left: 5px;
|
|
345
|
+
}
|
|
320
346
|
}
|
|
321
347
|
</style>
|
|
@@ -283,7 +283,7 @@ const props = defineProps({
|
|
|
283
283
|
default: false
|
|
284
284
|
},
|
|
285
285
|
// 水印配置{isShowWatermark:true/false,content:'xxxxx'}
|
|
286
|
-
watermark:{
|
|
286
|
+
watermark: {
|
|
287
287
|
type: Object,
|
|
288
288
|
default: () => ({})
|
|
289
289
|
}
|
|
@@ -302,10 +302,10 @@ console.log(
|
|
|
302
302
|
'props.pageContext=',
|
|
303
303
|
props.pageContext
|
|
304
304
|
)
|
|
305
|
-
if(!props.watermark.content){
|
|
305
|
+
if (!props.watermark.content) {
|
|
306
306
|
// 如果没有传水印配置,从按钮配置configure中获取
|
|
307
307
|
props.watermark.isShowWatermark = props.configure?.props?.watermark?.isShowWatermark===undefined?'true':props.configure?.props?.watermark.isShowWatermark+''
|
|
308
|
-
props.watermark.content = props.configure?.props?.watermark
|
|
308
|
+
props.watermark.content = props.configure?.props?.watermark?.content
|
|
309
309
|
}
|
|
310
310
|
const listFileLabel = ref<string>('')
|
|
311
311
|
if (props.displayType === 'input') {
|
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
:is-show="operation.isShow"
|
|
108
108
|
:label="operation.props.label ? operation.props.label : row[column.prop]"
|
|
109
109
|
:on-click="operation.onClick"
|
|
110
|
-
:operation="operation"
|
|
111
110
|
:operation-index="operationIndex"
|
|
112
111
|
:operation-setting="operation.props"
|
|
113
112
|
:event-name="operation.eventName"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!--将@click改为@mousedown.native是因为操作列保存按钮时事件和input等组件的@blur冲突,导致保存需要保存两次,因为
|
|
3
3
|
@blur先于@click执行的,所以只会执行@blur,@click就失效了,@mousedown是先于@blur执行的-->
|
|
4
|
-
<span
|
|
4
|
+
<span :style="myStyle">
|
|
5
5
|
<template v-if="isShowButton()">
|
|
6
6
|
<el-tooltip :disabled="tooltipDisabled" :content="label" placement="top">
|
|
7
|
-
<template v-if="operationSettingData
|
|
7
|
+
<template v-if="operationSettingData.permission">
|
|
8
8
|
<component
|
|
9
9
|
v-bind="operationSettingData"
|
|
10
10
|
:is="isElementType"
|
|
@@ -77,13 +77,9 @@ export default {
|
|
|
77
77
|
type: String,
|
|
78
78
|
default: null,
|
|
79
79
|
},
|
|
80
|
-
operation: {
|
|
81
|
-
type: Object,
|
|
82
|
-
default: () => ({}),
|
|
83
|
-
},
|
|
84
80
|
operationSetting: {
|
|
85
81
|
type: Object,
|
|
86
|
-
default:
|
|
82
|
+
default: null,
|
|
87
83
|
},
|
|
88
84
|
operationIndex: {
|
|
89
85
|
type: Number,
|
|
@@ -152,16 +148,16 @@ export default {
|
|
|
152
148
|
},
|
|
153
149
|
// 后置图标
|
|
154
150
|
suffixIcon() {
|
|
155
|
-
if(['right'].includes(this.
|
|
151
|
+
if(['right'].includes(this.operationSettingData.iconPosition)) return this.operationSetting.iconValue
|
|
156
152
|
return undefined
|
|
157
153
|
},
|
|
158
154
|
// 是否显示文字按钮 > 图标模式
|
|
159
155
|
isTextIcon() {
|
|
160
156
|
if (this.isTableBtnLinkShow) {
|
|
161
|
-
if (this.
|
|
157
|
+
if (this.operationSettingData.isTextIcon === undefined) {
|
|
162
158
|
return this.isSaveRow || this.isDeleteRow || this.isEditRow || this.isRestoreRow
|
|
163
159
|
}
|
|
164
|
-
return this.
|
|
160
|
+
return this.operationSettingData.isTextIcon
|
|
165
161
|
} else {
|
|
166
162
|
return false
|
|
167
163
|
}
|
|
@@ -176,14 +172,14 @@ export default {
|
|
|
176
172
|
},
|
|
177
173
|
// 是否自动开启表格 按钮 转 文字按钮
|
|
178
174
|
isTableBtnLinkShow() {
|
|
179
|
-
if (this.operationSetting
|
|
175
|
+
if (this.operationSetting.text) return true
|
|
180
176
|
if (this.isTableBtnLink && this.elementType === 'el-button') {
|
|
181
|
-
return [this.operationSetting
|
|
177
|
+
return [this.operationSetting.text, this.operationSetting.plain, this.operationSetting.round].every(v => v === undefined)
|
|
182
178
|
}
|
|
183
179
|
return false
|
|
184
180
|
},
|
|
185
181
|
operationSettingData() {
|
|
186
|
-
const dataList = { ...
|
|
182
|
+
const dataList = { ...this.operationSetting }
|
|
187
183
|
if (this.isTableBtnLinkShow) {
|
|
188
184
|
dataList.underline = false
|
|
189
185
|
delete dataList.text
|
|
@@ -172,7 +172,7 @@ const searchMethods = {
|
|
|
172
172
|
}
|
|
173
173
|
return val
|
|
174
174
|
},
|
|
175
|
-
getOperator(column) {
|
|
175
|
+
getOperator(column, searchForm) {
|
|
176
176
|
if (
|
|
177
177
|
(column.dataType === 'TEXT' || column.dataType === 'CLOB') &&
|
|
178
178
|
column.fuzzy &&
|
|
@@ -185,7 +185,7 @@ const searchMethods = {
|
|
|
185
185
|
) {
|
|
186
186
|
// 是否是文本类型的字段,且启用了模糊查询,则表示操作符为contains模糊查询
|
|
187
187
|
return 'CONTAIN'
|
|
188
|
-
} else if (Array.isArray(this.getFormItemValue(column.prop))) {
|
|
188
|
+
} else if (Array.isArray(this.getFormItemValue(column.prop, null, searchForm))) {
|
|
189
189
|
if (column.dataType === 'INTEGER' || column.dataType === 'LONG' || column.dataType === 'DOUBLE') {
|
|
190
190
|
return 'BETWEEN'
|
|
191
191
|
} else {
|
|
@@ -397,7 +397,7 @@ const searchMethods = {
|
|
|
397
397
|
}
|
|
398
398
|
param.propName = orgProp
|
|
399
399
|
param.enumName = column.enumName
|
|
400
|
-
param.operator = this.getOperator(column)
|
|
400
|
+
param.operator = this.getOperator(column, searchForm)
|
|
401
401
|
param.dataType = column.dataType
|
|
402
402
|
param.matchingType = column.queryMatching
|
|
403
403
|
param.formatter = column.formatter ? JSON.parse(JSON.stringify(column.formatter)) : column.formatter
|
|
@@ -227,6 +227,7 @@ 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
|
+
import searchMethods from './search-methods'
|
|
230
231
|
export default {
|
|
231
232
|
components: {
|
|
232
233
|
IndexColumn,
|
|
@@ -943,6 +944,7 @@ export default {
|
|
|
943
944
|
...events,
|
|
944
945
|
...publicMethods,
|
|
945
946
|
...superGridService,
|
|
947
|
+
...searchMethods,
|
|
946
948
|
...apis,
|
|
947
949
|
onResize(entry) {
|
|
948
950
|
this.resizeTableHeight()
|
|
@@ -24,11 +24,7 @@ function packageEnumAndBeanColumnValueSetsWhenPlate(columns, listCode) {
|
|
|
24
24
|
const column = columns[i]
|
|
25
25
|
const prop = column.prop ? column.prop : column.label
|
|
26
26
|
const columnValueSet = packageEnumAndBeanColumnValueSet(column)
|
|
27
|
-
|
|
28
|
-
const titleValueSetJson = column.titleValueSet
|
|
29
|
-
if (titleValueSetJson) {
|
|
30
|
-
titleValueSet = column.titleValueSet
|
|
31
|
-
}
|
|
27
|
+
const titleValueSet = column.titleValueSet
|
|
32
28
|
if (columnValueSet || titleValueSet) {
|
|
33
29
|
const valueSetMeta = {
|
|
34
30
|
prop: prop
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
v-model="loginForm.password"
|
|
29
29
|
type="password"
|
|
30
30
|
name="password"
|
|
31
|
+
show-password
|
|
31
32
|
auto-complete="on"
|
|
32
33
|
placeholder="密码"
|
|
33
34
|
/>
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
<el-input
|
|
37
38
|
v-model="loginForm.newPassword"
|
|
38
39
|
type="password"
|
|
40
|
+
show-password
|
|
39
41
|
name="newPassword"
|
|
40
42
|
auto-complete="on"
|
|
41
43
|
placeholder="新密码"
|
|
@@ -45,6 +47,7 @@
|
|
|
45
47
|
<el-input
|
|
46
48
|
v-model="loginForm.confirmNewPassword"
|
|
47
49
|
type="password"
|
|
50
|
+
show-password
|
|
48
51
|
name="confirmNewPassword"
|
|
49
52
|
auto-complete="on"
|
|
50
53
|
placeholder="请再次输入新密码"
|