Commit e5ee5271 authored by kaitly205422@163.com's avatar kaitly205422@163.com

添加风险等级,修改字体反转问题

parent c6548eac
...@@ -893,8 +893,8 @@ export default { ...@@ -893,8 +893,8 @@ export default {
} }
.rowText { .rowText {
writing-mode: vertical-rl; writing-mode: vertical-lr;
-webkit-writing-mode: vertical-rl; -webkit-writing-mode: vertical-lr;
font-size: 18px; font-size: 18px;
} }
......
...@@ -371,6 +371,7 @@ ...@@ -371,6 +371,7 @@
<van-col span="9">房间:</van-col> <van-col span="9">房间:</van-col>
<van-col span="15">{{ item.roomName }}</van-col> <van-col span="15">{{ item.roomName }}</van-col>
</van-row> </van-row>
</van-col> </van-col>
<!-- <van-col span="7" :style="{ color: item.state == 1 ? '#0069e5' : '#03b615' }"> <!-- <van-col span="7" :style="{ color: item.state == 1 ? '#0069e5' : '#03b615' }">
{{ "●待审批" }} {{ "●待审批" }}
......
...@@ -33,6 +33,10 @@ ...@@ -33,6 +33,10 @@
<van-col span="9">房间:</van-col> <van-col span="9">房间:</van-col>
<van-col span="15">{{ item.roomName }}</van-col> <van-col span="15">{{ item.roomName }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="9">风险等级:</van-col>
<van-col span="15" :style="{ color: getColor(item.level) }">{{ item.level }}</van-col>
</van-row>
</van-col> </van-col>
<!-- <van-col span="7" :style="{ color: item.state == 1 ? '#0069e5' : '#03b615' }"> <!-- <van-col span="7" :style="{ color: item.state == 1 ? '#0069e5' : '#03b615' }">
{{ "●待审批" }} {{ "●待审批" }}
...@@ -129,6 +133,18 @@ export default { ...@@ -129,6 +133,18 @@ export default {
// this.postList(); // this.postList();
}, },
methods: { methods: {
getColor(name) {
switch (name) {
case "低风险":
return "#32b5ff";
case "一般风险":
return "#ffaa00";
case "较大风险":
return " #fec000";
case "重大风险":
return " #fe0000";
}
},
delInherent(item) { delInherent(item) {
Dialog.confirm({ Dialog.confirm({
title: "删除固有风险", title: "删除固有风险",
......
...@@ -10,8 +10,8 @@ module.exports = { ...@@ -10,8 +10,8 @@ module.exports = {
proxy: { proxy: {
//配置跨域 //配置跨域
"/app-api": { "/app-api": {
target: "http://192.168.4.232:8080/", //这里是后台的地址 // target: "http://192.168.4.232:8080/", //这里是后台的地址
// target: "http://192.168.15.230:8080/", //这里是晓晋的地址 target: "http://192.168.15.230:8080/", //这里是晓晋的地址
ws: true, ws: true,
changOrigin: true, //允许跨域 changOrigin: true, //允许跨域
// logLevel: 'debug', // 显示代理调试信息 // logLevel: 'debug', // 显示代理调试信息
......
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