sc
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
@change="nodeChange"
|
||||
/>
|
||||
<div class="flex justify-end flex-1">
|
||||
<el-button type="info" @click="handleExport">导出</el-button>
|
||||
<el-popover
|
||||
ref="countRef"
|
||||
placement="left"
|
||||
@@ -42,6 +43,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
id="okrAnalysisTable"
|
||||
:data="originList"
|
||||
border
|
||||
:span-method="objectSpanMethod"
|
||||
@@ -274,6 +276,7 @@ import {
|
||||
getCommentPage,
|
||||
likeComment
|
||||
} from '@/api/okr/comment'
|
||||
import { exportTableWithVue } from '@/utils'
|
||||
|
||||
const message = useMessage()
|
||||
const defaultProps = {
|
||||
@@ -541,6 +544,10 @@ function handleSaveComment() {
|
||||
message.error('创建失败')
|
||||
}
|
||||
}
|
||||
|
||||
function handleExport() {
|
||||
exportTableWithVue('#okrAnalysisTable', `OKR分析报表-${currentNode.value.nodeName}`)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
@@ -449,7 +449,7 @@ function resetForm() {
|
||||
startTime: undefined,
|
||||
endTime: undefined,
|
||||
executor: [],
|
||||
dataScope: 1
|
||||
dataScope: 2
|
||||
}
|
||||
}
|
||||
|
||||
@@ -464,7 +464,7 @@ function addObjective() {
|
||||
objectiveName: '',
|
||||
executor: [],
|
||||
keyResults: [],
|
||||
dataScope: 1
|
||||
dataScope: 2
|
||||
})
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@ function removeKR(oIdx, krIdx) {
|
||||
}
|
||||
|
||||
function addChildNode() {
|
||||
childNodeList.value.push({ dataScope: 1 })
|
||||
childNodeList.value.push({ dataScope: 2 })
|
||||
}
|
||||
|
||||
function removeChildNode(idx) {
|
||||
|
||||
Reference in New Issue
Block a user