fix : 修复分摊编辑传参和台账导出
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
<baseTitle title="基础信息"></baseTitle>
|
||||
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
||||
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
|
||||
<el-button @click="exportExcelHandler">导出</el-button>
|
||||
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
|
||||
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick" @selectionChange="selectionChange">
|
||||
<template #empty>
|
||||
<el-empty description="暂无数据"/>
|
||||
</template>
|
||||
@@ -89,7 +88,8 @@ const formDataArray = ref([
|
||||
prop: 'projectCompletionRate',
|
||||
colProps: {
|
||||
span: 6
|
||||
}
|
||||
},
|
||||
component: ()=><span>{tableData.value.projectCompletionRate}%</span>
|
||||
},
|
||||
{
|
||||
label: '已完成工作量',
|
||||
@@ -99,7 +99,6 @@ const formDataArray = ref([
|
||||
}
|
||||
}
|
||||
])
|
||||
|
||||
const tableData = ref({})
|
||||
const schema = computed(() => {
|
||||
if (JSON.stringify(tableData.value) !== '{}') {
|
||||
@@ -111,7 +110,8 @@ const schema = computed(() => {
|
||||
const baseForm = ref()
|
||||
const tableIns = ref()
|
||||
const btns = ref([
|
||||
{name: '表格更新', key: 'update', color: '#DED0B2', auth: ''}
|
||||
{name: '表格更新', key: 'update', color: '#DED0B2', auth: ''},
|
||||
{name: '导出', key: 'export', color: '#DED0B2', auth: ''}
|
||||
])
|
||||
const searchConfig = reactive([
|
||||
{
|
||||
@@ -173,6 +173,10 @@ const searchConfig = reactive([
|
||||
])
|
||||
const tableConfig = reactive({
|
||||
columns: [
|
||||
{
|
||||
type: 'selection',
|
||||
prop: 'selection'
|
||||
},
|
||||
{
|
||||
prop: 'name',
|
||||
type: 'index',
|
||||
@@ -234,6 +238,11 @@ const tableConfig = reactive({
|
||||
if (route.query.state !== '4') {
|
||||
btns.value.push({name: '上传费用', key: 'add', color: '#DED0B2', auth: ''})
|
||||
}
|
||||
const exportIds=ref([])
|
||||
const selectionChange=(data)=>{
|
||||
console.log('data',data)
|
||||
console.log(' data.forEach(item=>item.id)', data.forEach(item=>item.id))
|
||||
}
|
||||
const handleUpdateTable = () => {
|
||||
router.push({
|
||||
name: 'Implementation/update',
|
||||
@@ -259,6 +268,9 @@ const headBtnClick = (key) => {
|
||||
case 'update':
|
||||
handleUpdateTable()
|
||||
break;
|
||||
case 'export':
|
||||
exportExcelHandler()
|
||||
break;
|
||||
}
|
||||
}
|
||||
const handleUploadFee = () => {
|
||||
@@ -271,6 +283,7 @@ const handleUploadFee = () => {
|
||||
}
|
||||
|
||||
const exportExcelHandler = () => {
|
||||
console.log('exportIds.value',exportIds.value)
|
||||
let data = {
|
||||
projectId: 113
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user