Commit 3a8b6932 authored by 袁家斌's avatar 袁家斌

change

parent 2d50cef1
......@@ -48,7 +48,7 @@
class="table-pagination"
:current-page="currentPage"
:page-size="pageSize"
:page-sizes="[10, 20, 30, 40, 50]"
:page-sizes="[10, 20, 30, 40, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
@size-change="handleSizeChange"
......
......@@ -195,7 +195,11 @@
:label="column.label"
align="center"
:prop="column.key"
></el-table-column>
>
<template slot-scope="scope">
<span :class="{'red' : isRed(scope.row[column.key])}">{{scope.row[column.key]}}</span>
</template>
</el-table-column>
</el-table>
<div class="inner-title">
......@@ -372,6 +376,17 @@ export default {
},
},
methods: {
isRed(str){
if (str) {
let num = str.indexOf('%')
if (num >= 0) {
let str1 = str.substring(0, num) * 1
return str1 > 0
}
}else {
return false
}
},
changeVisible(val) {
this.dialogVisible = val;
},
......@@ -630,4 +645,7 @@ export default {
line-height: 0.4rem;
vertical-align: top;
}
.red{
color: rgb(248, 98, 98);
}
</style>
\ No newline at end of file
......@@ -58,7 +58,7 @@ export default {
},
tabnamenow:{
type: String,
default: ''
default: 'ZLPD'
}
},
data() {
......
......@@ -1160,6 +1160,12 @@ export default {
id: data.project_id,
};
if (data.type == 5 || data.type == 7 || data.type == 4) {
this.tabNameDialog = "ZLPD"
this.tabListDialog = [
{ name: "ZLPD", label: "质量评定" },
{ name: "ZLJC", label: "质量检测" },
];
this.GCZLDialogTitle = '工程质量详情'
this.GCZLVisible = true;
if (data.type == 4) {
this.$eventBus.$emit("switchTabGC", "ZLJC");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment