fix:评估回显问题

This commit is contained in:
wyx
2022-12-07 10:20:58 +08:00
parent a331227ab2
commit adc1a8e61d
4 changed files with 5 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ http.interceptors.response.use(
return response; return response;
} else { } else {
if (code === 1000) { if (code === 1000) {
window.open("https://u-pre.boe.com/web/", '_self'); // window.open("https://u-pre.boe.com/web/", '_self');
// window.open("http://111.231.196.214:12013/manage/login", '_self'); // window.open("http://111.231.196.214:12013/manage/login", '_self');
} }
console.log("api %o", msg); console.log("api %o", msg);

View File

@@ -43,7 +43,6 @@ import http from "./config";
//根据ID获取评估信息详情 //根据ID获取评估信息详情
export const queryAppraiseDetailById = (obj) => http.post('/assessment/queryAssessmentDetailById', obj,{ export const queryAppraiseDetailById = (obj) => http.post('/assessment/queryAssessmentDetailById', obj,{
headers: { headers: {
'token': '123',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
} }
}) })

View File

@@ -234,7 +234,9 @@ export default {
.then((res) => { .then((res) => {
let arr = res.data.data.rows; let arr = res.data.data.rows;
if (res.status === 200) { if (res.status === 200) {
// console.log("获取全部评估信息", res.data.data); console.log("获取全部评估信息", res.data.data);
state.selectedRowKeys = [props.assessmentId]
console.log(props.assessmentId,props)
getTableDate(arr); getTableDate(arr);
state.tableDataTotal = Number(res.data.data.total); state.tableDataTotal = Number(res.data.data.total);
} }

View File

@@ -212,6 +212,7 @@ export default {
console.log(res); console.log(res);
//更新讨论信息 //更新讨论信息
state.assessment1 = res.data.data; state.assessment1 = res.data.data;
state.assessmentId = res.data.data.assessmentId;
}) })
.catch(() => {}); .catch(() => {});
} }