mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-17 08:03:49 +08:00
更改
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
v-for="(item, index) in searchdata"
|
||||
:key="index"
|
||||
@click="selectsearch(item, index)"
|
||||
:class="activeIndexa == index ? 'active' : 'unactive'"
|
||||
:class="activeIndexa == index"
|
||||
>
|
||||
{{ item.title }}
|
||||
</li>
|
||||
@@ -219,12 +219,13 @@
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="rc-button">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="rc-button">
|
||||
<span @click="openclose()">取消</span>
|
||||
<em @click="openclose()">确认</em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<el-dialog :visible.sync="dialogInfo1" hegight="700px" v-if="!isadrond">
|
||||
@@ -312,11 +313,13 @@
|
||||
</el-dialog>
|
||||
</div>
|
||||
<!-- rc-main end -->
|
||||
<MyFooter></MyFooter>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Myheader from "~/components/header.vue";
|
||||
import MyFooter from '~/components/rc-footer.vue'
|
||||
import { biaome, userstype, searchchanpin } from "../../ajax/getData";
|
||||
export default {
|
||||
data() {
|
||||
@@ -520,6 +523,7 @@ export default {
|
||||
},
|
||||
components: {
|
||||
Myheader,
|
||||
MyFooter
|
||||
},
|
||||
mounted() {
|
||||
this.usetmessage();
|
||||
@@ -595,9 +599,13 @@ export default {
|
||||
if (element.name == "品种") {
|
||||
pinzhong.push(element);
|
||||
this.catageb = pinzhong;
|
||||
this.catageb=this.catageb.sort((n1,n2)=>{
|
||||
return n1.sort-n2.sort;
|
||||
})
|
||||
this.catageb.forEach((element) => {
|
||||
element.checked = false;
|
||||
});
|
||||
// console.log(this.catageb);
|
||||
}
|
||||
if (element.name == "功能") {
|
||||
gonneg.push(element);
|
||||
@@ -605,6 +613,7 @@ export default {
|
||||
this.catagea.forEach((element) => {
|
||||
element.checked = false;
|
||||
});
|
||||
console.log(this.catagea);
|
||||
}
|
||||
if (element.name == "年龄") {
|
||||
age.push(element);
|
||||
@@ -831,6 +840,9 @@ export default {
|
||||
this.usetmessage(item.title);
|
||||
},
|
||||
selectage(item, index) {
|
||||
if(this.activeIndex=='-1'){
|
||||
this.activeIndex=0;
|
||||
}
|
||||
// debugger;
|
||||
// this.userishwo1 = !this.userishwo1;
|
||||
let tagUsedAge = {};
|
||||
@@ -863,6 +875,9 @@ export default {
|
||||
this.activeIndexc = index;
|
||||
},
|
||||
selectagc(item, index) {
|
||||
if(this.activeIndex=='-1'){
|
||||
this.activeIndex=0;
|
||||
}
|
||||
// let tagFunction = {
|
||||
// petType: this.activeIndex1,
|
||||
// tagFunction: item.tagName,
|
||||
@@ -886,6 +901,9 @@ export default {
|
||||
this.activeIndexd = index;
|
||||
},
|
||||
selectagd(item, index) {
|
||||
if(this.activeIndex=='-1'){
|
||||
this.activeIndex=0;
|
||||
}
|
||||
let tagBreed = {};
|
||||
if (item.checked == false) {
|
||||
item.checked = true;
|
||||
@@ -916,6 +934,10 @@ export default {
|
||||
},
|
||||
selectproduct(item, index) {
|
||||
this.activeIndexb = index;
|
||||
console.log(this.activeIndex);
|
||||
if(this.activeIndex=='-1'){
|
||||
this.activeIndex=0;
|
||||
}
|
||||
if (item.checked == false) {
|
||||
item.checked = true;
|
||||
this.$refs.chosebox[index].className = "active";
|
||||
|
||||
Reference in New Issue
Block a user