feat: There is no way the,table width

This commit is contained in:
super_liu
2021-11-10 15:03:28 +08:00
parent 76838ce772
commit 9b45e863d3
3 changed files with 13 additions and 8 deletions
@@ -311,6 +311,7 @@
show-overflow-tooltip show-overflow-tooltip
prop="standName" prop="standName"
label="中文名称" label="中文名称"
width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> <a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
@@ -322,6 +323,7 @@
show-overflow-tooltip show-overflow-tooltip
prop="standEnName" prop="standEnName"
label="英文名称" label="英文名称"
width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a> <a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
@@ -333,7 +335,7 @@
prop="issueTime" prop="issueTime"
label="发布日期" label="发布日期"
sortable sortable
width="110" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span>
@@ -345,7 +347,7 @@
prop="putTime" prop="putTime"
label="实施日期" label="实施日期"
sortable sortable
width="110" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
@@ -358,7 +360,7 @@
sortable sortable
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="文本状态"
width="110" width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -210,6 +210,7 @@
show-overflow-tooltip show-overflow-tooltip
prop="lawsName" prop="lawsName"
label="中文名称" label="中文名称"
width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.lawsName }}</a> <a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.lawsName }}</a>
@@ -221,6 +222,7 @@
show-overflow-tooltip show-overflow-tooltip
prop="lawsEnName" prop="lawsEnName"
label="英文名称" label="英文名称"
width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.lawsEnName }}</a> <a v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.lawsEnName }}</a>
@@ -232,7 +234,7 @@
prop="issueTime" prop="issueTime"
label="发文日期" label="发文日期"
sortable sortable
width="110" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span>
@@ -244,7 +246,7 @@
prop="XCXSSRQLAWS" prop="XCXSSRQLAWS"
label="新车实施日期" label="新车实施日期"
sortable sortable
width="130" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
@@ -257,7 +259,7 @@
sortable sortable
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="文本状态"
width="110" width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -210,6 +210,7 @@
show-overflow-tooltip show-overflow-tooltip
prop="standName" prop="standName"
label="标准名称" label="标准名称"
width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ <a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{
@@ -226,7 +227,7 @@
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable="custom" sortable="custom"
width="110px" width="150px"
label="发布日期"> label="发布日期">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C"> <div v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">
@@ -243,7 +244,7 @@
<el-table-column <el-table-column
prop="SSRQ" prop="SSRQ"
sortable="custom" sortable="custom"
width="110px" width="150px"
label="实施日期"> label="实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- {{ formatIssueDate(scope.row.putTime) }}--> <!-- {{ formatIssueDate(scope.row.putTime) }}-->