n20-common-lib 1.3.43 → 1.3.46
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/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +168 -48
- package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +153 -155
- package/{src → nstc-g6}/utils/mapper_aims.js +0 -0
- package/package.json +3 -2
- package/src/components/ApprovalRecord/approvalImgPro.vue +120 -15
- package/src/components/DragList/index.vue +5 -1
- package/src/components/ECharts/index.vue +5 -2
- package/src/components/InputNumber/index.vue +1 -1
- package/src/components/LoginTemporary/form.vue +8 -2
- package/src/components/LoginTemporary/index.vue +16 -17
- package/src/components/LoginTemporary/qrcode.vue +5 -3
- package/src/components/Statis/index.vue +2 -0
- package/src/components/Statis/statisItem.vue +7 -2
- package/src/components/Table/index.vue +2 -49
- package/src/components/TableOperateColumn/OperateBtns.vue +13 -0
- package/src/index.js +1 -0
- package/src/utils/importGlobal.js +16 -0
- package/src/utils/toExcel.js +10 -2
- package/src/utils/xls2json.js +6 -2
- package/src/utils/xlsx2json.js +6 -2
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.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/src/assets/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/Empty/.DS_Store +0 -0
- package/src/components/Empty/img/.DS_Store +0 -0
- package/src/components/Layout/.DS_Store +0 -0
- package/src/components/Table/ThSelectHeader.vue +0 -128
- package/src/plugins/.DS_Store +0 -0
- package/src/plugins/Sign/.DS_Store +0 -0
package/src/assets/.DS_Store
DELETED
|
Binary file
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-popover
|
|
3
|
-
popper-class="table-header-popover"
|
|
4
|
-
placement="bottom"
|
|
5
|
-
trigger="hover"
|
|
6
|
-
>
|
|
7
|
-
<el-input
|
|
8
|
-
v-model="value"
|
|
9
|
-
placeholder="请输入"
|
|
10
|
-
clearable
|
|
11
|
-
class="input-w"
|
|
12
|
-
@keyup.enter.native="handleSearch"
|
|
13
|
-
>
|
|
14
|
-
<i
|
|
15
|
-
slot="suffix"
|
|
16
|
-
class="el-input__icon el-icon-search"
|
|
17
|
-
@click="handleSearch"
|
|
18
|
-
></i>
|
|
19
|
-
</el-input>
|
|
20
|
-
|
|
21
|
-
<div class="flex-column m-t">
|
|
22
|
-
<el-checkbox
|
|
23
|
-
v-model="checkbox"
|
|
24
|
-
:indeterminate="isIndeterminate"
|
|
25
|
-
@change="checkboxChange"
|
|
26
|
-
>{{ '全部' + '(' + dataList.length + ')' }}</el-checkbox
|
|
27
|
-
>
|
|
28
|
-
<el-checkbox-group
|
|
29
|
-
v-model="checkLists"
|
|
30
|
-
class="flex-column"
|
|
31
|
-
@change="handleCheckedCitiesChange"
|
|
32
|
-
>
|
|
33
|
-
<el-checkbox
|
|
34
|
-
v-for="item in checkList[property]"
|
|
35
|
-
:key="item"
|
|
36
|
-
class="m-t-s"
|
|
37
|
-
:label="item"
|
|
38
|
-
>{{ item + '(' + countNum(item) + ')' }}</el-checkbox
|
|
39
|
-
>
|
|
40
|
-
</el-checkbox-group>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="flex-box flex-c m-t-m">
|
|
43
|
-
<el-button type="primary" @click="confirm">确认</el-button>
|
|
44
|
-
<el-button plain @click="reset">清空</el-button>
|
|
45
|
-
</div>
|
|
46
|
-
<i slot="reference" class="el-icon-arrow-down"></i>
|
|
47
|
-
</el-popover>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<script>
|
|
51
|
-
export default {
|
|
52
|
-
name: 'ThSelectHeader',
|
|
53
|
-
props: {
|
|
54
|
-
property: {
|
|
55
|
-
// 过滤的字段
|
|
56
|
-
type: String,
|
|
57
|
-
default: ''
|
|
58
|
-
},
|
|
59
|
-
checkList: {
|
|
60
|
-
// 当前过滤字段的过滤条件
|
|
61
|
-
type: Object,
|
|
62
|
-
default: () => {
|
|
63
|
-
return {}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
dataList: {
|
|
67
|
-
type: Array,
|
|
68
|
-
default: () => {
|
|
69
|
-
return []
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
data() {
|
|
74
|
-
return {
|
|
75
|
-
value: '',
|
|
76
|
-
checkLists: [],
|
|
77
|
-
list: [],
|
|
78
|
-
checkbox: false,
|
|
79
|
-
isIndeterminate: true
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
created() {
|
|
83
|
-
this.list = JSON.parse(JSON.stringify(this.checkList[this.property]))
|
|
84
|
-
},
|
|
85
|
-
methods: {
|
|
86
|
-
confirm() {
|
|
87
|
-
this.$emit('selectChange', {
|
|
88
|
-
property: this.property,
|
|
89
|
-
value: this.checkLists
|
|
90
|
-
})
|
|
91
|
-
},
|
|
92
|
-
handleSearch() {
|
|
93
|
-
if (!this.value) {
|
|
94
|
-
this.checkList[this.property] = this.list
|
|
95
|
-
} else {
|
|
96
|
-
this.checkList[this.property] = this.list.filter((v) => {
|
|
97
|
-
return v.indexOf(this.value) !== -1
|
|
98
|
-
})
|
|
99
|
-
}
|
|
100
|
-
this.$forceUpdate()
|
|
101
|
-
},
|
|
102
|
-
reset() {
|
|
103
|
-
this.value = ''
|
|
104
|
-
this.checkLists = []
|
|
105
|
-
this.$emit('reset', {
|
|
106
|
-
property: this.property,
|
|
107
|
-
value: this.value
|
|
108
|
-
})
|
|
109
|
-
},
|
|
110
|
-
countNum(res) {
|
|
111
|
-
var newArrays = this.dataList.filter((item) => {
|
|
112
|
-
return item[this.property] === res
|
|
113
|
-
})
|
|
114
|
-
return newArrays.length
|
|
115
|
-
},
|
|
116
|
-
checkboxChange(val) {
|
|
117
|
-
this.checkLists = val ? this.checkList[this.property] : []
|
|
118
|
-
this.isIndeterminate = false
|
|
119
|
-
},
|
|
120
|
-
handleCheckedCitiesChange(val) {
|
|
121
|
-
let checkedCount = val.length
|
|
122
|
-
this.checkbox = checkedCount === this.checkList[this.property].length
|
|
123
|
-
this.isIndeterminate =
|
|
124
|
-
checkedCount > 0 && checkedCount < this.checkList[this.property].length
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
</script>
|
package/src/plugins/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|