vue2-client 1.2.117 → 1.3.2
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 +304 -287
- package/package.json +76 -76
- package/src/base-client/all.js +62 -62
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +551 -547
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XFormTable/XFormTable.vue +503 -514
- package/src/base-client/components/common/XFormTable/index.md +96 -96
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +232 -232
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +678 -678
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +300 -300
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +464 -461
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/plugins/AppData.js +71 -71
- package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
- package/src/pages/login/Login.vue +277 -277
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/router/async/config.async.js +27 -26
- package/src/router/index.js +27 -27
- package/src/services/api/common.js +58 -58
- package/src/services/api/index.js +39 -39
- package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +18 -18
- package/src/store/mutation-types.js +2 -2
- package/src/theme/default/style.less +47 -47
- package/src/utils/request.js +225 -225
- package/src/utils/routerUtil.js +358 -350
- package/src/utils/util.js +230 -230
|
@@ -1,64 +1,64 @@
|
|
|
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>
|
|
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>
|