vue2-client 1.2.89 → 1.2.93
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/CHANGELOG.md +13 -0
- package/package.json +16 -19
- package/src/base-client/components/common/XCard/XCard.vue +64 -59
- package/src/base-client/components/common/XForm/XFormItem.vue +5 -5
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +960 -770
- package/src/pages/CreateQueryPage.vue +1 -0
- package/src/services/api/WebmeterAnalysisViewApi.js +24 -20
- package/src/utils/util.js +230 -222
- package/vue.config.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
> 所有关于本项目的变化都在该文档里。
|
|
3
3
|
|
|
4
|
+
**1.2.93 -2022-08-03 @江超**
|
|
5
|
+
- 功能新增:
|
|
6
|
+
- util增加uuid方法
|
|
7
|
+
|
|
8
|
+
**1.2.90 - 1.2.92 -2022-08-01 @江超**
|
|
9
|
+
- 功能新增:
|
|
10
|
+
- XCard增加空状态显示
|
|
11
|
+
- 修复依赖
|
|
12
|
+
|
|
13
|
+
**1.2.89 - 1.2.90 -2022-07-31 @张振宇**
|
|
14
|
+
- 功能新增:
|
|
15
|
+
- 物联网表用气分析图表
|
|
16
|
+
|
|
4
17
|
**1.2.81 - 1.2.89 -2022-07-21 @朱子峰**
|
|
5
18
|
- 功能新增:
|
|
6
19
|
- 兼容V4登陆
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue2-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.93",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"@antv/data-set": "^0.11.8",
|
|
14
14
|
"@antv/f2": "^3.8.11",
|
|
15
15
|
"@antv/g2plot": "^2.4.20",
|
|
16
|
-
"@babel/core": "^7.18.5",
|
|
17
16
|
"@logicflow/core": "^1.1.20",
|
|
18
17
|
"@logicflow/extension": "^1.1.20",
|
|
19
18
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
|
|
@@ -22,14 +21,13 @@
|
|
|
22
21
|
"ant-design-vue": "^1.7.8",
|
|
23
22
|
"axios": "^0.27.2",
|
|
24
23
|
"clipboard": "^2.0.11",
|
|
25
|
-
"core-js": "^3.23.
|
|
26
|
-
"webpack": "^4.46.0",
|
|
24
|
+
"core-js": "^3.23.5",
|
|
27
25
|
"date-fns": "^2.28.0",
|
|
28
26
|
"default-passive-events": "^2.0.0",
|
|
29
27
|
"enquire.js": "^2.1.6",
|
|
30
28
|
"file-saver": "^2.0.5",
|
|
31
|
-
"highlight.js": "^
|
|
32
|
-
"js-cookie": "^
|
|
29
|
+
"highlight.js": "^10.7.3",
|
|
30
|
+
"js-cookie": "^2.2.1",
|
|
33
31
|
"jsencrypt": "^3.2.1",
|
|
34
32
|
"lodash.get": "^4.4.2",
|
|
35
33
|
"mockjs": "^1.1.0",
|
|
@@ -42,16 +40,16 @@
|
|
|
42
40
|
"vue-router": "^3.5.4",
|
|
43
41
|
"vuedraggable": "^2.24.3",
|
|
44
42
|
"vuex": "^3.6.2",
|
|
45
|
-
"xlsx": "
|
|
43
|
+
"xlsx": "0.18.5"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
|
48
|
-
"@ant-design/colors": "^
|
|
49
|
-
"@vue/cli-plugin-babel": "^4.5.
|
|
50
|
-
"@vue/cli-plugin-eslint": "^4.5.
|
|
51
|
-
"@vue/cli-plugin-router": "^4.5.
|
|
46
|
+
"@ant-design/colors": "^4.0.5",
|
|
47
|
+
"@vue/cli-plugin-babel": "^4.5.19",
|
|
48
|
+
"@vue/cli-plugin-eslint": "^4.5.19",
|
|
49
|
+
"@vue/cli-plugin-router": "^4.5.19",
|
|
52
50
|
"@vue/cli-plugin-unit-jest": "~4.5.19",
|
|
53
|
-
"@vue/cli-plugin-vuex": "^4.5.
|
|
54
|
-
"@vue/cli-service": "^4.5.
|
|
51
|
+
"@vue/cli-plugin-vuex": "^4.5.19",
|
|
52
|
+
"@vue/cli-service": "^4.5.19",
|
|
55
53
|
"@vue/eslint-config-standard": "^4.0.0",
|
|
56
54
|
"@vue/test-utils": "^1.3.0",
|
|
57
55
|
"@vue/vue2-jest": "^27.0.0",
|
|
@@ -60,7 +58,7 @@
|
|
|
60
58
|
"babel-jest": "^27.1.0",
|
|
61
59
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
62
60
|
"babel-polyfill": "^6.26.0",
|
|
63
|
-
"compression-webpack-plugin": "^
|
|
61
|
+
"compression-webpack-plugin": "^4.0.1",
|
|
64
62
|
"deepmerge": "^4.2.2",
|
|
65
63
|
"echarts": "^5.3.3",
|
|
66
64
|
"eslint": "^6.8.0",
|
|
@@ -71,19 +69,18 @@
|
|
|
71
69
|
"fast-deep-equal": "^3.1.3",
|
|
72
70
|
"gh-pages": "^3.2.3",
|
|
73
71
|
"jest": "^27.1.0",
|
|
74
|
-
"less": "^
|
|
75
|
-
"less-loader": "^7.3.0",
|
|
72
|
+
"less-loader": "^6.2.0",
|
|
76
73
|
"react-bmap": "^1.0.130",
|
|
77
74
|
"script-loader": "^0.7.2",
|
|
78
75
|
"style-resources-loader": "^1.5.0",
|
|
79
76
|
"vue-amap": "^0.5.10",
|
|
80
77
|
"vue-baidu-map": "^0.21.22",
|
|
81
|
-
"vue-bmap-gl": "
|
|
78
|
+
"vue-bmap-gl": "0.0.30",
|
|
82
79
|
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
83
|
-
"vue-mapvgl": "
|
|
80
|
+
"vue-mapvgl": "0.0.34",
|
|
84
81
|
"vue-template-compiler": "2.6.14",
|
|
85
82
|
"vuepress": "^1.9.7",
|
|
86
|
-
"webpack-theme-color-replacer": "
|
|
83
|
+
"webpack-theme-color-replacer": "1.4.1",
|
|
87
84
|
"whatwg-fetch": "^3.6.2"
|
|
88
85
|
},
|
|
89
86
|
"browserslist": [
|
|
@@ -1,59 +1,64 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-card :
|
|
4
|
-
<a-skeleton
|
|
5
|
-
<a-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-card :body-style="{ margin: 0, padding: 0 }" :bordered="false">
|
|
4
|
+
<a-skeleton v-show="loadState === 'loading'" active style="padding: 16px"/>
|
|
5
|
+
<a-empty v-show="loadState === 'empty'">
|
|
6
|
+
<a-button type="dashed" @click="retry">
|
|
7
|
+
重新加载
|
|
8
|
+
</a-button>
|
|
9
|
+
</a-empty>
|
|
10
|
+
<a-card
|
|
11
|
+
v-show="loadState === 'error'"
|
|
12
|
+
:body-style="{ margin: '0 auto' }"
|
|
13
|
+
:bordered="false"
|
|
14
|
+
:hoverable="true"
|
|
15
|
+
class="retryCard"
|
|
16
|
+
@click="retry" >
|
|
17
|
+
<a-icon :style="{ fontSize: '28px' }" type="global"/>
|
|
18
|
+
<p class="noSelect" style="margin-top: 20px">网络好像开小差了,点击重新加载...</p>
|
|
19
|
+
</a-card>
|
|
20
|
+
<div v-show="loadState === 'success'">
|
|
21
|
+
<slot></slot>
|
|
22
|
+
</div>
|
|
23
|
+
</a-card>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
name: 'XCard',
|
|
31
|
+
props: {
|
|
32
|
+
loadState: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: 'success'
|
|
35
|
+
},
|
|
36
|
+
retry: {
|
|
37
|
+
type: Function,
|
|
38
|
+
default: () => {
|
|
39
|
+
console.error('未实现重新加载')
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
data () {
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style lang="less" scoped>
|
|
52
|
+
.retryCard {
|
|
53
|
+
text-align: center;
|
|
54
|
+
}
|
|
55
|
+
.noSelect {
|
|
56
|
+
-webkit-touch-callout: none; /* iOS Safari */
|
|
57
|
+
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
|
58
|
+
-khtml-user-select: none; /* Konqueror */
|
|
59
|
+
-moz-user-select: none; /* Firefox */
|
|
60
|
+
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
61
|
+
user-select: none; /* Non-prefixed version, currently
|
|
62
|
+
not supported by any browser */
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<a-select-option
|
|
18
18
|
v-for="(item,index) in attr.keys"
|
|
19
19
|
:key="index"
|
|
20
|
-
:value="
|
|
20
|
+
:value="item.value">{{ item.label }}
|
|
21
21
|
</a-select-option>
|
|
22
22
|
</a-select>
|
|
23
23
|
</a-input>
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
<a-select-option
|
|
63
63
|
v-for="(item,index) in attr.keys"
|
|
64
64
|
:key="index"
|
|
65
|
-
:value="
|
|
66
|
-
{{ item
|
|
65
|
+
:value="item.value">
|
|
66
|
+
{{ item.label }}
|
|
67
67
|
</a-select-option>
|
|
68
68
|
</template>
|
|
69
69
|
<template v-else>
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<a-select-option
|
|
72
72
|
v-for="(item,index) in option"
|
|
73
73
|
:key="index"
|
|
74
|
-
:value="
|
|
74
|
+
:value="item.value">{{ item.label }}
|
|
75
75
|
</a-select-option>
|
|
76
76
|
</template>
|
|
77
77
|
<template v-else>
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<a-select-option
|
|
105
105
|
v-for="(item,index) in option"
|
|
106
106
|
:key="index"
|
|
107
|
-
:value="
|
|
107
|
+
:value="item.value">{{ item.label }}
|
|
108
108
|
</a-select-option>
|
|
109
109
|
</a-select>
|
|
110
110
|
</a-form-model-item>
|