|
@@ -5,7 +5,7 @@
|
|
<el-col :span="24" class="list">
|
|
<el-col :span="24" class="list">
|
|
<template>
|
|
<template>
|
|
<el-col :span="24" class="search">
|
|
<el-col :span="24" class="search">
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <el-col :span="5">
|
|
<el-select v-model="field" placeholder="请选择所属领域" @change="change">
|
|
<el-select v-model="field" placeholder="请选择所属领域" @change="change">
|
|
<el-option label="先进制造" value="0"></el-option>
|
|
<el-option label="先进制造" value="0"></el-option>
|
|
<el-option label="新材料" value="1"></el-option>
|
|
<el-option label="新材料" value="1"></el-option>
|
|
@@ -16,8 +16,8 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-radio-group v-model="radio1" @change="submits">
|
|
<el-radio-group v-model="radio1" @change="submits">
|
|
- <el-radio label="0">是我处支持范围</el-radio>
|
|
|
|
- <el-radio label="1">不是我处支持范围</el-radio>
|
|
|
|
|
|
+ <el-radio label="0" border>是我处支持范围</el-radio>
|
|
|
|
+ <el-radio label="1" border>不是我处支持范围</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
>
|
|
>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -85,39 +85,32 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...product({ productQuery: 'query' }),
|
|
...product({ productQuery: 'query' }),
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
- console.log(this.field);
|
|
|
|
if (this.field) {
|
|
if (this.field) {
|
|
if (this.radio1) {
|
|
if (this.radio1) {
|
|
let res = await this.productQuery({ skip, totaltype: 1, field: this.field, radio1: this.radio1, limit, ...info });
|
|
let res = await this.productQuery({ skip, totaltype: 1, field: this.field, radio1: this.radio1, limit, ...info });
|
|
- console.log(res.data);
|
|
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
} else {
|
|
} else {
|
|
let res = await this.productQuery({ skip, totaltype: 1, field: this.field, limit, ...info });
|
|
let res = await this.productQuery({ skip, totaltype: 1, field: this.field, limit, ...info });
|
|
- console.log(res.data);
|
|
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
}
|
|
}
|
|
} else if (this.radio1) {
|
|
} else if (this.radio1) {
|
|
if (this.field) {
|
|
if (this.field) {
|
|
let res = await this.productQuery({ skip, totaltype: 1, field: this.field, radio1: this.radio1, limit, ...info });
|
|
let res = await this.productQuery({ skip, totaltype: 1, field: this.field, radio1: this.radio1, limit, ...info });
|
|
- console.log(res.data);
|
|
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
} else {
|
|
} else {
|
|
let res = await this.productQuery({ skip, totaltype: 1, radio1: this.radio1, limit, ...info });
|
|
let res = await this.productQuery({ skip, totaltype: 1, radio1: this.radio1, limit, ...info });
|
|
- console.log(res.data);
|
|
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
let res = await this.productQuery({ skip, totaltype: 1, limit, ...info });
|
|
let res = await this.productQuery({ skip, totaltype: 1, limit, ...info });
|
|
- console.log(res.data);
|
|
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
async change(value) {
|
|
async change(value) {
|
|
this.$set(this, `field`, value);
|
|
this.$set(this, `field`, value);
|
|
this.search();
|
|
this.search();
|