n20-common-lib 2.4.43 → 2.4.45
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 +1 -1
- package/src/assets/css/cl-form-item.scss +8 -0
- package/src/assets/css/el-button.scss +5 -3
- package/src/assets/css/normalize.scss +4 -4
- package/src/components/Anchor/sidebar.vue +1 -1
- package/src/components/ApprovalButtons/index.vue +13 -4
- package/src/components/FileUploadTable/index.vue +8 -3
- package/src/components/Filters/index.vue +2 -2
- package/src/components/InputNumber/index.vue +1 -3
- package/src/components/Layout/HeaderWrap/indexN.vue +29 -2
- package/src/components/Layout/HeaderWrap/switchUser.vue +26 -13
- package/src/components/Statis/index.vue +2 -2
- package/src/components/Statis/statisPopover.vue +2 -2
- package/src/components/Table/index.vue +1 -0
- package/src/i18n.json +3 -0
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -117,6 +117,14 @@ $--input-max: 224px;
|
|
|
117
117
|
padding-right: 10px;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
.el-input.is-disabled .el-input__inner {
|
|
121
|
+
color: $--color-text-primary;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.el-textarea.is-disabled .el-textarea__inner {
|
|
125
|
+
color: $--color-text-primary;
|
|
126
|
+
}
|
|
127
|
+
|
|
120
128
|
.w-224 {
|
|
121
129
|
width: $--input-width !important;
|
|
122
130
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
$--button-margin-left: 6px;
|
|
2
|
+
|
|
1
3
|
.el-button--primary,
|
|
2
4
|
.el-button--default,
|
|
3
5
|
.el-button--default.is-plain,
|
|
@@ -16,15 +18,15 @@
|
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.el-button + .el-button {
|
|
19
|
-
margin-left:
|
|
21
|
+
margin-left: $--button-margin-left;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
.el-button + .el-dropdown {
|
|
23
|
-
margin-left:
|
|
25
|
+
margin-left: $--button-margin-left;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
.el-button--mini + .el-button--mini {
|
|
27
|
-
margin-left:
|
|
29
|
+
margin-left: $--button-margin-left;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
.el-button[onlyicon] {
|
|
@@ -396,18 +396,18 @@ iframe {
|
|
|
396
396
|
|
|
397
397
|
.page-footer-shadow {
|
|
398
398
|
position: relative;
|
|
399
|
-
height:
|
|
400
|
-
margin-bottom: -
|
|
399
|
+
height: 28px;
|
|
400
|
+
margin-bottom: -6px;
|
|
401
401
|
|
|
402
402
|
&::before {
|
|
403
403
|
content: '';
|
|
404
404
|
pointer-events: none;
|
|
405
405
|
position: absolute;
|
|
406
|
-
top:
|
|
406
|
+
top: 0;
|
|
407
407
|
height: 100%;
|
|
408
408
|
left: -8px;
|
|
409
409
|
right: -8px;
|
|
410
|
-
box-shadow:
|
|
410
|
+
box-shadow: 0 -2px 6px 0px rgba($--color-black, 0.08);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
|
|
@@ -24,15 +24,19 @@
|
|
|
24
24
|
</label>
|
|
25
25
|
<div class="flex-box">
|
|
26
26
|
<el-select
|
|
27
|
-
v-if="preAddTask"
|
|
27
|
+
v-if="authList.includes('isAddtask') || authList.includes('isAddForwardTask') || preAddTask"
|
|
28
28
|
v-model="addTaskWay"
|
|
29
29
|
class="m-r-ss"
|
|
30
30
|
clearable
|
|
31
31
|
:placeholder="'请选择加签类型' | $lc"
|
|
32
32
|
style="width: 10em"
|
|
33
33
|
>
|
|
34
|
-
<el-option
|
|
35
|
-
|
|
34
|
+
<el-option
|
|
35
|
+
v-if="authList.includes('isAddForwardTask') || preAddTask"
|
|
36
|
+
:label="'向前加签' | $lc"
|
|
37
|
+
value="2"
|
|
38
|
+
/>
|
|
39
|
+
<el-option v-if="authList.includes('isAddtask') || preAddTask" :label="'向后加签' | $lc" value="1" />
|
|
36
40
|
</el-select>
|
|
37
41
|
<el-select
|
|
38
42
|
v-model="addTaskType"
|
|
@@ -295,7 +299,6 @@ export default {
|
|
|
295
299
|
this.getBtns()
|
|
296
300
|
this.getShowApprovalTo()
|
|
297
301
|
this.getHasQueryAppOpiAndUser()
|
|
298
|
-
this.getHasPreAddTask()
|
|
299
302
|
},
|
|
300
303
|
methods: {
|
|
301
304
|
// 换回到发起页
|
|
@@ -325,9 +328,15 @@ export default {
|
|
|
325
328
|
} else {
|
|
326
329
|
this.authList = this.btnList
|
|
327
330
|
}
|
|
331
|
+
if (!(this.authList.includes('isAddtask') || this.authList.includes('isAddForwardTask'))) {
|
|
332
|
+
this.getHasPreAddTask()
|
|
333
|
+
}
|
|
328
334
|
})
|
|
329
335
|
.catch(() => {
|
|
330
336
|
this.authList = this.btnList
|
|
337
|
+
if (!(this.authList.includes('isAddtask') || this.authList.includes('isAddForwardTask'))) {
|
|
338
|
+
this.getHasPreAddTask()
|
|
339
|
+
}
|
|
331
340
|
})
|
|
332
341
|
},
|
|
333
342
|
// 获取是否显示驳回至按钮
|
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
</slot>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
|
-
<el-table
|
|
20
|
+
<el-table
|
|
21
|
+
border
|
|
22
|
+
:data="tableData"
|
|
23
|
+
:row-key="keys.rowKey"
|
|
24
|
+
@selection-change="(selection) => (selectionList = selection)"
|
|
25
|
+
>
|
|
21
26
|
<slot name="selection-column">
|
|
22
27
|
<el-table-column type="selection" width="50" align="center" />
|
|
23
28
|
</slot>
|
|
@@ -106,11 +111,11 @@
|
|
|
106
111
|
</slot>
|
|
107
112
|
</el-table-column>
|
|
108
113
|
<slot name="slotCol"></slot>
|
|
109
|
-
<el-table-column :label="'上传时间' | $lc" :prop="keys.time" sortable width="170" align="
|
|
114
|
+
<el-table-column :label="'上传时间' | $lc" :prop="keys.time" sortable width="170" align="left">
|
|
110
115
|
<slot slot="header" slot-scope="scope" name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
|
|
111
116
|
<slot slot-scope="{ row }" name="time" :row="row">{{ row[keys.time] }}</slot>
|
|
112
117
|
</el-table-column>
|
|
113
|
-
<el-table-column v-if="!hideUser" :label="'上传人' | $lc" :prop="keys.user">
|
|
118
|
+
<el-table-column v-if="!hideUser" :label="'上传人' | $lc" :prop="keys.user" width="100">
|
|
114
119
|
<slot slot="header" slot-scope="scope" name="user-header" :column="scope.column">{{ '上传人' | $lc }}</slot>
|
|
115
120
|
<slot slot-scope="{ row }" name="user" :row="row">{{ row[keys.user] }}</slot>
|
|
116
121
|
</el-table-column>
|
|
@@ -246,7 +246,7 @@ export default {
|
|
|
246
246
|
item.options = opts || []
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
|
-
getRemote() {
|
|
249
|
+
getRemote(flag) {
|
|
250
250
|
getColumns(this.pageId, this.userNo, this.filterLT).then((list) => {
|
|
251
251
|
if (list) {
|
|
252
252
|
this.remoteList = list
|
|
@@ -254,7 +254,7 @@ export default {
|
|
|
254
254
|
let defaultList = this.filterLT.filter((col) => col.isDefault)
|
|
255
255
|
this.remoteList = defaultList.length ? defaultList : this.filterLT.slice(0, this.defaultShow)
|
|
256
256
|
}
|
|
257
|
-
this.showPop = true
|
|
257
|
+
this.showPop = flag || true
|
|
258
258
|
})
|
|
259
259
|
},
|
|
260
260
|
setRemoteChange(list) {
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
</el-popover>
|
|
96
96
|
|
|
97
97
|
<el-dropdown
|
|
98
|
+
ref="userDrop"
|
|
98
99
|
class="user-info-drop"
|
|
99
100
|
trigger="click"
|
|
100
101
|
placement="bottom-end"
|
|
@@ -104,7 +105,12 @@
|
|
|
104
105
|
>
|
|
105
106
|
<img v-popover:by_popover class="user-info-btn header-color" :src="headerUserUrl" />
|
|
106
107
|
|
|
107
|
-
<el-dropdown-menu
|
|
108
|
+
<el-dropdown-menu
|
|
109
|
+
ref="userDropMenu"
|
|
110
|
+
slot="dropdown"
|
|
111
|
+
:class="{ 'user-info-drop_height': !inBack }"
|
|
112
|
+
class="user-info-drop-menu-new"
|
|
113
|
+
>
|
|
108
114
|
<div class="uif-user-w" :style="{ backgroundImage: headerUserInfoBg ? `url(${headerUserInfoBg})` : undefined }">
|
|
109
115
|
<div class="uif-img-w">
|
|
110
116
|
<img class="_img" :src="headerUserUrl" />
|
|
@@ -209,6 +215,15 @@
|
|
|
209
215
|
<div class="uif-ydn p-r-m">{{ '已登录' | $lc }}:{{ durationTime }}</div>
|
|
210
216
|
</el-dropdown-menu>
|
|
211
217
|
</el-dropdown>
|
|
218
|
+
<div
|
|
219
|
+
v-title:br="rolesList.map((el) => el.name).join(',')"
|
|
220
|
+
:style="{ width: (userInfo?.companyName?.length * 0.86 || 4) + 'em', overflow: 'hidden' }"
|
|
221
|
+
class="text-ellipsis pointer"
|
|
222
|
+
@click="handleUser"
|
|
223
|
+
>
|
|
224
|
+
<div class="font-size-small">{{ userNo }}/{{ rolesList.map((el) => el.name).join('/') }}</div>
|
|
225
|
+
<div class="companyClass">{{ userInfo.companyName }}</div>
|
|
226
|
+
</div>
|
|
212
227
|
|
|
213
228
|
<dialogWrap :title="'主题设置' | $lc" :visible.sync="themeV" append-to-body width="432px">
|
|
214
229
|
<div style="min-height: 114px">
|
|
@@ -417,7 +432,7 @@ export default {
|
|
|
417
432
|
},
|
|
418
433
|
async clickSystem(item) {
|
|
419
434
|
await this.getTreeList(item)
|
|
420
|
-
localStorage.setItem('pageInType', 'toFront')
|
|
435
|
+
// localStorage.setItem('pageInType', 'toFront')
|
|
421
436
|
window.localStorage.setItem('pageInSystemNo', item.NO)
|
|
422
437
|
let { base = '/' } = this.$router.options
|
|
423
438
|
if (!/\/$/.test(base)) base += '/'
|
|
@@ -425,6 +440,14 @@ export default {
|
|
|
425
440
|
window.location.href = window.location.origin + base + 'dashboard/workplace'
|
|
426
441
|
},
|
|
427
442
|
|
|
443
|
+
handleUser() {
|
|
444
|
+
this.$refs.userDropMenu.offset = 1000
|
|
445
|
+
if (this.$refs.userDrop.visible) {
|
|
446
|
+
this.$refs.userDrop.hide()
|
|
447
|
+
} else {
|
|
448
|
+
this.$refs.userDrop.show()
|
|
449
|
+
}
|
|
450
|
+
},
|
|
428
451
|
// 跳转打主数据人员页面
|
|
429
452
|
goMdmUser() {
|
|
430
453
|
this.customOpt.userMd && linkPush('/mdm/personnel')
|
|
@@ -687,4 +710,8 @@ export default {
|
|
|
687
710
|
font-size: 20px;
|
|
688
711
|
vertical-align: middle;
|
|
689
712
|
}
|
|
713
|
+
.companyClass {
|
|
714
|
+
font-size: 12px;
|
|
715
|
+
color: #999;
|
|
716
|
+
}
|
|
690
717
|
</style>
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<div>
|
|
4
|
+
<el-input v-model="searchValue" class="w-224 m-r" />
|
|
5
|
+
<el-button type="primary" @click="search">查询</el-button>
|
|
6
|
+
</div>
|
|
7
|
+
<el-table :data="userListBanck" height="400px" style="width: 100%; margin-top: 8px">
|
|
8
|
+
<el-table-column type="index" :label="'序号' | $lc" />
|
|
9
|
+
<el-table-column prop="uno" :label="'账号' | $lc" width="180" />
|
|
10
|
+
<el-table-column prop="cltName" :label="'单位' | $lc" />
|
|
11
|
+
<el-table-column width="100" :label="'操作' | $lc">
|
|
12
|
+
<template slot-scope="{ row }">
|
|
13
|
+
<el-button v-if="userNo === row.uno" type="text" disabled>{{ '当前用户' | $lc }}</el-button>
|
|
14
|
+
<el-button v-else type="text" @click="handleChange(row.uno)">{{ '切换' | $lc }}</el-button>
|
|
15
|
+
</template>
|
|
16
|
+
</el-table-column>
|
|
17
|
+
</el-table>
|
|
18
|
+
</div>
|
|
13
19
|
</template>
|
|
14
20
|
|
|
15
21
|
<script>
|
|
16
22
|
import axios from '../../../utils/axios'
|
|
17
23
|
import auth from '../../../utils/auth'
|
|
18
|
-
|
|
19
24
|
export default {
|
|
20
25
|
props: {
|
|
21
26
|
visible: {
|
|
@@ -29,15 +34,23 @@ export default {
|
|
|
29
34
|
},
|
|
30
35
|
data() {
|
|
31
36
|
return {
|
|
32
|
-
userListBanck: [{}]
|
|
37
|
+
userListBanck: [{}],
|
|
38
|
+
searchValue: '',
|
|
39
|
+
list: [{}]
|
|
33
40
|
}
|
|
34
41
|
},
|
|
35
42
|
created() {
|
|
36
43
|
axios.get(`/bems/prod_1.0/user/api/userController/queryUserListByUserNo/${this.userNo}`).then(({ data }) => {
|
|
37
44
|
this.userListBanck = data
|
|
45
|
+
this.list = data
|
|
38
46
|
})
|
|
39
47
|
},
|
|
40
48
|
methods: {
|
|
49
|
+
search() {
|
|
50
|
+
this.userListBanck = this.list.filter(
|
|
51
|
+
(item) => item.uno.match(this.searchValue) || item.cltName.match(this.searchValue)
|
|
52
|
+
)
|
|
53
|
+
},
|
|
41
54
|
handleChange(uno) {
|
|
42
55
|
axios.get(`/bems/prod_1.0/uas/api/authorization/switchUser/${uno}`).then(({ data }) => {
|
|
43
56
|
this.$emit('update:visible', false)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div v-if="size !== 'mini'" class="flex-box p-t-
|
|
3
|
+
<div v-if="size !== 'mini'" class="flex-box p-t-ss p-b-ss">
|
|
4
4
|
<statisItem :type="'当页合计' | $lc" :list="pageList" :show-w="showW" :show-u="showU" :count-label="countLabel" />
|
|
5
5
|
<statisItem
|
|
6
6
|
:type="'全部合计' | $lc"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:count-label="countLabel"
|
|
11
11
|
/>
|
|
12
12
|
</div>
|
|
13
|
-
<div v-else class="n20-statis p-t-
|
|
13
|
+
<div v-else class="n20-statis p-t-ss p-b-ss">
|
|
14
14
|
<span class="m-r">
|
|
15
15
|
{{ '当页:' | $lc }}<span class="n20-primary"> {{ pageSum }}</span> {{ '条' | $lc }}
|
|
16
16
|
</span>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="lists.length == 1" class="flex-box p-t-
|
|
2
|
+
<div v-if="lists.length == 1" class="flex-box p-t-ss p-b-ss">
|
|
3
3
|
<statisItem
|
|
4
4
|
v-for="(item, i) in lists[0]['statis']"
|
|
5
5
|
:key="i"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@show="show = true"
|
|
21
21
|
@hide="show = false"
|
|
22
22
|
>
|
|
23
|
-
<div slot="reference" class="flex-box p-t-
|
|
23
|
+
<div slot="reference" class="flex-box p-t-ss p-b-ss">
|
|
24
24
|
<statisItem
|
|
25
25
|
v-for="(item, i) in lists[0]['statis']"
|
|
26
26
|
:key="i"
|