prod
校文 3 years ago
parent 836a398131
commit eed1c15bd7

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-13 18:14:01 * @Date: 2021-10-13 18:14:01
* @LastEditTime: 2021-11-08 13:37:26 * @LastEditTime: 2021-12-09 10:03:13
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/TailInsightDetails/rearWingInformationList/index.vue * @FilePath: /data-show/src/views/TailInsightDetails/rearWingInformationList/index.vue
@ -33,7 +33,14 @@
</a-form-item> </a-form-item>
</a-form> --> </a-form> -->
<div class="rwl-tb"> <div class="rwl-tb">
<v-table :columns="columns" :loading="tableLoading" :data="tdata" :pagination="pagination" @change="handlerPage"></v-table> <v-table :columns="columns" :loading="tableLoading" :data="tdata" :pagination="pagination" @change="handlerPage">
<template slot="srctitle" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text|doStr(100) }}</a>
<a-tag color="#108ee9" v-if="record.affections === 1" style="margin-left: 0.6rem;margin-right: 0px;"></a-tag>
<a-tag color="#fece42" v-if="record.affections === 3" style="margin-left: 0.6rem;margin-right: 0px"></a-tag>
<a-tag color="#cb7632" v-if="record.affections === 2" style="margin-left: 0.6rem;margin-right: 0px"></a-tag>
</template>
</v-table>
</div> </div>
</div> </div>
</div> </div>
@ -64,8 +71,9 @@ export default {
columns: [ columns: [
{ {
title: "新闻标题", title: "新闻标题",
key: "title", key: "srctitle",
dataIndex: "title", dataIndex: "srctitle",
scopedSlots: { customRender: "srctitle" },
}, },
{ {
title: "来源", title: "来源",
@ -85,12 +93,6 @@ export default {
dataIndex: "sourcetime", dataIndex: "sourcetime",
width: 180, width: 180,
}, },
{
title: "调性",
key: "affectionstr",
dataIndex: "affectionstr",
width: 100,
},
], ],
tdata: [], tdata: [],
}; };

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-13 18:14:01 * @Date: 2021-10-13 18:14:01
* @LastEditTime: 2021-11-08 17:19:08 * @LastEditTime: 2021-12-09 09:57:22
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/TailInsightDetails/rearWingInformationList/index.vue * @FilePath: /data-show/src/views/TailInsightDetails/rearWingInformationList/index.vue
@ -33,7 +33,14 @@
</a-form-item> </a-form-item>
</a-form> </a-form>
<div class="rwl-tb"> <div class="rwl-tb">
<v-table :columns="columns" :loading="tableLoading" :data="tdata" :pagination="pagination" @change="handlerPage"></v-table> <v-table :columns="columns" :loading="tableLoading" :data="tdata" :pagination="pagination" @change="handlerPage">
<template slot="srctitle" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text|doStr(100) }}</a>
<a-tag color="#108ee9" v-if="record.affections === 1" style="margin-left: 0.6rem;margin-right: 0px;"></a-tag>
<a-tag color="#fece42" v-if="record.affections === 3" style="margin-left: 0.6rem;margin-right: 0px"></a-tag>
<a-tag color="#cb7632" v-if="record.affections === 2" style="margin-left: 0.6rem;margin-right: 0px"></a-tag>
</template>
</v-table>
</div> </div>
</div> </div>
</div> </div>
@ -66,8 +73,9 @@ export default {
columns: [ columns: [
{ {
title: "新闻标题", title: "新闻标题",
key: "title", key: "srctitle",
dataIndex: "title", dataIndex: "srctitle",
scopedSlots: { customRender: "srctitle" },
}, },
{ {
title: "来源", title: "来源",
@ -87,12 +95,6 @@ export default {
dataIndex: "sourcetime", dataIndex: "sourcetime",
width: 180, width: 180,
}, },
{
title: "调性",
key: "affectionstr",
dataIndex: "affectionstr",
width: 100,
},
{ {
title: "车型", title: "车型",
key: "modelName", key: "modelName",

Loading…
Cancel
Save