|
@@ -4,7 +4,7 @@
|
|
<el-image class="image" :src="chengguo" fit="fill" />
|
|
<el-image class="image" :src="chengguo" fit="fill" />
|
|
</el-col>
|
|
</el-col>
|
|
<div class="w_1300">
|
|
<div class="w_1300">
|
|
- <div class="active">
|
|
|
|
|
|
+ <!-- <div class="active">
|
|
<div class="active_1" v-show="industry && industry.length > 0">
|
|
<div class="active_1" v-show="industry && industry.length > 0">
|
|
<div class="active_left">行业:</div>
|
|
<div class="active_left">行业:</div>
|
|
<div class="active_right">
|
|
<div class="active_right">
|
|
@@ -53,7 +53,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<div class="two">
|
|
<div class="two">
|
|
<div class="twoSeacher">
|
|
<div class="twoSeacher">
|
|
<div class="twoLeft">
|
|
<div class="twoLeft">
|
|
@@ -310,95 +310,99 @@ const sizeChange = (limits) => {
|
|
search({ skip: 0, limit: limit })
|
|
search({ skip: 0, limit: limit })
|
|
}
|
|
}
|
|
const toSelect = (data, type) => {
|
|
const toSelect = (data, type) => {
|
|
- if (data.id != '-1') {
|
|
|
|
- if (type == '1') {
|
|
|
|
- for (const val of plateList.value) {
|
|
|
|
- if (data.id == val.id) val.is_active = true
|
|
|
|
- if (val.id == '-1') val.is_active = false
|
|
|
|
- }
|
|
|
|
- const res = industry.value.find((i) => i.id == data.id)
|
|
|
|
- if (!res) industry.value.push(data)
|
|
|
|
- } else if (type == '2') {
|
|
|
|
- for (const val of typeList.value) {
|
|
|
|
- if (data.id == val.id) val.is_active = true
|
|
|
|
- if (val.id == '-1') val.is_active = false
|
|
|
|
- }
|
|
|
|
- const res = field.value.find((i) => i.id == data.id)
|
|
|
|
- if (!res) field.value.push(data)
|
|
|
|
- } else if (type == '3') {
|
|
|
|
- for (const val of matureList.value) {
|
|
|
|
- if (data.id == val.id) val.is_active = true
|
|
|
|
- if (val.id == '-1') val.is_active = false
|
|
|
|
- }
|
|
|
|
- const res = mature.value.find((i) => i.id == data.id)
|
|
|
|
- if (!res) mature.value.push(data)
|
|
|
|
- } else if (type == '4') {
|
|
|
|
- for (const val of sellList.value) {
|
|
|
|
- if (data.id == val.id) val.is_active = true
|
|
|
|
- if (val.id == '-1') val.is_active = false
|
|
|
|
- }
|
|
|
|
- const res = sell.value.find((i) => i.id == data.id)
|
|
|
|
- if (!res) sell.value.push(data)
|
|
|
|
- } else if (type == '5') {
|
|
|
|
- if (data.value != '0') {
|
|
|
|
- for (const val of moneyList.value) {
|
|
|
|
|
|
+ if (data.is_active) {
|
|
|
|
+ toDel(data, type)
|
|
|
|
+ } else {
|
|
|
|
+ if (data.id != '-1') {
|
|
|
|
+ if (type == '1') {
|
|
|
|
+ for (const val of plateList.value) {
|
|
|
|
+ if (data.id == val.id) val.is_active = true
|
|
|
|
+ if (val.id == '-1') val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ const res = industry.value.find((i) => i.id == data.id)
|
|
|
|
+ if (!res) industry.value.push(data)
|
|
|
|
+ } else if (type == '2') {
|
|
|
|
+ for (const val of typeList.value) {
|
|
|
|
+ if (data.id == val.id) val.is_active = true
|
|
|
|
+ if (val.id == '-1') val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ const res = field.value.find((i) => i.id == data.id)
|
|
|
|
+ if (!res) field.value.push(data)
|
|
|
|
+ } else if (type == '3') {
|
|
|
|
+ for (const val of matureList.value) {
|
|
if (data.id == val.id) val.is_active = true
|
|
if (data.id == val.id) val.is_active = true
|
|
- if (val.value == '0') val.is_active = false
|
|
|
|
|
|
+ if (val.id == '-1') val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ const res = mature.value.find((i) => i.id == data.id)
|
|
|
|
+ if (!res) mature.value.push(data)
|
|
|
|
+ } else if (type == '4') {
|
|
|
|
+ for (const val of sellList.value) {
|
|
|
|
+ if (data.id == val.id) val.is_active = true
|
|
|
|
+ if (val.id == '-1') val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ const res = sell.value.find((i) => i.id == data.id)
|
|
|
|
+ if (!res) sell.value.push(data)
|
|
|
|
+ } else if (type == '5') {
|
|
|
|
+ if (data.value != '0') {
|
|
|
|
+ for (const val of moneyList.value) {
|
|
|
|
+ if (data.id == val.id) val.is_active = true
|
|
|
|
+ if (val.value == '0') val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ const res = money.value.find((i) => i.id == data.id)
|
|
|
|
+ if (!res) money.value.push(data)
|
|
|
|
+ } else {
|
|
|
|
+ for (const val of moneyList.value) {
|
|
|
|
+ if (val.value == '0') val.is_active = true
|
|
|
|
+ else val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ money.value = []
|
|
}
|
|
}
|
|
- const res = money.value.find((i) => i.id == data.id)
|
|
|
|
- if (!res) money.value.push(data)
|
|
|
|
} else {
|
|
} else {
|
|
|
|
+ for (const val of cityList.value) {
|
|
|
|
+ if (data.id == val.id) val.is_active = true
|
|
|
|
+ if (val.id == '-1') val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ const res = city.value.find((i) => i.id == data.id)
|
|
|
|
+ if (!res) city.value.push(data)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (type == '1') {
|
|
|
|
+ for (const val of plateList.value) {
|
|
|
|
+ if (val.id == '-1') val.is_active = true
|
|
|
|
+ else val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ industry.value = []
|
|
|
|
+ } else if (type == '2') {
|
|
|
|
+ for (const val of typeList.value) {
|
|
|
|
+ if (val.id == '-1') val.is_active = true
|
|
|
|
+ else val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ field.value = []
|
|
|
|
+ } else if (type == '3') {
|
|
|
|
+ for (const val of matureList.value) {
|
|
|
|
+ if (val.id == '-1') val.is_active = true
|
|
|
|
+ else val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ mature.value = []
|
|
|
|
+ } else if (type == '4') {
|
|
|
|
+ for (const val of sellList.value) {
|
|
|
|
+ if (val.id == '-1') val.is_active = true
|
|
|
|
+ else val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ sell.value = []
|
|
|
|
+ } else if (type == '5') {
|
|
for (const val of moneyList.value) {
|
|
for (const val of moneyList.value) {
|
|
if (val.value == '0') val.is_active = true
|
|
if (val.value == '0') val.is_active = true
|
|
else val.is_active = false
|
|
else val.is_active = false
|
|
}
|
|
}
|
|
money.value = []
|
|
money.value = []
|
|
|
|
+ } else {
|
|
|
|
+ for (const val of cityList.value) {
|
|
|
|
+ if (val.id == '-1') val.is_active = true
|
|
|
|
+ else val.is_active = false
|
|
|
|
+ }
|
|
|
|
+ city.value = []
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- for (const val of cityList.value) {
|
|
|
|
- if (data.id == val.id) val.is_active = true
|
|
|
|
- if (val.id == '-1') val.is_active = false
|
|
|
|
- }
|
|
|
|
- const res = city.value.find((i) => i.id == data.id)
|
|
|
|
- if (!res) city.value.push(data)
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (type == '1') {
|
|
|
|
- for (const val of plateList.value) {
|
|
|
|
- if (val.id == '-1') val.is_active = true
|
|
|
|
- else val.is_active = false
|
|
|
|
- }
|
|
|
|
- industry.value = []
|
|
|
|
- } else if (type == '2') {
|
|
|
|
- for (const val of typeList.value) {
|
|
|
|
- if (val.id == '-1') val.is_active = true
|
|
|
|
- else val.is_active = false
|
|
|
|
- }
|
|
|
|
- field.value = []
|
|
|
|
- } else if (type == '3') {
|
|
|
|
- for (const val of matureList.value) {
|
|
|
|
- if (val.id == '-1') val.is_active = true
|
|
|
|
- else val.is_active = false
|
|
|
|
- }
|
|
|
|
- mature.value = []
|
|
|
|
- } else if (type == '4') {
|
|
|
|
- for (const val of sellList.value) {
|
|
|
|
- if (val.id == '-1') val.is_active = true
|
|
|
|
- else val.is_active = false
|
|
|
|
- }
|
|
|
|
- sell.value = []
|
|
|
|
- } else if (type == '5') {
|
|
|
|
- for (const val of moneyList.value) {
|
|
|
|
- if (val.value == '0') val.is_active = true
|
|
|
|
- else val.is_active = false
|
|
|
|
- }
|
|
|
|
- money.value = []
|
|
|
|
- } else {
|
|
|
|
- for (const val of cityList.value) {
|
|
|
|
- if (val.id == '-1') val.is_active = true
|
|
|
|
- else val.is_active = false
|
|
|
|
- }
|
|
|
|
- city.value = []
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|