n20-common-lib 1.3.201 → 1.3.203
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/package.json
CHANGED
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
:is-filter="true"
|
|
68
68
|
:auto-save="true"
|
|
69
69
|
:page-id="pageId"
|
|
70
|
+
:width="remoteWidth"
|
|
70
71
|
@setColumns="setRemoteChange"
|
|
71
72
|
/>
|
|
72
73
|
</template>
|
|
@@ -121,6 +122,10 @@ export default {
|
|
|
121
122
|
isGroup: {
|
|
122
123
|
type: Boolean,
|
|
123
124
|
default: false
|
|
125
|
+
},
|
|
126
|
+
remoteWidth: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: undefined
|
|
124
129
|
}
|
|
125
130
|
},
|
|
126
131
|
data() {
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
133
133
|
value: {
|
|
134
134
|
handler(val) {
|
|
135
135
|
if (this.rangeAuto) {
|
|
136
|
-
if (val || val ===
|
|
136
|
+
if (val || val === 0) {
|
|
137
137
|
let nF = N.toString(val).split('.')[1] || ''
|
|
138
138
|
if (nF.length < this.fNum) {
|
|
139
139
|
return (this.valueStr = N.addThousands(N.subFixed(val, this.fNum)))
|
|
@@ -21,20 +21,22 @@
|
|
|
21
21
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
22
22
|
<h3 class="header-title m-r-auto" v-html="headerTitle"></h3>
|
|
23
23
|
<!-- YSCW -->
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
rolesList.map((el) => el.name)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
<slot name="header-ectad">
|
|
25
|
+
<sapn v-if="ectad" class="f-s-s">
|
|
26
|
+
<span class="m-r-ss">
|
|
27
|
+
{{ '用户' | $lc }}: <span class="color-666">{{ userInfo.userName }}</span>
|
|
28
|
+
</span>
|
|
29
|
+
<span class="m-r-ss b-center">
|
|
30
|
+
{{ '角色' | $lc }}:
|
|
31
|
+
<span v-title:br="rolesList.map((el) => el.name)" class="text-ellipsis color-666" style="max-width: 150px">{{
|
|
32
|
+
rolesList.map((el) => el.name).join(',')
|
|
33
|
+
}}</span>
|
|
34
|
+
</span>
|
|
35
|
+
<span>
|
|
36
|
+
{{ '单位' | $lc }}: <span class="color-666">{{ userInfo.companyName }}</span>
|
|
37
|
+
</span>
|
|
38
|
+
</sapn>
|
|
39
|
+
</slot>
|
|
38
40
|
<!-- YSCW-end -->
|
|
39
41
|
<el-tooltip v-if="!hideHelpDoc" :content="'帮助文档' | $lc">
|
|
40
42
|
<span class="set-user-btn n20-icon-xinxitishi header-color m-l-m" @click="openHelp"></span>
|
|
@@ -112,6 +114,7 @@
|
|
|
112
114
|
>
|
|
113
115
|
</div>
|
|
114
116
|
</el-dropdown-item>
|
|
117
|
+
<slot name="header-dropdown"></slot>
|
|
115
118
|
<el-divider class="m-t-s m-b-s" />
|
|
116
119
|
<div class="user-log-time p-l p-r p-b-s">
|
|
117
120
|
<i class="el-icon-s-help m-r-s" style="color: var(--color-success)"></i>
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
:before-logout="beforeLogout"
|
|
7
7
|
:after-logout="afterLogout"
|
|
8
8
|
@custom-event="(par) => $emit('custom-event', par)"
|
|
9
|
-
|
|
9
|
+
>
|
|
10
|
+
<slot slot="header-ectad" name="header-ectad"></slot>
|
|
11
|
+
<slot slot="header-dropdown" name="header-dropdown"></slot>
|
|
12
|
+
</headerWrap>
|
|
10
13
|
<asideNav :menus="menusC" :active-nav="activeNavC" :collapse.sync="collapse" @menu-click="menuClick" />
|
|
11
14
|
<tabsNav
|
|
12
15
|
class="tabs-nav-wrap"
|