|
@@ -3,7 +3,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="24" class="main">
|
|
<el-col :span="24" class="main">
|
|
<el-col :span="24" class="one" v-if="type == '1'">
|
|
<el-col :span="24" class="one" v-if="type == '1'">
|
|
- <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
|
|
|
+ <el-col :span="24" class="list" v-for="(item, index) in list" :key="index" @click.native="detailBtn(item)">
|
|
<el-col :span="24" class="title">
|
|
<el-col :span="24" class="title">
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
</el-col>
|
|
</el-col>
|
|
@@ -21,7 +21,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="two" v-else-if="type == '2'">
|
|
<el-col :span="24" class="two" v-else-if="type == '2'">
|
|
- <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
|
|
|
+ <el-col :span="24" class="list" v-for="(item, index) in list" :key="index" @click.native="detailBtn(item)">
|
|
<el-col :span="17" class="title">
|
|
<el-col :span="17" class="title">
|
|
<el-col :span="24" class="text">
|
|
<el-col :span="24" class="text">
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
@@ -43,7 +43,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="thr" v-else-if="type == '3'">
|
|
<el-col :span="24" class="thr" v-else-if="type == '3'">
|
|
- <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
|
|
|
+ <el-col :span="24" class="list" v-for="(item, index) in list" :key="index" @click.native="detailBtn(item)">
|
|
<el-col :span="24" class="title">
|
|
<el-col :span="24" class="title">
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
</el-col>
|
|
</el-col>
|
|
@@ -72,7 +72,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="thr" v-else-if="type == '4'">
|
|
<el-col :span="24" class="thr" v-else-if="type == '4'">
|
|
- <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
|
|
|
+ <el-col :span="24" class="list" v-for="(item, index) in list" :key="index" @click.native="detailBtn(item)">
|
|
<el-col :span="24" class="title">
|
|
<el-col :span="24" class="title">
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
</el-col>
|
|
</el-col>
|
|
@@ -120,7 +120,11 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
- methods: {},
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ detailBtn(data) {
|
|
|
|
+ this.$emit('detailBtn', data);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
},
|
|
},
|