|
@@ -75,13 +75,14 @@
|
|
|
<el-select
|
|
|
v-model="deptBudgetList.otherPersonCharge"
|
|
|
placeholder="请选择其他负责人"
|
|
|
+ @change="selectstaffOther"
|
|
|
multiple
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in options"
|
|
|
+ v-for="item in optionsOther"
|
|
|
:key="item.value"
|
|
|
:label="item.staffName"
|
|
|
- :value="item.staffName"
|
|
|
+ :value="item.staffName + ' ' + item.staffMobilePhone "
|
|
|
/>
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
@@ -274,6 +275,7 @@ export default {
|
|
|
radio: 1,
|
|
|
personCharge: [],
|
|
|
options: [],
|
|
|
+ optionsOther: [],
|
|
|
staffList: [],
|
|
|
polygons: [
|
|
|
{
|
|
@@ -356,6 +358,14 @@ export default {
|
|
|
this.options = this.staffList
|
|
|
}
|
|
|
},
|
|
|
+ selectstaffOther(e) {
|
|
|
+ // for (var i = 0; i < this.staffList.length; i++) {
|
|
|
+ // if (this.staffList[i].staffName == e) {
|
|
|
+ // this.deptBudgetList.personPhone = this.staffList[i].staffMobilePhone
|
|
|
+ // this.deptBudgetList.personChargeKey = this.staffList[i].staffId
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ },
|
|
|
selectstaff(e) {
|
|
|
for (var i = 0; i < this.staffList.length; i++) {
|
|
|
if (this.staffList[i].staffName == e) {
|
|
@@ -690,8 +700,12 @@ export default {
|
|
|
.then((response) => {
|
|
|
// this.agent = response
|
|
|
this.options = response
|
|
|
+ this.optionsOther = response
|
|
|
this.staffList = response
|
|
|
this.personCharge = response
|
|
|
+ // for(var i=0;i<response.length;i++){
|
|
|
+ // this.optionsOther.push(response[i].staffName+" "+response[i].staffMobilePhone)
|
|
|
+ // }
|
|
|
})
|
|
|
},
|
|
|
selectChapterTwo(e) {
|