fix : 修复需求征集界面样式及提示

This commit is contained in:
2024-06-01 14:36:03 +08:00
parent 7501c37379
commit 80ecad0864
4 changed files with 89 additions and 69 deletions

View File

@@ -11,7 +11,7 @@
import {useAuthStore} from '@/stores/userstore.js'
import Tag from '@/components/Tag.vue'
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {ElMessage, ElNotification} from "element-plus";
import { ElNotification} from "element-plus";
import {deleteDemand} from "@/api/project-demand";
const authStore = useAuthStore()
@@ -115,9 +115,9 @@ const tableConfig = reactive({
// if (buttons.has("delete")) {
// btn.push({label: '删除',prem: ['mosr:requirement:del'], func: () => handleDelete(row), type: 'primary'})
// }
if (buttons.has("report")) {
// if (buttons.has("report")) {
btn.push({label: '需求上报', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
}
// }
return (
<div style={{width: '100%'}}>
{
@@ -173,12 +173,12 @@ const handleEdit = (row) => {
}
const handleDelete = (row) => {
deleteDemand(row.requirementId).then(res => {
if (res.code === 1000) {
ElMessage.success(res.msg)
tableIns.value.refresh()
} else {
ElMessage.error(res.msg)
}
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
tableIns.value.refresh()
})
}
const handleDetail = (row) => {