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

change

parent 2d50cef1
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
class="table-pagination" class="table-pagination"
:current-page="currentPage" :current-page="currentPage"
:page-size="pageSize" :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" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
@size-change="handleSizeChange" @size-change="handleSizeChange"
......
...@@ -195,7 +195,11 @@ ...@@ -195,7 +195,11 @@
:label="column.label" :label="column.label"
align="center" align="center"
:prop="column.key" :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> </el-table>
<div class="inner-title"> <div class="inner-title">
...@@ -372,6 +376,17 @@ export default { ...@@ -372,6 +376,17 @@ export default {
}, },
}, },
methods: { 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) { changeVisible(val) {
this.dialogVisible = val; this.dialogVisible = val;
}, },
...@@ -630,4 +645,7 @@ export default { ...@@ -630,4 +645,7 @@ export default {
line-height: 0.4rem; line-height: 0.4rem;
vertical-align: top; vertical-align: top;
} }
.red{
color: rgb(248, 98, 98);
}
</style> </style>
\ No newline at end of file
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
}, },
tabnamenow:{ tabnamenow:{
type: String, type: String,
default: '' default: 'ZLPD'
} }
}, },
data() { data() {
......
...@@ -1160,6 +1160,12 @@ export default { ...@@ -1160,6 +1160,12 @@ export default {
id: data.project_id, id: data.project_id,
}; };
if (data.type == 5 || data.type == 7 || data.type == 4) { 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; this.GCZLVisible = true;
if (data.type == 4) { if (data.type == 4) {
this.$eventBus.$emit("switchTabGC", "ZLJC"); 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