| | |
| | | <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> |
| | |
| | | /> |
| | | </div> |
| | | </div> |
| | | <Dailog ref="Show"></Dailog> |
| | | </template> |
| | | <script lang="ts"> |
| | | import search from '../targetSettings/component/search.vue' |
| | | import Dailog from '../targetDecompositionYear/component/Dailog.vue' |
| | | import { ref, toRefs, reactive, onMounted, defineComponent } from "vue"; |
| | | import { |
| | | ElMessageBox, |
| | |
| | | } |
| | | 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() { |
| | | |
| | | |
| | |
| | | const handleCurrentChange = (val: number) => { |
| | | console.log(`current page: ${val}`); |
| | | }; |
| | | |
| | | // 打开弹窗 |
| | | const Show=ref() |
| | | const openType=()=>{ |
| | | Show.value.openDailog() |
| | | } |
| | | return { |
| | | activeName, |
| | | handleClick, |
| | |
| | | pageSize4, |
| | | handleSizeChange, |
| | | handleCurrentChange, |
| | | Show, |
| | | openType, |
| | | Plus, |
| | | Delete, |
| | | Upload, |