system-clients 3.2.102-temp → 3.2.104-temp
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/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/file-system.probe +0 -0
- package/package.json +105 -105
- package/src/components/Main.vue +960 -960
- package/src/filiale/gongyi/EquipmentManage.vue +65 -0
- package/src/filiale/gongyi/PcAdd.vue +105 -0
- package/src/filiale/gongyi/PcList.vue +119 -0
- package/src/filiale/gongyi/PcManage.vue +60 -0
- package/src/filiale/gongyi/PhoneAdd.vue +107 -0
- package/src/filiale/gongyi/PhoneList.vue +112 -0
- package/src/filiale/gongyi/PhoneManage.vue +60 -0
- package/src/filiale/gongyi/system.js +9 -0
- package/src/filiale/qianneng/Main.vue +816 -816
- package/src/plugins/GetLoginInfoService.js +1 -5
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<div class="auto">
|
|
4
|
+
<div class="form-horizontal select-overspread" style="background: white; padding: 0 1%;">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-2 form-group">
|
|
7
|
+
<label class="font_normal_body" title="参数管理:终端类型">终端类型</label>
|
|
8
|
+
<v-select id="f_charge_type"
|
|
9
|
+
v-model="model.f_equipment_type"
|
|
10
|
+
placeholder='终端类型'
|
|
11
|
+
:value.sync="model.f_equipment_type"
|
|
12
|
+
:options='equipmentType'
|
|
13
|
+
close-on-select clear-button>
|
|
14
|
+
</v-select>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div v-if="model.f_equipment_type[0] === 'PC'">
|
|
20
|
+
<pc-manage></pc-manage>
|
|
21
|
+
</div>
|
|
22
|
+
<div v-if="model.f_equipment_type[0] === 'POS'">
|
|
23
|
+
<pos-manage></pos-manage>
|
|
24
|
+
</div>
|
|
25
|
+
<div v-if="model.f_equipment_type[0] === 'PHONE'">
|
|
26
|
+
<phone-manage></phone-manage>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
title: '终端控制',
|
|
35
|
+
data () {
|
|
36
|
+
return {
|
|
37
|
+
filialeNameStr: this.$login.f.f_fengongsi,
|
|
38
|
+
filialeCodeStr: this.$login.f.orgid,
|
|
39
|
+
userid:this.$login.f.id,
|
|
40
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
41
|
+
equipmentType: this.$appdata.getParam('终端类型'),
|
|
42
|
+
model: {
|
|
43
|
+
f_equipment_type: []
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
ready () {
|
|
48
|
+
console.log('看看终端类型', this.equipmentType)
|
|
49
|
+
this.model.f_equipment_type = [this.equipmentType[0].value]
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
del (row) {
|
|
53
|
+
console.log('要删除了', row)
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
getRes (obj) {
|
|
57
|
+
this.filialeNameStr = obj.res
|
|
58
|
+
this.filialeCodeStr = obj.resids
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
computed: {
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
</script>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="row select-overspread">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<ul class="nav nav-tabs" >
|
|
5
|
+
<li role="presentation" class="active"><a href="#">PC端MAC</a></li>
|
|
6
|
+
</ul>
|
|
7
|
+
<form class="form-horizontal">
|
|
8
|
+
<div class="col-sm-6 form-group">
|
|
9
|
+
<label class="font_normal_body">使用人员</label>
|
|
10
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_username" placeholder="使用人员" >
|
|
11
|
+
</div>
|
|
12
|
+
<div class="col-sm-6 form-group">
|
|
13
|
+
<label class="font_normal_body">所属地址</label>
|
|
14
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_outlets" placeholder="所属地址" >
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-6 form-group">
|
|
17
|
+
<label class="font_normal_body">mac地址</label>
|
|
18
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_number" placeholder="mac地址" >
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-6 form-group">
|
|
21
|
+
<label class="font_normal_body">使用公司</label>
|
|
22
|
+
|
|
23
|
+
<res-select restype='organization'
|
|
24
|
+
is-mul="false"
|
|
25
|
+
@res-select="getorg"
|
|
26
|
+
:initresid="curorgid">
|
|
27
|
+
</res-select>
|
|
28
|
+
|
|
29
|
+
</div>
|
|
30
|
+
</form>
|
|
31
|
+
<div style="text-align:right;height:auto;">
|
|
32
|
+
<button class="btn button_search" @click="confirm()" >确认</button>
|
|
33
|
+
<button class="btn button_clear " @click="cancel()" >取消</button>
|
|
34
|
+
</div>
|
|
35
|
+
</validator>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
<script>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
data () {
|
|
43
|
+
return {
|
|
44
|
+
model: {
|
|
45
|
+
f_username: '',
|
|
46
|
+
f_mac_outlets: '',
|
|
47
|
+
f_mac_number: '',
|
|
48
|
+
f_equipment_type: 'PC',
|
|
49
|
+
f_state: '正常'
|
|
50
|
+
},
|
|
51
|
+
curorgid: this.$login.f.orgid,
|
|
52
|
+
f_orgid: ''
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
props: ['data'],
|
|
56
|
+
watch: {
|
|
57
|
+
'data' (val) {
|
|
58
|
+
if (val) {
|
|
59
|
+
this.edit(val)
|
|
60
|
+
} else {
|
|
61
|
+
this.initModel()
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
ready () {
|
|
66
|
+
console.log('mac信息:', this.data)
|
|
67
|
+
if (this.data) {
|
|
68
|
+
this.edit(this.data)
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
methods: {
|
|
72
|
+
confirm () {
|
|
73
|
+
this.model.f_operator = this.$login.f.name
|
|
74
|
+
this.model.f_operatorid = this.$login.f.id
|
|
75
|
+
this.model.f_orgid = this.f_orgid
|
|
76
|
+
console.log('保存', this.model)
|
|
77
|
+
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
|
78
|
+
this.$dispatch('refresh')
|
|
79
|
+
}).catch((error) => {
|
|
80
|
+
this.$dispatch('refresh')
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
edit (row) {
|
|
84
|
+
console.log('修改,,。。', row)
|
|
85
|
+
this.model.f_username = row.f_username
|
|
86
|
+
this.model.f_mac_outlets = row.f_mac_outlets
|
|
87
|
+
this.model.f_mac_number = row.f_mac_number
|
|
88
|
+
this.model.id = row.id
|
|
89
|
+
this.f_orgid = row.f_orgid
|
|
90
|
+
},
|
|
91
|
+
initModel () {
|
|
92
|
+
delete this.model.id
|
|
93
|
+
this.model.f_username = ''
|
|
94
|
+
this.model.f_mac_outlets = ''
|
|
95
|
+
this.model.f_mac_number = ''
|
|
96
|
+
},
|
|
97
|
+
cancel () {
|
|
98
|
+
this.$dispatch('close')
|
|
99
|
+
},
|
|
100
|
+
getorg (val) {
|
|
101
|
+
this.f_orgid = val[0]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
</script>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex" >
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-3 form-group">
|
|
8
|
+
<label class="font_normal_body">使用公司</label>
|
|
9
|
+
<res-select restype='organization'
|
|
10
|
+
is-mul="false"
|
|
11
|
+
@res-select="$parent.$parent.getorg"
|
|
12
|
+
:initresid="$parent.$parent.curorgid">
|
|
13
|
+
</res-select>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="col-sm-3 form-group" >
|
|
17
|
+
<label class="font_normal_body">使用人员</label>
|
|
18
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_username"
|
|
19
|
+
condition="f_username like '%{}%'" placeholder="使用人员">
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-3 form-group" >
|
|
22
|
+
<label class="font_normal_body">所属地址</label>
|
|
23
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_mac_outlets"
|
|
24
|
+
condition="f_mac_outlets like '%{}%'" placeholder="所属地址">
|
|
25
|
+
</div>
|
|
26
|
+
<div class="span" style="float:right;">
|
|
27
|
+
<button class="button_search" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
28
|
+
<button class="button_search" @click="$parent.$parent.add()" v-el:cx>新增</button>
|
|
29
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
30
|
+
@click="$parent.$parent.hidden()"></div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
34
|
+
<div class="col-sm-3 form-group" >
|
|
35
|
+
<label class="font_normal_body">MAC地址</label>
|
|
36
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_mac_number"
|
|
37
|
+
condition="f_mac_number like '%{}%'" placeholder="MAC地址">
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</criteria>
|
|
44
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
|
45
|
+
<template partial='head'>
|
|
46
|
+
<tr>
|
|
47
|
+
<th>序号</th>
|
|
48
|
+
<th>使用人员</th>
|
|
49
|
+
<th>所属地址</th>
|
|
50
|
+
<th>MAC地址</th>
|
|
51
|
+
<th>操作</th>
|
|
52
|
+
</tr>
|
|
53
|
+
</template>
|
|
54
|
+
<template partial='body':model="model">
|
|
55
|
+
<tr>
|
|
56
|
+
<td style="text-align:center">{{$index+1}}</td>
|
|
57
|
+
<td style="text-align:center">{{row.f_username}}</td>
|
|
58
|
+
<td style="text-align:center">{{row.f_mac_outlets}}</td>
|
|
59
|
+
<td style="text-align:center">{{row.f_mac_number}}</td>
|
|
60
|
+
<td style="text-align:center">
|
|
61
|
+
<button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
</template>
|
|
65
|
+
</data-grid>
|
|
66
|
+
</criteria-paged>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
import { PagedList } from 'vue-client'
|
|
72
|
+
|
|
73
|
+
export default {
|
|
74
|
+
title: 'PC',
|
|
75
|
+
components: {},
|
|
76
|
+
data () {
|
|
77
|
+
return {
|
|
78
|
+
criteriaShow: false,
|
|
79
|
+
model: new PagedList('rs/sql/equipmentQuery', 20),
|
|
80
|
+
curorgid: [this.$login.f.orgid],
|
|
81
|
+
f_orgid: ''
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
ready () {
|
|
85
|
+
this.search()
|
|
86
|
+
},
|
|
87
|
+
methods: {
|
|
88
|
+
hidden(){
|
|
89
|
+
this.criteriaShow = !this.criteriaShow
|
|
90
|
+
},
|
|
91
|
+
search () {
|
|
92
|
+
this.$refs.paged.$refs.cri.search()
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
selfSearch (args) {
|
|
96
|
+
args.condition = `${args.condition} and f_equipment_type = 'PC' and f_state = '正常' and f_orgid like '${this.f_orgid ? this.f_orgid: this.$login.f.orgid}'`
|
|
97
|
+
this.model.search(args.condition, this.model)
|
|
98
|
+
},
|
|
99
|
+
add () {
|
|
100
|
+
this.$dispatch('add')
|
|
101
|
+
},
|
|
102
|
+
del (row) {
|
|
103
|
+
console.log('要删除了', row)
|
|
104
|
+
row.f_state = '已删除'
|
|
105
|
+
this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
106
|
+
this.$dispatch('refresh')
|
|
107
|
+
}).catch((error) => {
|
|
108
|
+
this.$dispatch('refresh')
|
|
109
|
+
})
|
|
110
|
+
},
|
|
111
|
+
getorg (val) {
|
|
112
|
+
this.f_orgid = val[0]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
computed: {
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</script>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div :class="{'basic-main':!isChange,'binary-left':isChange}">
|
|
4
|
+
<pc-list :row="row" @select-changed="selected" style="width:auto;" v-ref:list ></pc-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
|
|
7
|
+
<pc-add :data="row" v-ref:addbox></pc-add>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script>
|
|
12
|
+
|
|
13
|
+
import PcList from './PcList'
|
|
14
|
+
import PcAdd from './PcAdd'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
title: 'PC终端管理',
|
|
18
|
+
components: {
|
|
19
|
+
PcList, PcAdd
|
|
20
|
+
},
|
|
21
|
+
data () {
|
|
22
|
+
return {
|
|
23
|
+
isChange: false,
|
|
24
|
+
row: null
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
selected (obj) {
|
|
29
|
+
this.isChange = true
|
|
30
|
+
this.row = obj.val
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
events: {
|
|
34
|
+
'search' () {
|
|
35
|
+
this.isChange = false
|
|
36
|
+
this.row = null
|
|
37
|
+
this.$refs.list.$refs.paged.$refs.cri.search()
|
|
38
|
+
},
|
|
39
|
+
'refresh' () {
|
|
40
|
+
this.isChange = false
|
|
41
|
+
this.row = null
|
|
42
|
+
this.$refs.list.search()
|
|
43
|
+
},
|
|
44
|
+
'error' (name, row, res) {
|
|
45
|
+
this.isChange = false
|
|
46
|
+
this.row = null
|
|
47
|
+
},
|
|
48
|
+
'close' () {
|
|
49
|
+
this.isChange = false
|
|
50
|
+
this.row = null
|
|
51
|
+
this.$refs.list.search()
|
|
52
|
+
},
|
|
53
|
+
'add' () {
|
|
54
|
+
this.row = null
|
|
55
|
+
this.isChange = true
|
|
56
|
+
this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="row select-overspread">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<ul class="nav nav-tabs" >
|
|
5
|
+
<li role="presentation" class="active"><a href="#">Phone端设备号</a></li>
|
|
6
|
+
</ul>
|
|
7
|
+
<form class="form-horizontal">
|
|
8
|
+
|
|
9
|
+
<div class="col-sm-6 form-group">
|
|
10
|
+
<label class="font_normal_body">使用人员</label>
|
|
11
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_username" placeholder="使用人员" >
|
|
12
|
+
</div>
|
|
13
|
+
<div class="col-sm-6 form-group">
|
|
14
|
+
<label class="font_normal_body">设备号</label>
|
|
15
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_terminal_number" placeholder="设备号" >
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-6 form-group">
|
|
18
|
+
<label class="font_normal_body">使用公司</label>
|
|
19
|
+
<!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes"></right-tree>-->
|
|
20
|
+
<res-select restype='organization'
|
|
21
|
+
is-mul="false"
|
|
22
|
+
@res-select="getorg"
|
|
23
|
+
:initresid="curorgid">
|
|
24
|
+
</res-select>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
</form>
|
|
28
|
+
<div style="text-align:right;height:auto;">
|
|
29
|
+
<button class="btn button_search " @click="confirm()" >确认</button>
|
|
30
|
+
<button class="btn button_clear " @click="cancel()" >取消</button>
|
|
31
|
+
</div>
|
|
32
|
+
</validator>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
<script>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
data () {
|
|
40
|
+
return {
|
|
41
|
+
model: {
|
|
42
|
+
f_username: '',
|
|
43
|
+
f_terminal_number: '',
|
|
44
|
+
f_equipment_type: 'PHONE',
|
|
45
|
+
f_state: '正常'
|
|
46
|
+
},
|
|
47
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
|
48
|
+
userid: this.$login.f.id,
|
|
49
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
50
|
+
curorgid: this.$login.f.orgid,
|
|
51
|
+
f_orgid: ''
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
props: ['data'],
|
|
55
|
+
watch: {
|
|
56
|
+
'data' (val) {
|
|
57
|
+
if (val) {
|
|
58
|
+
this.edit(val)
|
|
59
|
+
} else {
|
|
60
|
+
this.initModel()
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
ready () {
|
|
65
|
+
console.log('mac信息:', this.data)
|
|
66
|
+
if (this.data) {
|
|
67
|
+
this.edit(this.data)
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
methods: {
|
|
71
|
+
confirm () {
|
|
72
|
+
this.model.f_operator = this.$login.f.name
|
|
73
|
+
this.model.f_filialeids = this.filialeCodeStr
|
|
74
|
+
this.model.f_orgid = this.f_orgid
|
|
75
|
+
console.log('保存', this.model)
|
|
76
|
+
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
|
77
|
+
this.$dispatch('refresh')
|
|
78
|
+
}).catch(() => {
|
|
79
|
+
this.$dispatch('refresh')
|
|
80
|
+
})
|
|
81
|
+
},
|
|
82
|
+
edit (row) {
|
|
83
|
+
console.log('修改,,。。', row)
|
|
84
|
+
this.model.f_username = row.f_username
|
|
85
|
+
this.model.f_terminal_number = row.f_terminal_number
|
|
86
|
+
this.model.id = row.id
|
|
87
|
+
this.filialeCodeStr = row.f_filialeids
|
|
88
|
+
this.f_orgid = row.f_orgid
|
|
89
|
+
this.curorgid= [row.f_orgid]
|
|
90
|
+
},
|
|
91
|
+
initModel () {
|
|
92
|
+
delete this.model.id
|
|
93
|
+
this.model.f_username = ''
|
|
94
|
+
this.model.f_terminal_number = ''
|
|
95
|
+
},
|
|
96
|
+
cancel () {
|
|
97
|
+
this.$dispatch('close')
|
|
98
|
+
},
|
|
99
|
+
getRes(obj) {
|
|
100
|
+
this.filialeCodeStr = obj.resids
|
|
101
|
+
},
|
|
102
|
+
getorg (val) {
|
|
103
|
+
this.f_orgid = val[0]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</script>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex" style="flex:1; ">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-3 form-group">
|
|
8
|
+
<label class="font_normal_body">使用公司</label>
|
|
9
|
+
<!--<right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes" > </right-tree>-->
|
|
10
|
+
<res-select restype='organization'
|
|
11
|
+
is-mul="false"
|
|
12
|
+
@res-select="$parent.$parent.getorg"
|
|
13
|
+
:initresid="$parent.$parent.curorgid">
|
|
14
|
+
</res-select>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="col-sm-3 form-group" >
|
|
18
|
+
<label class="font_normal_body">使用人员</label>
|
|
19
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_username"
|
|
20
|
+
condition="f_username like '%{}%'" placeholder="使用人员">
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-3 form-group" >
|
|
23
|
+
<label class="font_normal_body">设备号</label>
|
|
24
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
|
|
25
|
+
condition="f_terminal_number like '%{}%'" placeholder="设备号">
|
|
26
|
+
</div>
|
|
27
|
+
<div class="span" style="float:right;">
|
|
28
|
+
<button class="button_search" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
29
|
+
<button class="button_search" @click="$parent.$parent.add()" v-el:cx>新增</button>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</criteria>
|
|
34
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
|
35
|
+
<template partial='head'>
|
|
36
|
+
<tr>
|
|
37
|
+
<th>序号</th>
|
|
38
|
+
<th>使用人员</th>
|
|
39
|
+
<th>设备号</th>
|
|
40
|
+
<th>操作</th>
|
|
41
|
+
</tr>
|
|
42
|
+
</template>
|
|
43
|
+
<template partial='body':model="model">
|
|
44
|
+
<tr>
|
|
45
|
+
<td style="text-align:center">{{$index+1}}</td>
|
|
46
|
+
<td style="text-align:center">{{row.f_username}}</td>
|
|
47
|
+
<td style="text-align:center">{{row.f_terminal_number}}</td>
|
|
48
|
+
<td style="text-align:center">
|
|
49
|
+
<button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
</template>
|
|
53
|
+
</data-grid>
|
|
54
|
+
</criteria-paged>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<script>
|
|
59
|
+
import { PagedList } from 'vue-client'
|
|
60
|
+
|
|
61
|
+
export default {
|
|
62
|
+
title: 'PC',
|
|
63
|
+
components: {},
|
|
64
|
+
data () {
|
|
65
|
+
return {
|
|
66
|
+
model: new PagedList('rs/sql/equipmentQuery', 20),
|
|
67
|
+
filialeNameStr: this.$login.f.f_fengongsi,
|
|
68
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
|
69
|
+
userid:this.$login.f.id,
|
|
70
|
+
curorgid: [this.$login.f.orgid],
|
|
71
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
72
|
+
f_orgid:''
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
ready () {
|
|
76
|
+
console.log('看看终端类型', this.equipmentType)
|
|
77
|
+
this.search()
|
|
78
|
+
},
|
|
79
|
+
methods: {
|
|
80
|
+
search () {
|
|
81
|
+
this.$refs.paged.$refs.cri.search()
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
selfSearch (args) {
|
|
85
|
+
args.condition = `${args.condition} and f_equipment_type = 'PHONE' and f_state = '正常' and f_orgid = '${this.f_orgid ? this.f_orgid: this.$login.f.orgid}'`
|
|
86
|
+
this.model.search(args.condition, this.model)
|
|
87
|
+
},
|
|
88
|
+
add () {
|
|
89
|
+
this.$dispatch('add')
|
|
90
|
+
},
|
|
91
|
+
del (row) {
|
|
92
|
+
console.log('要删除了', row)
|
|
93
|
+
row.f_state = '已删除'
|
|
94
|
+
this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
95
|
+
this.$dispatch('refresh')
|
|
96
|
+
}).catch((error) => {
|
|
97
|
+
this.$dispatch('refresh')
|
|
98
|
+
})
|
|
99
|
+
},
|
|
100
|
+
getRes (obj) {
|
|
101
|
+
this.filialeNameStr = obj.res
|
|
102
|
+
this.filialeCodeStr = obj.resids
|
|
103
|
+
},
|
|
104
|
+
getorg (val) {
|
|
105
|
+
this.f_orgid = val[0]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
computed: {
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
</script>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div :class="{'basic-main':!isChange,'binary-left':isChange}">
|
|
4
|
+
<phone-list :row="row" @select-changed="selected" style="width:auto;" v-ref:list ></phone-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
|
|
7
|
+
<phone-add :data="row" v-ref:addbox></phone-add>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script>
|
|
12
|
+
|
|
13
|
+
import PhoneList from './PhoneList'
|
|
14
|
+
import PhoneAdd from './PhoneAdd'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
title: 'PC终端管理',
|
|
18
|
+
components: {
|
|
19
|
+
PhoneList, PhoneAdd
|
|
20
|
+
},
|
|
21
|
+
data () {
|
|
22
|
+
return {
|
|
23
|
+
isChange: false,
|
|
24
|
+
row: null
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
selected (obj) {
|
|
29
|
+
this.isChange = true
|
|
30
|
+
this.row = obj.val
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
events: {
|
|
34
|
+
'search' () {
|
|
35
|
+
this.isChange = false
|
|
36
|
+
this.row = null
|
|
37
|
+
this.$refs.list.$refs.paged.$refs.cri.search()
|
|
38
|
+
},
|
|
39
|
+
'refresh' () {
|
|
40
|
+
this.isChange = false
|
|
41
|
+
this.row = null
|
|
42
|
+
this.$refs.list.search()
|
|
43
|
+
},
|
|
44
|
+
'error' (name, row, res) {
|
|
45
|
+
this.isChange = false
|
|
46
|
+
this.row = null
|
|
47
|
+
},
|
|
48
|
+
'close' () {
|
|
49
|
+
this.isChange = false
|
|
50
|
+
this.row = null
|
|
51
|
+
this.$refs.list.search()
|
|
52
|
+
},
|
|
53
|
+
'add' () {
|
|
54
|
+
this.row = null
|
|
55
|
+
this.isChange = true
|
|
56
|
+
this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 分公司特殊组件页面注册
|
|
2
|
+
exports.specialComp = {
|
|
3
|
+
// pc端控制
|
|
4
|
+
'pc-manage': (resolve) => { require(['./PcManage'], resolve) },
|
|
5
|
+
// phone端控制
|
|
6
|
+
'phone-manage': (resolve) => { require(['./PhoneManage'], resolve) },
|
|
7
|
+
// 终端管理
|
|
8
|
+
'equipment-manage': (resolve) => { require(['./EquipmentManage'], resolve) }
|
|
9
|
+
}
|