system-clients 3.2.93 → 3.2.94-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 +166 -169
- 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 +2 -4
- 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
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "system-clients",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.94-temp",
|
4
4
|
"description": "系统基础框架",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"directories": {
|
@@ -79,7 +79,7 @@
|
|
79
79
|
"style": "0.0.3",
|
80
80
|
"style-loader": "^0.20.3",
|
81
81
|
"url-loader": "^0.5.7",
|
82
|
-
"vue-client": "1.24.
|
82
|
+
"vue-client": "1.24.107-test",
|
83
83
|
"vue-hot-reload-api": "^1.2.0",
|
84
84
|
"vue-html-loader": "^1.0.0",
|
85
85
|
"vue-loader": "^8.2.1",
|
package/src/components/Main.vue
CHANGED
@@ -160,6 +160,24 @@
|
|
160
160
|
</footer>
|
161
161
|
</modal>
|
162
162
|
|
163
|
+
<modal v-show="notReportShow" :show.sync="notReportShow" :backdrop="false">
|
164
|
+
<header slot="modal-header" class="text-center">
|
165
|
+
<h3>未上报用户提醒</h3>
|
166
|
+
</header>
|
167
|
+
<article slot="modal-body" class="modal-body">
|
168
|
+
<form class="form-horizontal">
|
169
|
+
<div class="row">
|
170
|
+
<div class="col-sm-12">
|
171
|
+
<span style="font-weight:normal">{{ notReportTitle }}</span>
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
</form>
|
175
|
+
</article>
|
176
|
+
<footer slot="modal-footer" style="height: 8vh" class="modal-footer">
|
177
|
+
<button class="button_search" @click="notReportShow = false">确认</button>
|
178
|
+
</footer>
|
179
|
+
</modal>
|
180
|
+
|
163
181
|
<!-- 变更录入 模态框 -->
|
164
182
|
<add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
|
165
183
|
<!-- 修改密码组件 -->
|
@@ -189,7 +207,6 @@ let getwartermakr = async function (self) {
|
|
189
207
|
tablename: 't_singlevalue',
|
190
208
|
condition: " 1=1 and name=\'水印内容\'"
|
191
209
|
};
|
192
|
-
// todo v4
|
193
210
|
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
194
211
|
if (result && result.data.length > 0) {
|
195
212
|
self.showwatermakeflag = true;
|
@@ -256,9 +273,12 @@ let createWaterMark = function (userName) {
|
|
256
273
|
// img2: '/images/lefticon/退出系统.png',
|
257
274
|
},
|
258
275
|
treeOrIcon: false,
|
276
|
+
notReportTitle: '',
|
277
|
+
notReportShow: false,
|
259
278
|
qrCode:false,
|
260
279
|
isManger: false,
|
261
280
|
show: false,
|
281
|
+
orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
|
262
282
|
systemname: '客服系统',
|
263
283
|
date: this.$login.toStandardDateString(),
|
264
284
|
tabs: [], //已初始化页签数组
|
@@ -335,10 +355,28 @@ let createWaterMark = function (userName) {
|
|
335
355
|
if (this.config.approve) {
|
336
356
|
this.getFlowList()
|
337
357
|
}
|
358
|
+
if (this.config.isGetNotReport) {
|
359
|
+
this.getNotReport()
|
360
|
+
}
|
338
361
|
// 获取卡表动态库到期时间
|
339
362
|
this.getExpireDate()
|
340
363
|
},
|
341
364
|
methods: {
|
365
|
+
async getNotReport(){
|
366
|
+
this.notReportTitle = ''
|
367
|
+
let http = new HttpResetClass()
|
368
|
+
await http.load('POST', 'rs/sql/getNotReportUserCount', {}, {
|
369
|
+
resolveMsg: null,
|
370
|
+
rejectMsg: null
|
371
|
+
}).then((res) => {
|
372
|
+
if (res.data.length > 0){
|
373
|
+
this.notReportTitle = `当前系统物联网表用户有${res.data[0].f_total_web_count}户,超过7天未上报有${res.data[0].f_greater_than_seven_days}户,7天及以内未上报有${res.data[0].f_less_than_orequalto_seven_days}户。如需查询详情,请到物联查询中“失联查询”获取详细信息!`
|
374
|
+
}
|
375
|
+
}).catch((e)=>{})
|
376
|
+
if(this.notReportTitle){
|
377
|
+
this.notReportShow = true
|
378
|
+
}
|
379
|
+
},
|
342
380
|
getOrderList(){
|
343
381
|
let times = this.config.times * 60 * 1000
|
344
382
|
console.log("=定时提示间隔=", times)
|
@@ -470,6 +508,7 @@ let createWaterMark = function (userName) {
|
|
470
508
|
res.data.forEach(itre => {
|
471
509
|
let band = null
|
472
510
|
if ('f_dynamic_expire' in itre) {
|
511
|
+
console.log(itre.f_dynamic_expire)
|
473
512
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
474
513
|
let todayold = new Date(itre.f_dynamic_expire)
|
475
514
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -520,7 +559,7 @@ let createWaterMark = function (userName) {
|
|
520
559
|
}
|
521
560
|
},
|
522
561
|
openUrl() {
|
523
|
-
var url = `http://
|
562
|
+
var url = `http://aote-office.8866.org:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
|
524
563
|
window.open(url, '_blank')
|
525
564
|
},
|
526
565
|
hindsetting() {
|
@@ -599,28 +638,13 @@ let createWaterMark = function (userName) {
|
|
599
638
|
username: this.$login.f.name,
|
600
639
|
usertelephone: this.$login.f.f_user_telephone
|
601
640
|
}
|
602
|
-
|
603
|
-
try {
|
604
|
-
await this.$resetget('api/af-system/user/logout', {resolveMsg: '退出成功', rejectMsg: null})
|
605
|
-
}catch(e){
|
606
|
-
}
|
641
|
+
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
607
642
|
window.location.reload()
|
608
643
|
}
|
609
644
|
})
|
610
645
|
}
|
611
646
|
},
|
612
647
|
computed: {
|
613
|
-
orgpathnames(){
|
614
|
-
let names = this.$login.f.name
|
615
|
-
if(this.$login.f.deps){
|
616
|
-
names = `${this.$login.f.deps}-${names}`
|
617
|
-
}
|
618
|
-
if(this.$login.f.orgs){
|
619
|
-
names = `${this.$login.f.orgs}-${names}`
|
620
|
-
}
|
621
|
-
return names
|
622
|
-
},
|
623
|
-
|
624
648
|
nowDate() {
|
625
649
|
return this.$login.getNowDate()
|
626
650
|
}
|
@@ -1,83 +1,83 @@
|
|
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 :users="users"></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 :users="users"></phone-manage>
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
</template>
|
30
|
-
|
31
|
-
<script>
|
32
|
-
|
33
|
-
import {HttpResetClass} from "vue-client";
|
34
|
-
|
35
|
-
export default {
|
36
|
-
title: '终端控制',
|
37
|
-
data () {
|
38
|
-
return {
|
39
|
-
filialeNameStr: this.$login.f.f_fengongsi,
|
40
|
-
filialeCodeStr: this.$login.f.orgid,
|
41
|
-
userid:this.$login.f.id,
|
42
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
43
|
-
equipmentType: this.$appdata.getParam('终端类型'),
|
44
|
-
users:[],
|
45
|
-
model: {
|
46
|
-
f_equipment_type: []
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
ready () {
|
51
|
-
console.log('看看终端类型', this.equipmentType)
|
52
|
-
this.model.f_equipment_type = [this.equipmentType[0].value]
|
53
|
-
this.getUser()
|
54
|
-
},
|
55
|
-
methods: {
|
56
|
-
del (row) {
|
57
|
-
console.log('要删除了', row)
|
58
|
-
},
|
59
|
-
getUser(){
|
60
|
-
new HttpResetClass().load('POST', '/rs/search', {
|
61
|
-
"source": " this.getParentByType($organization$).getAllChildrens().where(row.getAttributes().get($resourcetype$).indexOf($user$) != -1))",
|
62
|
-
"userid": this.$login.f.id
|
63
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
64
|
-
this.users=[]
|
65
|
-
let ids=[]
|
66
|
-
res.data.forEach((resRow) => {
|
67
|
-
if(resRow.state=='在职' && !ids.includes(resRow.id+'_'+resRow.name)){
|
68
|
-
ids.push(resRow.id+'_'+resRow.name)
|
69
|
-
this.users.push({label:resRow.name,value:{id:resRow.id,name:resRow.name}})
|
70
|
-
}
|
71
|
-
})
|
72
|
-
})
|
73
|
-
},
|
74
|
-
getRes (obj) {
|
75
|
-
this.filialeNameStr = obj.res
|
76
|
-
this.filialeCodeStr = obj.resids
|
77
|
-
},
|
78
|
-
},
|
79
|
-
computed: {
|
80
|
-
|
81
|
-
}
|
82
|
-
}
|
83
|
-
</script>
|
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 :users="users"></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 :users="users"></phone-manage>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</template>
|
30
|
+
|
31
|
+
<script>
|
32
|
+
|
33
|
+
import {HttpResetClass} from "vue-client";
|
34
|
+
|
35
|
+
export default {
|
36
|
+
title: '终端控制',
|
37
|
+
data () {
|
38
|
+
return {
|
39
|
+
filialeNameStr: this.$login.f.f_fengongsi,
|
40
|
+
filialeCodeStr: this.$login.f.orgid,
|
41
|
+
userid:this.$login.f.id,
|
42
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
43
|
+
equipmentType: this.$appdata.getParam('终端类型'),
|
44
|
+
users:[],
|
45
|
+
model: {
|
46
|
+
f_equipment_type: []
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
ready () {
|
51
|
+
console.log('看看终端类型', this.equipmentType)
|
52
|
+
this.model.f_equipment_type = [this.equipmentType[0].value]
|
53
|
+
this.getUser()
|
54
|
+
},
|
55
|
+
methods: {
|
56
|
+
del (row) {
|
57
|
+
console.log('要删除了', row)
|
58
|
+
},
|
59
|
+
getUser(){
|
60
|
+
new HttpResetClass().load('POST', '/rs/search', {
|
61
|
+
"source": " this.getParentByType($organization$).getAllChildrens().where(row.getAttributes().get($resourcetype$).indexOf($user$) != -1))",
|
62
|
+
"userid": this.$login.f.id
|
63
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
64
|
+
this.users=[]
|
65
|
+
let ids=[]
|
66
|
+
res.data.forEach((resRow) => {
|
67
|
+
if(resRow.state=='在职' && !ids.includes(resRow.id+'_'+resRow.name)){
|
68
|
+
ids.push(resRow.id+'_'+resRow.name)
|
69
|
+
this.users.push({label:resRow.name,value:{id:resRow.id,name:resRow.name}})
|
70
|
+
}
|
71
|
+
})
|
72
|
+
})
|
73
|
+
},
|
74
|
+
getRes (obj) {
|
75
|
+
this.filialeNameStr = obj.res
|
76
|
+
this.filialeCodeStr = obj.resids
|
77
|
+
},
|
78
|
+
},
|
79
|
+
computed: {
|
80
|
+
|
81
|
+
}
|
82
|
+
}
|
83
|
+
</script>
|
@@ -1,115 +1,115 @@
|
|
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
|
-
<v-select style="width:60% "
|
11
|
-
class="select select_list"
|
12
|
-
:value.sync="model.f_username"
|
13
|
-
v-model="model.f_username"
|
14
|
-
:options='users'
|
15
|
-
placeholder='人员选择'
|
16
|
-
value-single
|
17
|
-
close-on-select>
|
18
|
-
</v-select>
|
19
|
-
</div>
|
20
|
-
<div class="col-sm-6 form-group">
|
21
|
-
<label class="font_normal_body">所属地址</label>
|
22
|
-
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_outlets" placeholder="所属地址" >
|
23
|
-
</div>
|
24
|
-
<div class="col-sm-6 form-group">
|
25
|
-
<label class="font_normal_body">mac地址</label>
|
26
|
-
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_number" placeholder="mac地址" >
|
27
|
-
</div>
|
28
|
-
<div class="col-sm-6 form-group">
|
29
|
-
<label class="font_normal_body">使用公司</label>
|
30
|
-
|
31
|
-
<res-select restype='organization'
|
32
|
-
is-mul="false"
|
33
|
-
@res-select="getorg"
|
34
|
-
:initresid="curorgid">
|
35
|
-
</res-select>
|
36
|
-
|
37
|
-
</div>
|
38
|
-
</form>
|
39
|
-
<div style="text-align:right;height:auto;">
|
40
|
-
<button class="btn button_search" @click="confirm()" >确认</button>
|
41
|
-
<button class="btn button_clear " @click="cancel()" >取消</button>
|
42
|
-
</div>
|
43
|
-
</validator>
|
44
|
-
</div>
|
45
|
-
</template>
|
46
|
-
<script>
|
47
|
-
|
48
|
-
|
49
|
-
export default {
|
50
|
-
data () {
|
51
|
-
return {
|
52
|
-
model: {
|
53
|
-
f_username: '',
|
54
|
-
f_mac_outlets: '',
|
55
|
-
f_mac_number: '',
|
56
|
-
f_equipment_type: 'PC',
|
57
|
-
f_state: '正常'
|
58
|
-
},
|
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_operatorid = this.$login.f.id
|
85
|
-
this.model.f_orgid = this.f_orgid
|
86
|
-
console.log('保存', this.model)
|
87
|
-
this.$resetpost('
|
88
|
-
this.$dispatch('refresh')
|
89
|
-
}).catch((error) => {
|
90
|
-
this.$dispatch('refresh')
|
91
|
-
})
|
92
|
-
},
|
93
|
-
edit (row) {
|
94
|
-
console.log('修改,,。。', row)
|
95
|
-
this.model.f_username = row.f_username
|
96
|
-
this.model.f_mac_outlets = row.f_mac_outlets
|
97
|
-
this.model.f_mac_number = row.f_mac_number
|
98
|
-
this.model.id = row.id
|
99
|
-
this.f_orgid = row.f_orgid
|
100
|
-
},
|
101
|
-
initModel () {
|
102
|
-
delete this.model.id
|
103
|
-
this.model.f_username = ''
|
104
|
-
this.model.f_mac_outlets = ''
|
105
|
-
this.model.f_mac_number = ''
|
106
|
-
},
|
107
|
-
cancel () {
|
108
|
-
this.$dispatch('close')
|
109
|
-
},
|
110
|
-
getorg (val) {
|
111
|
-
this.f_orgid = val[0]
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
</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="#">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
|
+
<v-select style="width:60% "
|
11
|
+
class="select select_list"
|
12
|
+
:value.sync="model.f_username"
|
13
|
+
v-model="model.f_username"
|
14
|
+
:options='users'
|
15
|
+
placeholder='人员选择'
|
16
|
+
value-single
|
17
|
+
close-on-select>
|
18
|
+
</v-select>
|
19
|
+
</div>
|
20
|
+
<div class="col-sm-6 form-group">
|
21
|
+
<label class="font_normal_body">所属地址</label>
|
22
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_outlets" placeholder="所属地址" >
|
23
|
+
</div>
|
24
|
+
<div class="col-sm-6 form-group">
|
25
|
+
<label class="font_normal_body">mac地址</label>
|
26
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_number" placeholder="mac地址" >
|
27
|
+
</div>
|
28
|
+
<div class="col-sm-6 form-group">
|
29
|
+
<label class="font_normal_body">使用公司</label>
|
30
|
+
|
31
|
+
<res-select restype='organization'
|
32
|
+
is-mul="false"
|
33
|
+
@res-select="getorg"
|
34
|
+
:initresid="curorgid">
|
35
|
+
</res-select>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
</form>
|
39
|
+
<div style="text-align:right;height:auto;">
|
40
|
+
<button class="btn button_search" @click="confirm()" >确认</button>
|
41
|
+
<button class="btn button_clear " @click="cancel()" >取消</button>
|
42
|
+
</div>
|
43
|
+
</validator>
|
44
|
+
</div>
|
45
|
+
</template>
|
46
|
+
<script>
|
47
|
+
|
48
|
+
|
49
|
+
export default {
|
50
|
+
data () {
|
51
|
+
return {
|
52
|
+
model: {
|
53
|
+
f_username: '',
|
54
|
+
f_mac_outlets: '',
|
55
|
+
f_mac_number: '',
|
56
|
+
f_equipment_type: 'PC',
|
57
|
+
f_state: '正常'
|
58
|
+
},
|
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_operatorid = this.$login.f.id
|
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((error) => {
|
90
|
+
this.$dispatch('refresh')
|
91
|
+
})
|
92
|
+
},
|
93
|
+
edit (row) {
|
94
|
+
console.log('修改,,。。', row)
|
95
|
+
this.model.f_username = row.f_username
|
96
|
+
this.model.f_mac_outlets = row.f_mac_outlets
|
97
|
+
this.model.f_mac_number = row.f_mac_number
|
98
|
+
this.model.id = row.id
|
99
|
+
this.f_orgid = row.f_orgid
|
100
|
+
},
|
101
|
+
initModel () {
|
102
|
+
delete this.model.id
|
103
|
+
this.model.f_username = ''
|
104
|
+
this.model.f_mac_outlets = ''
|
105
|
+
this.model.f_mac_number = ''
|
106
|
+
},
|
107
|
+
cancel () {
|
108
|
+
this.$dispatch('close')
|
109
|
+
},
|
110
|
+
getorg (val) {
|
111
|
+
this.f_orgid = val[0]
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
</script>
|