fix : 修复项目实施/归档上传附件显示,
This commit is contained in:
@@ -15,3 +15,17 @@ export const uploadFileList = (data) => {
|
|||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
export const searchImplementationFileList = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/workflow/mosr/attachment/implementation/list',
|
||||||
|
method: "get",
|
||||||
|
params: params
|
||||||
|
});
|
||||||
|
};
|
||||||
|
export const switchAttachmentState = (data) => {
|
||||||
|
return request({
|
||||||
|
url: '/workflow/mosr/project/filing/attachment/switch',
|
||||||
|
method: "post",
|
||||||
|
data
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
uploadState: {
|
uploadState: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: false
|
||||||
},
|
},
|
||||||
loading: {
|
loading: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -17,7 +17,9 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>主次账号切换</li>
|
<li>主次账号切换</li>
|
||||||
<li class="avatar-li" v-for="item in accountList" @click="accountChange(item.userId)">
|
<li class="avatar-li" v-for="item in accountList" @click="accountChange(item.userId)">
|
||||||
<el-avatar><span>{{ item.nickName }}</span></el-avatar>
|
<el-badge :value="item.taskCount">
|
||||||
|
<el-avatar>{{ item.nickName }}</el-avatar>
|
||||||
|
</el-badge>
|
||||||
<div class="right-li">
|
<div class="right-li">
|
||||||
<div class="name-line">
|
<div class="name-line">
|
||||||
<span v-if="item.accountType==='0'" class="zhu">主</span>
|
<span v-if="item.accountType==='0'" class="zhu">主</span>
|
||||||
@@ -129,12 +131,20 @@ const handleLogout = () => {
|
|||||||
:deep(.el-avatar--circle) {
|
:deep(.el-avatar--circle) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
margin-right: 10px;
|
margin-right: 14px;
|
||||||
background-color: #8a7243;
|
background-color: #8a7243;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
:deep(.el-badge){
|
||||||
|
padding: 0 2px;
|
||||||
|
}
|
||||||
|
:deep(.el-badge__content.is-fixed) {
|
||||||
|
position: absolute;
|
||||||
|
right: 26px;
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
height: 65px;
|
height: 65px;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const router = useRouter()
|
|||||||
const activeName = ref('50')
|
const activeName = ref('50')
|
||||||
const attachment = ref({})
|
const attachment = ref({})
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const uploadState = ref(true)
|
const uploadState = ref(false)
|
||||||
const fileList = ref([])
|
const fileList = ref([])
|
||||||
const projectId = ref(route.query.id)
|
const projectId = ref(route.query.id)
|
||||||
const requirementId = ref(route.query.requirementId)
|
const requirementId = ref(route.query.requirementId)
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||||
import {toThousands} from '@/utils/changePrice.js'
|
import {toThousands} from '@/utils/changePrice.js'
|
||||||
|
import {switchAttachmentState} from "@/api/project-manage/attachment";
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const shortcuts = [
|
const shortcuts = [
|
||||||
@@ -244,6 +245,12 @@ const tableConfig = reactive({
|
|||||||
if (buttons.has("edit")) {
|
if (buttons.has("edit")) {
|
||||||
btn.push({label: '编辑', prem: ['project:management:filing:conclusion'], func: () => handleEdit(row), type: 'primary'})
|
btn.push({label: '编辑', prem: ['project:management:filing:conclusion'], func: () => handleEdit(row), type: 'primary'})
|
||||||
}
|
}
|
||||||
|
if (buttons.has("openFileSwitch")) {
|
||||||
|
btn.push({label: '开启上传', prem: ['project:management:filing:conclusion'], func: () => handleOpenUpload(row), type: 'primary'})
|
||||||
|
}
|
||||||
|
if (buttons.has("closeFileSwitch")) {
|
||||||
|
btn.push({label: '关闭上传', prem: ['project:management:filing:conclusion'], func: () => handleCloseUpload(row), type: 'primary'})
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div style={{width: '100%'}}>
|
<div style={{width: '100%'}}>
|
||||||
{
|
{
|
||||||
@@ -316,4 +323,24 @@ const handleEdit = (row) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const handleOpenUpload=(row)=>{
|
||||||
|
let params={
|
||||||
|
open: true,
|
||||||
|
projectId: row.projectId
|
||||||
|
}
|
||||||
|
switchAttachmentState(params).then(res=>{
|
||||||
|
console.log('res',res)
|
||||||
|
tableIns.value.refresh()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const handleCloseUpload=(row)=>{
|
||||||
|
let params={
|
||||||
|
open: false,
|
||||||
|
projectId: row.projectId
|
||||||
|
}
|
||||||
|
switchAttachmentState(params).then(res=>{
|
||||||
|
console.log('res',res)
|
||||||
|
tableIns.value.refresh()
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -29,15 +29,14 @@
|
|||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import {downloadFile} from "@/api/project-demand";
|
import {downloadFile} from "@/api/project-demand";
|
||||||
import {searchFileList} from "@/api/project-manage/attachment.js";
|
|
||||||
import {getTags} from "@/api/project-manage";
|
import {getTags} from "@/api/project-manage";
|
||||||
import {ElLoading, ElNotification} from "element-plus";
|
import {ElNotification} from "element-plus";
|
||||||
import {computed, ref} from "vue";
|
|
||||||
import {getBaseInfoApi} from "@/components/steps/api";
|
import {getBaseInfoApi} from "@/components/steps/api";
|
||||||
|
import {searchImplementationFileList} from "@/api/project-manage/attachment";
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const uploadState = ref(true)
|
const uploadState = ref(false)
|
||||||
const attachment = reactive({
|
const attachment = reactive({
|
||||||
tag: ''
|
tag: ''
|
||||||
})
|
})
|
||||||
@@ -140,7 +139,7 @@ const handleSearch = () => {
|
|||||||
})
|
})
|
||||||
params.tag = attachment.tag
|
params.tag = attachment.tag
|
||||||
}
|
}
|
||||||
searchFileList(params).then(res => {
|
searchImplementationFileList(params).then(res => {
|
||||||
showTable.value = false
|
showTable.value = false
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
otherFileList.value = res.data.fileList
|
otherFileList.value = res.data.fileList
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ export const APPROVAL_PROPS = {
|
|||||||
handler: "TO_PASS", //操作
|
handler: "TO_PASS", //操作
|
||||||
assignedUser: [] //审批人列表
|
assignedUser: [] //审批人列表
|
||||||
},
|
},
|
||||||
|
matrixApproval: true,
|
||||||
timeLimit: { //边界事件
|
timeLimit: { //边界事件
|
||||||
timeout: { //超时提醒时间
|
timeout: { //超时提醒时间
|
||||||
unit: "H",
|
unit: "H",
|
||||||
|
|||||||
@@ -191,17 +191,6 @@ const loadInitFrom = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const getRandomId = () => {
|
|
||||||
let d = new Date().getTime()
|
|
||||||
// x 是 0-9 或 a-f 范围内的一个32位十六进制数
|
|
||||||
let id = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
||||||
let r = (d + Math.random() * 16) % 16 | 0
|
|
||||||
d = Math.floor(d / 16)
|
|
||||||
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
|
|
||||||
})
|
|
||||||
return id
|
|
||||||
}
|
|
||||||
|
|
||||||
const getProcessInfo = async () => {
|
const getProcessInfo = async () => {
|
||||||
getProcessDefinitionInfo(params.deploymentId).then(res => {
|
getProcessDefinitionInfo(params.deploymentId).then(res => {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
|
|||||||
@@ -273,7 +273,6 @@ const props = defineProps({
|
|||||||
|
|
||||||
|
|
||||||
const nodeProps = computed(() => {
|
const nodeProps = computed(() => {
|
||||||
processStore.getSelectedNode().props.matrixApproval=true
|
|
||||||
return processStore.getSelectedNode().props;
|
return processStore.getSelectedNode().props;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user