n20-common-lib 1.3.61 → 1.3.64

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 (92) hide show
  1. package/package.json +1 -2
  2. package/src/assets/.DS_Store +0 -0
  3. package/src/assets/css/cl-showcolumn.scss +7 -3
  4. package/src/assets/realUrl.js +1 -2
  5. package/src/components/.DS_Store +0 -0
  6. package/src/components/Anchor/AnchorItem.vue +1 -3
  7. package/src/components/Anchor/index.vue +6 -22
  8. package/src/components/ApprovalButtons/index.vue +16 -42
  9. package/src/components/ApprovalRecord/approvalImgPro/index.vue +14 -5
  10. package/src/components/ApprovalRecord/flowDialog.vue +3 -16
  11. package/src/components/ApprovalRecord/index.vue +5 -27
  12. package/src/components/Button/index.vue +1 -7
  13. package/src/components/CascaderArea/index.vue +20 -36
  14. package/src/components/ChildRange/index.vue +3 -11
  15. package/src/components/DatePicker/por.vue +1 -5
  16. package/src/components/Descriptions/index.vue +1 -6
  17. package/src/components/DragList/index.vue +2 -5
  18. package/src/components/ECharts/define.js +1 -6
  19. package/src/components/ECharts/index.vue +5 -16
  20. package/src/components/Empty/.DS_Store +0 -0
  21. package/src/components/Empty/img/.DS_Store +0 -0
  22. package/src/components/Empty/index.vue +1 -4
  23. package/src/components/Expandable/index.vue +1 -4
  24. package/src/components/Expandable/main.vue +1 -5
  25. package/src/components/FileExportAsync/index.vue +2 -9
  26. package/src/components/FileImport/index.vue +4 -10
  27. package/src/components/FileUploadTable/index.vue +36 -98
  28. package/src/components/Filters/form-item-input.vue +9 -35
  29. package/src/components/Filters/index.vue +26 -61
  30. package/src/components/Filters/indexO.vue +6 -22
  31. package/src/components/FlowStep/index.vue +2 -6
  32. package/src/components/InputNumber/index.vue +4 -11
  33. package/src/components/InputNumber/numberRange.vue +1 -3
  34. package/src/components/InputSearch/index.vue +4 -19
  35. package/src/components/Layout/.DS_Store +0 -0
  36. package/src/components/Layout/AsideNav/index.vue +7 -41
  37. package/src/components/Layout/AsideNav/menuItem.vue +4 -13
  38. package/src/components/Layout/AsideNav/submenuTitle.vue +1 -5
  39. package/src/components/Layout/HeaderWrap/changePwd.vue +26 -41
  40. package/src/components/Layout/HeaderWrap/index.vue +41 -112
  41. package/src/components/Layout/HeaderWrap/noticePop.vue +20 -62
  42. package/src/components/Layout/HeaderWrap/switchUser.vue +11 -24
  43. package/src/components/Layout/SubContent/index.vue +3 -14
  44. package/src/components/Layout/TabsNav/index.vue +8 -31
  45. package/src/components/Layout/index.vue +11 -47
  46. package/src/components/LoginTemporary/form.vue +19 -84
  47. package/src/components/LoginTemporary/index.vue +3 -14
  48. package/src/components/LoginTemporary/qrcode.vue +15 -29
  49. package/src/components/LoginTemporary/retrievePw.vue +36 -109
  50. package/src/components/MoreTab/index.vue +11 -44
  51. package/src/components/NavMenu/index.vue +4 -21
  52. package/src/components/Pagination/index.vue +2 -12
  53. package/src/components/SecondaryTab/index.vue +1 -6
  54. package/src/components/SelectLazy/index.vue +13 -31
  55. package/src/components/SelectTree/SelectTreeLazy.vue +1 -3
  56. package/src/components/SelectTree/index.vue +1 -3
  57. package/src/components/ShowColumn/index.vue +37 -32
  58. package/src/components/Sifting/index.vue +3 -16
  59. package/src/components/Stamp/index.vue +1 -4
  60. package/src/components/Statis/index.vue +2 -14
  61. package/src/components/Statis/statisItem.vue +2 -7
  62. package/src/components/Suspend/index.vue +2 -11
  63. package/src/components/Table/index.vue +1 -5
  64. package/src/components/Table/indexO.vue +4 -19
  65. package/src/components/TableOperateColumn/index.vue +1 -6
  66. package/src/components/TertiaryTab/index.vue +1 -7
  67. package/src/components/Upload/index.vue +3 -10
  68. package/src/components/Upload/uploadMsg.vue +2 -9
  69. package/src/directives/VClickOutside/index.js +2 -10
  70. package/src/directives/VDrag/index.js +3 -7
  71. package/src/directives/VRuleKey/index.js +3 -10
  72. package/src/directives/VTitle/index.js +1 -2
  73. package/src/plugins/.DS_Store +0 -0
  74. package/src/plugins/SetMenuTree/index.vue +2 -12
  75. package/src/plugins/SetMenuTree/setmenutree.vue +12 -53
  76. package/src/plugins/Sign/.DS_Store +0 -0
  77. package/src/utils/auth.js +7 -5
  78. package/src/utils/axios.js +2 -4
  79. package/src/utils/repairElementUI.js +8 -32
  80. package/src/utils/tableheaderFilterpanel.vue +5 -20
  81. package/src/utils/toExcel.js +2 -8
  82. package/src/utils/xls2json.js +1 -3
  83. package/src/utils/xlsx2json.js +1 -3
  84. package/style/index.css +1 -1
  85. package/style/index.css.map +1 -1
  86. package/theme/blue.css +1 -1
  87. package/theme/green.css +1 -1
  88. package/theme/lightBlue.css +1 -1
  89. package/theme/orange.css +1 -1
  90. package/theme/purple.css +1 -1
  91. package/theme/red.css +1 -1
  92. package/theme/yellow.css +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "1.3.61",
