Update index.vue

木子李·De 3 years ago
parent 9d9511b70e
commit b975c53d9e

@ -6,7 +6,7 @@
!-->
<template>
<div class="app-container">
<el-form ref="form" :model="params" :rules="rules" label-width="120px">
<el-form ref="form" :model="params" :rules="rules" label-width="120px" v-permission="'datasourceManage:query'">
<!-- 搜索 -->
<el-row :gutter="10">
<el-col :xs="24" :sm="20" :md="12" :lg="6" :xl="4">
@ -30,7 +30,7 @@
</el-col>
</el-row>
</el-form>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="showAddLogModel()"></el-button>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="showAddLogModel()" v-permission="'datasourceManage:insert'"></el-button>
<!--表格渲染-->
<el-table v-loading="listLoading" border :data="list" class="mt10" element-loading-text="Loading" style="width: 100%">
@ -44,10 +44,10 @@
<el-table-column prop="updateTime" label="修改时间" min-width="150px" />
<el-table-column label="操作" align="center" min-width="120px">
<template slot-scope="scope">
<el-button type="text" @click="showAddLogModel(scope.row)"></el-button>
<el-button type="text" @click="showAddLogModel(scope.row)" v-permission="'datasourceManage:update'"></el-button>
<!-- <el-popconfirm :title="'确定删除' + scope.row.sourceNameCode + '吗?'"
@onConfirm="delData(scope.row)"> -->
<el-button slot="reference" @click="delData(scope.row)" type="text">删除</el-button>
<el-button slot="reference" @click="delData(scope.row)" type="text" v-permission="'datasourceManage:delete'"></el-button>
<!-- </el-popconfirm> -->
</template>
</el-table-column>

Loading…
Cancel
Save