vue2-client 1.15.63 → 1.15.65

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
@@ -1,110 +1,110 @@
1
- {
2
- "name": "vue2-client",
3
- "version": "1.15.63",
4
- "private": false,
5
- "scripts": {
6
- "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
7
- "serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
8
- "serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
9
- "serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
10
- "serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
11
- "serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
12
- "serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
13
- "serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
14
- "serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
15
- "serve:apply": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode apply",
16
- "mac-serve": "vue-cli-service serve --no-eslint --mode his",
17
- "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
18
- "test:unit": "vue-cli-service test:unit",
19
- "lint": "vue-cli-service lint",
20
- "build:preview": "vue-cli-service build --mode preview",
21
- "lint:nofix": "vue-cli-service lint --no-fix",
22
- "test": "jest"
23
- },
24
- "dependencies": {
25
- "@afwenming123/vue-easy-tree": "^1.0.1",
26
- "@afwenming123/vue-plugin-hiprint": "^0.0.70",
27
- "@amap/amap-jsapi-loader": "^1.0.1",
28
- "@antv/data-set": "^0.11.8",
29
- "@antv/g2plot": "^2.4.31",
30
- "@hufe921/canvas-editor": "^0.9.49",
31
- "@microsoft/fetch-event-source": "^2.0.1",
32
- "@vue/babel-preset-jsx": "^1.4.0",
33
- "animate.css": "^4.1.1",
34
- "ant-design-vue": "^1.7.8",
35
- "axios": "^0.27.2",
36
- "clipboard": "^2.0.11",
37
- "core-js": "^3.33.0",
38
- "crypto-js": "^4.1.1",
39
- "date-fns": "^2.29.3",
40
- "default-passive-events": "^2.0.0",
41
- "dotenv": "^16.3.1",
42
- "echarts": "^5.5.0",
43
- "enquire.js": "^2.1.6",
44
- "file-saver": "^2.0.5",
45
- "highlight.js": "^11.7.0",
46
- "html2canvas": "^1.4.1",
47
- "js-base64": "^3.7.5",
48
- "js-cookie": "^2.2.1",
49
- "jsencrypt": "^3.3.2",
50
- "jspdf": "^2.5.1",
51
- "lodash.clonedeep": "^4.5.0",
52
- "lodash.debounce": "^4",
53
- "lodash.get": "^4.4.2",
54
- "marked": "^4",
55
- "mockjs": "^1.1.0",
56
- "nprogress": "^0.2.0",
57
- "qs": "^6.11.2",
58
- "regenerator-runtime": "^0.14.0",
59
- "videojs-contrib-hls": "^5.15.0",
60
- "viser-vue": "^2.4.8",
61
- "vue": "^2.7.14",
62
- "vue-codemirror": "4.0.6",
63
- "vue-draggable-resizable": "^2.3.0",
64
- "vue-i18n": "^8.28.2",
65
- "vue-json-viewer": "^2.2.22",
66
- "vue-router": "^3.6.5",
67
- "vue-video-player": "^5.0.2",
68
- "vue-virtual-scroller": "^1.1.2",
69
- "vuedraggable": "^2.24.3",
70
- "vuex": "^3.6.2",
71
- "xlsx": "0.18.5"
72
- },
73
- "devDependencies": {
74
- "@ant-design/colors": "^7.0.0",
75
- "@babel/core": "^7.22.20",
76
- "@babel/eslint-parser": "^7.22.15",
77
- "@babel/preset-env": "^7.22.20",
78
- "@vue/cli-plugin-babel": "^5.0.8",
79
- "@vue/cli-plugin-eslint": "^5.0.8",
80
- "@vue/cli-service": "^5.0.8",
81
- "@vue/eslint-config-standard": "^8.0.1",
82
- "@vue/test-utils": "^1.3.6",
83
- "babel-plugin-transform-remove-console": "^6.9.4",
84
- "compression-webpack-plugin": "^10.0.0",
85
- "css-minimizer-webpack-plugin": "^5.0.1",
86
- "deepmerge": "^4.3.1",
87
- "eslint": "^8.51.0",
88
- "eslint-plugin-vue": "^9.17.0",
89
- "fast-deep-equal": "^3.1.3",
90
- "ignore-loader": "^0.1.2",
91
- "jest": "^29.7.0",
92
- "jest-environment-jsdom": "^29.7.0",
93
- "jest-transform-stub": "^2.0.0",
94
- "less-loader": "^6.2.0",
95
- "script-loader": "^0.7.2",
96
- "style-resources-loader": "^1.5.0",
97
- "vue-cli-plugin-style-resources-loader": "^0.1.5",
98
- "vue-jest": "^4.0.1",
99
- "vue-template-compiler": "^2.7.14",
100
- "webpack": "^5.88.2",
101
- "webpack-theme-color-replacer": "^1.4.7",
102
- "whatwg-fetch": "^3.6.19"
103
- },
104
- "browserslist": [
105
- "> 1%",
106
- "last 2 versions",
107
- "not dead",
108
- "not ie 11"
109
- ]
110
- }
1
+ {
2
+ "name": "vue2-client",
3
+ "version": "1.15.65",
4
+ "private": false,
5
+ "scripts": {
6
+ "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
7
+ "serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
8
+ "serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
9
+ "serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
10
+ "serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
11
+ "serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
12
+ "serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
13
+ "serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
14
+ "serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
15
+ "serve:apply": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode apply",
16
+ "mac-serve": "vue-cli-service serve --no-eslint --mode his",
17
+ "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
18
+ "test:unit": "vue-cli-service test:unit",
19
+ "lint": "vue-cli-service lint",
20
+ "build:preview": "vue-cli-service build --mode preview",
21
+ "lint:nofix": "vue-cli-service lint --no-fix",
22
+ "test": "jest"
23
+ },
24
+ "dependencies": {
25
+ "@afwenming123/vue-easy-tree": "^1.0.1",
26
+ "@afwenming123/vue-plugin-hiprint": "^0.0.70",
27
+ "@amap/amap-jsapi-loader": "^1.0.1",
28
+ "@antv/data-set": "^0.11.8",
29
+ "@antv/g2plot": "^2.4.31",
30
+ "@hufe921/canvas-editor": "^0.9.49",
31
+ "@microsoft/fetch-event-source": "^2.0.1",
32
+ "@vue/babel-preset-jsx": "^1.4.0",
33
+ "animate.css": "^4.1.1",
34
+ "ant-design-vue": "^1.7.8",
35
+ "axios": "^0.27.2",
36
+ "clipboard": "^2.0.11",
37
+ "core-js": "^3.33.0",
38
+ "crypto-js": "^4.1.1",
39
+ "date-fns": "^2.29.3",
40
+ "default-passive-events": "^2.0.0",
41
+ "dotenv": "^16.3.1",
42
+ "echarts": "^5.5.0",
43
+ "enquire.js": "^2.1.6",
44
+ "file-saver": "^2.0.5",
45
+ "highlight.js": "^11.7.0",
46
+ "html2canvas": "^1.4.1",
47
+ "js-base64": "^3.7.5",
48
+ "js-cookie": "^2.2.1",
49
+ "jsencrypt": "^3.3.2",
50
+ "jspdf": "^2.5.1",
51
+ "lodash.clonedeep": "^4.5.0",
52
+ "lodash.debounce": "^4",
53
+ "lodash.get": "^4.4.2",
54
+ "marked": "^4",
55
+ "mockjs": "^1.1.0",
56
+ "nprogress": "^0.2.0",
57
+ "qs": "^6.11.2",
58
+ "regenerator-runtime": "^0.14.0",
59
+ "videojs-contrib-hls": "^5.15.0",
60
+ "viser-vue": "^2.4.8",
61
+ "vue": "^2.7.14",
62
+ "vue-codemirror": "4.0.6",
63
+ "vue-draggable-resizable": "^2.3.0",
64
+ "vue-i18n": "^8.28.2",
65
+ "vue-json-viewer": "^2.2.22",
66
+ "vue-router": "^3.6.5",
67
+ "vue-video-player": "^5.0.2",
68
+ "vue-virtual-scroller": "^1.1.2",
69
+ "vuedraggable": "^2.24.3",
70
+ "vuex": "^3.6.2",
71
+ "xlsx": "0.18.5"
72
+ },
73
+ "devDependencies": {
74
+ "@ant-design/colors": "^7.0.0",
75
+ "@babel/core": "^7.22.20",
76
+ "@babel/eslint-parser": "^7.22.15",
77
+ "@babel/preset-env": "^7.22.20",
78
+ "@vue/cli-plugin-babel": "^5.0.8",
79
+ "@vue/cli-plugin-eslint": "^5.0.8",
80
+ "@vue/cli-service": "^5.0.8",
81
+ "@vue/eslint-config-standard": "^8.0.1",
82
+ "@vue/test-utils": "^1.3.6",
83
+ "babel-plugin-transform-remove-console": "^6.9.4",
84
+ "compression-webpack-plugin": "^10.0.0",
85
+ "css-minimizer-webpack-plugin": "^5.0.1",
86
+ "deepmerge": "^4.3.1",
87
+ "eslint": "^8.51.0",
88
+ "eslint-plugin-vue": "^9.17.0",
89
+ "fast-deep-equal": "^3.1.3",
90
+ "ignore-loader": "^0.1.2",
91
+ "jest": "^29.7.0",
92
+ "jest-environment-jsdom": "^29.7.0",
93
+ "jest-transform-stub": "^2.0.0",
94
+ "less-loader": "^6.2.0",
95
+ "script-loader": "^0.7.2",
96
+ "style-resources-loader": "^1.5.0",
97
+ "vue-cli-plugin-style-resources-loader": "^0.1.5",
98
+ "vue-jest": "^4.0.1",
99
+ "vue-template-compiler": "^2.7.14",
100
+ "webpack": "^5.88.2",
101
+ "webpack-theme-color-replacer": "^1.4.7",
102
+ "whatwg-fetch": "^3.6.19"
103
+ },
104
+ "browserslist": [
105
+ "> 1%",
106
+ "last 2 versions",
107
+ "not dead",
108
+ "not ie 11"
109
+ ]
110
+ }
@@ -77,7 +77,7 @@
77
77
  :countVisible="false"
