fix:修改项目未通过筛选问题

This commit is contained in:
lixg
2022-12-14 12:10:27 +08:00
parent ea3315ac32
commit a665762f01

View File

@@ -924,7 +924,7 @@ export default {
{ value: 1, label: "审核中" },
{ value: 2, label: "审核通过" },
{ value: 3, label: "已发布" },
{value: -2, label: "未通过"},
{ value: -5, label: "未通过" },
{ value: -1, label: "已结束" },
]);
const searchReset = () => {
@@ -976,7 +976,11 @@ export default {
message.warning("项目名称重复,请修改名称!");
return;
} */
const offName = await validateName({name: state.qdms_inputV1, type:1, id:state.projectInfo.projectId}).then(res => {
const offName = await validateName({
name: state.qdms_inputV1,
type: 1,
id: state.projectInfo.projectId,
}).then((res) => {
return res.data.data == 1;
});
if (offName) {
@@ -1364,7 +1368,6 @@ export default {
dayjs().isBefore(value.record.end) ? "进行中" : "已结束",
"-1": () => "已结束",
"-5": () => "草稿",
}[value.record.status + ""]() || ""
: "-"}
</div>
@@ -1706,7 +1709,7 @@ export default {
: "",
})
.then((res) => {
console.log(res);
// console.log("搜索", res, state.searchParam);
state.tableDataTotal = Number(res.data.data.total);
const data = res.data.data.rows;
initDataSublist("", data);
@@ -2074,7 +2077,6 @@ export default {
margin: 20px 38px 30px;
.ant-table-thead > tr > th {
background-color: #eff4fc;
}
}