3
+ "version": "1.3.64",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -55,7 +55,6 @@
55
55
  "@vue/cli-plugin-babel": "~4.5.0",
56
56
  "@vue/cli-plugin-eslint": "~4.5.0",
57
57
  "@vue/cli-service": "~4.5.0",
58
- "@vue/compiler-sfc": "^3.0.0-rc.6",
59
58
  "babel-eslint": "^10.1.0",
60
59
  "babel-plugin-component": "^1.1.1",
61
60
  "clipboard": "^2.0.11",
Binary file
@@ -26,16 +26,20 @@
26
26
  width: 25%;
27
27
 
28
28
  .el-checkbox__label {
29
+ display: inline-block;
30
+ width: calc(100% - 20px);
31
+ vertical-align: bottom;
32
+ white-space: nowrap;
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
29
35
  color: $--color-text-primary;
30
36
  }
31
37
  }
32
38
 
33
39
  .n20-drag-list-item {
34
-
35
40
  a,
36
41
  i {
37
42
  color: $--color-text-placeholder;
38
-
39
43
  }
40
44
  }
41
- }
45
+ }
@@ -1,6 +1,5 @@
1
1
  /* 前缀,针对乾坤做了处理 */
2
- const prefix =
3
- window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ || process.env.BASE_URL || '/'
2
+ const prefix = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ || process.env.BASE_URL || '/'
4
3
 
