Commit 7765a43c authored by 黄奎's avatar 黄奎

页面修改

parent 7736eebe
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.StudentName" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.StudentName"
label="学生姓名" @clear="resetSearch" maxlength="30" /> label="学生姓名" @clear="resetSearch" maxlength="30" />
</div> </div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" option-label="EmployeeName"
v-model="msg.QCreateBy" :options="EmployeeList" emit-value map-options label="业务员" use-input
@filter="filterFn2" clearable />
</div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -79,8 +84,7 @@ ...@@ -79,8 +84,7 @@
</template> </template>
</q-table> </q-table>
</div> </div>
<eduinfo-form v-if="isShowEduForm" :seting-obj="eduObj" @close="closeEdudia" @success="refreshPage">
</eduinfo-form>
</div> </div>
</template> </template>
<script> <script>
...@@ -95,14 +99,14 @@ ...@@ -95,14 +99,14 @@
import { import {
downloadLocalFile downloadLocalFile
} from "../../api/common/common"; } from "../../api/common/common";
import {
import eduinfoForm from "../../components/sale/eduinfo-form"; queryEmployee
} from '../../api/users/user';
export default { export default {
meta: { meta: {
title: "合同查询", title: "合同查询",
}, },
components: { components: {
eduinfoForm,
}, },
data() { data() {
return { return {
...@@ -124,7 +128,6 @@ ...@@ -124,7 +128,6 @@
field: "StudentName", field: "StudentName",
align: "left", align: "left",
}, },
{ {
name: "CourseName", name: "CourseName",
label: "课程名称", label: "课程名称",
...@@ -155,7 +158,6 @@ ...@@ -155,7 +158,6 @@
align: "left", align: "left",
field: "AdminStatusStr", field: "AdminStatusStr",
}, },
{ {
name: "IsCompanySeal", name: "IsCompanySeal",
label: "是否盖章", label: "是否盖章",
...@@ -178,6 +180,8 @@ ...@@ -178,6 +180,8 @@
Status: -1, //0草稿 1提交审核 2审核通过 3驳回 4取消 Status: -1, //0草稿 1提交审核 2审核通过 3驳回 4取消
ContractNo: "", //合同编号 ContractNo: "", //合同编号
StudentName: "", //学生姓名 StudentName: "", //学生姓名
IsQueryAll: 1,
QCreateBy: "",
}, },
pageCount: 0, pageCount: 0,
dataList: [], dataList: [],
...@@ -225,11 +229,13 @@ ...@@ -225,11 +229,13 @@
Name: "取消", Name: "取消",
}, },
], ],
eduObj: null, EmployeeList: [], //业务员
isShowEduForm: false, AllemployeeList: [],
}; };
}, },
created() {}, created() {
this.getEmployee()
},
mounted() { mounted() {
if (this.$route.query && this.$route.query.Name) { if (this.$route.query && this.$route.query.Name) {
//从订单完成统计跳转过来的带的参数 //从订单完成统计跳转过来的带的参数
...@@ -238,6 +244,36 @@ ...@@ -238,6 +244,36 @@
this.getList(); this.getList();
}, },
methods: { methods: {
//业务员
getEmployee() {
var qMsg = {
Dept_Id: 0
}
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
this.EmployeeList = res.Data;
let obj = {
Id: "",
EmployeeName: "不限"
}
this.EmployeeList.unshift(obj)
this.AllemployeeList = JSON.parse(JSON.stringify(this.EmployeeList));
}
}).catch(() => {
})
},
//筛选业务员
filterFn2(val, update) {
update(() => {
if (val === '') {
this.EmployeeList = JSON.parse(JSON.stringify(this.AllemployeeList))
} else {
const needle = val.toLowerCase()
this.EmployeeList = this.AllemployeeList.filter(v => v.EmployeeName.toLowerCase().indexOf(needle) > -1)
}
})
},
//获取校区列表 //获取校区列表
getList() { getList() {
this.loading = true; this.loading = true;
...@@ -269,19 +305,11 @@ ...@@ -269,19 +305,11 @@
}); });
window.open(routeUrl.href, "_blank"); window.open(routeUrl.href, "_blank");
}, },
//关闭弹窗
closeEdudia() {
this.isShowEduForm = false;
},
//刷新页面a
refreshPage() {
this.isShowEduForm = false;
this.getList();
},
}, },
}; };
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style>
\ No newline at end of file </style>
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