| | |
| | | @current-change="handleCurrentChange" |
| | | /> |
| | | </div> |
| | | <confirm-end-dialog ref="confirmRef" @getList="getList"></confirm-end-dialog> |
| | | <confirm-end-dialog ref="confirmRef" @getList="getList(props.projectId)"></confirm-end-dialog> |
| | | </div> |
| | | |
| | | </template> |
| | | <script setup> |
| | | |
| | | import {defineEmits, onMounted, reactive, ref} from "vue"; |
| | | import {defineEmits, defineProps, onMounted, reactive, ref} from "vue"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import {addRecord, editRecord, getDetail} from "@/api/projectManage/contractMng"; |
| | | import Cookies from "js-cookie"; |
| | |
| | | |
| | | const confirmRef = ref(null); |
| | | const emit = defineEmits(["getNextStatus"]); |
| | | const props = defineProps(['projectId']) |
| | | const state = reactive({ |
| | | formData: {}, |
| | | queryParams: { |
| | |
| | | if(userInfo.identity === 0){ |
| | | isAmin.value = true; |
| | | } |
| | | if(Cookies.get('projectId')){ |
| | | state.formData.projectId = Cookies.get('projectId'); |
| | | if(props.projectId){ |
| | | state.formData.projectId = props.projectId; |
| | | getList(state.formData.projectId); |
| | | } |
| | | // getList(); |
| | | }); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | const riskOpen = async (type,val) => { |
| | | await getList(val); |
| | | // await getList(val); |
| | | state.formData.projectId = val; |
| | | if(type === 'confirm') { |
| | | const res = await doConfirm({projectId: val}); |
| | |
| | | const handleSizeChange = (val) => { |
| | | state.queryParams.pageNum = 1; |
| | | state.queryParams.pageSize = val |
| | | getList() |
| | | getList(props.projectId) |
| | | } |
| | | const handleCurrentChange = (val) => { |
| | | state.queryParams.pageNum = val |
| | | getList() |
| | | getList(props.projectId) |
| | | } |
| | | |
| | | // 图片上传 |
| | |
| | | const res = await delRecitification(val) |
| | | if(res.code == 200){ |
| | | ElMessage.success('数据删除成功') |
| | | getList() |
| | | getList(props.projectId) |
| | | }else{ |
| | | ElMessage.warning(res.message) |
| | | } |