| | |
| | | > |
| | | <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> |
| | |
| | | ref="multipleTableRef" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column |
| | | label="序号" |
| | |
| | | show-overflow-tooltip |
| | | > |
| | | <template #default> |
| | | <el-button link type="primary" size="small" :icon="View" @click="handleClick" |
| | | <el-button link type="primary" size="default" :icon="View" @click="handleClick" |
| | | >查看</el-button |
| | | > |
| | | <el-button link type="primary" size="small" :icon="Delete">删除</el-button> |
| | | <el-button link type="primary" size="default" :icon="Delete">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | @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"> |
| | |
| | | ]; |
| | | const currentPage4 = ref(4); |
| | | const pageSize4 = ref(100); |
| | | const small = ref(false) |
| | | const disabled = ref(false) |
| | | const background = ref(false) |
| | | const handleSizeChange = (val: number) => { |
| | | console.log(`${val} items per page`); |
| | | }; |
| | |
| | | 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, |
| | | small, |
| | | disabled, |
| | | background, |
| | | Plus, |
| | | Delete, |
| | | Upload, |