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.
Files changed (37) hide show
  1. package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +168 -48
  2. package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +153 -155
  3. package/{src → nstc-g6}/utils/mapper_aims.js +0 -0
  4. package/package.json +3 -2
  5. package/src/components/ApprovalRecord/approvalImgPro.vue +120 -15
  6. package/src/components/DragList/index.vue +5 -1
  7. package/src/components/ECharts/index.vue +5 -2
  8. package/src/components/InputNumber/index.vue +1 -1
  9. package/src/components/LoginTemporary/form.vue +8 -2
  10. package/src/components/LoginTemporary/index.vue +16 -17
  11. package/src/components/LoginTemporary/qrcode.vue +5 -3
  12. package/src/components/Statis/index.vue +2 -0
  13. package/src/components/Statis/statisItem.vue +7 -2
  14. package/src/components/Table/index.vue +2 -49
  15. package/src/components/TableOperateColumn/OperateBtns.vue +13 -0
  16. package/src/index.js +1 -0
  17. package/src/utils/importGlobal.js +16 -0
  18. package/src/utils/toExcel.js +10 -2
  19. package/src/utils/xls2json.js +6 -2
  20. package/src/utils/xlsx2json.js +6 -2
  21. package/style/index.css +1 -1
  22. package/style/index.css.map +1 -1
  23. package/theme/blue.css +1 -1
  24. package/theme/green.css +1 -1
  25. package/theme/lightBlue.css +1 -1
  26. package/theme/orange.css +1 -1
  27. package/theme/purple.css +1 -1
  28. package/theme/red.css +1 -1
  29. package/theme/yellow.css +1 -1
  30. package/src/assets/.DS_Store +0 -0
  31. package/src/components/.DS_Store +0 -0
  32. package/src/components/Empty/.DS_Store +0 -0
  33. package/src/components/Empty/img/.DS_Store +0 -0
  34. package/src/components/Layout/.DS_Store +0 -0
  35. package/src/components/Table/ThSelectHeader.vue +0 -128
  36. package/src/plugins/.DS_Store +0 -0
  37. package/src/plugins/Sign/.DS_Store +0 -0
Binary file
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>
Binary file
Binary file