This commit is contained in:
cxc
2022-12-05 15:58:30 +08:00
parent a7a8f21d11
commit 51c464985a
32 changed files with 289 additions and 1112 deletions

View File

@ -169,6 +169,8 @@ import FieldOptions from "@/views/components/FieldOptions";
import InputBoxAdd from "@/views/components/InputBoxAdd";
import { ElMessage } from "element-plus";
import { ref, toRefs } from "vue";
import useUserStore from "@/store/modules/user";
const userStore = useUserStore();
const emit = defineEmits(["update-list"]);
const props = defineProps({
isShow: {
@ -186,6 +188,7 @@ const checkList = reactive(demandCategoryList);
const approve = async (status) => {
let title = status == 1 ? "通过" : "驳回";
await updateTechnologyDemand({ id: modelValue.value.id, status });
userStore.getUnApprovedTechnology();
ElMessage.success(`${title}需求`);
emit("update:isShow", false);
emit("update-list");