Commit 7c54c6eb by 谢鸿飞

修改模糊哦查询

parent 1aa4bf55
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"js-cookie": "^2.2.0", "js-cookie": "^2.2.0",
"moment": "^2.24.0", "moment": "^2.24.0",
"node-sass": "^6.0.0",
"normalize.css": "^8.0.0", "normalize.css": "^8.0.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"print-js": "^1.0.63", "print-js": "^1.0.63",
...@@ -45,7 +46,6 @@ ...@@ -45,7 +46,6 @@
"friendly-errors-webpack-plugin": "^1.6.1", "friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1", "html-webpack-plugin": "^2.30.1",
"node-notifier": "^5.1.2", "node-notifier": "^5.1.2",
"node-sass": "^4.13.0",
"optimize-css-assets-webpack-plugin": "^3.2.0", "optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0", "ora": "^1.2.0",
"portfinder": "^1.0.13", "portfinder": "^1.0.13",
......
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
filterable filterable
class="input-width" class="input-width"
clearable clearable
remote
placeholder="请选择部门" placeholder="请选择部门"
:remote-method="remoteMethod"
> >
<el-option <el-option
v-for="item in departmentOptions" v-for="item in departmentOptions"
...@@ -117,7 +119,7 @@ ...@@ -117,7 +119,7 @@
</el-table-column> </el-table-column>
<el-table-column label="申领人" align="center"> <el-table-column label="申领人" align="center">
<template slot-scope="scope">{{ <template slot-scope="scope">{{
scope.row.backOutboundName || scope.row.receptOutboundName scope.row.memberName || scope.row.memberName
}}</template> }}</template>
</el-table-column> </el-table-column>
<el-table-column label="所属部门" align="center"> <el-table-column label="所属部门" align="center">
...@@ -249,6 +251,14 @@ export default { ...@@ -249,6 +251,14 @@ export default {
}, },
}, },
methods: { methods: {
//部门选择改变值掉查询接口
remoteMethod(e){
console.log(e)
getDepartmentList({name:e}).then((res) => {
this.departmentOptions = res.data.list;
});
},
// 选择时间 // 选择时间
changeDate(value) { changeDate(value) {
if (value) { if (value) {
......
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