| | |
| | | <el-button type="danger" :icon="Delete" plain>删除</el-button> |
| | | </div> |
| | | <div> |
| | | <el-button :icon="Upload"></el-button> |
| | | <el-button :icon="Upload" @click="openUp"></el-button> |
| | | <el-button :icon="Download"></el-button> |
| | | <el-button :icon="Refresh"></el-button> |
| | | </div> |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <updata ref="Show"></updata> |
| | | <Dailog ref="ShowD"></Dailog> |
| | | </div> |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive, watch } from 'vue'; |
| | | import updata from '/@/components/updata/updata.vue' |
| | | import Dailog from './component/Dailog.vue' |
| | | import { ElTree, TabsPaneContext } from 'element-plus'; |
| | | import { EditPen, Plus, Delete, Download, Refresh, Upload } from '@element-plus/icons-vue'; |
| | | interface Tree { |
| | |
| | | children?: Tree[]; |
| | | } |
| | | export default defineComponent({ |
| | | components:{updata,Dailog}, |
| | | setup() { |
| | | const ruleForm = reactive({ |
| | | pass: '', |
| | |
| | | const handleClick = (tab: TabsPaneContext, event: Event) => { |
| | | console.log(tab, event); |
| | | }; |
| | | const Show=ref() |
| | | const openUp=()=>{ |
| | | Show.value.openDialog() |
| | | } |
| | | const ShowD=ref() |
| | | const openD=()=>{ |
| | | ShowD.value.openDailog() |
| | | } |
| | | return { |
| | | activeName, |
| | | handleClick, |
| | |
| | | filterNode, |
| | | data, |
| | | tableData, |
| | | Show, |
| | | openUp, |
| | | ShowD, |
| | | openD, |
| | | Plus, |
| | | EditPen, |
| | | Delete, |