fix : 修复征集公司回显,所属公司改为征集公司
This commit is contained in:
@@ -64,7 +64,7 @@ const schema = computed(() => {
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '所属公司',
|
||||
label: '征集公司',
|
||||
prop: 'affiliatedCompany',
|
||||
colProps: {
|
||||
span: 12
|
||||
|
||||
@@ -147,7 +147,7 @@ const tableConfig = reactive({
|
||||
},
|
||||
{
|
||||
prop: 'affiliatedCompany',
|
||||
label: '所属公司',
|
||||
label: '征集公司',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ const schema = computed(() => {
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '所属公司',
|
||||
label: '征集公司',
|
||||
prop: 'affiliatedCompany',
|
||||
colProps: {
|
||||
span: 12
|
||||
|
||||
@@ -47,7 +47,7 @@ const schema = computed(() => {
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '所属公司',
|
||||
label: '征集公司',
|
||||
prop: 'affiliatedCompany',
|
||||
colProps: {
|
||||
span: 12
|
||||
|
||||
@@ -38,7 +38,7 @@ const schema = computed(() => {
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '所属公司',
|
||||
label: '征集公司',
|
||||
prop: 'affiliatedCompany',
|
||||
colProps: {
|
||||
span: 12
|
||||
|
||||
@@ -38,6 +38,7 @@ import {useTagsView} from '@/stores/tagsview.js'
|
||||
import {uploadFileList} from "@/api/project-manage/attachment";
|
||||
import {computed, ref} from "vue";
|
||||
import {getBaseInfoApi} from "@/components/steps/api";
|
||||
import {downloadFile,deleteFile} from "@/api/project-demand";
|
||||
|
||||
const tagsViewStore = useTagsView()
|
||||
const route = useRoute()
|
||||
@@ -68,7 +69,7 @@ const schema = computed(() => {
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '所属公司',
|
||||
label: '征集公司',
|
||||
prop: 'affiliatedCompany',
|
||||
colProps: {
|
||||
span: 12
|
||||
@@ -110,10 +111,14 @@ const tableConfig = reactive({
|
||||
prop: 'oper',
|
||||
label: '操作',
|
||||
align: 'center',
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => {
|
||||
return (
|
||||
<div>
|
||||
<el-button type="primary" link onClick={() => handleDownload(row)}>下载</el-button>
|
||||
<popover-delete name={row.originalFileName} type={'文件'} btnType={'danger'}
|
||||
perm={['mosr:requirement:del']}
|
||||
onDelete={() => handleDelete(row)}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -126,6 +131,28 @@ const name = ref(router.currentRoute.value.name)
|
||||
const rules = reactive({
|
||||
tagName: [{required: true, message: '请输入标签名称', trigger: ['blur', 'change']}],
|
||||
})
|
||||
const handleDelete = (row) => {
|
||||
deleteFile(row.fileId).then(res => {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: res.msg,
|
||||
type: res.code === 1000 ? 'success' : 'error'
|
||||
})
|
||||
if (res.code === 1000) {
|
||||
fileList.value.splice(fileList.value.findIndex((item) => item.id === row.fileId), 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const handleDownload = (row) => {
|
||||
downloadFile(row.fileId).then(res => {
|
||||
const blob = new Blob([res])
|
||||
let a = document.createElement('a')
|
||||
a.href = URL.createObjectURL(blob)
|
||||
a.download = row.originalFileName
|
||||
a.click()
|
||||
})
|
||||
}
|
||||
const getBaseInfo = async () => {
|
||||
try {
|
||||
const {code, data} = await getBaseInfoApi(route.query.id)
|
||||
|
||||
@@ -117,7 +117,7 @@ const schema = computed(() => {
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '所属公司',
|
||||
label: '征集公司',
|
||||
prop: 'affiliatedCompany',
|
||||
colProps: {
|
||||
span: 12
|
||||
|
||||
Reference in New Issue
Block a user