对话框

This commit is contained in:
xing 2020-06-18 13:43:02 +08:00
parent 6614ffdb50
commit d5a804c037

View File

@ -15,7 +15,7 @@
</el-input> </el-input>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-button type="primary">添加用户</el-button> <el-button type="primary" @click="dialogVisible=true">添加用户</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -56,6 +56,16 @@
</el-card> </el-card>
<el-dialog title="提示" :visible.sync="dialogVisible">
<!--内在主体区-->
<span>这是一段信息</span>
<!--底部区-->
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="dialogVisible = false"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -64,10 +74,11 @@
export default { export default {
data () { data () {
return { return {
dialogVisible: false,
queryInfo: { queryInfo: {
query: '', query: '',
pagenum: 1, pagenum: 1,
pagesize: 10 pagesize: 1
}, },
userList: [], userList: [],
total: 0 total: 0