|
|
@ -52,16 +52,19 @@ |
|
|
|
|
|
|
|
<td>分管人员</td> |
|
|
|
<td> |
|
|
|
<el-autocomplete v-model="form.fgStaffName" :fetch-suggestions="querySearchAsync" class="addinputw" |
|
|
|
placeholder="请选择" @select="handleSelect"> |
|
|
|
<i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear"/> |
|
|
|
<template slot-scope="{ item }"> |
|
|
|
<div style="paddingg:5px;background-color:Azure;"> |
|
|
|
<span>品牌名称:</span> |
|
|
|
<span style="color:red">{{ item.name }}</span><br> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-autocomplete> |
|
|
|
<el-select v-model="form.fgStaffSid" style="width:300px" filterable multiple> |
|
|
|
<el-option v-for="(item,index) in staffdata2" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
<!-- <el-autocomplete v-model="form.fgStaffName" :fetch-suggestions="querySearchAsync" class="addinputw"--> |
|
|
|
<!-- placeholder="请选择" @select="handleSelect">--> |
|
|
|
<!-- <i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear"/>--> |
|
|
|
<!-- <template slot-scope="{ item }">--> |
|
|
|
<!-- <div style="paddingg:5px;background-color:Azure;">--> |
|
|
|
<!-- <span>分管人员:</span>--> |
|
|
|
<!-- <span style="color:red">{{ item.name }}</span><br>--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </template>--> |
|
|
|
<!-- </el-autocomplete>--> |
|
|
|
<!-- <el-select v-model="form.fgStaffSid" style="width:300px">--> |
|
|
|
<!-- <el-option v-for="(item, i) in staffdata2" :key="i" :label="item.name" :value="item.sid">--> |
|
|
|
<!-- </el-option>--> |
|
|
@ -222,20 +225,9 @@ |
|
|
|
|
|
|
|
<td>分管人员</td> |
|
|
|
<td> |
|
|
|
<el-autocomplete v-model="form.fgStaffName" :fetch-suggestions="querySearchAsync" style="width:300px" |
|
|
|
placeholder="请选择" @select="handleSelect"> |
|
|
|
<i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear"/> |
|
|
|
<template slot-scope="{ item }"> |
|
|
|
<div style="paddingg:5px;background-color:Azure;"> |
|
|
|
<span>品牌名称:</span> |
|
|
|
<span style="color:red">{{ item.name }}</span><br> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-autocomplete> |
|
|
|
<!-- <el-select v-model="form.fgStaffSid" style="width:300px" @change="fgStaffSidChange">--> |
|
|
|
<!-- <el-option v-for="(item, i) in staffdata2" :key="i" :label="item.name" :value="item.sid">--> |
|
|
|
<!-- </el-option>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<el-select v-model="form.fgStaffSid" style="width:300px" filterable multiple> |
|
|
|
<el-option v-for="(item,index) in staffdata2" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
@ -384,6 +376,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
save() { |
|
|
|
this.form.fgStaffSid = this.form.fgStaffSid.join() |
|
|
|
this.form.organizationSid = this.$store.getters.userInfo.orgSid |
|
|
|
// this.form.dlxx = typeof(this.form.dlxx) == 'string' ? this.form.dlxx : this.form.dlxx.join() |
|
|
|
if (this.form.sid) { |
|
|
@ -422,15 +415,17 @@ export default { |
|
|
|
this.getStaff2() |
|
|
|
}, |
|
|
|
editRow(row) { |
|
|
|
this.getStaff(row.sid) |
|
|
|
this.getStaff2() |
|
|
|
this.dialogTitle = '编辑' |
|
|
|
this.isshow = 'edit' |
|
|
|
selectBySid(row.sid).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.form = response.data |
|
|
|
this.form.fgStaffName = response.data.fgNames |
|
|
|
this.form.fgStaffSid = response.data.fgSids |
|
|
|
this.form.fgStaffSid = response.data.fgStaffSid.split(',') |
|
|
|
this.form.zgStaffName = response.data.zgNames |
|
|
|
this.form.zgStaffSid = response.data.zgSids |
|
|
|
this.form.zgStaffSid = response.data.zgStaffSid |
|
|
|
console.log('112233445566', this.form) |
|
|
|
} |
|
|
|
}) |
|
|
@ -450,10 +445,10 @@ export default { |
|
|
|
// this.form.sort = row.sort |
|
|
|
// this.form.zgStaffSid = row.zgSids |
|
|
|
// this.form.fgStaffSid = row.fgSids |
|
|
|
this.getStaff(row.sid) |
|
|
|
this.getStaff2() |
|
|
|
}, |
|
|
|
deit(data) { // 节点编辑保存 |
|
|
|
this.getStaff(data.sid) |
|
|
|
this.getStaff2() |
|
|
|
console.log(data, 8888) |
|
|
|
this.dialogVisible = true |
|
|
|
// this.form = Object.assign({}, data) |
|
|
@ -467,11 +462,10 @@ export default { |
|
|
|
this.form.linkPhone = data.linkPhone |
|
|
|
this.form.sort = data.sort |
|
|
|
this.form.zgStaffSid = data.zgSids |
|
|
|
this.form.fgStaffSid = data.fgSids |
|
|
|
this.getStaff(data.sid) |
|
|
|
this.getStaff2() |
|
|
|
this.form.fgStaffSid = data.fgSids.split(',') |
|
|
|
}, |
|
|
|
nodeSave() { // 节点编辑保存 |
|
|
|
this.form.fgStaffSid = this.form.fgStaffSid.join() |
|
|
|
postOrgtree(this.form).then(res => { |
|
|
|
this.getOrgTree() |
|
|
|
this.dialogVisible = false |
|
|
@ -539,12 +533,12 @@ export default { |
|
|
|
}, |
|
|
|
// 分管人员 |
|
|
|
getStaff2() { |
|
|
|
// let params = {} |
|
|
|
getStaffName().then(res => { |
|
|
|
this.staffdata2 = res.data |
|
|
|
console.log('分管人员', this.staffdata2) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
querySearchAsync(queryString, cb) { |
|
|
|
console.log('查询条件:', queryString) |
|
|
|
if ( |
|
|
|