78
78
  :env="env"
79
79
  :style="config.componentStyle || ''"
80
- :_panelIndex="panelIndex"
80
+ :ipanelIndex="panelIndex"
81
81
  @deleteData="deleteData"
82
82
  @add="add"
83
83
  @listClick="listClick"
@@ -1094,13 +1094,13 @@ export default {
1094
1094
  this.show = obj
1095
1095
  } else if (obj && typeof obj === 'object') {
1096
1096
  // obj 是一个对象,并且不是数组
1097
- if (obj.hasOwnProperty('show')) {
1097
+ if (Object.prototype.hasOwnProperty.call(obj, 'show')) {
1098
1098
  this.show = obj?.show
1099
1099
  }
1100
- if (obj.hasOwnProperty('readOnly')) {
1100
+ if (Object.prototype.hasOwnProperty.call(obj, 'readOnly')) {
1101
1101
  this.readOnly = obj?.readOnly
1102
1102
  }
1103
- if (obj.hasOwnProperty('disabled')) {
1103
+ if (Object.prototype.hasOwnProperty.call(obj, 'disabled')) {
1104
1104
  this.disabled = obj?.disabled
1105
1105
  }
1106
1106
  }
@@ -1116,13 +1116,13 @@ export default {
1116
1116
  this.show = obj
1117
1117
  } else if (obj && typeof obj === 'object') {
1118
1118
  // obj 是一个对象,并且不是数组
1119
- if (obj.hasOwnProperty('show')) {
1119
+ if (Object.prototype.hasOwnProperty.call(obj, 'show')) {
1120
1120
  this.show = obj?.show
1121
1121
  }
1122
- if (obj.hasOwnProperty('readOnly')) {
1122
+ if (Object.prototype.hasOwnProperty.call(obj, 'readOnly')) {
1123
1123
  this.readOnly = obj?.readOnly
1124
1124
  }
1125
- if (obj.hasOwnProperty('disabled')) {
1125
+ if (Object.prototype.hasOwnProperty.call(obj, 'disabled')) {
1126
1126
  this.disabled = obj?.disabled
1127
1127
  }
1128
1128
  }
@@ -226,6 +226,7 @@ export default {
226
226
  <a-modal
227
227
  title="选择导出列"
228
228
  width="35vw"
229
+ :z-index="1001"
229
230
  :confirmLoading="confirmLoading"
230
231
  v-model="exportModalVisible"
231
232
  :destroy-on-close="true"
@@ -548,7 +548,10 @@ export default {
548
548
  }
549
549
  </script>
550
550
 
551
- <style>
551
+ <style scoped lang="less">
552
+ :deep(.ant-table-fixed-right) {
553
+ overflow: visible !important;
554
+ }
552
555
  .table-draggable-handle {
553
556
  height: 100% !important;
554
557
  left: auto !important;
@@ -1,22 +1,24 @@
1
1
  <template>
2
2
  <!-- 列表卡片模式 listMode: card -->
3
- <div v-if="listMode"
3
+ <div
4
+ v-if="listMode"
4
5
  class="demo-infinite-container"
5
6
  ref="listRef"
6
7
  @scroll="handleInfiniteOnLoad">
7
- <a-list :grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 3, xxl: 4 }"
8
+ <a-list
9
+ :grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 3, xxl: 4 }"
8
10
  :data-source="localData">
9
11
  <a-list-item slot="renderItem" slot-scope="item, index">
10
12
  <div class="card-a-col">
11
13
  <a-row class="card-row">
12
14
  <a-col class="id-a-col" :span="4" v-for="(detail,idx) in item.filter(d => d.label == label)" :key="idx">
13
- {{detail.value}}<span style="font-size: 16px;font-weight: 400 !important;">床</span>
15
+ {{ detail.value }}<span style="font-size: 16px;font-weight: 400 !important;">床</span>
14
16
  </a-col>
15
17
  <a-col :span="20" class="id-a-col-2">
16
18
  <template v-for="(detail,idx) in item">
17
- <span class="describe-list-a-col" :class="{name: detail.bold}" :key="idx" v-if="detail.type == 'title'">{{detail.value}}</span>
19
+ <span class="describe-list-a-col" :class="{name: detail.bold}" :key="idx" v-if="detail.type == 'title'">{{ detail.value }}</span>
18
20
  <span :key="idx" class="component-a-col" v-else-if="detail.type == 'component' && detail.label != label">
19
- {{`${detail.label}:`}}
21
+ {{ `${detail.label}:` }}
20
22
  <component
21
23
  :is="detail.slotType"
22
24
  :key="idx"
@@ -28,17 +30,18 @@
28
30
  />
29
31
  </span>
30
32
  <span :key="idx" class="component-a-col" v-else-if="detail.type == 'date'">
31
- {{`${detail.label}:`}}
33
+ {{ `${detail.label}:` }}
32
34
  <a-date-picker @change="onChange" />
33
35
  </span>
34
- <span class="describe-list-a-col" :class="{name: detail.bold}" :key="idx" v-else-if="detail.label != label">{{`${detail.label}:${detail.value}`}}</span>
36
+ <span class="describe-list-a-col" :class="{name: detail.bold}" :key="idx" v-else-if="detail.label != label">{{ `${detail.label}:${detail.value}` }}</span>
35
37
  </template>
36
- <a-button v-for="(btn, i) in buttonNames"
37
- :key="i"
38
- icon="search"
39
- class="button-a-col"
40
- @click.stop="click(item, index)">
41
- {{btn}}
38
+ <a-button
39
+ v-for="(btn, i) in buttonNames"
40
+ :key="i"
41
+ icon="search"
42
+ class="button-a-col"
43
+ @click.stop="click(item, index)">
44
+ {{ btn }}
42
45
  </a-button>
43
46
  </a-col>
44
47
  </a-row>
@@ -58,14 +61,16 @@
58
61
  <!-- 默认标签模式 -->
59
62
  <div class="list-wrapper" v-else>
60
63
  <a-list size="large" :data-source="data" itemLayout="horizontal" class="list-container" ref="listRef">
61
- <a-list-item slot="renderItem"
64
+ <a-list-item
65
+ slot="renderItem"
62
66
  slot-scope="item, index"
63
67
  class="list-item"
64
68
  @click="handleClick(index)"
65
69
  @mouseenter="enableHoverOptions && handleMouseEnter(index)"
66
70
  @mouseleave="handleMouseLeave"
67
71
  :class="{ 'hover-active': enableHoverOptions && hoveredIndex === index }">
68
- <i v-if="icon"
72
+ <i
73
+ v-if="icon"
69
74
  class="icon-menu"
70
75
  :style="getIconStyle(item)">
71
76
  </i>
@@ -86,16 +91,18 @@
86
91
  </div>
87
92
 
88
93
  <!-- 悬浮选项框 -->
89
- <div v-show="enableHoverOptions && hoveredIndex === index"
94
+ <div
95
+ v-show="enableHoverOptions && hoveredIndex === index"
90
96
  class="hover-options"
91
97
  @mouseenter="handleOptionsEnter"
92
98
  @mouseleave="handleOptionsLeave">
93
99
  <div class="hover-options-content">
94
- <div v-for="(item, idx) in select_options"
100
+ <div
101
+ v-for="(Item, idx) in select_options"
95
102
  :key="idx"
96
103
  class="option-item"
97
- @click="handleOptionClick(index, item)">
98
- {{ item }}
104
+ @click="handleOptionClick(index, Item)">
105
+ {{ Item }}
99
106
  </div>
100
107
  </div>
101
108
  </div>
@@ -42,7 +42,7 @@ export default {
42
42
  }
43
43
  },
44
44
  // 父组件索引
45
- _panelIndex: {
45
+ ipanelIndex: {
46
46
  type: Number,
47
47
  default: ''
48
48
  }
@@ -152,7 +152,7 @@ export default {
152
152
  this.lastSelectedNode = result.node
153
153
  this.$emit('search-complete', {
154
154
  hasMatch: true,
155
- panelIndex: this._panelIndex // 接收父组件传入的面板索引
155
+ panelIndex: this.ipanelIndex // 接收父组件传入的面板索引
156
156
  })
157
157
  // 滚动到目标节点
158
158
  this.$nextTick(() => {