Commit ace0f3ba authored by 胡占生's avatar 胡占生 🇨🇳

fix: 新增现状风险 修复固有风险表单,修复缓存id

parent a4fc0ad1
......@@ -40,7 +40,7 @@ export default {
'riskAdd'
],
// 不需要展示底部tabbar的页面
noTab:["login", "login2", 'addInherent','riskInherent',"choose-people","scan",'success','fail','warn','center','reset-pas-two','riskTaskList'],
noTab:["login", "login2", 'addCurrent','addPresent','addInherent','riskInherent',"choose-people","scan",'success','fail','warn','center','reset-pas-two','riskTaskList'],
// cachePage预先定义的缓存页面
otherCache: [],
// 专门处理列表缓存的页面,这些页面缓存逻辑与其他缓存不一样去详情返回列表缓存,但是进入列表必须刷新,如何有需要缓存的列表请放到这里来。
......
......@@ -156,11 +156,16 @@ const routes = [{
name: 'addInherent',
component: () => import('../views/riskProject/add/addInherent.vue'),
},
{
{//编辑固有风险
path: '/addCurrent',
name: 'addCurrent',
component: () => import('../views/riskProject/add/addCurrent.vue'),
},
{//新增现状风险
path: '/addPresent ',
name: 'addPresent',
component: () => import('../views/riskProject/add/addPresent.vue'),
},
]
const router = new VueRouter({
......
This diff is collapsed.
......@@ -638,7 +638,7 @@ export default {
message: "提交成功",
duration: 2000,
});
// history.go(-1);
history.go(-1);
})
.catch(() => {
this.$toast.clear();
......
This diff is collapsed.
......@@ -437,7 +437,7 @@ export default {
message: "提交成功",
duration: 2000,
});
// history.go(-1);
history.go(-1);
})
.catch(() => {
this.$toast.clear();
......
......@@ -31,7 +31,7 @@
<van-col span="17">
<van-row gutter="">
<van-col span="9">发起时间:</van-col>
<van-col span="15">{{ item.createTime}}</van-col>
<van-col span="15">{{ timestampToTimes(item.createTime)}}</van-col>
</van-row>
<van-row gutter="">
<van-col span="9">楼层:</van-col>
......@@ -46,6 +46,17 @@
{{ '●待审批'}}
</van-col>
</van-row>
<van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop="showIndex = null">
<van-button round type="primary" @click="goDetail(item)"
>编辑</van-button
>
<!-- <van-button round type="info" @click="goConfirm(item)" v-show="active==0"
>确认</van-button
> -->
</div>
</van-overlay>
</van-cell-group>
<div
style="
......@@ -83,6 +94,7 @@
<script>
import LHeader from "@/components/header.vue";
import { getFun, postFun } from "@/service/table.js";
import { timestampToTime, generateId } from "@/utils/format";
export default {
name:'risk-confirme',
components: {
......@@ -111,11 +123,14 @@
};
},
created() {
this.planId=this.$route.params.id
this.planId=this.$route.params.id || sessionStorage.getItem('planId')
this.getRiskList(this.planId);
// this.postList();
},
methods: {
timestampToTimes(time){
return timestampToTime(new Date(time),"DT2", true)
},
changeData(arr){
var arrList=[]
arr.forEach(item=>{
......@@ -239,9 +254,10 @@
// 详情
goDetail(data) {
this.$router.push({
name: "risk-big-detail",
name: "addCurrent",
params: {
id: data.businessId||data.id,
inherentId: data.businessId||data.id,
buildingIds:this.active,
},
});
this.showIndex = null;
......
......@@ -260,7 +260,7 @@
};
},
created() {
var planId=this.$route.params.id
var planId=this.$route.params.id || sessionStorage.getItem('planId')
this.postList(planId);
},
methods: {
......
......@@ -70,9 +70,9 @@
>详情</van-button
>
<van-button round type="info" @click="goConfirm(item)" v-show="active==0"
<!-- <van-button round type="info" @click="goConfirm(item)" v-show="active==0"
>确认</van-button
>
> -->
</div>
</van-overlay>
</van-cell-group>
......@@ -190,6 +190,7 @@
id: data.businessId ||data.id,
},
});
sessionStorage.setItem('planId',data.id)
this.showIndex = null;
},
// 确认
......
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