vue2-client 1.3.0 → 1.3.3
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 +9 -1
- package/index.js +30 -28
- package/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -163
- package/src/base-client/components/common/Upload/Upload.vue +161 -158
- package/src/base-client/components/common/XAddForm/XAddForm.vue +349 -349
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +321 -322
- package/src/base-client/components/common/XForm/XForm.vue +273 -268
- package/src/base-client/components/common/XForm/XFormItem.vue +387 -371
- package/src/base-client/components/common/XFormTable/XFormTable.vue +8 -7
- package/src/base-client/components/common/XTable/XTable.vue +278 -274
- package/src/base-client/components/{iot → system}/LogDetailsView/LogDetailsView.vue +0 -0
- package/src/base-client/components/{iot → system}/LogDetailsView/index.js +0 -0
- package/src/base-client/components/{iot → system}/LogDetailsView/index.md +0 -0
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -280
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +806 -804
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +24 -24
- package/src/base-client/plugins/PagedList.js +177 -176
- package/src/components/STable/index.js +318 -316
- package/src/components/index.js +36 -36
- package/src/components/table/StandardTable.vue +141 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/layouts/header/AdminHeader.vue +104 -109
- package/src/layouts/header/HeaderNotice.vue +167 -199
- package/src/layouts/header/InstitutionDetail.vue +181 -182
- package/src/pages/CreateQueryPage.vue +65 -59
- package/src/pages/system/dictionary/index.vue +43 -41
- package/src/pages/system/file/Info.vue +56 -0
- package/src/pages/system/file/index.vue +317 -0
- package/src/pages/system/queryParams/index.vue +43 -41
- package/src/pages/system/ticket/index.vue +458 -452
- package/src/pages/system/ticket/submitTicketSuccess.vue +206 -203
- package/src/router/async/config.async.js +2 -1
- package/src/router/async/router.map.js +56 -60
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +42 -40
- package/src/services/api/commonTempTable.js +10 -0
- package/src/services/api/index.js +2 -24
- package/src/services/api/manage.js +8 -16
- package/src/utils/excel/Blob.js +181 -181
- package/src/utils/excel/Export2Excel.js +141 -142
- package/src/utils/i18n.js +80 -80
- package/src/utils/request.js +4 -4
- package/src/utils/routerUtil.js +358 -350
- package/src/utils/theme-color-replacer-extend.js +91 -92
- package/vue.config.js +109 -163
- package/src/base-client/all.js +0 -62
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +0 -225
- package/src/base-client/components/iot/CustomerDetailsView/index.js +0 -3
- package/src/base-client/components/iot/CustomerDetailsView/index.md +0 -40
- package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +0 -127
- package/src/base-client/components/iot/DataAnalysisUser/index.js +0 -3
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +0 -452
- package/src/base-client/components/iot/DeviceBrandDetailsView/index.js +0 -3
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +0 -232
- package/src/base-client/components/iot/DeviceDetailsView/index.js +0 -3
- package/src/base-client/components/iot/DeviceDetailsView/index.md +0 -41
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +0 -678
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +0 -57
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +0 -122
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +0 -121
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +0 -269
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +0 -131
- package/src/base-client/components/iot/DeviceDetailsView/part/index.js +0 -8
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +0 -300
- package/src/base-client/components/iot/DeviceTypeDetailsView/index.js +0 -3
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +0 -464
- package/src/base-client/components/iot/InstructDetailsView/index.js +0 -3
- package/src/base-client/components/iot/InstructDetailsView/index.md +0 -43
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +0 -352
- package/src/base-client/components/iot/MeterDetailsView/index.js +0 -3
- package/src/base-client/components/iot/MeterDetailsView/index.md +0 -41
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +0 -330
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +0 -179
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +0 -285
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +0 -230
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +0 -251
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +0 -184
- package/src/base-client/components/iot/MeterDetailsView/part/index.js +0 -9
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +0 -960
- package/src/base-client/components/iot/WebmeterAnalysisView/index.js +0 -3
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +0 -42
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +0 -370
- package/src/base-client/components/ticket/EmployeeDetailsView/index.js +0 -3
- package/src/base-client/components/ticket/EmployeeDetailsView/index.md +0 -28
- package/src/components/Charts/DataUserOrderSituation.vue +0 -77
- package/src/components/Charts/DataUserReporting.vue +0 -74
- package/src/components/Charts/DataUserSituation.vue +0 -107
- package/src/services/api/CustomerDetailsViewApi.js +0 -6
- package/src/services/api/DeviceBrandDetailsViewApi.js +0 -14
- package/src/services/api/DeviceDetailsViewApi.js +0 -10
- package/src/services/api/DeviceTypeDetailsViewApi.js +0 -6
- package/src/services/api/EmployeeDetailsViewApi.js +0 -12
- package/src/services/api/FormGroupEditApi.js +0 -6
- package/src/services/api/InstructDetailsViewApi.js +0 -12
- package/src/services/api/MeterDetailsViewApi.js +0 -24
- package/src/services/api/WebmeterAnalysisViewApi.js +0 -24
- package/src/services/api/applyInstallApi.js +0 -14
- package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +0 -18
- package/src/services/api/iot.js +0 -7
- package/src/services/api/service.js +0 -12
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card :bordered="false">
|
|
3
|
-
<x-form-table
|
|
4
|
-
v-if="tabActiveKey === '1'"
|
|
5
|
-
:queryParamsName="queryParamsName"
|
|
6
|
-
:fixedQueryForm="fixedQueryForm"
|
|
7
|
-
@onSubmit="onSubmit"
|
|
8
|
-
@action="toDetail">
|
|
9
|
-
</x-form-table>
|
|
10
|
-
</a-card>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
name: 'DeviceDetailsException',
|
|
18
|
-
components: {
|
|
19
|
-
XFormTable
|
|
20
|
-
},
|
|
21
|
-
data () {
|
|
22
|
-
return {
|
|
23
|
-
// 选中的异常编号
|
|
24
|
-
selectSingularId: undefined,
|
|
25
|
-
tabActiveKey: undefined,
|
|
26
|
-
fixedQueryForm: {},
|
|
27
|
-
// 查询配置文件名
|
|
28
|
-
queryParamsName: 'deviceToExceptionQueryParams',
|
|
29
|
-
// 是否显示设置设备参数详情抽屉
|
|
30
|
-
detailVisible: false
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
props: {
|
|
34
|
-
deviceId: {
|
|
35
|
-
type: Number,
|
|
36
|
-
required: true
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
mounted () {
|
|
40
|
-
this.initView()
|
|
41
|
-
},
|
|
42
|
-
methods: {
|
|
43
|
-
initView () {
|
|
44
|
-
this.tabActiveKey = '1'
|
|
45
|
-
this.fixedQueryForm['e_f_device_id'] = this.deviceId
|
|
46
|
-
},
|
|
47
|
-
onSubmit (res) {
|
|
48
|
-
res.form['e_f_device_id'] = this.deviceId
|
|
49
|
-
this.$emit('onSubmit', res)
|
|
50
|
-
},
|
|
51
|
-
toDetail (record, id) {
|
|
52
|
-
// this.selectSingularId = record.id + ''
|
|
53
|
-
// this.detailVisible = true
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
</script>
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<x-form-table
|
|
4
|
-
title="指令"
|
|
5
|
-
v-if="tabActiveKey === '1'"
|
|
6
|
-
:queryParamsName="queryParamsName"
|
|
7
|
-
:fixedQueryForm="fixedQueryForm"
|
|
8
|
-
@action="toDetail">
|
|
9
|
-
</x-form-table>
|
|
10
|
-
<instruct-details-view
|
|
11
|
-
:visible.sync="detailsViewVisible"
|
|
12
|
-
:instructid="selectInstructId"
|
|
13
|
-
:isShowUserFiles="isShowUserFiles"
|
|
14
|
-
v-if="selectInstructId"
|
|
15
|
-
/>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
<script>
|
|
19
|
-
|
|
20
|
-
import { STable, Ellipsis } from '@vue2-client/components'
|
|
21
|
-
import { formatDate } from '@vue2-client/utils/util'
|
|
22
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
name: 'DeviceDetailsInstruct',
|
|
26
|
-
components: {
|
|
27
|
-
STable,
|
|
28
|
-
Ellipsis,
|
|
29
|
-
XFormTable
|
|
30
|
-
},
|
|
31
|
-
props: {
|
|
32
|
-
deviceNo: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: true
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
data () {
|
|
38
|
-
return {
|
|
39
|
-
selectInstructId: undefined,
|
|
40
|
-
tabActiveKey: undefined,
|
|
41
|
-
fixedQueryForm: {},
|
|
42
|
-
detailsViewVisible: false,
|
|
43
|
-
// 加载数据方法 必须为 Promise 对象
|
|
44
|
-
selectedRowKeys: [],
|
|
45
|
-
selectedRows: [],
|
|
46
|
-
queryParamsName: 'deviceToInstructQueryParams',
|
|
47
|
-
isShowUserFiles: false
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
computed: {
|
|
51
|
-
rowSelection () {
|
|
52
|
-
return {
|
|
53
|
-
selectedRowKeys: this.selectedRowKeys,
|
|
54
|
-
onChange: this.onSelectChange
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
mounted () {
|
|
59
|
-
this.initView()
|
|
60
|
-
},
|
|
61
|
-
methods: {
|
|
62
|
-
initView () {
|
|
63
|
-
this.tabActiveKey = '1'
|
|
64
|
-
this.fixedQueryForm['t_f_meternumber'] = this.deviceNo
|
|
65
|
-
},
|
|
66
|
-
refresh () {
|
|
67
|
-
this.$refs.table.refresh(true)
|
|
68
|
-
},
|
|
69
|
-
onSelectChange (selectedRowKeys, selectedRows) {
|
|
70
|
-
this.selectedRowKeys = selectedRowKeys
|
|
71
|
-
this.selectedRows = selectedRows
|
|
72
|
-
},
|
|
73
|
-
format (date, format) {
|
|
74
|
-
return formatDate(date, format)
|
|
75
|
-
},
|
|
76
|
-
toDetail (record) {
|
|
77
|
-
this.selectInstructId = record.id + ''
|
|
78
|
-
this.detailsViewVisible = true
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
</script>
|
|
83
|
-
|
|
84
|
-
<style lang='less' scoped>
|
|
85
|
-
.detail-layout {
|
|
86
|
-
margin-left: 44px
|
|
87
|
-
}
|
|
88
|
-
.text {
|
|
89
|
-
color: rgba(0, 0, 0, .45)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.heading {
|
|
93
|
-
color: rgba(0, 0, 0, .85);
|
|
94
|
-
font-size: 20px
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.no-data {
|
|
98
|
-
color: rgba(0, 0, 0, .25);
|
|
99
|
-
text-align: center;
|
|
100
|
-
line-height: 64px;
|
|
101
|
-
font-size: 16px
|
|
102
|
-
|
|
103
|
-
/*i {*/
|
|
104
|
-
/* font-size: 24px*/
|
|
105
|
-
/* margin-right: 16px*/
|
|
106
|
-
/* position: relative*/
|
|
107
|
-
/* top: 3px*/
|
|
108
|
-
/*}*/
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.mobile {
|
|
112
|
-
.detail-layout {
|
|
113
|
-
margin-left: unset
|
|
114
|
-
}
|
|
115
|
-
.text {
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
.status-list {
|
|
119
|
-
text-align: left
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
</style>
|
package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-if="details">
|
|
3
|
-
<div v-for="item in details" :key="item">
|
|
4
|
-
<div style="margin-top: 20px;margin-left: 20px">
|
|
5
|
-
<p> <a-button type="primary" @click="submit(item)" style="width: 150px;margin-right: 30px"> {{ item.f_name }} </a-button>
|
|
6
|
-
{{ item.f_describe }}
|
|
7
|
-
</p>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
<script>
|
|
13
|
-
|
|
14
|
-
import { STable, Ellipsis } from '@vue2-client/components'
|
|
15
|
-
import { DeviceDetailsViewApi, post } from '@vue2-client/services/api'
|
|
16
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
name: 'DeviceDetailsInstructOperate',
|
|
20
|
-
components: {
|
|
21
|
-
STable,
|
|
22
|
-
Ellipsis,
|
|
23
|
-
XFormTable
|
|
24
|
-
},
|
|
25
|
-
props: {
|
|
26
|
-
device: {
|
|
27
|
-
type: Object,
|
|
28
|
-
required: true
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
data () {
|
|
32
|
-
return {
|
|
33
|
-
// 加载数据方法 必须为 Promise 对象
|
|
34
|
-
selectedRowKeys: [],
|
|
35
|
-
selectedRows: [],
|
|
36
|
-
details: undefined
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
computed: {
|
|
40
|
-
},
|
|
41
|
-
mounted () {
|
|
42
|
-
this.initView()
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
initView () {
|
|
46
|
-
return post(DeviceDetailsViewApi.getDeviceInstructOperate, {
|
|
47
|
-
id: this.device.deviceid
|
|
48
|
-
}).then(res => {
|
|
49
|
-
this.details = res
|
|
50
|
-
}, err => {
|
|
51
|
-
console.error(err)
|
|
52
|
-
})
|
|
53
|
-
},
|
|
54
|
-
submit (item) {
|
|
55
|
-
const _this = this
|
|
56
|
-
this.$confirm({
|
|
57
|
-
title: '您确定要对档案生成' + item.f_name + '指令吗?',
|
|
58
|
-
content: '生成指令后,可以在指令界面查看和操作',
|
|
59
|
-
okText: '确定',
|
|
60
|
-
okType: 'danger',
|
|
61
|
-
cancelText: '取消',
|
|
62
|
-
onOk () {
|
|
63
|
-
return post(DeviceDetailsViewApi.saveInstructOperate, {
|
|
64
|
-
device: _this.device,
|
|
65
|
-
instruct: item
|
|
66
|
-
}).then(res => {
|
|
67
|
-
console.log(res)
|
|
68
|
-
})
|
|
69
|
-
}
|
|
70
|
-
})
|
|
71
|
-
},
|
|
72
|
-
refresh () {
|
|
73
|
-
this.$refs.table.refresh(true)
|
|
74
|
-
},
|
|
75
|
-
onSelectChange (selectedRowKeys, selectedRows) {
|
|
76
|
-
this.selectedRowKeys = selectedRowKeys
|
|
77
|
-
this.selectedRows = selectedRows
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
</script>
|
|
82
|
-
|
|
83
|
-
<style lang='less' scoped>
|
|
84
|
-
.detail-layout {
|
|
85
|
-
margin-left: 44px
|
|
86
|
-
}
|
|
87
|
-
.text {
|
|
88
|
-
color: rgba(0, 0, 0, .45)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.heading {
|
|
92
|
-
color: rgba(0, 0, 0, .85);
|
|
93
|
-
font-size: 20px
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.no-data {
|
|
97
|
-
color: rgba(0, 0, 0, .25);
|
|
98
|
-
text-align: center;
|
|
99
|
-
line-height: 64px;
|
|
100
|
-
font-size: 16px
|
|
101
|
-
|
|
102
|
-
/*i {*/
|
|
103
|
-
/* font-size: 24px*/
|
|
104
|
-
/* margin-right: 16px*/
|
|
105
|
-
/* position: relative*/
|
|
106
|
-
/* top: 3px*/
|
|
107
|
-
/*}*/
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.mobile {
|
|
111
|
-
.detail-layout {
|
|
112
|
-
margin-left: unset
|
|
113
|
-
}
|
|
114
|
-
.text {
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
.status-list {
|
|
118
|
-
text-align: left
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
</style>
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-row :gutter="24">
|
|
4
|
-
<a-col :span="12">
|
|
5
|
-
<a-card :bordered="false" title="基本信息">
|
|
6
|
-
<a-row>
|
|
7
|
-
<a-col :span="8">
|
|
8
|
-
<device-brand-details-view
|
|
9
|
-
:visible.sync="deviceBrandDetailVisible"
|
|
10
|
-
:brand-id="details.f_brand_id"
|
|
11
|
-
v-if="details.f_brand_id"
|
|
12
|
-
/>
|
|
13
|
-
<a-card-grid class="card_guid" @click="toggleDeviceBrandDetailsView">
|
|
14
|
-
<a-icon type="project" :style="{ fontSize: '24px'} "/>
|
|
15
|
-
<p class="card_details_title">设备品牌</p>
|
|
16
|
-
<a-tooltip>
|
|
17
|
-
<template slot="title">
|
|
18
|
-
{{ details.f_brand }}
|
|
19
|
-
</template>
|
|
20
|
-
<p class="card_details_value">{{ details.f_brand }}</p>
|
|
21
|
-
</a-tooltip>
|
|
22
|
-
</a-card-grid>
|
|
23
|
-
</a-col>
|
|
24
|
-
<a-col :span="8">
|
|
25
|
-
<device-type-details-view
|
|
26
|
-
:visible.sync="deviceTypeDetailVisible"
|
|
27
|
-
:type-id="details.f_type_id"
|
|
28
|
-
v-if="details.f_type_id"
|
|
29
|
-
/>
|
|
30
|
-
<a-card-grid class="card_guid" @click="toggleDeviceTypeDetailsView">
|
|
31
|
-
<a-icon type="api" :style="{ fontSize: '24px'} "/>
|
|
32
|
-
<p class="card_details_title">设备类型</p>
|
|
33
|
-
<a-tooltip>
|
|
34
|
-
<template slot="title">
|
|
35
|
-
{{ details.f_name }}
|
|
36
|
-
</template>
|
|
37
|
-
<p class="card_details_value">{{ details.f_name }}</p>
|
|
38
|
-
</a-tooltip>
|
|
39
|
-
</a-card-grid>
|
|
40
|
-
</a-col>
|
|
41
|
-
<a-col :span="8">
|
|
42
|
-
<a-card-grid class="card_guid">
|
|
43
|
-
<a-icon type="profile" :style="{ fontSize: '24px'} "/>
|
|
44
|
-
<p class="card_details_title">设备号</p>
|
|
45
|
-
<a-tooltip>
|
|
46
|
-
<template slot="title">
|
|
47
|
-
{{ details.f_device_no }}
|
|
48
|
-
</template>
|
|
49
|
-
<p class="card_details_value">{{ details.f_device_no }}</p>
|
|
50
|
-
</a-tooltip>
|
|
51
|
-
</a-card-grid>
|
|
52
|
-
</a-col>
|
|
53
|
-
</a-row>
|
|
54
|
-
<a-row>
|
|
55
|
-
<a-col :span="8">
|
|
56
|
-
<a-card-grid class="card_guid">
|
|
57
|
-
<a-icon type="pushpin" :style="{ fontSize: '24px'} "/>
|
|
58
|
-
<p class="card_details_title">设备厂家</p>
|
|
59
|
-
<a-tooltip>
|
|
60
|
-
<template slot="title">
|
|
61
|
-
{{ details.f_manufactor }}
|
|
62
|
-
</template>
|
|
63
|
-
<p class="card_details_value">{{ details.f_manufactor }}</p>
|
|
64
|
-
</a-tooltip>
|
|
65
|
-
</a-card-grid>
|
|
66
|
-
</a-col>
|
|
67
|
-
<a-col :span="8">
|
|
68
|
-
<a-card-grid class="card_guid">
|
|
69
|
-
<a-icon type="select" :style="{ fontSize: '24px'} "/>
|
|
70
|
-
<p class="card_details_title">设备型号</p>
|
|
71
|
-
<a-tooltip>
|
|
72
|
-
<template slot="title">
|
|
73
|
-
{{ details.f_model }}
|
|
74
|
-
</template>
|
|
75
|
-
<p class="card_details_value">{{ details.f_model }}</p>
|
|
76
|
-
</a-tooltip>
|
|
77
|
-
</a-card-grid>
|
|
78
|
-
</a-col>
|
|
79
|
-
<a-col :span="8">
|
|
80
|
-
<a-card-grid class="card_guid">
|
|
81
|
-
<a-icon type="tool" :style="{ fontSize: '24px'} "/>
|
|
82
|
-
<p class="card_details_title">设备别名</p>
|
|
83
|
-
<a-tooltip>
|
|
84
|
-
<template slot="title">
|
|
85
|
-
{{ details.f_alias }}
|
|
86
|
-
</template>
|
|
87
|
-
<p class="card_details_value">{{ details.f_alias }}</p>
|
|
88
|
-
</a-tooltip>
|
|
89
|
-
</a-card-grid>
|
|
90
|
-
</a-col>
|
|
91
|
-
</a-row>
|
|
92
|
-
<a-row>
|
|
93
|
-
<a-col :span="8">
|
|
94
|
-
<a-card-grid class="card_guid">
|
|
95
|
-
<a-icon type="pay-circle" :style="{ fontSize: '24px'} "/>
|
|
96
|
-
<p class="card_details_title">IMEI码</p>
|
|
97
|
-
<a-tooltip>
|
|
98
|
-
<template slot="title">
|
|
99
|
-
{{ details.f_imei }}
|
|
100
|
-
</template>
|
|
101
|
-
<p class="card_details_value">{{ details.f_imei }}</p>
|
|
102
|
-
</a-tooltip>
|
|
103
|
-
</a-card-grid>
|
|
104
|
-
</a-col>
|
|
105
|
-
<a-col :span="8">
|
|
106
|
-
<a-card-grid class="card_guid">
|
|
107
|
-
<a-icon type="bg-colors" :style="{ fontSize: '24px'} "/>
|
|
108
|
-
<p class="card_details_title">IMSI码</p>
|
|
109
|
-
<a-tooltip>
|
|
110
|
-
<template slot="title">
|
|
111
|
-
{{ details.f_imsi }}
|
|
112
|
-
</template>
|
|
113
|
-
<p class="card_details_value">{{ details.f_imsi }}</p>
|
|
114
|
-
</a-tooltip>
|
|
115
|
-
</a-card-grid>
|
|
116
|
-
</a-col>
|
|
117
|
-
</a-row>
|
|
118
|
-
</a-card>
|
|
119
|
-
</a-col>
|
|
120
|
-
<a-col :span="12">
|
|
121
|
-
<a-card :bordered="false" title="设备位置" :loading="loading">
|
|
122
|
-
<AmapPointRendering :markers="details.f_install_lng_lat" :describeList="describeList" :mapStyle="{width: '100%',height: '381px',border: '2px solid lightgray','border-radius': '5px'}"/>
|
|
123
|
-
</a-card>
|
|
124
|
-
</a-col>
|
|
125
|
-
</a-row>
|
|
126
|
-
<a-row>
|
|
127
|
-
<a-card :bordered="false" title="业务操作记录" :loading="loading">
|
|
128
|
-
<a-button @click="getWorkFlow()" type="primary">刷新</a-button>
|
|
129
|
-
<a-timeline pending="持续记录中..." :reverse="true" mode="alternate" style="max-width: 800px;margin: 0 auto;">
|
|
130
|
-
<a-timeline-item v-if="index < 3 ? true : advanced" :key="index" v-for="(value,index) in workList" color="green">
|
|
131
|
-
<div style="color: #0d1a26;font-weight: 500;">
|
|
132
|
-
<span style="font-size: 16px;">{{ value.name }}</span>
|
|
133
|
-
<span style="margin-left: 5px;">({{ value.type }},{{ format(value.date,'yyyy-MM-dd hh:mm:ss') }})</span>
|
|
134
|
-
</div>
|
|
135
|
-
<div class="antd-pro-pages-profile-advanced-style-stepDescription" >
|
|
136
|
-
状态:{{ value.state }}
|
|
137
|
-
</div>
|
|
138
|
-
<div class="antd-pro-pages-profile-advanced-style-stepDescription">
|
|
139
|
-
相关信息:<br/><p style="margin-left: 2em;">{{ value.info }}</p>
|
|
140
|
-
</div>
|
|
141
|
-
</a-timeline-item>
|
|
142
|
-
</a-timeline>
|
|
143
|
-
<a-col :md="!advanced && 8 || 24" :sm="24" v-if="workList.length > 3">
|
|
144
|
-
<span class="table-page-search-submitButtons" :style="advanced && { float: 'right', overflow: 'hidden' } || {} ">
|
|
145
|
-
<a @click="toggleAdvanced" style="margin-left: 8px">
|
|
146
|
-
{{ advanced ? '收起' : '展开' }}
|
|
147
|
-
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
148
|
-
</a>
|
|
149
|
-
</span>
|
|
150
|
-
</a-col>
|
|
151
|
-
</a-card>
|
|
152
|
-
</a-row>
|
|
153
|
-
</div>
|
|
154
|
-
</template>
|
|
155
|
-
<script>
|
|
156
|
-
import { formatDate } from '@vue2-client/utils/util'
|
|
157
|
-
import { mapState } from 'vuex'
|
|
158
|
-
|
|
159
|
-
export default {
|
|
160
|
-
name: 'DeviceDetailsMain',
|
|
161
|
-
props: {
|
|
162
|
-
details: {
|
|
163
|
-
type: Object,
|
|
164
|
-
required: true
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
computed: {
|
|
168
|
-
...mapState('setting', ['isMobile'])
|
|
169
|
-
},
|
|
170
|
-
mounted () {
|
|
171
|
-
},
|
|
172
|
-
data () {
|
|
173
|
-
return {
|
|
174
|
-
// 历史操作 展开/关闭
|
|
175
|
-
advanced: false,
|
|
176
|
-
workList: [],
|
|
177
|
-
loading: false,
|
|
178
|
-
describeList: [
|
|
179
|
-
{ describe: '设备号', field: 'f_device_no' },
|
|
180
|
-
{ describe: '设备型号', field: 'f_brand' }
|
|
181
|
-
],
|
|
182
|
-
// 设备品牌详情抽屉
|
|
183
|
-
deviceBrandDetailVisible: false,
|
|
184
|
-
// 设备类型详情抽屉
|
|
185
|
-
deviceTypeDetailVisible: false
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
methods: {
|
|
189
|
-
format (date, format) {
|
|
190
|
-
return formatDate(date, format)
|
|
191
|
-
},
|
|
192
|
-
toggleAdvanced () {
|
|
193
|
-
this.advanced = !this.advanced
|
|
194
|
-
},
|
|
195
|
-
toggleDeviceBrandDetailsView () {
|
|
196
|
-
this.deviceBrandDetailVisible = !this.deviceBrandDetailVisible
|
|
197
|
-
},
|
|
198
|
-
toggleDeviceTypeDetailsView () {
|
|
199
|
-
this.deviceTypeDetailVisible = !this.deviceTypeDetailVisible
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
watch: {
|
|
203
|
-
'userid' () {
|
|
204
|
-
this.getWorkFlow()
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
</script>
|
|
209
|
-
|
|
210
|
-
<style lang="less" scoped>
|
|
211
|
-
.card_details_title {
|
|
212
|
-
margin: 4px 0;
|
|
213
|
-
font-size: 14px;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.card_details_value {
|
|
217
|
-
font-size: 16px;
|
|
218
|
-
font-weight: bold;
|
|
219
|
-
color: #444;
|
|
220
|
-
margin-bottom: 0;
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
text-overflow:ellipsis;
|
|
223
|
-
white-space: nowrap;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.card_guid {
|
|
227
|
-
width: 100%;
|
|
228
|
-
text-align:left;
|
|
229
|
-
cursor: pointer;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.detail-layout {
|
|
233
|
-
margin-left: 44px;
|
|
234
|
-
}
|
|
235
|
-
.text {
|
|
236
|
-
color: rgba(0, 0, 0, .45);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.heading {
|
|
240
|
-
color: rgba(0, 0, 0, .85);
|
|
241
|
-
font-size: 20px;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.no-data {
|
|
245
|
-
color: rgba(0, 0, 0, .25);
|
|
246
|
-
text-align: center;
|
|
247
|
-
line-height: 64px;
|
|
248
|
-
font-size: 16px;
|
|
249
|
-
|
|
250
|
-
i {
|
|
251
|
-
font-size: 24px;
|
|
252
|
-
margin-right: 16px;
|
|
253
|
-
position: relative;
|
|
254
|
-
top: 3px;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.mobile {
|
|
259
|
-
.detail-layout {
|
|
260
|
-
margin-left: unset;
|
|
261
|
-
}
|
|
262
|
-
.text {
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
.status-list {
|
|
266
|
-
text-align: left;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
</style>
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<x-form-table
|
|
4
|
-
:logicName="logicName"
|
|
5
|
-
:logicParam="logicParam"
|
|
6
|
-
:fixedQueryForm="fixedQueryForm"
|
|
7
|
-
@onSubmit="onSubmit"
|
|
8
|
-
@action="toDetail">
|
|
9
|
-
</x-form-table>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
<script>
|
|
13
|
-
|
|
14
|
-
import { STable, Ellipsis } from '@vue2-client/components'
|
|
15
|
-
import { formatDate } from '@vue2-client/utils/util'
|
|
16
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
name: 'DeviceDetailsInstruct',
|
|
20
|
-
components: {
|
|
21
|
-
STable,
|
|
22
|
-
Ellipsis,
|
|
23
|
-
XFormTable
|
|
24
|
-
},
|
|
25
|
-
props: {
|
|
26
|
-
deviceId: {
|
|
27
|
-
type: Number,
|
|
28
|
-
required: true
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
data () {
|
|
32
|
-
return {
|
|
33
|
-
selectInstructId: undefined,
|
|
34
|
-
startForm: {},
|
|
35
|
-
fixedQueryForm: {},
|
|
36
|
-
detailsViewVisible: false,
|
|
37
|
-
// 加载数据方法 必须为 Promise 对象
|
|
38
|
-
selectedRowKeys: [],
|
|
39
|
-
selectedRows: [],
|
|
40
|
-
logicName: 'getIotRead',
|
|
41
|
-
logicParam: null,
|
|
42
|
-
// 默认表格数据
|
|
43
|
-
defaultData: {
|
|
44
|
-
data: [],
|
|
45
|
-
pageSize: 0,
|
|
46
|
-
pageNo: 0,
|
|
47
|
-
totalPage: 0,
|
|
48
|
-
totalCount: 0
|
|
49
|
-
},
|
|
50
|
-
isShowUserFiles: false
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
computed: {
|
|
54
|
-
rowSelection () {
|
|
55
|
-
return {
|
|
56
|
-
selectedRowKeys: this.selectedRowKeys,
|
|
57
|
-
onChange: this.onSelectChange
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
mounted () {
|
|
62
|
-
this.initView()
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
initView () {
|
|
66
|
-
this.logicParam = {
|
|
67
|
-
id: this.deviceId
|
|
68
|
-
}
|
|
69
|
-
this.fixedQueryForm['d_id'] = this.deviceId
|
|
70
|
-
},
|
|
71
|
-
onSubmit (res) {
|
|
72
|
-
res.form['d_id'] = this.deviceId
|
|
73
|
-
this.$emit('onSubmit', res)
|
|
74
|
-
},
|
|
75
|
-
refresh () {
|
|
76
|
-
this.$refs.table.refresh(true)
|
|
77
|
-
},
|
|
78
|
-
onSelectChange (selectedRowKeys, selectedRows) {
|
|
79
|
-
this.selectedRowKeys = selectedRowKeys
|
|
80
|
-
this.selectedRows = selectedRows
|
|
81
|
-
},
|
|
82
|
-
format (date, format) {
|
|
83
|
-
return formatDate(date, format)
|
|
84
|
-
},
|
|
85
|
-
toDetail (record) {
|
|
86
|
-
this.selectInstructId = record.id + ''
|
|
87
|
-
this.detailsViewVisible = true
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<style lang='less' scoped>
|
|
94
|
-
.detail-layout {
|
|
95
|
-
margin-left: 44px
|
|
96
|
-
}
|
|
97
|
-
.text {
|
|
98
|
-
color: rgba(0, 0, 0, .45)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.heading {
|
|
102
|
-
color: rgba(0, 0, 0, .85);
|
|
103
|
-
font-size: 20px
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.no-data {
|
|
107
|
-
color: rgba(0, 0, 0, .25);
|
|
108
|
-
text-align: center;
|
|
109
|
-
line-height: 64px;
|
|
110
|
-
font-size: 16px
|
|
111
|
-
|
|
112
|
-
/*i {*/
|
|
113
|
-
/* font-size: 24px*/
|
|
114
|
-
/* margin-right: 16px*/
|
|
115
|
-
/* position: relative*/
|
|
116
|
-
/* top: 3px*/
|
|
117
|
-
/*}*/
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.mobile {
|
|
121
|
-
.detail-layout {
|
|
122
|
-
margin-left: unset
|
|
123
|
-
}
|
|
124
|
-
.text {
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
.status-list {
|
|
128
|
-
text-align: left
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import DeviceDetailsMain from './DeviceDetailsMain'
|
|
2
|
-
import DeviceDetailsCount from './DeviceDetailsCount'
|
|
3
|
-
import DeviceDetailsInstruct from './DeviceDetailsInstruct'
|
|
4
|
-
import DeviceDetailsRead from './DeviceDetailsRead'
|
|
5
|
-
import DeviceDetailsSingular from './DeviceDetailsException'
|
|
6
|
-
import DeviceDetailsInstructOperate from './DeviceDetailsInstructOperate'
|
|
7
|
-
|
|
8
|
-
export { DeviceDetailsMain, DeviceDetailsCount, DeviceDetailsInstruct, DeviceDetailsRead, DeviceDetailsSingular, DeviceDetailsInstructOperate }
|