修改 承载能力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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user