5
4
  export default function realUrl(url) {
6
5
  if (/^http(s)?:|\/\//.test(url)) {
Binary file
@@ -1,7 +1,5 @@
1
1
  <template>
2
- <ExpandablePane :id="id" :default-expand.sync="show" :title="title"
3
- ><slot></slot
4
- ></ExpandablePane>
2
+ <ExpandablePane :id="id" :default-expand.sync="show" :title="title"><slot></slot></ExpandablePane>
5
3
  </template>
6
4
 
7
5
  <script>
@@ -1,18 +1,12 @@
1
1
  <template>
2
- <el-scrollbar
3
- :id="position === 'right' ? 'page-scrollbar' : 'page-scrollbar-left'"
4
- style="height: 100%"
5
- >
2
+ <el-scrollbar :id="position === 'right' ? 'page-scrollbar' : 'page-scrollbar-left'" style="height: 100%">
6
3
  <div v-if="position === 'right'" ref="Anchor">
7
4
  <slot></slot>
8
5
  <ul class="n20-anchor">
9
6
  <li
10
7
  v-for="(item, index) in AnchorNavList"
11
8
  :key="index"
12
- :class="[
13
- 'n20-anchor-item',
14
- value === item.id ? 'n20-anchor-activit' : ''
15
- ]"
9
+ :class="['n20-anchor-item', value === item.id ? 'n20-anchor-activit' : '']"
16
10
  @click="getAnchorItem(item.id, index)"
17
11
  >
18
12
  {{ item.title }}
@@ -24,10 +18,7 @@
24
18
  <li
25
19
  v-for="(item, index) in AnchorNavList"
26
20
  :key="index"
27
- :class="[
28
- 'n20-anchor-item',
29
- value === item.id ? 'n20-anchor-activit' : ''
30
- ]"
21
+ :class="['n20-anchor-item', value === item.id ? 'n20-anchor-activit' : '']"
31
22
  @click="getAnchorItem(item.id, index)"
32
23
  >
33
24
  {{ item.title }}
@@ -39,10 +30,7 @@
39
30
  </template>
40
31
 
41
32
  <script>
42
- import {
43
- getScrollContainer,
44
- vueDebounce
45
- } from '../../utils/getScrollContainer.js'
33
+ import { getScrollContainer, vueDebounce } from '../../utils/getScrollContainer.js'
46
34
 
47
35
  export default {
48
36
  name: 'Anchor',
@@ -102,9 +90,7 @@ export default {
102
90
  methods: {
103
91
  // 初始化,获取电梯按钮数据,获取楼层高度映射
104
92
  init() {
105
- let parentTop =
106
- this.$refs.Anchor.getBoundingClientRect().top -
107
- this.scrollWrap.getBoundingClientRect().top
93
+ let parentTop = this.$refs.Anchor.getBoundingClientRect().top - this.scrollWrap.getBoundingClientRect().top
108
94
  let list = this.$children[0].$children.map((item) => {
109
95
  let rect = item.$el.getBoundingClientRect()
110
96
  let itemScrollTop = item.$el.offsetTop
@@ -119,9 +105,7 @@ export default {
119
105
  }
120
106
  })
121
107
  // 去掉多余的节点
122
- this.AnchorNavList = list.filter(
123
- (val) => val.id !== undefined && val.title !== undefined
124
- )
108
+ this.AnchorNavList = list.filter((val) => val.id !== undefined && val.title !== undefined)
125
109
  },
126
110
  //滚动的函数
127
111
  scrollFun(e) {
@@ -15,29 +15,11 @@
15
15
  </el-form>
16
16
 
17
17
  <div class="text-c">
18
- <el-button
19
- v-if="authList.includes('approval')"
20
- type="primary"
21
- @click="approvalFn"
22
- >批 准</el-button
23
- >
24
- <el-button v-if="authList.includes('reject')" plain @click="rejectFn"
25
- >驳回至发起人</el-button
26
- >
27
- <el-button
28
- v-if="authList.includes('rejectPre')"
29
- plain
30
- @click="rejectPreFn"
31
- >驳回至上一节点</el-button
32
- >
18
+ <el-button v-if="authList.includes('approval')" type="primary" @click="approvalFn">批 准</el-button>
19
+ <el-button v-if="authList.includes('reject')" plain @click="rejectFn">驳回至发起人</el-button>
20
+ <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">驳回至上一节点</el-button>
33
21
 
34
- <el-button
35
- v-if="authList.includes('discard')"
36
- type="danger"
37
- plain
38
- @click="discardFn"
39
- >作 废</el-button
40
- >
22
+ <el-button v-if="authList.includes('discard')" type="danger" plain @click="discardFn">作 废</el-button>
41
23
  <el-button plain @click="goFrom">返 回</el-button>
42
24
  </div>
43
25
  </div>
@@ -192,11 +174,9 @@ export default {
192
174
  return this.errMsgFn('驳回')
193
175
  }
194
176
  this.beforeFn(this.$attrs.beforeReject, () => {
195
- axios
196
- .post('/bems/activiti/admin/todo/reject', this.getParam())
197
- .then(({ data }) => {
198
- this.thenMsg(data, '驳回至发起人')
199
- })
177
+ axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
178
+ this.thenMsg(data, '驳回至发起人')
179
+ })
200
180
  })
201
181
  },
202
182
  // 驳回到上一步
@@ -205,21 +185,17 @@ export default {
205
185
  return this.errMsgFn('驳回')
206
186
  }
207
187
  this.beforeFn(this.$attrs.beforeRejectPre, () => {
208
- axios
209
- .post('/bems/activiti/admin/todo/rejectpre', this.getParam())
210
- .then(({ data }) => {
211
- this.thenMsg(data, '驳回至上一节')
212
- })
188
+ axios.post('/bems/activiti/admin/todo/rejectpre', this.getParam()).then(({ data }) => {
189
+ this.thenMsg(data, '驳回至上一节')
190
+ })
213
191
  })
214
192
  },
