From b450d40cf5dd90d7061b6e684aa63d294e5d51b4 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: Thu, 30 Jun 2022 17:52:24 +0800
Subject: [PATCH] 目标
---
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