日期展示

This commit is contained in:
宋伟佳
2021-12-06 09:51:01 +08:00
parent 542579d9af
commit 4067d3f263
@@ -118,31 +118,31 @@
sortable
label="标准实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{
scope.row.ssrq ? $moment(scope.row.ssrq).format('YYYY-MM-DD') : '-'
}}</span>
<span>
{{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }}
</span>
</template>
</el-table-column>
<el-table-column
prop="xcxssrqgj"
prop="xcxssrq"
width="190px"
sortable
label="新车型实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{
scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format('YYYY-MM-DD') : '-'
}}</span>
<span>
{{ scope.row.xcxssrq ? scope.row.xcxssrq.substring(0, 10) : '-' }}
</span>
</template>
</el-table-column>
<el-table-column
prop="zccssrqgj"
prop="zccssrq"
sortable
width="190px"
label="在产车实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{
scope.row.zccssrq ? $moment(scope.row.zccssrq).format('YYYY-MM-DD') : '-'
}}</span>
<span>
{{ scope.row.zccssrq ? scope.row.zccssrq.substring(0, 10) : '-' }}
</span>
</template>
</el-table-column>
<el-table-column
@@ -165,7 +165,8 @@
<!-- <el-button @click="changeState(scope.row)">符合性状态</el-button>-->
<div class="table-jump" @click="changeState(scope.row)">
<div v-if="scope.row.unCount === 0">符合</div>
<div v-else >不符合</div>
<div v-if="scope.row.unCount === 1">不符合</div>
<div v-else ></div>
</div>
</template>
</el-table-column>