215
193
  // 审批
216
194
  approvalFn() {
217
195
  this.beforeFn(this.$attrs.beforeRatify, () => {
218
- axios
219
- .post('/bems/activiti/admin/todo/advance', this.getParam())
220
- .then(({ data }) => {
221
- this.thenMsg(data, '批准')
222
- })
196
+ axios.post('/bems/activiti/admin/todo/advance', this.getParam()).then(({ data }) => {
197
+ this.thenMsg(data, '批准')
198
+ })
223
199
  })
224
200
  },
225
201
  // 作废
@@ -228,11 +204,9 @@ export default {
228
204
  return this.errMsgFn('作废')
229
205
  }
230
206
  this.beforeFn(this.$attrs.beforeDiscard, () => {
231
- axios
232
- .post('/bems/activiti/admin/todo/cancle', this.getParam())
233
- .then(({ data }) => {
234
- this.thenMsg(data, '作废')
235
- })
207
+ axios.post('/bems/activiti/admin/todo/cancle', this.getParam()).then(({ data }) => {
208
+ this.thenMsg(data, '作废')
209
+ })
236
210
  })
237
211
  }
238
212
  }
@@ -368,24 +368,33 @@ setRejectLink(from, to) {
368
368
  .activiti-node-achieve rect,
369
369
  .activiti-node-achieve polygon,
370
370
  .activiti-line-achieve path {
371
- stroke: var(--color-success) !important;
371
+ stroke: #3cb495 !important;
372
+ }
373
+ .activiti-node-achieve use {
374
+ fill: #3cb495 !important;
372
375
  }
373
376
  .activiti-node-reject circle,
374
377
  .activiti-node-reject rect {
375
- stroke: var(--color-danger) !important;
378
+ stroke: #ea5454 !important;
379
+ }
380
+ .activiti-node-reject use {
381
+ fill: #ea5454 !important;
376
382
  }
377
383
  .activiti-node-at rect {
378
- stroke: var(--color-primary-hover) !important;
384
+ stroke: #fe943c !important;
385
+ }
386
+ .activiti-node-at use {
387
+ fill: #fe943c !important;
379
388
  }
380
389
  .activiti-line-reject {
381
390
  fill: none;
382
391
  stroke-width: 1px;
383
- stroke: var(--color-danger) !important;
392
+ stroke: #ea5454 !important;
384
393
  stroke-linejoin: round;
385
394
  /* marker-end: url('#sequenceflow-end-white-black-3aw0mc6w8vg7jarca1qf355gu'); */
386
395
  }
387
396
  .activiti-text-reject {
388
- fill: var(--color-danger) !important;
397
+ fill: #ea5454 !important;
389
398
  font-family: Arial, sans-serif;
390
399
  font-size: 12px;
391
400
  font-weight: normal;
@@ -1,21 +1,8 @@
1
1
  <template>
2
2
  <div>
3
- <el-button plain size="mini" :disabled="false" @click="imgV = true"
4
- >流程图查看</el-button
5
- >
6
- <el-dialog
7
- title="查看流程"
8
- :visible.sync="imgV"
9
- width="65%"
10
- class="p-a-0"
11
- append-to-body
12
- top="10vh"
13
- >
14
- <approvalImg
15
- :proc-inst-id="procInstId"
16
- class="text-c p-a"
17
- style="height: 70vh; overflow: auto"
18
- />
3
+ <el-button plain size="mini" :disabled="false" @click="imgV = true">流程图查看</el-button>
4
+ <el-dialog title="查看流程" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
5
+ <approvalImg :proc-inst-id="procInstId" class="text-c p-a" style="height: 70vh; overflow: auto" />
19
6
  </el-dialog>
20
7
  </div>
21
8
  </template>
@@ -3,36 +3,14 @@
3
3
  <div>
4
4
  <expandableWrap title="审批记录" :show-expand="false">
5
5
  <template slot="tips">
6
- <el-button plain size="mini" :disabled="false" @click="cardV = true"
7
- >审批进度查看</el-button
8
- >
9
- <el-button plain size="mini" :disabled="false" @click="imgV = true"
10
- >流程图查看</el-button
11
- >
6
+ <el-button plain size="mini" :disabled="false" @click="cardV = true">审批进度查看</el-button>
7
+ <el-button plain size="mini" :disabled="false" @click="imgV = true">流程图查看</el-button>
12
8
  </template>
13
9
  </expandableWrap>
14
- <el-dialog
15
- title="审批记录"
16
- :visible.sync="cardV"
17
- width="700"
18
- class="p-a-0"
19
- append-to-body
20
- top="10vh"
21
- >
22
- <approvalCard
23
- class="p-a"
24
- :proc-inst-id="$route.query.processInstanceId"
25
- style="height: 70vh; overflow: auto"
26
- />
10
+ <el-dialog title="审批记录" :visible.sync="cardV" width="700" class="p-a-0" append-to-body top="10vh">
11
+ <approvalCard class="p-a" :proc-inst-id="$route.query.processInstanceId" style="height: 70vh; overflow: auto" />
27
12
  </el-dialog>
28
- <el-dialog
29
- title="查看流程"
30
- :visible.sync="imgV"
31
- width="65%"
32
- class="p-a-0"
33
- append-to-body
34
- top="10vh"
35
- >
13
+ <el-dialog title="查看流程" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
36
14
  <approvalImg
37
15
  class="text-c p-a"
38
16
  :proc-inst-id="$route.query.processInstanceId"
@@ -1,11 +1,5 @@
1
1
  <template>
2
- <el-button
3
- :type="oType"
4
- :plain="plain"
5
- :disabled="disabled"
6
- v-bind="$attrs"
7
- v-on="$listeners"
8
- >
2
+ <el-button :type="oType" :plain="plain" :disabled="disabled" v-bind="$attrs" v-on="$listeners">
9
3
  <slot></slot>
10
4
  </el-button>
11
5
  </template>
@@ -51,49 +51,33 @@ export default {
51
51
  if (!window._china_area_tree_) {
52
52
  this.getAreaTree()
53
53
  } else {
54
- this.areaTree = this.isUrban
55
- ? window._china_urban_tree_
56
- : window._china_area_tree_
54
+ this.areaTree = this.isUrban ? window._china_urban_tree_ : window._china_area_tree_
57
55
  }
58
56
  },
59
57
  methods: {
60
58
  getAreaTree() {
61
- axios
62
- .get('/bems/1.0/area', { isEnable: 1 }, { loading: false })
63
- .then(({ data }) => {
64
- let dataAr = JSON.parse(JSON.stringify(data))
65
- let dataUb = JSON.parse(JSON.stringify(data))
66
- let areaTree = list2tree(
67
- dataAr,
68
- 'regionNo',
69
- 'fatherNo',
70
- 'children',
71
- 'regionNo'
72
- )
73
- let noAreaTree = areaTree.filter((a) => a.regionLevel !== '1')
74
- if (noAreaTree.length > 0) {
75
- console.warn('这些区域找不到父级节点:', noAreaTree)
76
- }
59
+ axios.get('/bems/1.0/area', { isEnable: 1 }, { loading: false }).then(({ data }) => {
60
+ let dataAr = JSON.parse(JSON.stringify(data))
61
+ let dataUb = JSON.parse(JSON.stringify(data))
62
+ let areaTree = list2tree(dataAr, 'regionNo', 'fatherNo', 'children', 'regionNo')
63
+ let noAreaTree = areaTree.filter((a) => a.regionLevel !== '1')
64
+ if (noAreaTree.length > 0) {
65
+ console.warn('这些区域找不到父级节点:', noAreaTree)
66
+ }
77
67
 
78
- window._china_area_tree_ = areaTree.filter(
79
- (a) => a.regionLevel === '1'
80
- )
68
+ window._china_area_tree_ = areaTree.filter((a) => a.regionLevel === '1')
81
69
 
82
- let urbanTree = list2tree(
83
- dataUb.filter((d) => d.regionLevel !== '3'),
84
- 'regionNo',
85
- 'fatherNo',
86
- 'children',
87
- 'regionNo'
88
- )
70
+ let urbanTree = list2tree(
71
+ dataUb.filter((d) => d.regionLevel !== '3'),
72
+ 'regionNo',
73
+ 'fatherNo',
74
+ 'children',
75
+ 'regionNo'
76
+ )
89
77
 
90
- window._china_urban_tree_ = urbanTree.filter(
91
- (a) => a.regionLevel === '1'
92
- )
93
- this.areaTree = this.isUrban
94
- ? window._china_urban_tree_
95
- : window._china_area_tree_
96
- })
78
+ window._china_urban_tree_ = urbanTree.filter((a) => a.regionLevel === '1')
79
+ this.areaTree = this.isUrban ? window._china_urban_tree_ : window._china_area_tree_
80
+ })
97
81
  },
98
82
  updateArea() {
99
83
  this.getAreaTree()
@@ -77,9 +77,7 @@ export default {
77
77
  // 根据精度保留数字
78
78
  toPrecision(num, precision) {
79
79
  if (precision === undefined) precision = 0
80
- return parseFloat(
81
- Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision)
82
- )
80
+ return parseFloat(Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision))
83
81
  },
84
82
 
85
83
  handleBlurleft(event) {
@@ -124,10 +122,7 @@ export default {
124
122
 
125
123
  // 如果from > to 将from值替换成to
126
124
  if (typeof this.value2 === 'number') {
127
- this.value1 =
128
- parseFloat(this.value1) <= parseFloat(this.value2)
129
- ? this.value1
130
- : this.value2
125
+ this.value1 = parseFloat(this.value1) <= parseFloat(this.value2) ? this.value1 : this.value2
131
126
  }
132
127
  this.$emit('input', [this.value1, this.value2])
133
128
  this.$emit('changefrom', this.value1)
@@ -147,10 +142,7 @@ export default {
147
142
 
148
143
  // 如果to < tfrom 将to值替换成from
149
144
  if (typeof this.value1 === 'number') {
150
- this.value2 =
151
- parseFloat(this.value2) >= parseFloat(this.value1)
152
- ? this.value2
153
- : this.value1
145
+ this.value2 = parseFloat(this.value2) >= parseFloat(this.value1) ? this.value2 : this.value1
154
146
  }
155
147
  this.$emit('input', [this.value1, this.value2])
156
148
  this.$emit('changeright', this.value2)
@@ -132,11 +132,7 @@ export default {
132
132
  data() {
133
133
  this.pickerOptions = {
134
134
  disabledDate: this.minNow ? disabledDate_1 : undefined,
135
- shortcuts: this.showShortcut
136
- ? this.type === 'date'
137
- ? shortcuts_1
138
- : shortcuts_2
139
- : undefined
135
+ shortcuts: this.showShortcut ? (this.type === 'date' ? shortcuts_1 : shortcuts_2) : undefined
140
136
  }
141
137
 
142
138
  this.listeners = Object.assign({}, this.$listeners, { input: () => {} })
@@ -1,10 +1,5 @@
1
1
  <template>
2
- <el-descriptions
3
- class="n20-descriptions"
4
- :column="column"
5
- size="default"
6
- border
7
- >
2
+ <el-descriptions class="n20-descriptions" :column="column" size="default" border>
8
3
  <slot></slot>
9
4
  </el-descriptions>
10
5
  </template>
@@ -10,7 +10,7 @@
10
10
  <div v-for="(item, index) in list" :key="index" class="n20-drag-list-item">
11
11
  <i class="n20-drag-icon n20-icon-tuodong"></i>
12
12
  <slot :item="item" :index="index">
13
- <span>{{ item[labelKey] || item }}</span>
13
+ <span class="text-ellipsis">{{ item[labelKey] || item }}</span>
14
14
  </slot>
15
15
  <el-link
16
16
  v-if="!disabled"
@@ -28,10 +28,7 @@ import importG from '../../utils/importGlobal.js'
28
28
  export default {
29
29
  name: 'DragList',
30
30
  components: {
31
- vueDraggable: () =>
32
- importG('vuedraggable', () =>
33
- import(/*webpackChunkName: "vuedraggable"*/ 'vuedraggable')
34
- )
31
+ vueDraggable: () => importG('vuedraggable', () => import(/*webpackChunkName: "vuedraggable"*/ 'vuedraggable'))
35
32
  },
36
33
  props: {
37
34
  list: {
@@ -1,4 +1,3 @@
1
-
2
1
  const color = ['#83D0EF', '#63d9a0', '#73A0FA', '#99DCD2', '#C1C1C1', '#FFB59E', '#EF8787']
3
2
 
4
3
  const axisConfig = {
@@ -67,8 +66,4 @@ const pieConfig = {
67
66
  }
68
67
  }
69
68
 
70
- export {
71
- color,
72
- axisConfig,
73
- pieConfig
74
- }
69
+ export { color, axisConfig, pieConfig }
@@ -58,18 +58,13 @@ export default {
58
58
 
59
59
  methods: {
60
60
  async initChart() {
61
- let echarts = await importG('echarts', () =>
62
- import(/*webpackChunkName "echarts"*/ 'echarts')
63
- )
61
+ let echarts = await importG('echarts', () => import(/*webpackChunkName "echarts"*/ 'echarts'))
64
62
  this.chart = echarts.init(this.$refs['chart'])
65
63
  this.setOption()
66
64
  },
67
65
 
68
66
  setOption() {
69
- this.chart.setOption(
70
- this.calcOption(this.option),
71
- this.composedChartOption
72
- )
67
+ this.chart.setOption(this.calcOption(this.option), this.composedChartOption)
73
68
  },
74
69
 
75
70
  grid({ grid = {} }) {
@@ -77,9 +72,7 @@ export default {
77
72
  containLabel: true
78
73
  }
79
74
 
80
- grid = Array.isArray(grid)
81
- ? grid.map((item) => merge({}, selfGrid, item))
82
- : merge({}, selfGrid, grid)
75
+ grid = Array.isArray(grid) ? grid.map((item) => merge({}, selfGrid, item)) : merge({}, selfGrid, grid)
83
76
 
84
77
  return {
85
78
  grid
@@ -87,17 +80,13 @@ export default {
87
80
  },
88
81
 
89
82
  xAxis({ xAxis }) {
90
- xAxis = Array.isArray(xAxis)
91
- ? xAxis.map((item) => merge({}, axisConfig, item))
92
- : merge({}, axisConfig, xAxis)
83
+ xAxis = Array.isArray(xAxis) ? xAxis.map((item) => merge({}, axisConfig, item)) : merge({}, axisConfig, xAxis)
93
84
 
94
85
  return { xAxis }
95
86
  },
96
87
 
97
88
  yAxis({ yAxis }) {
98
- yAxis = Array.isArray(yAxis)
99
- ? yAxis.map((item) => merge({}, axisConfig, item))
100
- : merge({}, axisConfig, yAxis)
89
+ yAxis = Array.isArray(yAxis) ? yAxis.map((item) => merge({}, axisConfig, item)) : merge({}, axisConfig, yAxis)
101
90
 
102
91
  return { yAxis }
103
92
  },
Binary file
@@ -1,9 +1,6 @@
1
1
  <template>
2
2
  <div class="n20-empty">
3
- <img
4
- :src="src || imgSrc"
5
- :style="{ height: `${height}px`, width: `${width}px` }"
6
- />
3
+ <img :src="src || imgSrc" :style="{ height: `${height}px`, width: `${width}px` }" />
7
4
  <slot name="content"></slot>
8
5
  </div>
9
6
  </template>
@@ -8,10 +8,7 @@
8
8
  <slot name="tips"></slot>
9
9
  <span v-if="showExpand" class="n20-tips" @click="expand = !expand">
10
10
  <span>{{ expand ? '收起' : '展开' }}</span
11
- ><i
12
- class="el-icon-arrow-right m-l-ss"
13
- :class="{ expand: expand }"
14
- ></i>
11
+ ><i class="el-icon-arrow-right m-l-ss" :class="{ expand: expand }"></i>
15
12
  </span>
16
13
  </div>
17
14
  </div>
@@ -2,11 +2,7 @@
2
2
  <div class="n20-form-expandable-pane">
3
3
  <div class="n20-title flex-box flex-lr flex-v">
4
4
  <span class="n20-tips flex-item" @click="getExpand">
5
- <i
6
- v-if="icon"
7
- class="el-icon-caret-right color-0 m-r-b"
8
- :class="{ expand: expand }"
9
- ></i>
5
+ <i v-if="icon" class="el-icon-caret-right color-0 m-r-b" :class="{ expand: expand }"></i>
10
6
  <slot name="title">
11
7
  <span>{{ title }}</span>
12
8
  </slot>
@@ -17,12 +17,7 @@
17
17
  </div>
18
18
  <div class="flex-box m-b">
19
19
  <span class="m-r">导出进度</span>
20
- <el-progress
21
- class="flex-item"
22
- :percentage="pgsVal"
23
- :status="pgsStatus"
24
- style="margin-right: -10px"
25
- />
20
+ <el-progress class="flex-item" :percentage="pgsVal" :status="pgsStatus" style="margin-right: -10px" />
26
21
  </div>
27
22
  <span slot="footer">
28
23
  <el-button plain @click="exportCancel">取消</el-button>
@@ -181,9 +176,7 @@ export default {
181
176
  },
182
177
  closeWaitPop() {
183
178
  clearTimeout(this.waitTimer)
184
- let confirmBtn = document.querySelector(
185
- `.${this.waitClass} .el-button--primary`
186
- )
179
+ let confirmBtn = document.querySelector(`.${this.waitClass} .el-button--primary`)
187
180
  confirmBtn && confirmBtn.click()
188
181
  }
189
182
  }