fix: 查询修正
This commit is contained in:
parent
931c45da11
commit
c19540d9f5
|
|
@ -676,7 +676,7 @@ export default {
|
||||||
},
|
},
|
||||||
materialChange() {
|
materialChange() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.form.new_batch = "";
|
that.form.new_batch = that.route_code=='shangpaipingmo'?that.form.new_batch:"";
|
||||||
let totalCount = 0,data = [];
|
let totalCount = 0,data = [];
|
||||||
if(that.selectItems.length>0){
|
if(that.selectItems.length>0){
|
||||||
data = that.materialOptions.filter((item) => {
|
data = that.materialOptions.filter((item) => {
|
||||||
|
|
|
||||||
|
|
@ -546,14 +546,7 @@ export default {
|
||||||
//搜索
|
//搜索
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
console.log('this.query',this.query)
|
console.log('this.query',this.query)
|
||||||
let obj = Object.assign(this.query);
|
this.$refs.table.queryData(this.query);
|
||||||
for(let key in obj){
|
|
||||||
if(obj[key]==null||obj==''){
|
|
||||||
delete obj[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log('obj',obj);
|
|
||||||
this.$refs.table.queryData(obj);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
showWpr(row){
|
showWpr(row){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue