From 5100281c1f0bec1aad47bcc76333b5faadccb0f4 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Tue, 18 Jun 2024 20:43:02 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E6=94=B9=E5=BE=81=E9=9B=86?=
=?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=BA=E5=AD=97=E5=85=B8=E3=80=81=E7=9B=B4?=
=?UTF-8?q?=E6=8E=A5=E4=B8=8A=E6=8A=A5=E6=97=B6=E8=AF=A6=E6=83=85=E4=B8=93?=
=?UTF-8?q?=E9=A1=B9=E8=B5=84=E9=87=91=E5=9B=9E=E6=98=BE=E3=80=81=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E5=BD=92=E6=A1=A3-=E9=9C=80=E6=B1=82=E5=BE=81?=
=?UTF-8?q?=E9=9B=86=E6=96=87=E4=BB=B6=E5=9B=9E=E6=98=BE=E3=80=81=E9=87=8D?=
=?UTF-8?q?=E5=A4=A7=E9=A1=B9=E7=9B=AE=E5=89=8D=E7=BD=AE=E6=B5=81=E7=A8=8B?=
=?UTF-8?q?=E5=BF=85=E5=A1=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/menuman.js | 4 +--
src/components/AttachmentUpload.vue | 16 +++++----
.../DetailComponent/ProjectApply.vue | 24 +++++++++-----
src/components/PopoverDelete.vue | 3 +-
src/views/project-demand/requirement/add.vue | 21 +++++-------
src/views/project-demand/summary/add.vue | 1 +
.../project-management/filing/attachment.vue | 33 ++++++++++---------
.../implementation/detail.vue | 1 +
src/views/system/role/add.vue | 7 ++--
9 files changed, 61 insertions(+), 49 deletions(-)
diff --git a/src/api/system/menuman.js b/src/api/system/menuman.js
index 6e916a0..8d44d4b 100644
--- a/src/api/system/menuman.js
+++ b/src/api/system/menuman.js
@@ -40,7 +40,7 @@ export const getMenuInfo = (menuId) => {
export const getMenuOpt = (excludeId=0) => {
return request({
- url: '/admin/menu/option/'+excludeId,
+ url: '/admin/menu/option/role/'+excludeId,
method: 'get'
})
}
@@ -50,4 +50,4 @@ export const getMenuOptRole = (roleId) => {
url: '/admin/menu/option/role/'+roleId,
method: 'get'
})
-}
\ No newline at end of file
+}
diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue
index 34c444e..5a615de 100644
--- a/src/components/AttachmentUpload.vue
+++ b/src/components/AttachmentUpload.vue
@@ -7,9 +7,11 @@
{{ singleFile ? singleFile?.originalFileName : formData.singleFile?.originalFileName }}
- 删除
+ 删除
+
-
+
@@ -97,7 +99,7 @@ const tableConfig = reactive({
currentRender: ({row, index}) => {
let btn = []
btn.push({label: '下载', func: () => handleDownload(row), type: 'primary'})
- // if (row.newFile){
+ // if (row.newFile) {
// btn.push({label: '删除', func: () => handleDelete(row), type: 'primary'})
// }
return (
@@ -116,7 +118,7 @@ const tableConfig = reactive({
{
row.newFile || props.preview || !props.preview ?
handleDelete(row)}/>
: ''
}
@@ -137,7 +139,7 @@ watch(() => props.showTable, (newVal) => {
props.showTable = newVal
}, {deep: true})
watch(() => props.formData.fileList, (newVal) => {
- console.log('newVal-fileList', newVal)
+ // console.log('newVal-fileList', newVal)
if (props.preview) {
newVal?.forEach(item => {
allFileList.value.push(item)
@@ -145,7 +147,7 @@ watch(() => props.formData.fileList, (newVal) => {
}
}, {deep: true})
watch(() => props.otherFileList, (newVal) => {
- console.log('newotherFileList', newVal,props.formData)
+ // console.log('newotherFileList', newVal, props.formData)
if (props.preview) {
if (props.formData.fileList === null || props.formData.fileList.length === 0) {
allFileList.value = newVal
@@ -159,7 +161,7 @@ watch(() => props.otherFileList, (newVal) => {
}
}, {deep: true})
watch(() => props.formData.singleFile, (newVal) => {
- console.log('singleFile', newVal)
+ // console.log('singleFile', newVal)
singleFile.value = newVal
}, {deep: true})
watch(() => isSingleFile.value, (newVal) => {
diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue
index 936b1f5..b8ae84a 100644
--- a/src/components/DetailComponent/ProjectApply.vue
+++ b/src/components/DetailComponent/ProjectApply.vue
@@ -3,7 +3,7 @@
-
+
{{ localFormData.preProcess?.requestName }}
@@ -147,6 +147,7 @@ const props = defineProps({
const preProcessList = ref([])
//暂存数据
const currentList = ref([])
+const preProcessRequired = ref(false)
const total = ref(0)
const preProcessForm = reactive({
requestName: ''
@@ -169,6 +170,7 @@ const localFormData = ref({
}
})
const attachment = ref()
+const deploymentData = ref({})
const showPreTable = ref(false)
const showTable = ref(true)
const loading = ref(false)
@@ -245,7 +247,7 @@ const compositeParam = (item) => {
originalFileName: item.originalFilename,
fileType: item.fileType,
url: item.url,
- newFile: false,
+ newFile: true,
tag: getTitleName(props.title)
}
}
@@ -269,12 +271,14 @@ const getFileParam = (item) => {
}
}
const handleSubmit = async () => {
- if (localFormData.value.preProcess === undefined) {
- ElNotification({
- title: '提示',
- message: '请选择前置流程',
- type: 'error'
- })
+ if(deploymentData.value.deploymentName==='重大项目立项'||deploymentData.value.deploymentName==='重大项目验收'){
+ if (localFormData.value.preProcess === undefined) {
+ ElNotification({
+ title: '提示',
+ message: '请选择前置流程!',
+ type: 'error'
+ })
+ }
}
let files = []
if (props.mode === 'resubmit') {
@@ -289,7 +293,7 @@ const handleSubmit = async () => {
// if (localFormData.value.singleFile !== undefined) {
// localFormData.value.singleFile = getFileParam(localFormData.value.singleFile)
// }
- console.log('attachment.value.singleFile', attachment.value, attachment.value.singleFile)
+ // console.log('attachment.value.singleFile', attachment.value, attachment.value.singleFile)
// if (localFormData.value.singleFile) {
//
// } else {
@@ -372,6 +376,8 @@ const init = async () => {
if (res.code === 1000) {
let data = res.data
deploymentId.value = data.deploymentId
+ deploymentData.value = data
+ preProcessRequired.value = data.deploymentName === '重大项目立项'||data.deploymentName === '重大项目验收';
processStore.setDesign(data)
processStore.runningList.value = data.runningList;
processStore.endList.value = data.endList;
diff --git a/src/components/PopoverDelete.vue b/src/components/PopoverDelete.vue
index 1f9ac87..67f36d5 100644
--- a/src/components/PopoverDelete.vue
+++ b/src/components/PopoverDelete.vue
@@ -9,7 +9,8 @@
@cancel="handleCancel"
>
-
+
+
{{ btnText }}
diff --git a/src/views/project-demand/requirement/add.vue b/src/views/project-demand/requirement/add.vue
index 4a7be30..c72297a 100644
--- a/src/views/project-demand/requirement/add.vue
+++ b/src/views/project-demand/requirement/add.vue
@@ -12,7 +12,7 @@
{{ getName(companyList) }}
- {{companyList.length===0?'请选择所属公司':'更改'}}
-
-
+ {{ companyList.length === 0 ? '请选择所属公司' : '更改' }}
+
+
+
@@ -119,6 +120,8 @@ import {useTagsView} from '@/stores/tagsview.js'
import {getFundOption} from "@/api/special-fund";
import CompanyPicker from "@/components/DetailComponent/CompanyPicker.vue";
+import {useCacheStore} from '@/stores/cache.js'
+const cacheStore = useCacheStore()
const companyRef = ref()
const companyList = ref([])
const changeDiagram = ref(false)
@@ -140,12 +143,6 @@ const formData = ref({
const showTinymce = ref(true)
const routerName = ref(router.currentRoute.value.name)
const processDiagramViewer = ref(false)
-const typeOption = ref([
- {
- label: "需求征集",
- value: '需求征集'
- }
-])
const companyOption = ref([])
const specialFundOption = ref([])
const form = ref(null)
@@ -313,8 +310,8 @@ const init = async () => {
})
}
const submitParam = (item) => {
- console.log('item..',item.companyIds)
- if(item.companyIds.length===0){
+ console.log('item..', item.companyIds)
+ if (item.companyIds.length === 0) {
ElNotification({
title: '提示',
message: '请选择所属公司',
diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue
index ef3ca6a..1170283 100644
--- a/src/views/project-demand/summary/add.vue
+++ b/src/views/project-demand/summary/add.vue
@@ -482,6 +482,7 @@ const getDetailInfo = async () => {
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
+ res.data.formData.specialFundId= res.data.formData.specialFundId===0?null:res.data.formData.specialFundId
formData.value = res.data.formData
loading.value = false
}
diff --git a/src/views/project-management/filing/attachment.vue b/src/views/project-management/filing/attachment.vue
index a72ca42..78526c2 100644
--- a/src/views/project-management/filing/attachment.vue
+++ b/src/views/project-management/filing/attachment.vue
@@ -43,26 +43,26 @@ const schema = computed(() => {
]
})
const baseForm = ref()
-const paneList=ref([
+const paneList = ref([
{
- label:'需求征集',
- name:'00'
+ label: '需求征集',
+ name: '00'
},
{
- label:'需求上报',
- name:'10'
+ label: '需求上报',
+ name: '10'
},
{
- label:'项目立项',
- name:'20'
+ label: '项目立项',
+ name: '20'
},
{
- label:'项目实施',
- name:'40'
+ label: '项目实施',
+ name: '40'
},
{
- label:'项目归档',
- name:'50'
+ label: '项目归档',
+ name: '50'
}
])
const getBaseInfo = async () => {
@@ -75,16 +75,19 @@ const getBaseInfo = async () => {
getBaseInfo()
const handleClick = (tab) => {
- activeName.value=tab.props.name
- loading.value=true
+ activeName.value = tab.props.name
+ loading.value = true
search({})
}
const search = async (param) => {
- param.targetState = activeName.value
+ if (activeName.value === '00') {
+ param.requirementId = requirementId.value
+ }
param.targetId = projectId.value
+ param.targetState = activeName.value
searchFileList(param).then(res => {
- loading.value=false
+ loading.value = false
changeFileList(res)
})
}
diff --git a/src/views/project-management/implementation/detail.vue b/src/views/project-management/implementation/detail.vue
index 3a23cd6..1c8394c 100644
--- a/src/views/project-management/implementation/detail.vue
+++ b/src/views/project-management/implementation/detail.vue
@@ -44,6 +44,7 @@
:formData="detailData.formData"/>
+
diff --git a/src/views/system/role/add.vue b/src/views/system/role/add.vue
index 86d6c9a..faff5af 100644
--- a/src/views/system/role/add.vue
+++ b/src/views/system/role/add.vue
@@ -38,7 +38,7 @@ import { useTagsView } from '@/stores/tagsview.js'
import { useAuthStore } from '@/stores/userstore.js'
import fvRadio from '@/fvcomponents/fvRadio/index.vue'
import { ElLoading, ElNotification } from 'element-plus';
-import { getMenuOpt } from '@/api/system/menuman.js'
+import { getMenuOptRole } from '@/api/system/menuman.js'
import { getRoleDetail, operate, getTemRoleOption } from "@/api/role/role";
const tagsViewStore = useTagsView()
@@ -143,8 +143,9 @@ const init = async () => {
form.value.setValues({state: '1', template: false})
const res = await getTemRoleOption()
localData.tempRoleOpt = res.data
- const { data } = await getMenuOpt(0)
- localData.menuData = data
+ const { data } = await getMenuOptRole()
+ localData.menuData = data.menuOption
+ // localData.checked = data.checked
}
const getInfo = async () => {