fix : 修复项目实施中功能细节

This commit is contained in:
2024-05-28 12:05:31 +08:00
parent 554c7d2be7
commit 63e94af451
14 changed files with 294 additions and 124 deletions

View File

@@ -235,6 +235,7 @@ const submitParam = (item) => {
item.fileList.forEach(item => {
let obj = {
fileId: item.fileId,
tag: item.tag
}
files.push(obj)
})

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} from "element-plus";
import {ElMessage, ElNotification} from "element-plus";
import {deleteDemand} from "@/api/project-demand";
const authStore = useAuthStore()
@@ -140,20 +140,27 @@ const tableConfig = reactive({
params: {}
})
console.log('userInfo', userInfo.value.userName)
const search = (val) => {
tableConfig.params = {...val}
tableIns.value.refresh()
}
const handleAdd = () => {
try{
router.push({
name:'Requirement/add',
query: {
isAdd: 1
}
})
}catch (err){
ElNotification({
title: '提示',
message: '该用户无新增权限',
type: 'warning'
})
}
//新增
router.push({
name:'Requirement/add',
query: {
isAdd: 1
}
})
}
const handleEdit = (row) => {
router.push({

View File

@@ -316,7 +316,8 @@ const getOtherFile = (val) => {
}
const getFileParam = (item) => {
return {
fileId: item.fileId
fileId: item.fileId,
tag: item.tag
}
}
const handleSubmit = async (instance) => {

View File

@@ -123,6 +123,7 @@ const tableConfig = reactive({
currentRender: ({row, index}) => {
let btn = []
let buttons = new Set(Array.from(row.buttons))
console.log('buttons',buttons.has("details"))
if (buttons.has("details")) {
btn.push({label: '详情', prem: ['mosr:collect:info'], func: () => handleDetail(row), type: 'primary'})
}