vue2-client 1.1.0 → 1.2.0
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/.eslintrc.js +81 -81
- package/README.md +4 -2
- package/babel.config.js +14 -14
- package/docs/index.md +29 -29
- package/{src/index.js → index.js} +8 -8
- package/jest.config.js +3 -3
- package/package.json +1 -1
- package/public/index.html +27 -27
- package/src/App.vue +93 -93
- package/src/base-client/all.js +26 -26
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +4 -4
- package/src/base-client/components/common/CreateQuery/index.md +42 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +3 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
- package/src/base-client/components/common/CustomColumnsDrawer/index.md +46 -46
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +3 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
- package/src/base-client/components/common/XAddForm/XAddForm.vue +3 -3
- package/src/base-client/components/common/XAddForm/index.md +60 -60
- package/src/base-client/components/common/XBadge/index.md +39 -39
- package/src/base-client/components/common/XCard/index.md +43 -43
- package/src/base-client/components/common/XForm/XForm.vue +2 -2
- package/src/base-client/components/common/XForm/XFormItem.vue +1 -1
- package/src/base-client/components/common/XForm/index.md +3 -3
- package/src/base-client/components/common/XFormCol/index.md +35 -35
- package/src/base-client/components/common/XFormTable/XFormTable.vue +6 -6
- package/src/base-client/components/common/XFormTable/index.md +89 -89
- package/src/base-client/components/common/XTable/XTable.vue +3 -3
- package/src/base-client/components/common/XTable/index.md +3 -3
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +105 -105
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +3 -3
- package/src/base-client/components/iot/CustomerDetailsView/index.md +41 -41
- package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +127 -127
- package/src/base-client/components/iot/DataAnalysisViewGD/DataAnalysisViewGD.vue +5 -5
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +3 -3
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +3 -3
- package/src/base-client/components/iot/DeviceDetailsView/index.md +43 -43
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +122 -122
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +4 -4
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +225 -225
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +135 -135
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +3 -3
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +5 -5
- package/src/base-client/components/iot/InstructDetailsView/index.md +45 -45
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +3 -3
- package/src/base-client/components/iot/LogDetailsView/index.md +43 -43
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +3 -3
- package/src/base-client/components/iot/MeterDetailsView/index.md +43 -43
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +1 -1
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +3 -3
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +3 -3
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +4 -4
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +3 -3
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +3 -3
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +4 -4
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +48 -48
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +4 -4
- package/src/base-client/components/system/DictionaryDetailsView/index.md +41 -41
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +3 -3
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +5 -5
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +5 -5
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +3 -3
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +6 -6
- package/src/base-client/plugins/AppData.js +3 -3
- package/src/base-client/plugins/GetLoginInfoService.js +2 -2
- package/src/base-client/plugins/index.js +4 -4
- package/src/bootstrap.js +4 -4
- package/src/components/Ellipsis/Ellipsis.vue +64 -64
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/Trend/index.md +45 -45
- package/src/components/cache/AKeepAlive.js +172 -172
- package/src/components/checkbox/index.js +7 -7
- package/src/components/index.js +36 -36
- package/src/components/menu/menu.js +273 -273
- package/src/components/setting/Setting.vue +237 -237
- package/src/components/table/advance/AdvanceTable.vue +275 -275
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/config/default/setting.config.js +33 -33
- package/src/layouts/CommonLayout.vue +42 -42
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +74 -74
- package/src/layouts/header/AdminHeader.vue +109 -109
- package/src/layouts/header/HeaderAvatar.vue +60 -60
- package/src/layouts/header/HeaderNotice.vue +1 -1
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +355 -355
- package/src/main.js +2 -2
- package/src/mock/common/reportData.js +20 -20
- package/src/mock/goods/index.js +108 -108
- package/src/mock/index.js +12 -12
- package/src/mock/project/index.js +17 -17
- package/src/mock/user/current.js +13 -13
- package/src/mock/user/login.js +39 -39
- package/src/mock/user/routes.js +61 -61
- package/src/mock/workplace/index.js +15 -15
- package/src/pages/exception/403.vue +2 -2
- package/src/pages/exception/404.vue +2 -2
- package/src/pages/exception/500.vue +2 -2
- package/src/pages/login/Login.vue +8 -8
- package/src/pages/report/ReportTable.js +125 -125
- package/src/pages/report/ReportTableHome.vue +2 -2
- package/src/pages/resourceManage/resourceManageMain.vue +1 -1
- package/src/pages/system/applyInstallView/Core.vue +570 -570
- package/src/pages/system/applyInstallView/index.vue +34 -34
- package/src/pages/system/dictionary/index.vue +41 -41
- package/src/pages/system/queryParams/index.vue +41 -41
- package/src/router/async/config.async.js +25 -25
- package/src/router/async/router.map.js +13 -13
- package/src/router/guards.js +104 -104
- package/src/router/index.js +2 -2
- package/src/services/api/common.js +1 -1
- package/src/services/api/restTools.js +1 -1
- package/src/services/dataSource.js +12 -12
- package/src/services/user.js +34 -34
- package/src/store/index.js +5 -5
- package/src/store/modules/setting.js +114 -114
- package/src/theme/index.less +5 -5
- package/src/theme/reportTable.less +58 -58
- package/src/utils/i18n.js +80 -80
- package/src/utils/indexedDB.js +1 -1
- package/src/utils/request.js +1 -1
- package/src/utils/routerUtil.js +3 -3
- package/tests/unit/ReportTable.spec.js +2 -2
- package/vue.config.js +1 -0
- package/webpack.config.js +1 -1
- package/src/router/config.js +0 -23
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="XTreeOne">
|
|
3
|
-
<component-layout-one :siderProps="{width: leftWidth,collapsible: collapsible,collapsedWidth: collapsedWidth,theme: 'light'}">
|
|
4
|
-
<template slot="left">
|
|
5
|
-
<div class="bg-white pd-20" :style="{height: treeHeight}">
|
|
6
|
-
<a-input-search style="margin-bottom: 8px" placeholder="Search" allow-clear @change="onChange" />
|
|
7
|
-
<a-tree
|
|
8
|
-
:tree-data="searchData"
|
|
9
|
-
@select="onSelect">
|
|
10
|
-
<template #title="{ title }">
|
|
11
|
-
<span v-if="title.indexOf(searchValue) > -1">
|
|
12
|
-
{{ title.substr(0, title.indexOf(searchValue)) }}
|
|
13
|
-
<span style="color: #f50">{{ searchValue }}</span>
|
|
14
|
-
{{ title.substr(title.indexOf(searchValue) + searchValue.length) }}
|
|
15
|
-
</span>
|
|
16
|
-
<span v-else>{{ title }}</span>
|
|
17
|
-
</template>
|
|
18
|
-
</a-tree>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
<slot></slot>
|
|
22
|
-
</component-layout-one>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script>
|
|
27
|
-
import ComponentLayoutOne from '
|
|
28
|
-
export default {
|
|
29
|
-
name: 'XTreeOne',
|
|
30
|
-
components: { ComponentLayoutOne },
|
|
31
|
-
props: {
|
|
32
|
-
// 左侧宽度
|
|
33
|
-
leftWidth: {
|
|
34
|
-
type: [Number, String],
|
|
35
|
-
default: () => {
|
|
36
|
-
return 200
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
// 左侧是否可收起
|
|
40
|
-
collapsible: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: true
|
|
43
|
-
},
|
|
44
|
-
// 左侧收起后宽度
|
|
45
|
-
collapsedWidth: {
|
|
46
|
-
type: Number,
|
|
47
|
-
default: 0
|
|
48
|
-
},
|
|
49
|
-
// Tree 树形控件数据
|
|
50
|
-
// array<{key, title, children, [disabled, selectable]}>
|
|
51
|
-
treeData: {
|
|
52
|
-
type: Array,
|
|
53
|
-
required: true
|
|
54
|
-
},
|
|
55
|
-
treeHeight: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: '85vh'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
data () {
|
|
61
|
-
return {
|
|
62
|
-
// 用于展示筛选出的数据
|
|
63
|
-
searchData: [],
|
|
64
|
-
// 查询值
|
|
65
|
-
searchValue: ''
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
created () {
|
|
69
|
-
},
|
|
70
|
-
mounted () {
|
|
71
|
-
},
|
|
72
|
-
watch: {
|
|
73
|
-
'treeData' () {
|
|
74
|
-
// 添加title插槽
|
|
75
|
-
for (const index of this.treeData.keys()) {
|
|
76
|
-
this.treeData[index].scopedSlots = { title: 'title' }
|
|
77
|
-
}
|
|
78
|
-
this.searchData = Object.assign([], this.treeData)
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
methods: {
|
|
82
|
-
onChange (e) {
|
|
83
|
-
const name = e.target.value
|
|
84
|
-
this.searchValue = name
|
|
85
|
-
this.searchData = []
|
|
86
|
-
for (const row of this.treeData) {
|
|
87
|
-
if (row.title.indexOf(name) > -1) {
|
|
88
|
-
this.searchData.push(row)
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
onSelect (selectedKeys, e) {
|
|
93
|
-
this.$emit('onSelect', selectedKeys, e)
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
</script>
|
|
98
|
-
|
|
99
|
-
<style lang="less">
|
|
100
|
-
#XTreeOne {
|
|
101
|
-
.pd-20 {
|
|
102
|
-
padding: 20px;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="XTreeOne">
|
|
3
|
+
<component-layout-one :siderProps="{width: leftWidth,collapsible: collapsible,collapsedWidth: collapsedWidth,theme: 'light'}">
|
|
4
|
+
<template slot="left">
|
|
5
|
+
<div class="bg-white pd-20" :style="{height: treeHeight}">
|
|
6
|
+
<a-input-search style="margin-bottom: 8px" placeholder="Search" allow-clear @change="onChange" />
|
|
7
|
+
<a-tree
|
|
8
|
+
:tree-data="searchData"
|
|
9
|
+
@select="onSelect">
|
|
10
|
+
<template #title="{ title }">
|
|
11
|
+
<span v-if="title.indexOf(searchValue) > -1">
|
|
12
|
+
{{ title.substr(0, title.indexOf(searchValue)) }}
|
|
13
|
+
<span style="color: #f50">{{ searchValue }}</span>
|
|
14
|
+
{{ title.substr(title.indexOf(searchValue) + searchValue.length) }}
|
|
15
|
+
</span>
|
|
16
|
+
<span v-else>{{ title }}</span>
|
|
17
|
+
</template>
|
|
18
|
+
</a-tree>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
<slot></slot>
|
|
22
|
+
</component-layout-one>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
import ComponentLayoutOne from '@vue2-client/layouts/ComponentLayoutOne'
|
|
28
|
+
export default {
|
|
29
|
+
name: 'XTreeOne',
|
|
30
|
+
components: { ComponentLayoutOne },
|
|
31
|
+
props: {
|
|
32
|
+
// 左侧宽度
|
|
33
|
+
leftWidth: {
|
|
34
|
+
type: [Number, String],
|
|
35
|
+
default: () => {
|
|
36
|
+
return 200
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
// 左侧是否可收起
|
|
40
|
+
collapsible: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
},
|
|
44
|
+
// 左侧收起后宽度
|
|
45
|
+
collapsedWidth: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: 0
|
|
48
|
+
},
|
|
49
|
+
// Tree 树形控件数据
|
|
50
|
+
// array<{key, title, children, [disabled, selectable]}>
|
|
51
|
+
treeData: {
|
|
52
|
+
type: Array,
|
|
53
|
+
required: true
|
|
54
|
+
},
|
|
55
|
+
treeHeight: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: '85vh'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
data () {
|
|
61
|
+
return {
|
|
62
|
+
// 用于展示筛选出的数据
|
|
63
|
+
searchData: [],
|
|
64
|
+
// 查询值
|
|
65
|
+
searchValue: ''
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
created () {
|
|
69
|
+
},
|
|
70
|
+
mounted () {
|
|
71
|
+
},
|
|
72
|
+
watch: {
|
|
73
|
+
'treeData' () {
|
|
74
|
+
// 添加title插槽
|
|
75
|
+
for (const index of this.treeData.keys()) {
|
|
76
|
+
this.treeData[index].scopedSlots = { title: 'title' }
|
|
77
|
+
}
|
|
78
|
+
this.searchData = Object.assign([], this.treeData)
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
methods: {
|
|
82
|
+
onChange (e) {
|
|
83
|
+
const name = e.target.value
|
|
84
|
+
this.searchValue = name
|
|
85
|
+
this.searchData = []
|
|
86
|
+
for (const row of this.treeData) {
|
|
87
|
+
if (row.title.indexOf(name) > -1) {
|
|
88
|
+
this.searchData.push(row)
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
onSelect (selectedKeys, e) {
|
|
93
|
+
this.$emit('onSelect', selectedKeys, e)
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<style lang="less">
|
|
100
|
+
#XTreeOne {
|
|
101
|
+
.pd-20 {
|
|
102
|
+
padding: 20px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
</template>
|
|
74
74
|
|
|
75
75
|
<script>
|
|
76
|
-
import { formatDate } from '
|
|
77
|
-
import { CustomerDetailsViewApi } from '
|
|
78
|
-
import { post } from '
|
|
76
|
+
import { formatDate } from '@vue2-client/utils/util'
|
|
77
|
+
import { CustomerDetailsViewApi } from '@vue2-client/services/api/CustomerDetailsViewApi'
|
|
78
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
79
79
|
import { mapState } from 'vuex'
|
|
80
80
|
|
|
81
81
|
export default {
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
# CustomerDetailsView 客户详情页
|
|
2
|
-
|
|
3
|
-
提供一个可以对单条客户进行一系列通用业务操作的抽屉实现
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## 何时使用
|
|
8
|
-
|
|
9
|
-
允许用户对单条客户进行一系列通用业务操作,常用于作为客户详情页的通用实现。
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
引用方式:
|
|
14
|
-
|
|
15
|
-
```javascript
|
|
16
|
-
import CustomerDetailsView from '
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
components: {
|
|
20
|
-
CustomerDetailsView
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## 代码演示
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<log-details-view
|
|
31
|
-
:visible.sync="detailVisible"
|
|
32
|
-
:customer-name="selectOrgName"
|
|
33
|
-
v-if="selectOrgName" />
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## API
|
|
37
|
-
|
|
38
|
-
参数 | 说明 | 类型 | 默认值
|
|
39
|
-
----|------|-----|------
|
|
40
|
-
visible | 是否显示 | Boolean | false
|
|
41
|
-
customerName | 燃气公司客户名 | String | null
|
|
1
|
+
# CustomerDetailsView 客户详情页
|
|
2
|
+
|
|
3
|
+
提供一个可以对单条客户进行一系列通用业务操作的抽屉实现
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## 何时使用
|
|
8
|
+
|
|
9
|
+
允许用户对单条客户进行一系列通用业务操作,常用于作为客户详情页的通用实现。
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
引用方式:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import CustomerDetailsView from '@vue2-client/base-client/components/CustomerDetailsView'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
components: {
|
|
20
|
+
CustomerDetailsView
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 代码演示
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<log-details-view
|
|
31
|
+
:visible.sync="detailVisible"
|
|
32
|
+
:customer-name="selectOrgName"
|
|
33
|
+
v-if="selectOrgName" />
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## API
|
|
37
|
+
|
|
38
|
+
参数 | 说明 | 类型 | 默认值
|
|
39
|
+
----|------|-----|------
|
|
40
|
+
visible | 是否显示 | Boolean | false
|
|
41
|
+
customerName | 燃气公司客户名 | String | null
|
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card
|
|
3
|
-
:closable="false"
|
|
4
|
-
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
5
|
-
@close="onClose"
|
|
6
|
-
>
|
|
7
|
-
<!--<x-form-table
|
|
8
|
-
:queryParamsName="queryParamsName"
|
|
9
|
-
:isFormShow="false"
|
|
10
|
-
ref="xtablefrom"
|
|
11
|
-
>
|
|
12
|
-
</x-form-table>-->
|
|
13
|
-
<div
|
|
14
|
-
:style="{
|
|
15
|
-
position: 'absolute',
|
|
16
|
-
bottom: 0,
|
|
17
|
-
width: '100%',
|
|
18
|
-
borderTop: '1px solid #e8e8e8',
|
|
19
|
-
padding: '10px 16px',
|
|
20
|
-
textAlign: 'right',
|
|
21
|
-
left: 0,
|
|
22
|
-
background: '#fff',
|
|
23
|
-
borderRadius: '0 0 4px 4px',
|
|
24
|
-
}"
|
|
25
|
-
>
|
|
26
|
-
</div>
|
|
27
|
-
</a-card>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
import XFormTable from '
|
|
32
|
-
import { mapState } from 'vuex'
|
|
33
|
-
export default {
|
|
34
|
-
components: {
|
|
35
|
-
XFormTable
|
|
36
|
-
},
|
|
37
|
-
data () {
|
|
38
|
-
return {
|
|
39
|
-
// 页面宽度
|
|
40
|
-
screenWidth: document.documentElement.clientWidth,
|
|
41
|
-
childrenDrawer: false,
|
|
42
|
-
queryParamsName: 'dataAnalysityQuery'
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
computed: {
|
|
46
|
-
...mapState('setting', ['isMobile'])
|
|
47
|
-
},
|
|
48
|
-
props: {
|
|
49
|
-
address: {
|
|
50
|
-
type: Object,
|
|
51
|
-
default: () => {
|
|
52
|
-
return null
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
methods: {
|
|
57
|
-
onClose () {
|
|
58
|
-
this.$emit('onClose')
|
|
59
|
-
},
|
|
60
|
-
searchComm () {
|
|
61
|
-
console.log('看看走动没')
|
|
62
|
-
this.$refs.xtablefrom.getColumnsJson()
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
watch: {
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
</script>
|
|
69
|
-
|
|
70
|
-
<style lang="less" scoped>
|
|
71
|
-
.detail-layout {
|
|
72
|
-
margin-left: 44px;
|
|
73
|
-
}
|
|
74
|
-
.text {
|
|
75
|
-
color: rgba(0, 0, 0, .45);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.heading {
|
|
79
|
-
color: rgba(0, 0, 0, .85);
|
|
80
|
-
font-size: 20px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.no-data {
|
|
84
|
-
color: rgba(0, 0, 0, .25);
|
|
85
|
-
text-align: center;
|
|
86
|
-
line-height: 64px;
|
|
87
|
-
font-size: 16px;
|
|
88
|
-
|
|
89
|
-
i {
|
|
90
|
-
font-size: 24px;
|
|
91
|
-
margin-right: 16px;
|
|
92
|
-
position: relative;
|
|
93
|
-
top: 3px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.mobile {
|
|
98
|
-
.detail-layout {
|
|
99
|
-
margin-left: unset;
|
|
100
|
-
}
|
|
101
|
-
.text {
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
.status-list {
|
|
105
|
-
text-align: left;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.row {
|
|
110
|
-
display: flex;
|
|
111
|
-
|
|
112
|
-
.content {
|
|
113
|
-
-webkit-box-flex: 1;
|
|
114
|
-
flex: auto;
|
|
115
|
-
-ms-flex: auto;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.extra {
|
|
119
|
-
flex: 0 1 auto;
|
|
120
|
-
-webkit-box-flex: 0;
|
|
121
|
-
-ms-flex: 0 1 auto;
|
|
122
|
-
min-width: 242px;
|
|
123
|
-
margin-left: 88px;
|
|
124
|
-
text-align: right;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<a-card
|
|
3
|
+
:closable="false"
|
|
4
|
+
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
5
|
+
@close="onClose"
|
|
6
|
+
>
|
|
7
|
+
<!--<x-form-table
|
|
8
|
+
:queryParamsName="queryParamsName"
|
|
9
|
+
:isFormShow="false"
|
|
10
|
+
ref="xtablefrom"
|
|
11
|
+
>
|
|
12
|
+
</x-form-table>-->
|
|
13
|
+
<div
|
|
14
|
+
:style="{
|
|
15
|
+
position: 'absolute',
|
|
16
|
+
bottom: 0,
|
|
17
|
+
width: '100%',
|
|
18
|
+
borderTop: '1px solid #e8e8e8',
|
|
19
|
+
padding: '10px 16px',
|
|
20
|
+
textAlign: 'right',
|
|
21
|
+
left: 0,
|
|
22
|
+
background: '#fff',
|
|
23
|
+
borderRadius: '0 0 4px 4px',
|
|
24
|
+
}"
|
|
25
|
+
>
|
|
26
|
+
</div>
|
|
27
|
+
</a-card>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
32
|
+
import { mapState } from 'vuex'
|
|
33
|
+
export default {
|
|
34
|
+
components: {
|
|
35
|
+
XFormTable
|
|
36
|
+
},
|
|
37
|
+
data () {
|
|
38
|
+
return {
|
|
39
|
+
// 页面宽度
|
|
40
|
+
screenWidth: document.documentElement.clientWidth,
|
|
41
|
+
childrenDrawer: false,
|
|
42
|
+
queryParamsName: 'dataAnalysityQuery'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
computed: {
|
|
46
|
+
...mapState('setting', ['isMobile'])
|
|
47
|
+
},
|
|
48
|
+
props: {
|
|
49
|
+
address: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: () => {
|
|
52
|
+
return null
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
onClose () {
|
|
58
|
+
this.$emit('onClose')
|
|
59
|
+
},
|
|
60
|
+
searchComm () {
|
|
61
|
+
console.log('看看走动没')
|
|
62
|
+
this.$refs.xtablefrom.getColumnsJson()
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
watch: {
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<style lang="less" scoped>
|
|
71
|
+
.detail-layout {
|
|
72
|
+
margin-left: 44px;
|
|
73
|
+
}
|
|
74
|
+
.text {
|
|
75
|
+
color: rgba(0, 0, 0, .45);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.heading {
|
|
79
|
+
color: rgba(0, 0, 0, .85);
|
|
80
|
+
font-size: 20px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.no-data {
|
|
84
|
+
color: rgba(0, 0, 0, .25);
|
|
85
|
+
text-align: center;
|
|
86
|
+
line-height: 64px;
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
|
|
89
|
+
i {
|
|
90
|
+
font-size: 24px;
|
|
91
|
+
margin-right: 16px;
|
|
92
|
+
position: relative;
|
|
93
|
+
top: 3px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.mobile {
|
|
98
|
+
.detail-layout {
|
|
99
|
+
margin-left: unset;
|
|
100
|
+
}
|
|
101
|
+
.text {
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
.status-list {
|
|
105
|
+
text-align: left;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.row {
|
|
110
|
+
display: flex;
|
|
111
|
+
|
|
112
|
+
.content {
|
|
113
|
+
-webkit-box-flex: 1;
|
|
114
|
+
flex: auto;
|
|
115
|
+
-ms-flex: auto;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.extra {
|
|
119
|
+
flex: 0 1 auto;
|
|
120
|
+
-webkit-box-flex: 0;
|
|
121
|
+
-ms-flex: 0 1 auto;
|
|
122
|
+
min-width: 242px;
|
|
123
|
+
margin-left: 88px;
|
|
124
|
+
text-align: right;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
</style>
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
<script type="text/javascript" src="https://a.amap.com/jsapi_demos/static/demo-center-v2/mock_data/cities.js"></script>
|
|
66
66
|
<script>
|
|
67
67
|
import UserData from '../../../../components/dataAnalysisView/UserData'
|
|
68
|
-
import DataUserReporting from '
|
|
69
|
-
import DataUserSituation from '
|
|
70
|
-
import DataUserOrderSituation from '
|
|
71
|
-
import XFormTable from '
|
|
68
|
+
import DataUserReporting from '@vue2-client/components/Charts/DataUserReporting'
|
|
69
|
+
import DataUserSituation from '@vue2-client/components/Charts/DataUserSituation'
|
|
70
|
+
import DataUserOrderSituation from '@vue2-client/components/Charts/DataUserOrderSituation'
|
|
71
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
72
72
|
import { post } from '../../../../services/api/restTools'
|
|
73
|
-
import { WindowInfotemp } from '
|
|
73
|
+
import { WindowInfotemp } from '@vue2-client/base-client/components/iot/DataAnalysisViewGD/WindowTemplate'
|
|
74
74
|
|
|
75
75
|
export default {
|
|
76
76
|
components: {
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
|
|
116
116
|
<script>
|
|
117
117
|
import JsonViewer from 'vue-json-viewer'
|
|
118
|
-
import XFormTable from '
|
|
119
|
-
import { DeviceBrandDetailsViewApi } from '
|
|
120
|
-
import { post } from '
|
|
118
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
119
|
+
import { DeviceBrandDetailsViewApi } from '@vue2-client/services/api/DeviceBrandDetailsViewApi'
|
|
120
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
121
121
|
import { mapGetters, mapState } from 'vuex'
|
|
122
122
|
|
|
123
123
|
const leftTableColumns = [
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
|
|
59
59
|
<script>
|
|
60
|
-
import { DeviceDetailsMain, DeviceDetailsCount, DeviceDetailsInstruct, DeviceDetailsRead, DeviceDetailsSingular, DeviceDetailsInstructOperate } from '
|
|
61
|
-
import { post } from '
|
|
60
|
+
import { DeviceDetailsMain, DeviceDetailsCount, DeviceDetailsInstruct, DeviceDetailsRead, DeviceDetailsSingular, DeviceDetailsInstructOperate } from '@vue2-client/base-client/components/iot/DeviceDetailsView/part'
|
|
61
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
62
62
|
import { mapState } from 'vuex'
|
|
63
|
-
import { DeviceDetailsViewApi } from '
|
|
63
|
+
import { DeviceDetailsViewApi } from '@vue2-client/services/api/DeviceDetailsViewApi'
|
|
64
64
|
|
|
65
65
|
export default {
|
|
66
66
|
name: 'DeviceDetailsView',
|