|
|
|
@ -32,7 +32,7 @@
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['energy:datasource:add']"
|
|
|
|
|
v-hasPermi="['system:datasource:add']"
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
@ -43,7 +43,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['energy:datasource:edit']"
|
|
|
|
|
v-hasPermi="['system:datasource:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
@ -54,7 +54,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['energy:datasource:remove']"
|
|
|
|
|
v-hasPermi="['system:datasource:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['energy:datasource:export']"
|
|
|
|
|
v-hasPermi="['system:datasource:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
@ -102,28 +102,28 @@
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['energy:datasource:edit']"
|
|
|
|
|
v-hasPermi="['system:datasource:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['energy:datasource:remove']"
|
|
|
|
|
v-hasPermi="['system:datasource:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-add"
|
|
|
|
|
@click="handleAuthUser(scope.row)"
|
|
|
|
|
v-hasPermi="['energy:datasource:edit']"
|
|
|
|
|
v-hasPermi="['system:datasource:edit']"
|
|
|
|
|
>分配用户</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-add"
|
|
|
|
|
@click="handleTestDB(scope.row)"
|
|
|
|
|
v-hasPermi="['energy:datasource:add']"
|
|
|
|
|
v-hasPermi="['system:datasource:add']"
|
|
|
|
|
>测试链接</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -371,6 +371,7 @@ export default {
|
|
|
|
|
/** 分配用户操作 */
|
|
|
|
|
handleAuthUser: function(row) {
|
|
|
|
|
const datasourceId = row.id;
|
|
|
|
|
debugger
|
|
|
|
|
this.$router.push("/system/datasource-auth/user/" + datasourceId);
|
|
|
|
|
},
|
|
|
|
|
/** 查询部门下拉树结构 */
|
|
|
|
|