Commit 78ae5f7d authored by 黄奎's avatar 黄奎

页面修改

parent ffbf80c2
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
class="col-6 q-pr-lg q-pb-lg" label="校区名称" :rules="[val => !!val || '请填写校区名称']" /> class="col-6 q-pr-lg q-pb-lg" label="校区名称" :rules="[val => !!val || '请填写校区名称']" />
<q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.SAddress" ref="SAddress" <q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.SAddress" ref="SAddress"
class="col-6 q-pb-lg" label="校区地址" :rules="[val => !!val || '请填写校区地址']" /> class="col-6 q-pb-lg" label="校区地址" :rules="[val => !!val || '请填写校区地址']" />
<q-select class="col-6 q-pb-lg q-pr-lg" clearable filled stack-label use-input option-value="Id" <q-select class="col-6 q-pb-lg q-pr-lg" clearable filled stack-label use-input input-debounce="0" hint="Basic filtering"
option-label="EmployeeName" v-model="objOption.ManagerId" ref="ManagerId" :options="EmployeeList" option-value="Id" option-label="EmployeeName" v-model="objOption.ManagerId" ref="ManagerId"
label="校区联系人" :dense="false" emit-value map-options @filter="filterFn"> :options="EmployeeList" label="校区联系人" :dense="false" emit-value map-options @filter="filterFn">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
Remark: "", //校区备注 Remark: "", //校区备注
Status: "0", //校区状态 Status: "0", //校区状态
Dept_Id: 0, //校区直属上级部门编号 Dept_Id: 0, //校区直属上级部门编号
ManagerId: 0, //校区负责人 ManagerId: "", //校区负责人
}, },
optionTitle: "", optionTitle: "",
saveLoading: false, saveLoading: false,
...@@ -118,7 +118,9 @@ ...@@ -118,7 +118,9 @@
this.objOption.Remark = res.Data.Remark; this.objOption.Remark = res.Data.Remark;
this.objOption.Status = res.Data.Status; this.objOption.Status = res.Data.Status;
this.objOption.Dept_Id = res.Data.Dept_Id; this.objOption.Dept_Id = res.Data.Dept_Id;
this.objOption.ManagerId = res.Data.ManagerId; if (res.Data.ManagerId && res.Data.ManagerId > 0) {
this.objOption.ManagerId = res.Data.ManagerId;
}
this.returnString.push(this.objOption.Dept_Id.toString()); this.returnString.push(this.objOption.Dept_Id.toString());
}) })
} else { } else {
...@@ -131,7 +133,7 @@ ...@@ -131,7 +133,7 @@
this.objOption.Remark = ""; this.objOption.Remark = "";
this.objOption.Status = "0"; this.objOption.Status = "0";
this.objOption.Dept_Id = 0; this.objOption.Dept_Id = 0;
this.objOption.ManagerId = 0; this.objOption.ManagerId = "";
} }
this.persistent = true; this.persistent = true;
}, },
...@@ -155,10 +157,6 @@ ...@@ -155,10 +157,6 @@
if (res.Code == 1) { if (res.Code == 1) {
var jsonData = res.Data; var jsonData = res.Data;
if (jsonData && jsonData.length > 0) { if (jsonData && jsonData.length > 0) {
jsonData.unshift({
Id: 0,
EmployeeName: "请选择"
});
this.AllemployeeList = JSON.parse(JSON.stringify(jsonData)); this.AllemployeeList = JSON.parse(JSON.stringify(jsonData));
this.EmployeeList = JSON.parse(JSON.stringify(jsonData));; this.EmployeeList = JSON.parse(JSON.stringify(jsonData));;
} }
...@@ -190,9 +188,7 @@ ...@@ -190,9 +188,7 @@
!this.$refs.SAddress.hasError && !this.$refs.SAddress.hasError &&
!this.$refs.SLinkTel.hasError !this.$refs.SLinkTel.hasError
) { ) {
if (this.tempManager && this.tempManager.Id) {
this.objOption.ManagerId = this.tempManager.Id;
}
this.saveLoading = true; this.saveLoading = true;
saveSchool(this.objOption).then(res => { saveSchool(this.objOption).then(res => {
this.saveLoading = false this.saveLoading = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment