修改 承载能力bug 完成自定义报表
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
</el-tree>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="handleClose">绑定</el-button>
|
||||
<el-button type="primary" @click="bind">绑定</el-button>
|
||||
<el-button @click="handleClose">取消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -36,7 +36,7 @@
|
||||
import { ref } from 'vue'
|
||||
import { ElMessageBox } from 'element-plus'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import { getDataByTempId } from '@/api/harmonic-boot/luckyexcel'
|
||||
import { getDataByTempId, updateBindTemplate } from '@/api/harmonic-boot/luckyexcel'
|
||||
const emit = defineEmits(['shutDown'])
|
||||
const dictData = useDictData()
|
||||
const dialogVisible = ref(false)
|
||||
@@ -58,12 +58,10 @@ const open = (row: any) => {
|
||||
id: item.deptId,
|
||||
activation: item.activation
|
||||
})
|
||||
console.log('🚀 ~ getDataByTempId ~ item.activation:', item.activation)
|
||||
idarr.value.push({ id: item.deptId })
|
||||
})
|
||||
gettreeData(area.value, keyarr.value)
|
||||
dataTree.value = area.value
|
||||
console.log('🚀 ~ getDataByTempId ~ dataTree.value:', dataTree.value)
|
||||
})
|
||||
}
|
||||
//过滤数据
|
||||
@@ -83,6 +81,13 @@ const gettreeData = (mdata, ids) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
// 绑定
|
||||
const bind=()=>{
|
||||
|
||||
updateBindTemplate().then(res=>{
|
||||
// ElMessage.success('绑定成功')
|
||||
})
|
||||
}
|
||||
defineExpose({ open })
|
||||
</script>
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="部门:" prop="deptId">
|
||||
<Area
|
||||
:disabled="title === '编辑报表模板'"
|
||||
v-model="formdata.deptId"
|
||||
style="width: 100%"
|
||||
collapse-tags
|
||||
|
||||
@@ -75,16 +75,16 @@ const tableStore: any = new TableStore({
|
||||
}, 10)
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'edit',
|
||||
title: '绑定',
|
||||
type: 'primary',
|
||||
icon: 'el-icon-Plus',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
departmentRef.value.open(row)
|
||||
}
|
||||
},
|
||||
// {
|
||||
// name: 'edit',
|
||||
// title: '绑定',
|
||||
// type: 'primary',
|
||||
// icon: 'el-icon-Plus',
|
||||
// render: 'basicButton',
|
||||
// click: row => {
|
||||
// departmentRef.value.open(row)
|
||||
// }
|
||||
// },
|
||||
{
|
||||
name: 'del',
|
||||
text: '删除',
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<el-button icon="el-icon-Upload" type="primary" class="mr10">导入excel</el-button>
|
||||
</el-upload>
|
||||
<el-button @click="downloadExcel" class="" type="primary" icon="el-icon-Download">导出excel</el-button>
|
||||
<el-button type="primary" icon="el-icon-Close" @click="emit('shutDown')">返回</el-button>
|
||||
<el-button type="primary" icon="el-icon-ArrowLeftBold" @click="emit('shutDown')">返回</el-button>
|
||||
</div>
|
||||
|
||||
<div style="display: flex">
|
||||
@@ -35,7 +35,7 @@ const options: any = ref({
|
||||
container: 'luckysheet',
|
||||
title: '', // 表 头名
|
||||
lang: 'zh', // 中文
|
||||
showtoolbar: true, // 是否显示工具栏
|
||||
showtoolbar: false, // 是否显示工具栏
|
||||
showinfobar: false, // 是否显示顶部信息栏
|
||||
showsheetbar: true, // 是否显示底部sheet按钮
|
||||
data: [
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</el-upload>
|
||||
<el-button @click="downloadExcel" class="" type="primary" icon="el-icon-Download">导出excel</el-button>
|
||||
<el-button type="primary" icon="el-icon-Check" @click="preservation">保存</el-button>
|
||||
<el-button type="primary" icon="el-icon-Close" @click="emit('shutDown')">返回</el-button>
|
||||
<el-button type="primary" icon="el-icon-ArrowLeftBold" @click="emit('shutDown')">返回</el-button>
|
||||
</div>
|
||||
|
||||
<div style="display: flex">
|
||||
|
||||
Reference in New Issue
Block a user