| | |
| | | import Cookies from "js-cookie"; |
| | | const emit = defineEmits(["getNextStatus"]); |
| | | |
| | | const isAmin = ref(false) |
| | | const formRef = ref(); |
| | | onMounted(() => { |
| | | const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | if(userInfo.identity === 0){ |
| | | isAmin.value = true; |
| | | } |
| | | getRiskList(); |
| | | getBusinessList(); |
| | | getArea(); |
| | | }); |
| | | const state = reactive({ |
| | | formData: { |
| | | project: { |
| | |
| | | value: 'name', |
| | | label: 'name' |
| | | } |
| | | const isAmin = ref(false) |
| | | const formRef = ref(); |
| | | onMounted(() => { |
| | | const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | if(userInfo.identity === 0){ |
| | | isAmin.value = true; |
| | | } |
| | | getRiskList(); |
| | | getBusinessList(); |
| | | getArea(); |
| | | }); |
| | | |
| | | |
| | | const getRiskList = async () => { |
| | | const res = await getDictList({dictType: "sys_assess_type"}); |