feaet: 调整报告接口
This commit is contained in:
@ -29,7 +29,8 @@
|
||||
<template #controls="{ row }">
|
||||
<!-- <el-link size="small" type="primary" @click="getDataById('edit', row)">修改</el-link> -->
|
||||
<el-link size="small" type="primary" @click="getDataById('detail', row)">详情</el-link>
|
||||
<el-link size="small" type="primary" @click="createReport(row)">创建报告</el-link>
|
||||
<el-link size="small" type="primary" @click="createReport(row)">{{ row.ypbg?.id ? '编辑' : '创建' }}报告</el-link>
|
||||
<el-link size="small" type="success" @click="createMeeting(row)">创建会议</el-link>
|
||||
<el-link size="small" type="danger" @click="deleteFile(row)">删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
@ -43,6 +44,8 @@
|
||||
|
||||
<!-- 创建报告 -->
|
||||
<addReport ref="reportTc" :row="currRow" :dic="{ D_GS_BQ_LX }" @ok="getList" />
|
||||
<!-- 创建报告 -->
|
||||
<addMeeting ref="meetingTc" :row="currRow" @updateDate="getList" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@ -55,11 +58,14 @@ import { tacticalGet, strategicDelete } from "@/api/huiShangyp/tacticalApi.js";
|
||||
import { reactive, ref, onMounted, getCurrentInstance, watch, computed, nextTick } from "vue";
|
||||
import addReport from "./addReport.vue";
|
||||
import AddForm from "./addForm.vue";
|
||||
import addMeeting from "./addMeeting.vue";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { D_BZ_YPFS, D_BZ_YPLX, D_GS_BQ_LX } = proxy.$dict("D_BZ_YPFS", "D_BZ_YPLX", "D_GS_BQ_LX")
|
||||
|
||||
/** 报告弹框 */
|
||||
const reportTc = ref();
|
||||
/** 会议弹框 */
|
||||
const meetingTc = ref();
|
||||
const searchBox = ref(); //搜索框
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
@ -183,9 +189,16 @@ const deleteFile = (row) => {
|
||||
const selfCreateResearch = (type = 'add') => {
|
||||
addForm.value.init(type, null, '01');
|
||||
}
|
||||
|
||||
/** 创建报告 */
|
||||
const createReport = (row) => {
|
||||
reportTc.value.init('add',row)
|
||||
const type = !row.id ? 'add' : 'edit'
|
||||
reportTc.value.init(type, row?.ypbg || {}, row)
|
||||
// currRow.value = { ...row }
|
||||
// isShowReport.value = true
|
||||
}
|
||||
/** 创建会议 */
|
||||
const createMeeting = (row) => {
|
||||
meetingTc.value.init('add', null, row)
|
||||
// currRow.value = { ...row }
|
||||
// isShowReport.value = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user