system-clients 3.2.92 → 3.2.93-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/checksums/checksums.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.4/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/package.json +2 -2
- package/src/components/Main.vue +42 -18
- package/src/components/equipment/EquipmentManage.vue +83 -83
- package/src/components/equipment/PcAdd.vue +115 -115
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +61 -61
- package/src/components/equipment/PhoneAdd.vue +118 -118
- package/src/components/equipment/PhoneList.vue +113 -113
- package/src/components/equipment/PhoneManage.vue +61 -61
- package/src/components/equipment/PosAdd.vue +10 -6
- package/src/components/equipment/PosList.vue +5 -3
- package/src/components/equipment/PosParamAdd.vue +1 -1
- package/src/components/equipment/PosParamList.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +12 -12
- package/src/components/parammanage/SinglePage.vue +8 -8
- package/src/components/server/Login.vue +35 -17
- package/src/components/server/ModifyPw.vue +0 -1
- package/src/components/server/PcdBuildingSelect.vue +0 -2
- package/src/components/server/ResSelect.vue +3 -3
- package/src/components/server/ResSelectGroup.vue +211 -211
- package/src/components/server/RoleSelector.vue +2 -3
- package/src/filiale/baole/Login.vue +0 -2
- package/src/filiale/bayan/PosAdd.vue +369 -0
- package/src/filiale/bayan/PosList.vue +349 -0
- package/src/filiale/bayan/PosManage.vue +138 -0
- package/src/filiale/bayan/system.js +6 -0
- package/src/filiale/chengtou/Login.vue +0 -2
- package/src/filiale/dongguan/Login.vue +0 -2
- package/src/filiale/dongguan/Main.vue +0 -2
- package/src/filiale/furuike/Login.vue +0 -4
- package/src/filiale/furuike/Main.vue +0 -2
- package/src/filiale/gehua/Main.vue +0 -2
- package/src/filiale/konggang/Login.vue +0 -2
- package/src/filiale/qianneng/Login.vue +582 -584
- package/src/filiale/qianneng/Main.vue +816 -818
- package/src/filiale/qianneng/ModifyPw.vue +0 -1
- package/src/filiale/rizhao/Login.vue +0 -2
- package/src/filiale/rizhao/Main.vue +1 -1
- package/src/filiale/shiquan/Login.vue +0 -2
- package/src/filiale/tianyi/Login.vue +0 -2
- package/src/filiale/tongchuan/Login.vue +0 -2
- package/src/filiale/tongchuan/Main.vue +1 -3
- package/src/filiale/weinan/Main.vue +923 -924
- package/src/filiale/weinan/system.js +7 -7
- package/src/filiale/wenxi/Login.vue +0 -2
- package/src/filiale/wenxi/Main.vue +0 -2
- package/src/filiale/wuhai/Main.vue +0 -3
- package/src/filiale/yuchuan/Login.vue +0 -2
- package/src/filiale/yuchuan/Main.vue +0 -2
- package/src/filiale/zhoukou/Main.vue +0 -2
- package/src/plugins/GetLoginInfoService.js +75 -13
- package/src/stores/AppData.js +1 -1
@@ -1,119 +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_user_operator}}</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('
|
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
|
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('
|
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>
|
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_user_operator}}</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>
|
@@ -1,61 +1,61 @@
|
|
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" :users="users" 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
|
-
props:['users'],
|
22
|
-
data () {
|
23
|
-
return {
|
24
|
-
isChange: false,
|
25
|
-
row: null
|
26
|
-
}
|
27
|
-
},
|
28
|
-
methods: {
|
29
|
-
selected (obj) {
|
30
|
-
this.isChange = true
|
31
|
-
this.row = obj.val
|
32
|
-
}
|
33
|
-
},
|
34
|
-
events: {
|
35
|
-
'search' () {
|
36
|
-
this.isChange = false
|
37
|
-
this.row = null
|
38
|
-
this.$refs.list.$refs.paged.$refs.cri.search()
|
39
|
-
},
|
40
|
-
'refresh' () {
|
41
|
-
this.isChange = false
|
42
|
-
this.row = null
|
43
|
-
this.$refs.list.search()
|
44
|
-
},
|
45
|
-
'error' (name, row, res) {
|
46
|
-
this.isChange = false
|
47
|
-
this.row = null
|
48
|
-
},
|
49
|
-
'close' () {
|
50
|
-
this.isChange = false
|
51
|
-
this.row = null
|
52
|
-
this.$refs.list.search()
|
53
|
-
},
|
54
|
-
'add' () {
|
55
|
-
this.row = null
|
56
|
-
this.isChange = true
|
57
|
-
this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
</script>
|
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" :users="users" 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
|
+
props:['users'],
|
22
|
+
data () {
|
23
|
+
return {
|
24
|
+
isChange: false,
|
25
|
+
row: null
|
26
|
+
}
|
27
|
+
},
|
28
|
+
methods: {
|
29
|
+
selected (obj) {
|
30
|
+
this.isChange = true
|
31
|
+
this.row = obj.val
|
32
|
+
}
|
33
|
+
},
|
34
|
+
events: {
|
35
|
+
'search' () {
|
36
|
+
this.isChange = false
|
37
|
+
this.row = null
|
38
|
+
this.$refs.list.$refs.paged.$refs.cri.search()
|
39
|
+
},
|
40
|
+
'refresh' () {
|
41
|
+
this.isChange = false
|
42
|
+
this.row = null
|
43
|
+
this.$refs.list.search()
|
44
|
+
},
|
45
|
+
'error' (name, row, res) {
|
46
|
+
this.isChange = false
|
47
|
+
this.row = null
|
48
|
+
},
|
49
|
+
'close' () {
|
50
|
+
this.isChange = false
|
51
|
+
this.row = null
|
52
|
+
this.$refs.list.search()
|
53
|
+
},
|
54
|
+
'add' () {
|
55
|
+
this.row = null
|
56
|
+
this.isChange = true
|
57
|
+
this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
</script>
|
@@ -1,118 +1,118 @@
|
|
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
|
-
<v-select style="width:60% "
|
13
|
-
class="select select_list"
|
14
|
-
:value.sync="model.f_username"
|
15
|
-
v-model="model.f_username"
|
16
|
-
:options='users'
|
17
|
-
placeholder='人员选择'
|
18
|
-
value-single
|
19
|
-
close-on-select>
|
20
|
-
</v-select>
|
21
|
-
</div>
|
22
|
-
<div class="col-sm-6 form-group">
|
23
|
-
<label class="font_normal_body">设备号</label>
|
24
|
-
<input type="text" style="width: 60%" class="input_search" v-model="model.f_terminal_number" placeholder="设备号" >
|
25
|
-
</div>
|
26
|
-
<div class="col-sm-6 form-group">
|
27
|
-
<label class="font_normal_body">使用公司</label>
|
28
|
-
<!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes"></right-tree>-->
|
29
|
-
<res-select restype='organization'
|
30
|
-
is-mul="false"
|
31
|
-
@res-select="getorg"
|
32
|
-
:initresid="curorgid">
|
33
|
-
</res-select>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
</form>
|
37
|
-
<div style="text-align:right;height:auto;">
|
38
|
-
<button class="btn button_search " @click="confirm()" >确认</button>
|
39
|
-
<button class="btn button_clear " @click="cancel()" >取消</button>
|
40
|
-
</div>
|
41
|
-
</validator>
|
42
|
-
</div>
|
43
|
-
</template>
|
44
|
-
<script>
|
45
|
-
import { HttpResetClass } from 'vue-client'
|
46
|
-
|
47
|
-
export default {
|
48
|
-
data () {
|
49
|
-
return {
|
50
|
-
model: {
|
51
|
-
f_username: null,
|
52
|
-
f_terminal_number: '',
|
53
|
-
f_equipment_type: 'PHONE',
|
54
|
-
f_state: '正常'
|
55
|
-
},
|
56
|
-
filialeCodeStr: this.$login.f.f_orgids,
|
57
|
-
userid: this.$login.f.id,
|
58
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
59
|
-
curorgid: [this.$login.f.orgid],
|
60
|
-
f_orgid: ''
|
61
|
-
}
|
62
|
-
},
|
63
|
-
props: ['data','users'],
|
64
|
-
watch: {
|
65
|
-
'data' (val) {
|
66
|
-
if (val) {
|
67
|
-
this.edit(val)
|
68
|
-
} else {
|
69
|
-
this.initModel()
|
70
|
-
}
|
71
|
-
}
|
72
|
-
},
|
73
|
-
ready () {
|
74
|
-
console.log('mac信息:', this.data)
|
75
|
-
if (this.data) {
|
76
|
-
this.edit(this.data)
|
77
|
-
}
|
78
|
-
},
|
79
|
-
methods: {
|
80
|
-
confirm () {
|
81
|
-
this.model.f_user_operatorid=this.model.f_username.id
|
82
|
-
this.model.f_user_operator=this.model.f_username.name
|
83
|
-
this.model.f_operator = this.$login.f.name
|
84
|
-
this.model.f_filialeids = this.$login.f.f_orgids
|
85
|
-
this.model.f_orgid = this.f_orgid
|
86
|
-
console.log('保存', this.model)
|
87
|
-
this.$resetpost('
|
88
|
-
this.$dispatch('refresh')
|
89
|
-
}).catch(() => {
|
90
|
-
this.$dispatch('refresh')
|
91
|
-
})
|
92
|
-
},
|
93
|
-
edit (row) {
|
94
|
-
console.log('修改,,。。', row)
|
95
|
-
this.model.f_username = {id:row.f_user_operatorid,name:row.f_user_operator}
|
96
|
-
this.model.f_terminal_number = row.f_terminal_number
|
97
|
-
this.model.id = row.id
|
98
|
-
this.filialeCodeStr = row.f_filialeids
|
99
|
-
this.f_orgid = row.f_orgid
|
100
|
-
this.curorgid= [row.f_orgid]
|
101
|
-
},
|
102
|
-
initModel () {
|
103
|
-
delete this.model.id
|
104
|
-
this.model.f_username = ''
|
105
|
-
this.model.f_terminal_number = ''
|
106
|
-
},
|
107
|
-
cancel () {
|
108
|
-
this.$dispatch('close')
|
109
|
-
},
|
110
|
-
getRes(obj) {
|
111
|
-
this.filialeCodeStr = obj.resids
|
112
|
-
},
|
113
|
-
getorg (val) {
|
114
|
-
this.f_orgid = val[0]
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}
|
118
|
-
</script>
|
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
|
+
<v-select style="width:60% "
|
13
|
+
class="select select_list"
|
14
|
+
:value.sync="model.f_username"
|
15
|
+
v-model="model.f_username"
|
16
|
+
:options='users'
|
17
|
+
placeholder='人员选择'
|
18
|
+
value-single
|
19
|
+
close-on-select>
|
20
|
+
</v-select>
|
21
|
+
</div>
|
22
|
+
<div class="col-sm-6 form-group">
|
23
|
+
<label class="font_normal_body">设备号</label>
|
24
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_terminal_number" placeholder="设备号" >
|
25
|
+
</div>
|
26
|
+
<div class="col-sm-6 form-group">
|
27
|
+
<label class="font_normal_body">使用公司</label>
|
28
|
+
<!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes"></right-tree>-->
|
29
|
+
<res-select restype='organization'
|
30
|
+
is-mul="false"
|
31
|
+
@res-select="getorg"
|
32
|
+
:initresid="curorgid">
|
33
|
+
</res-select>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
</form>
|
37
|
+
<div style="text-align:right;height:auto;">
|
38
|
+
<button class="btn button_search " @click="confirm()" >确认</button>
|
39
|
+
<button class="btn button_clear " @click="cancel()" >取消</button>
|
40
|
+
</div>
|
41
|
+
</validator>
|
42
|
+
</div>
|
43
|
+
</template>
|
44
|
+
<script>
|
45
|
+
import { HttpResetClass } from 'vue-client'
|
46
|
+
|
47
|
+
export default {
|
48
|
+
data () {
|
49
|
+
return {
|
50
|
+
model: {
|
51
|
+
f_username: null,
|
52
|
+
f_terminal_number: '',
|
53
|
+
f_equipment_type: 'PHONE',
|
54
|
+
f_state: '正常'
|
55
|
+
},
|
56
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
57
|
+
userid: this.$login.f.id,
|
58
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
59
|
+
curorgid: [this.$login.f.orgid],
|
60
|
+
f_orgid: ''
|
61
|
+
}
|
62
|
+
},
|
63
|
+
props: ['data','users'],
|
64
|
+
watch: {
|
65
|
+
'data' (val) {
|
66
|
+
if (val) {
|
67
|
+
this.edit(val)
|
68
|
+
} else {
|
69
|
+
this.initModel()
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
ready () {
|
74
|
+
console.log('mac信息:', this.data)
|
75
|
+
if (this.data) {
|
76
|
+
this.edit(this.data)
|
77
|
+
}
|
78
|
+
},
|
79
|
+
methods: {
|
80
|
+
confirm () {
|
81
|
+
this.model.f_user_operatorid=this.model.f_username.id
|
82
|
+
this.model.f_user_operator=this.model.f_username.name
|
83
|
+
this.model.f_operator = this.$login.f.name
|
84
|
+
this.model.f_filialeids = this.$login.f.f_orgids
|
85
|
+
this.model.f_orgid = this.f_orgid
|
86
|
+
console.log('保存', this.model)
|
87
|
+
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
88
|
+
this.$dispatch('refresh')
|
89
|
+
}).catch(() => {
|
90
|
+
this.$dispatch('refresh')
|
91
|
+
})
|
92
|
+
},
|
93
|
+
edit (row) {
|
94
|
+
console.log('修改,,。。', row)
|
95
|
+
this.model.f_username = {id:row.f_user_operatorid,name:row.f_user_operator}
|
96
|
+
this.model.f_terminal_number = row.f_terminal_number
|
97
|
+
this.model.id = row.id
|
98
|
+
this.filialeCodeStr = row.f_filialeids
|
99
|
+
this.f_orgid = row.f_orgid
|
100
|
+
this.curorgid= [row.f_orgid]
|
101
|
+
},
|
102
|
+
initModel () {
|
103
|
+
delete this.model.id
|
104
|
+
this.model.f_username = ''
|
105
|
+
this.model.f_terminal_number = ''
|
106
|
+
},
|
107
|
+
cancel () {
|
108
|
+
this.$dispatch('close')
|
109
|
+
},
|
110
|
+
getRes(obj) {
|
111
|
+
this.filialeCodeStr = obj.resids
|
112
|
+
},
|
113
|
+
getorg (val) {
|
114
|
+
this.f_orgid = val[0]
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
</script>
|