agilebuilder-ui 1.1.50-rc1 → 1.1.50-rc3
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-aaa4054d.js → 401-aead36a9.js} +1 -1
- package/lib/{404-ef3b10e9.js → 404-9ad11c2e.js} +1 -1
- package/lib/{iframe-page-28c30283.js → iframe-page-bf851287.js} +1 -1
- package/lib/{index-bece2c1c.js → index-75ff2a06.js} +21818 -21643
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +104 -104
- package/lib/{tab-content-iframe-index-87ac3b2b.js → tab-content-iframe-index-c7bb8381.js} +1 -1
- package/lib/{tab-content-index-956a0533.js → tab-content-index-95a59e50.js} +1 -1
- package/lib/{tache-subprocess-history-2c4f98f2.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/fs-preview/src/fs-preview.vue +19 -7
- package/packages/fs-upload/src/fs-upload-multi.vue +5 -3
- package/packages/fs-upload/src/fs-upload-single.vue +6 -3
- package/packages/fs-upload-list/src/fs-upload-list.vue +6 -1
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-app.vue +6 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +6 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-component.vue +6 -1
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-input.vue +6 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload.vue +7 -0
- package/packages/fs-upload-new/src/fs-button-upload.vue +6 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +6 -0
- package/packages/fs-upload-new/src/fs-preview-new.vue +56 -12
- package/packages/fs-upload-new/src/fs-upload-new.vue +16 -1
- package/packages/multipart-upload/src/multipart-upload-form.vue +6 -3
- package/packages/multipart-upload/src/multipart-upload-list.vue +6 -3
- package/packages/plugins/export-data-new.js +14 -1
- package/packages/super-grid/src/apis.js +9 -0
- package/packages/super-grid/src/dynamic-input.vue +25 -5
- package/packages/super-grid/src/search-form-item.vue +17 -13
- package/packages/super-grid/src/search-methods.js +148 -139
- package/packages/super-grid/src/super-grid.vue +2 -0
- package/packages/super-grid/src/utils.js +1 -0
- package/packages/super-grid/src/view-image-dialog.vue +6 -3
- package/packages/utils/value-set.js +49 -13
- package/src/utils/auth.js +3 -0
- package/src/utils/common-util.js +20 -5
- package/src/utils/request.js +7 -1
- package/src/utils/watermark-cache.js +13 -0
- package/src/utils/watermark.js +47 -6
- package/src/views/layout/EmptyLayout.vue +9 -1
- package/src/views/layout/Layout.vue +4 -0
- package/src/views/layout/NewLayout.vue +4 -0
- package/src/views/login/update-password.vue +3 -0
package/src/utils/watermark.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// import ssoService from '../api/sso-service'
|
|
1
|
+
import {getWatermark, cacheWatermark, removeWatermark} from './watermark-cache'
|
|
3
2
|
const watermark = {}
|
|
4
3
|
|
|
5
4
|
const setWatermark = (str, parma, paramId) => {
|
|
@@ -35,12 +34,12 @@ const setWatermark = (str, parma, paramId) => {
|
|
|
35
34
|
const div = document.createElement('div')
|
|
36
35
|
div.id = id
|
|
37
36
|
div.style.pointerEvents = 'none'
|
|
38
|
-
div.style.top = '80px
|
|
39
|
-
div.style.left = '200px
|
|
37
|
+
div.style.top = '10px' // 80px
|
|
38
|
+
div.style.left = '0px' // 200px
|
|
40
39
|
div.style.position = 'fixed'
|
|
41
40
|
div.style.zIndex = '10000'
|
|
42
|
-
div.style.width = '70%
|
|
43
|
-
div.style.height = '80%
|
|
41
|
+
div.style.width = '100%' // 70%
|
|
42
|
+
div.style.height = '100%' // 80%
|
|
44
43
|
div.style.background =
|
|
45
44
|
'url(' + can.toDataURL('image/png') + ') left top repeat'
|
|
46
45
|
|
|
@@ -71,6 +70,48 @@ export function showWatermark(label, parma, user, paramId) {
|
|
|
71
70
|
}
|
|
72
71
|
})
|
|
73
72
|
}
|
|
73
|
+
|
|
74
|
+
// 获得水印维护信息
|
|
75
|
+
export function getWatermarkSetting(){
|
|
76
|
+
return new Promise((resolve,reject)=>{
|
|
77
|
+
let watermark = getWatermark()
|
|
78
|
+
if(!watermark || watermark === 'EMPTY_VALUE'){
|
|
79
|
+
window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/component/watermark').then((data)=>{
|
|
80
|
+
if(data){
|
|
81
|
+
watermark = data
|
|
82
|
+
cacheWatermark(JSON.stringify(watermark))
|
|
83
|
+
// 兼容之前的代码
|
|
84
|
+
watermark.font = watermark.fontStyle
|
|
85
|
+
watermark.color = watermark.fontColor
|
|
86
|
+
resolve(watermark)
|
|
87
|
+
} else {
|
|
88
|
+
cacheWatermark('EMPTY_VALUE')
|
|
89
|
+
resolve()
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
} else {
|
|
93
|
+
try{
|
|
94
|
+
watermark = JSON.parse(watermark)
|
|
95
|
+
// 兼容之前的代码
|
|
96
|
+
watermark.font = watermark.fontStyle
|
|
97
|
+
watermark.color = watermark.fontColor
|
|
98
|
+
resolve(watermark)
|
|
99
|
+
}catch(error){
|
|
100
|
+
console.error('watermark content error.',error)
|
|
101
|
+
resolve()
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// 该方法只允许调用一次
|
|
108
|
+
export function showWatermarkNew() {
|
|
109
|
+
getWatermarkSetting().then((watermark)=>{
|
|
110
|
+
if(watermark){
|
|
111
|
+
setWatermark(watermark.content, watermark)
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
}
|
|
74
115
|
// watermark.set = (label, parma) => {
|
|
75
116
|
|
|
76
117
|
// }
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { Sidebar, AppMain, Breadcrumb } from './components'
|
|
18
18
|
import ResizeMixin from './mixin/ResizeHandler'
|
|
19
19
|
import { isShowMenuRoute } from '../../../src/utils/common-util'
|
|
20
|
+
import {showWatermarkNew} from '../../utils/watermark'
|
|
20
21
|
|
|
21
22
|
export default {
|
|
22
23
|
name: 'Layout',
|
|
@@ -49,6 +50,9 @@ export default {
|
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
52
|
},
|
|
53
|
+
mounted(){
|
|
54
|
+
showWatermarkNew()
|
|
55
|
+
},
|
|
52
56
|
methods: {
|
|
53
57
|
handleClickOutside() {
|
|
54
58
|
this.$store.dispatch('closeSidebar', { withoutAnimation: false })
|
|
@@ -9,10 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
11
|
import { AppMain } from './components'
|
|
12
|
+
import {showWatermarkNew} from '../../utils/watermark'
|
|
12
13
|
export default {
|
|
13
14
|
name: 'NewLayout',
|
|
14
15
|
components: {
|
|
15
16
|
AppMain,
|
|
16
17
|
},
|
|
18
|
+
mounted(){
|
|
19
|
+
showWatermarkNew()
|
|
20
|
+
}
|
|
17
21
|
}
|
|
18
22
|
</script>
|
|
@@ -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="请再次输入新密码"
|