| | |
| | | > |
| | | <div class="btns"> |
| | | <div> |
| | | <el-button type="primary" :icon="Plus" @click="openDai">新建</el-button> |
| | | <el-button type="primary" :icon="Plus" @click="openD('新建')">新建</el-button> |
| | | <el-button type="danger" :icon="Delete">删除</el-button> |
| | | </div> |
| | | <div> |
| | |
| | | @current-change="handleCurrentChange" |
| | | /> |
| | | </div> |
| | | <dailogAdd :dialogVisible="Show"></dailogAdd> |
| | | <upData :updata="upShow"></upData> |
| | | <dailogAdd ref="openAdd"></dailogAdd> |
| | | <upData ref="upShow"></upData> |
| | | </div> |
| | | </template> |
| | | <script lang="ts"> |
| | |
| | | console.log(`current page: ${val}`); |
| | | }; |
| | | // 弹窗 |
| | | let Show=ref(false) |
| | | let openDai=()=>{ |
| | | Show.value=true |
| | | } |
| | | const openAdd=ref() |
| | | const openD=(type:String,value:any)=>{ |
| | | openAdd.value.openDialog(type,value) |
| | | } |
| | | |
| | | // 上传 |
| | | const upShow=ref(false) |
| | | const upShow=ref() |
| | | const upButton=()=>{ |
| | | upShow.value=true |
| | | upShow.value.openDialog() |
| | | } |
| | | return { |
| | | activeName, |
| | |
| | | pageSize4, |
| | | handleSizeChange, |
| | | handleCurrentChange, |
| | | Show, |
| | | openDai, |
| | | openAdd, |
| | | openD, |
| | | upShow, |
| | | upButton, |
| | | Plus, |