From 25d3c170bf0913c27bfb5659a1bf5b0539c0fe15 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期二, 05 七月 2022 10:19:08 +0800 Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqtOut --- src/views/goalManagement/targetDecompositionYear/index.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/goalManagement/targetDecompositionYear/index.vue b/src/views/goalManagement/targetDecompositionYear/index.vue index 00576b5..2210e0a 100644 --- a/src/views/goalManagement/targetDecompositionYear/index.vue +++ b/src/views/goalManagement/targetDecompositionYear/index.vue @@ -3,8 +3,8 @@ <div class="minCenter"> <div class="btns"> <div> - <el-button type="primary" :icon="Plus" @click="openDai">新建</el-button> - <el-button type="warning" :icon="EditPen" plain @click="openDai">修改</el-button> + <el-button type="primary" :icon="Plus" @click="openType">新建</el-button> + <el-button type="warning" :icon="EditPen" plain >修改</el-button> <el-button type="danger" :icon="Delete" plain>删除</el-button> </div> </div> @@ -12,7 +12,6 @@ ref="multipleTableRef" :data="tableData" style="width: 100%" - @selection-change="handleSelectionChange" > <el-table-column label="序号" @@ -76,9 +75,11 @@ /> </div> </div> + <Dailog ref="Show"></Dailog> </template> <script lang="ts"> import search from '../targetSettings/component/search.vue' +import Dailog from './component/Dailog.vue' import { ref, toRefs, reactive, onMounted, defineComponent } from "vue"; import { ElMessageBox, @@ -104,7 +105,7 @@ } import type { TableColumnCtx } from "element-plus/es/components/table/src/table-column/defaults"; export default defineComponent({ - components: { ElButton, ElInput,search}, + components: { ElButton, ElInput,search,Dailog}, setup() { @@ -162,7 +163,11 @@ const handleCurrentChange = (val: number) => { console.log(`current page: ${val}`); }; - + // 打开弹窗 + const Show=ref() + const openType=()=>{ + Show.value.openDailog() + } return { activeName, handleClick, @@ -172,6 +177,8 @@ pageSize4, handleSizeChange, handleCurrentChange, + Show, + openType, Plus, Delete, Upload, -- Gitblit v1.9.2