system-clients 3.2.98-temp → 3.2.99-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/package.json
CHANGED
|
@@ -7,8 +7,17 @@
|
|
|
7
7
|
<form novalidate class="form-horizontal" >
|
|
8
8
|
<div class="row">
|
|
9
9
|
<div class="col-sm-6 form-group">
|
|
10
|
-
<label class="font_normal_body">&ensp
|
|
11
|
-
<right-tree @re-res="
|
|
10
|
+
<label class="font_normal_body"> 所属公司 </label>
|
|
11
|
+
<right-tree @re-res="getOrg"></right-tree>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="col-sm-6 form-group">
|
|
14
|
+
<label class="font_normal_body">所属部门</label>
|
|
15
|
+
<res-select restype='department'
|
|
16
|
+
:is-mul="false"
|
|
17
|
+
@res-select="getDep"
|
|
18
|
+
:parentresid="depresid"
|
|
19
|
+
:initresid="initresid">
|
|
20
|
+
</res-select>
|
|
12
21
|
</div>
|
|
13
22
|
<div class="col-sm-6 form-group">
|
|
14
23
|
<label class="font_normal_body">设备负责人</label>
|
|
@@ -65,16 +74,6 @@
|
|
|
65
74
|
close-on-select clear-button>
|
|
66
75
|
</v-select>
|
|
67
76
|
</div>
|
|
68
|
-
<div class="col-sm-6 form-group">
|
|
69
|
-
<label class="font_normal_body">所属部门</label>
|
|
70
|
-
<res-select restype='department'
|
|
71
|
-
:is-mul="false"
|
|
72
|
-
@res-select="getdep"
|
|
73
|
-
:parentresid="depresid"
|
|
74
|
-
:initresid="initresid">
|
|
75
|
-
</res-select>
|
|
76
|
-
</div>
|
|
77
|
-
|
|
78
77
|
</div>
|
|
79
78
|
<div class="col-sm-12 form-group" :class="{'has-error': $v.f_address.required}">
|
|
80
79
|
<label class="font_normal_body"> 放置地点 </label>
|
|
@@ -145,7 +144,7 @@ export default {
|
|
|
145
144
|
orgname: '',
|
|
146
145
|
initresid: [], // 用于存放初始化选中的部门 ID
|
|
147
146
|
initresids: [],
|
|
148
|
-
depresid: [this.$login.f.
|
|
147
|
+
depresid: [this.$login.f.orgid],
|
|
149
148
|
depid: [this.f_depid],
|
|
150
149
|
f_orgid: this.$login.f.orgid,
|
|
151
150
|
userresid: [this.$login.f.id],
|
|
@@ -213,16 +212,19 @@ export default {
|
|
|
213
212
|
},
|
|
214
213
|
|
|
215
214
|
methods: {
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
getOrg (obj, val) {
|
|
216
|
+
console.log('org', obj, val)
|
|
217
|
+
this.model.f_orgname = obj.res[0]
|
|
218
218
|
this.depresid = obj.resids
|
|
219
|
-
this.f_orgid = obj.resids
|
|
220
|
-
this.
|
|
219
|
+
this.model.f_orgid = obj.resids[0]
|
|
220
|
+
console.log(this.model)
|
|
221
221
|
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
this.
|
|
222
|
+
getDep (obj, val) {
|
|
223
|
+
console.log('dep', obj, val)
|
|
224
|
+
this.model.f_depname = val[0]
|
|
225
|
+
this.userresid = obj
|
|
226
|
+
this.model.f_depid = obj[0]
|
|
227
|
+
console.log(this.model)
|
|
226
228
|
},
|
|
227
229
|
recursiveSelOrg(val, flag){
|
|
228
230
|
if(val.parent){
|
|
@@ -239,12 +241,12 @@ export default {
|
|
|
239
241
|
console.log('====================', val)
|
|
240
242
|
if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user'){
|
|
241
243
|
|
|
242
|
-
let org = this.recursiveSelOrg(val.orgobj[0], 'organization')
|
|
243
|
-
this.model.f_orgid=org.id
|
|
244
|
-
this.model.f_orgname=org.name
|
|
245
|
-
let dep = this.recursiveSelOrg(val.orgobj[0], 'department')
|
|
246
|
-
this.model.f_depid=dep.id
|
|
247
|
-
this.model.f_depname=dep.name
|
|
244
|
+
// let org = this.recursiveSelOrg(val.orgobj[0], 'organization')
|
|
245
|
+
// this.model.f_orgid=org.id
|
|
246
|
+
// this.model.f_orgname=org.name
|
|
247
|
+
// let dep = this.recursiveSelOrg(val.orgobj[0], 'department')
|
|
248
|
+
// this.model.f_depid=dep.id
|
|
249
|
+
// this.model.f_depname=dep.name
|
|
248
250
|
|
|
249
251
|
this.model.f_operatorid = val.orgobj[0].userid
|
|
250
252
|
this.model.f_operator=val.orgobj[0].name
|
|
@@ -311,18 +313,19 @@ export default {
|
|
|
311
313
|
},
|
|
312
314
|
confirm () {
|
|
313
315
|
// 如果是修改的话,只修改页面上用户填写的信息
|
|
314
|
-
this.model.f_depname = this.depname[0]
|
|
315
|
-
this.model.f_depid = this.f_depid[0]
|
|
316
316
|
if (!this.info) {
|
|
317
|
+
this.model.f_user_depname = this.$login.f.deps
|
|
318
|
+
this.model.f_user_depid = this.$login.f.depids
|
|
317
319
|
this.model.f_online = '离线'
|
|
318
|
-
this.model.
|
|
319
|
-
this.model.
|
|
320
|
+
this.model.f_user_operator = this.$login.f.name
|
|
321
|
+
this.model.f_user_orgid = this.$login.f.orgid
|
|
320
322
|
this.model.f_filialeids = this.$login.f.orgid
|
|
321
|
-
this.model.
|
|
322
|
-
this.model.
|
|
323
|
+
this.model.f_user_operatorid = this.$login.f.id
|
|
324
|
+
this.model.f_user_orgname = this.$login.f.orgs
|
|
323
325
|
// this.model.f_depname=this.depname[0]
|
|
324
326
|
this.model.f_orgstr = this.$login.f.fullids
|
|
325
327
|
}
|
|
328
|
+
console.log(this.model)
|
|
326
329
|
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
|
327
330
|
this.$dispatch('refresh')
|
|
328
331
|
}).catch((error) => {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<!-- <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_appVer}}</td>-->
|
|
129
129
|
<!-- <td style="text-align:center;white-space:nowrap;" >{{row.f_username}}</td>-->
|
|
130
130
|
<td style="text-align:center;white-space:nowrap;">{{row.f_comments}}</td>
|
|
131
|
-
<td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.
|
|
131
|
+
<td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_user_operator}}</td>
|
|
132
132
|
<td style="text-align:center;white-space:nowrap;" >{{row.isunknown}}</td>
|
|
133
133
|
<td style="text-align:center">
|
|
134
134
|
<button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|