|
@@ -24,7 +24,7 @@
|
|
|
<div v-else class="approve-content"
|
|
|
v-loading="isLoading"
|
|
|
element-loading-text="看板加载中...">
|
|
|
- 看板内容
|
|
|
+ <BIBoardContent :value="boardDataList" renderHeight="calc(100vh - 250px)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="approve-tool">
|
|
@@ -70,12 +70,13 @@ import RejectDialog from './components/rejectDialog.vue';
|
|
|
import {approveInterence} from '@/api/modules/approve.js';
|
|
|
import {departInterence} from '@/api/api.js'
|
|
|
import reportApproveConfig from "@/mixins/reportApproveConfig.js"
|
|
|
+import apiBiBoard from '@/api/modules/BIBoard.js'
|
|
|
+import BIBoardContent from '@/views/BI_manage/components/BoardContent.vue';
|
|
|
|
|
|
const ApproveType = ['','依次审批','会签','或签']
|
|
|
const ApproveState = ['','待审批','已同意','已驳回']
|
|
|
export default {
|
|
|
mixins:[reportApproveConfig],
|
|
|
- components: { RejectDialog },
|
|
|
data() {
|
|
|
return {
|
|
|
isError:false,
|
|
@@ -98,6 +99,7 @@ export default {
|
|
|
isCurrentApprover:false,//审批进行中的节点审批人是否是当前用户,控制通过&驳回按钮显示
|
|
|
},
|
|
|
waterMarkStr:'',//水印
|
|
|
+ boardDataList:[],
|
|
|
};
|
|
|
},
|
|
|
computed:{
|
|
@@ -149,8 +151,17 @@ export default {
|
|
|
this.formType = type||'detail'
|
|
|
this.approveInfo.state=Approve.State
|
|
|
this.approveInfo.stateText=['','pending','passed','reject','return'][Approve.State]
|
|
|
+ this.getBoardDetail();
|
|
|
})
|
|
|
},
|
|
|
+ async getBoardDetail() {
|
|
|
+ this.isLoading = true;
|
|
|
+ const res = await apiBiBoard.boardDetail({ DashboardId: +this.reportInfo.BiId })
|
|
|
+ this.isLoading = false;
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ this.boardDataList = res.Data.List || []
|
|
|
+ }
|
|
|
+ },
|
|
|
//转换接口数据
|
|
|
formatTimeLineData({Approve={},ApproveFlowNodes=[]}){
|
|
|
//发起人节点
|
|
@@ -362,7 +373,7 @@ export default {
|
|
|
}
|
|
|
if(this.mainType == 'bi') this.getBiApproveDetail();
|
|
|
},
|
|
|
- components: { TimeLine, ReportDetail, Reportdtl, RejectDialog }
|
|
|
+ components: { TimeLine, ReportDetail, Reportdtl, RejectDialog, BIBoardContent }
|
|
|
};
|
|
|
</script>
|
|
|
|