parent
b61c7be4cf
commit
27cd6dcf10
@ -0,0 +1,58 @@ |
||||
<template> |
||||
<div class="app-container"> |
||||
<el-button type="primary" @click="open=true">新增</el-button> |
||||
<el-button>批量删除</el-button> |
||||
<el-table border :data="dataList" class="table"> |
||||
<el-table-column type="selection" align="center"></el-table-column> |
||||
<el-table-column type="index" align="center" label="序号"></el-table-column> |
||||
<el-table-column align="center" label="问题名称">bug问题</el-table-column> |
||||
<el-table-column align="center" label="状态">禁用</el-table-column> |
||||
<el-table-column align="center" label="创建时间">2022-12-31 12:31</el-table-column> |
||||
<el-table-column align="center" label="操作"> |
||||
<el-button type="text">编辑</el-button> |
||||
<el-button type="text">删除</el-button> |
||||
</el-table-column> |
||||
|
||||
</el-table> |
||||
<el-dialog :visible.sync="open" title="新增"> |
||||
<el-form inline label-width="100px" label-position="left"> |
||||
<el-form-item label="问题名称"> |
||||
<el-input placeholder="请输入"/> |
||||
</el-form-item> |
||||
<br/> |
||||
<el-form-item label="序号"> |
||||
<el-input placeholder="数字越小排名越靠前"/> |
||||
</el-form-item> |
||||
</el-form> |
||||
<div class="text-center"> |
||||
<el-button type="primary" @click="save">保存</el-button> |
||||
<el-button>重置</el-button> |
||||
|
||||
</div> |
||||
</el-dialog> |
||||
</div> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
name: 'type', |
||||
data() { |
||||
return { |
||||
open: false, |
||||
dataList: [{}] |
||||
} |
||||
}, |
||||
methods: { |
||||
save() { |
||||
this.$modal.msgSuccess('保存成功') |
||||
this.open = false |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style scoped lang="scss"> |
||||
.table { |
||||
margin-top: 10px; |
||||
} |
||||
</style> |
Loading…
Reference in new issue