w-web-perm 1.0.83 → 1.0.85
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/dist/css/{chunk-vendors.034f7a87.css → chunk-vendors.18034562.css} +1 -1
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.aaaa3681.js +1 -0
- package/dist/js/app.aaaa3681.js +1 -0
- package/dist/js/{chunk-vendors-legacy.d0596078.js → chunk-vendors-legacy.7b6ae0b0.js} +3 -3
- package/dist/js/{chunk-vendors.d0596078.js → chunk-vendors.7b6ae0b0.js} +3 -3
- package/dist/w-web-perm.umd.js +2 -2
- package/dist/w-web-perm.umd.js.map +1 -1
- package/docs/WWebPerm.html +1 -1
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/docs/server_WWebPerm.mjs.html +1 -1
- package/docs/server_procCore.mjs.html +1 -1
- package/docs/src_fetchJson.mjs.html +1 -1
- package/package.json +2 -2
- package/server/procLang.mjs +12 -4
- package/src/components/LayoutContentGrups.vue +6 -6
- package/src/components/LayoutContentPemis.vue +6 -6
- package/src/components/LayoutContentTargets.vue +2 -2
- package/src/components/LayoutContentUsers.vue +5 -3
- package/src/components/ModeSelectChip.vue +182 -0
- package/src/components/RelationChip.vue +114 -0
- package/src/components/RelationChips.vue +375 -0
- package/src/components/VeCgrups.vue +23 -20
- package/src/components/VeCpemis.vue +21 -20
- package/src/components/VeCrules.vue +8 -1
- package/src/components/VeGrupBlngUsers.vue +40 -51
- package/src/components/VePemiBlngGrups.vue +27 -41
- package/tableTags-web-perm.json +1 -1
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/README.md +58 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/server_procLang.mjs.diff +31 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_App.vue.diff +19 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_LayoutContentGrups.vue.diff +40 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_LayoutContentPemis.vue.diff +40 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_ModeSelectChip.vue.new.diff +124 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_RelationChip.vue.new.diff +116 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_RelationChips.vue.new.diff +152 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_VeCgrups.vue.diff +76 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_VeCpemis.vue.diff +76 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_VeCrules.vue.diff +14 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_VeGrupBlngUsers.vue.diff +121 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/diff/src_components_VePemiBlngGrups.vue.diff +121 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/server/procLang.mjs +1049 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/App.vue +204 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/LayoutContentGrups.vue +1260 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/LayoutContentPemis.vue +1262 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/ModeSelectChip.vue +121 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/RelationChip.vue +113 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/RelationChips.vue +149 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/VeCgrups.vue +943 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/VeCpemis.vue +943 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/VeCrules.vue +848 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/VeGrupBlngUsers.vue +1157 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231/src/components/VePemiBlngGrups.vue +1157 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/A-/347/256/241/347/220/206/346/254/212/351/231/220/344/270/273/350/241/250.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/A-/347/256/241/347/220/206/346/254/212/351/231/220/347/276/244/347/265/204/344/270/273/350/241/250.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/B1-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/260/215/350/251/261/346/241/206.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/B2-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-hover/346/234/254/351/240/205chip.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/B3-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/261/225/351/226/213/346/234/254/351/240/205chip/346/270/205/345/226/256.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/B4-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/346/234/254/351/240/205chip/345/267/262/347/202/272AND.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/B5-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/261/225/351/226/213/345/205/250/351/203/250/346/265/256/345/261/244.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/B6-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/213/276/351/201/270/345/276/214/346/234/254/351/240/205chip/345/234/250/351/246/226/344/275/215.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/C1-/347/267/250/350/274/257/344/275/277/347/224/250/346/254/212/351/231/220-/345/260/215/350/251/261/346/241/206.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/C2-/347/267/250/350/274/257/344/275/277/347/224/250/346/254/212/351/231/220-hover/345/267/262/345/213/276/351/201/270/345/210/227/346/216/247/345/210/266/351/240/205.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/C3-/347/267/250/350/274/257/344/275/277/347/224/250/346/254/212/351/231/220-/345/261/225/351/226/213/346/270/205/345/226/256.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/D1-/347/267/250/350/274/257/346/211/200/345/261/254/344/275/277/347/224/250/350/200/205-/345/260/215/350/251/261/346/241/206.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/E1-/347/267/250/350/274/257/344/275/277/347/224/250/346/254/212/351/231/220/347/276/244/347/265/204-hover.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/E2-/347/267/250/350/274/257/344/275/277/347/224/250/346/254/212/351/231/220/347/276/244/347/265/204-/345/261/225/351/226/213/346/270/205/345/226/256.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/F1-/345/261/225/347/244/272/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/224/257/350/256/200/346/205/213.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/F2-/345/261/225/347/244/272/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/261/225/351/226/213/345/205/250/351/203/250.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/G1-zoom-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/211/215/345/205/255/345/210/227.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/G2-zoom-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-hover/346/234/254/351/240/205chip.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/G3-zoom-/347/267/250/350/274/257/346/211/200/345/261/254/346/254/212/351/231/220/347/276/244/347/265/204-/345/261/225/351/226/213/346/270/205/345/226/256.png +0 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/346/210/252/345/234/226/verify.json +390 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/350/205/263/346/234/254/build.log +93 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/350/205/263/346/234/254/lint.log +23 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/350/205/263/346/234/254/zz_perm_probe.mjs +321 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/350/205/263/346/234/254/zz_perm_zoom.mjs +173 -0
- package/w-web-perm/351/232/250/351/231/204/350/263/207/346/226/231//351/251/227/350/255/211/350/205/263/346/234/254/zz_wwp_verify.mjs +330 -0
- package//345/273/272/350/255/260w-aggrid-vue/350/252/277/346/225/264.md +193 -0
- package//345/273/272/350/255/260w-component-vue/350/210/207wsemi/350/252/277/346/225/264.md +76 -0
- package//345/273/272/350/255/260w-web-perm/350/252/277/346/225/264.md +244 -0
- package//346/226/275/345/267/245/345/226/256_/345/273/272/350/255/260w-web-perm/350/252/277/346/225/264.md +166 -0
- package/dist/index.html +0 -4
- package/dist/js/app-legacy.04fa72c9.js +0 -1
- package/dist/js/app.04fa72c9.js +0 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-domresize
|
|
4
|
+
@domresize="resize"
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
<LayoutState :style="`opacity:${ready?0:1};`" v-if="!ready"></LayoutState>
|
|
8
|
+
|
|
9
|
+
<transition enter-active-class="fade-enter-active" leave-active-class="fade-leave-active">
|
|
10
|
+
<Layout v-if="ready"></Layout>
|
|
11
|
+
</transition>
|
|
12
|
+
|
|
13
|
+
<LoadingWinBar></LoadingWinBar>
|
|
14
|
+
<CheckYesNo></CheckYesNo>
|
|
15
|
+
<CheckYes></CheckYes>
|
|
16
|
+
|
|
17
|
+
<VeCrules></VeCrules>
|
|
18
|
+
<VeCpemis></VeCpemis>
|
|
19
|
+
<VeCgrups></VeCgrups>
|
|
20
|
+
|
|
21
|
+
<VeGrupBlngUsers></VeGrupBlngUsers>
|
|
22
|
+
<VePemiBlngGrups></VePemiBlngGrups>
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import get from 'lodash-es/get.js'
|
|
29
|
+
import cloneDeep from 'lodash-es/cloneDeep.js'
|
|
30
|
+
import isestr from 'wsemi/src/isestr.mjs'
|
|
31
|
+
import iseobj from 'wsemi/src/iseobj.mjs'
|
|
32
|
+
import isDev from 'wsemi/src/isDev.mjs'
|
|
33
|
+
import wui from 'w-ui-loginout/src/WUiLoginout.mjs'
|
|
34
|
+
import LoadingWinBar from './components/Common/LoadingWinBar.vue'
|
|
35
|
+
import CheckYesNo from './components/Common/CheckYesNo.vue'
|
|
36
|
+
import CheckYes from './components/Common/CheckYes.vue'
|
|
37
|
+
import LayoutState from './components/LayoutState.vue'
|
|
38
|
+
import Layout from './components/Layout.vue'
|
|
39
|
+
import VeCrules from './components/VeCrules.vue'
|
|
40
|
+
import VeCpemis from './components/VeCpemis.vue'
|
|
41
|
+
import VeCgrups from './components/VeCgrups.vue'
|
|
42
|
+
import VeGrupBlngUsers from './components/VeGrupBlngUsers.vue'
|
|
43
|
+
import VePemiBlngGrups from './components/VePemiBlngGrups.vue'
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
components: {
|
|
48
|
+
LoadingWinBar,
|
|
49
|
+
CheckYesNo,
|
|
50
|
+
CheckYes,
|
|
51
|
+
LayoutState,
|
|
52
|
+
Layout,
|
|
53
|
+
VeCrules,
|
|
54
|
+
VeCpemis,
|
|
55
|
+
VeCgrups,
|
|
56
|
+
VeGrupBlngUsers,
|
|
57
|
+
VePemiBlngGrups,
|
|
58
|
+
},
|
|
59
|
+
data: function() {
|
|
60
|
+
return {
|
|
61
|
+
ll: null,
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
beforeMount: function() {
|
|
65
|
+
// console.log('methods beforeMount')
|
|
66
|
+
|
|
67
|
+
let vo = this
|
|
68
|
+
|
|
69
|
+
//setVo, 更換ui內vo, 才能使用廣播技術, 更換語系才能用廣播通知全部組件forceUpdate
|
|
70
|
+
vo.$ui.setVo(vo)
|
|
71
|
+
|
|
72
|
+
//setLang
|
|
73
|
+
let lang = get(window, '___pmwperm___.language', '')
|
|
74
|
+
vo.$ui.setLang(lang, 'app init') //初始化先讀取html內語系設定進行變更
|
|
75
|
+
// console.log('lang', lang)
|
|
76
|
+
|
|
77
|
+
function loginSuccess(data) {
|
|
78
|
+
console.log('login success', cloneDeep(data.user))
|
|
79
|
+
vo.$ui.updateConnState('csLogin')
|
|
80
|
+
vo.$ui.updateUserToken(data.token)
|
|
81
|
+
vo.$ui.updateUserSelf(data.user)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function loginError(data) {
|
|
85
|
+
console.log('login error', cloneDeep(data))
|
|
86
|
+
vo.$ui.updateConnState('csErrLogin')
|
|
87
|
+
vo.$ui.updateUserToken('')
|
|
88
|
+
let urlRedirect = get(window, '___pmwperm___.urlRedirect', '')
|
|
89
|
+
if (!isestr(urlRedirect)) {
|
|
90
|
+
console.log('urlRedirect', urlRedirect)
|
|
91
|
+
throw new Error(`invalid urlRedirect`)
|
|
92
|
+
}
|
|
93
|
+
if (isDev()) {
|
|
94
|
+
console.log('60s redirect to:', urlRedirect)
|
|
95
|
+
setTimeout(() => {
|
|
96
|
+
window.location.href = urlRedirect
|
|
97
|
+
}, 60 * 1000)
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
window.location.href = urlRedirect
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
//login
|
|
105
|
+
console.log('login...')
|
|
106
|
+
let ll = wui('wperm', {
|
|
107
|
+
timeWaitAnimation: 2000,
|
|
108
|
+
params: {},
|
|
109
|
+
})
|
|
110
|
+
ll.login({
|
|
111
|
+
afterGetUser: null,
|
|
112
|
+
afterLogin: null,
|
|
113
|
+
loginSuccess,
|
|
114
|
+
loginError,
|
|
115
|
+
})
|
|
116
|
+
vo.ll = ll
|
|
117
|
+
|
|
118
|
+
},
|
|
119
|
+
mounted: function() {
|
|
120
|
+
let vo = this
|
|
121
|
+
|
|
122
|
+
//set, 把目前vo儲存至window供外部非vue環境使用
|
|
123
|
+
window.$vo = vo
|
|
124
|
+
|
|
125
|
+
},
|
|
126
|
+
computed: {
|
|
127
|
+
|
|
128
|
+
ready: function() {
|
|
129
|
+
//console.log('computed ready')
|
|
130
|
+
|
|
131
|
+
let vo = this
|
|
132
|
+
|
|
133
|
+
let connState = get(vo, `$store.state.connState`)
|
|
134
|
+
let webInfor = get(vo, `$store.state.webInfor`)
|
|
135
|
+
|
|
136
|
+
let b1 = connState === 'csLogin'
|
|
137
|
+
let b2 = iseobj(webInfor)
|
|
138
|
+
let b = b1 && b2
|
|
139
|
+
|
|
140
|
+
return b
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
},
|
|
144
|
+
methods: {
|
|
145
|
+
|
|
146
|
+
resize: function(msg) {
|
|
147
|
+
// console.log('methods resize', msg)
|
|
148
|
+
|
|
149
|
+
let vo = this
|
|
150
|
+
|
|
151
|
+
//syncHeight
|
|
152
|
+
vo.$ui.syncHeight()
|
|
153
|
+
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
}
|
|
158
|
+
</script>
|
|
159
|
+
|
|
160
|
+
<style>
|
|
161
|
+
html,
|
|
162
|
+
body {
|
|
163
|
+
font-family: '微軟正黑體', 'Microsoft JhengHei', 'MicrosoftJhengHeiRegular', 'Avenir', Helvetica, Arial, sans-serif;
|
|
164
|
+
overflow-y: hidden;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
div,
|
|
168
|
+
p,
|
|
169
|
+
span,
|
|
170
|
+
a,
|
|
171
|
+
pre,
|
|
172
|
+
input,
|
|
173
|
+
textarea,
|
|
174
|
+
button {
|
|
175
|
+
font-family: inherit;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* 關聯對話框之儲存格內有自己的控制項(模式下拉、勾選框、chip 下拉)時, 各 Ve*.vue 以 kpHeadFocusHighlight=false 讓 w-aggrid-vue 加 no-border,
|
|
179
|
+
但 w-aggrid-vue 2.0.86 之覆寫只寫 :focus(WAggridVue.vue:2874), 焦點落在儲存格之子元素時 ag-grid 31 以 :focus-within 畫框(ag-grid.css:6230),
|
|
180
|
+
故此處補 :focus-within; 待 w-aggrid-vue 修正(見 建議w-aggrid-vue修正.md)後可移除 */
|
|
181
|
+
.CompCssWAggridVue .no-border.ag-cell:focus-within {
|
|
182
|
+
border-color: transparent !important;
|
|
183
|
+
outline: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.fade-enter-active {
|
|
187
|
+
animation: go 1s;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.fade-leave-active {
|
|
191
|
+
animation: back 1s;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@keyframes go {
|
|
195
|
+
from { opacity: 0; }
|
|
196
|
+
to {opacity: 1;}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@keyframes back {
|
|
200
|
+
from { opacity: 1; }
|
|
201
|
+
to { opacity: 0; }
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
</style>
|