This commit is contained in:
cxc
2022-10-31 17:46:09 +08:00
parent 652ce4c9d3
commit c2327f30cb
63 changed files with 1698 additions and 479 deletions

View File

@ -125,6 +125,7 @@ const route = useRoute();
const data = reactive({
form: {
check: [],
status: 0,
},
queryParams: {
pageNum: 1,
@ -202,9 +203,20 @@ function addCheck() {
}
}
onActivated(() => {
onMounted(() => {
formRef.value.resetFields();
if (route.query.id) {
getDemand({ id: route.query.id }).then((resp) => {
if (resp.data.kinds) {
resp.data.kinds.forEach((el, index) => {
if (!checkList.find((item) => item.name == el)) {
checkList.push({
id: index,
name: el,
});
}
});
}
form.value = resp.data;
});
}