Commit 81d1958b authored by yf's avatar yf

Merge branch 'develop' of http://git.censoft.com.cn/rongtong/rongtong-app into dev-yf'

parents babca114 40c809cf
...@@ -196,16 +196,16 @@ ...@@ -196,16 +196,16 @@
<van-row gutter=""> <van-row gutter="">
<van-col span="17"> <van-col span="17">
<van-row gutter=""> <van-row gutter="">
<van-col span="9">风险系数</van-col> <van-col span="9">风险名称</van-col>
<van-col span="15">{{ item.time }}</van-col> <van-col span="15">{{ item.name }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="9">创建时间:</van-col> <van-col span="9">创建时间:</van-col>
<van-col span="15">{{ item.name }}</van-col> <van-col span="15">{{ timestampToTimes(item.createTime) }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="9">风险描述:</van-col> <van-col span="9">风险描述:</van-col>
<van-col span="15">{{ item.name }}</van-col> <van-col span="15">{{ item.describe }}</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' }">
...@@ -277,6 +277,7 @@ ...@@ -277,6 +277,7 @@
import LHeader from "@/components/header.vue"; import LHeader from "@/components/header.vue";
import SelectList from "@/components/selectList.vue"; import SelectList from "@/components/selectList.vue";
import selectFloor from "@/components/selectFloor.vue"; import selectFloor from "@/components/selectFloor.vue";
import { timestampToTime, generateId } from "@/utils/format";
// import selectPeople from "@/views/riskTask/selectPeople/index.vue"; // import selectPeople from "@/views/riskTask/selectPeople/index.vue";
import { getFun, postFun } from "@/service/table.js"; import { getFun, postFun } from "@/service/table.js";
// import { // import {
...@@ -380,6 +381,9 @@ export default { ...@@ -380,6 +381,9 @@ export default {
this.getZSGLX(); this.getZSGLX();
}, },
methods: { methods: {
timestampToTimes(time) {
return timestampToTime(new Date(time), "DT2", true);
},
tabList(value) { tabList(value) {
console.log( console.log(
"%c [ value ]-527", "%c [ value ]-527",
...@@ -391,7 +395,7 @@ export default { ...@@ -391,7 +395,7 @@ export default {
} }
}, },
getFloor() { getFloor() {
getFun(`/risk/plan/floor/list/${this.inherentId}`) getFun(`/risk/plan/floor/list/${this.buildingIds}`)
.then(res => { .then(res => {
// this.$toast.clear(); // this.$toast.clear();
// this.showSource = true; // this.showSource = true;
...@@ -399,7 +403,7 @@ export default { ...@@ -399,7 +403,7 @@ export default {
this.floorSource = newArr; this.floorSource = newArr;
}) })
.catch(() => { .catch(() => {
this.$toast.fail("加载失败,请稍后再试"); // this.$toast.fail("加载失败,请稍后再试");
}); });
}, },
getFXYS() { getFXYS() {
...@@ -408,7 +412,7 @@ export default { ...@@ -408,7 +412,7 @@ export default {
this.columnsTrouble = res.data; this.columnsTrouble = res.data;
}) })
.catch(() => { .catch(() => {
this.$toast.fail("加载失败,请稍后再试"); // this.$toast.fail("加载失败,请稍后再试");
}); });
}, },
getZSGLX() { getZSGLX() {
...@@ -417,7 +421,7 @@ export default { ...@@ -417,7 +421,7 @@ export default {
this.columnsAccident = res.data; this.columnsAccident = res.data;
}) })
.catch(() => { .catch(() => {
this.$toast.fail("加载失败,请稍后再试"); // this.$toast.fail("加载失败,请稍后再试");
}); });
}, },
seletFloor(name) { seletFloor(name) {
...@@ -439,7 +443,7 @@ export default { ...@@ -439,7 +443,7 @@ export default {
this.columnsSource = res.data; this.columnsSource = res.data;
}) })
.catch(() => { .catch(() => {
this.$toast.fail("加载失败,请稍后再试"); // this.$toast.fail("加载失败,请稍后再试");
}); });
}, },
//风险因素 //风险因素
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
readonly readonly
required required
name="projectId" name="projectId"
:value="form.projectName" :value="form.projectId"
label="所属项目" label="所属项目"
placeholder="请输入" placeholder="请输入"
/> />
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
@click="seletGrade('level')" @click="seletGrade('level')"
:rules="[{ required: true, message: '风险等级不能为空' }]" :rules="[{ required: true, message: '风险等级不能为空' }]"
/> --> /> -->
<van-field <!-- <van-field
readonly readonly
v-model="form.level" v-model="form.level"
required required
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
placeholder="请选择" placeholder="请选择"
@click="seletGrade" @click="seletGrade"
:rules="[{ required: true, message: '风险等级不能为空' }]" :rules="[{ required: true, message: '风险等级不能为空' }]"
/> /> -->
<van-field <van-field
required required
...@@ -627,24 +627,24 @@ export default { ...@@ -627,24 +627,24 @@ export default {
this.form.projectId = "测试项目"; this.form.projectId = "测试项目";
}, },
mounted() { mounted() {
this.getFloor(); // this.getFloor();
this.getFXYS(); this.getFXYS();
this.getZSGLX(); this.getZSGLX();
}, },
methods: { methods: {
getFloor() { // getFloor() {
getFun(`/risk/plan/floor/list/${this.form.buildingIds}`) // getFun(`/risk/plan/floor/list/${this.form.buildingIds}`)
.then(res => { // .then(res => {
// this.$toast.clear(); // // this.$toast.clear();
// this.showSource = true; // // this.showSource = true;
let newArr = this.renameKeyInTree(res.data, "name", "text"); // let newArr = this.renameKeyInTree(res.data, "name", "text");
this.floorSource = newArr; // this.floorSource = newArr;
}) // })
.catch(() => { // .catch(() => {
this.$toast.fail("加载失败,请稍后再试"); // this.$toast.fail("加载失败,请稍后再试");
}); // });
}, // },
getFXYS() { getFXYS() {
getFun(`/risk/plan/dict/data/list?dictType=risk_plan_factor`) getFun(`/risk/plan/dict/data/list?dictType=risk_plan_factor`)
.then(res => { .then(res => {
......
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