bugfixed
This commit is contained in:
@ -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;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user