mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-18 09:42:50 +00:00
解决插件列表动态表单上传异常
This commit is contained in:
parent
a4bbea31c5
commit
9a4bd66cb2
@ -1,37 +1,41 @@
|
|||||||
<template>
|
<template>
|
||||||
<cl-crud ref="crud" :on-refresh="onRefresh" @load="onLoad">
|
<div>
|
||||||
<el-row type="flex" align="middle">
|
<cl-crud ref="crud" :on-refresh="onRefresh" @load="onLoad">
|
||||||
<!-- 刷新按钮 -->
|
<el-row type="flex" align="middle">
|
||||||
<cl-refresh-btn />
|
<!-- 刷新按钮 -->
|
||||||
<!-- 提示 -->
|
<cl-refresh-btn />
|
||||||
<p class="tips">修改完配置如无生效则需要重启 <i class="el-icon-warning"></i></p>
|
<!-- 提示 -->
|
||||||
<cl-flex1 />
|
<p class="tips">修改完配置如无生效则需要重启 <i class="el-icon-warning"></i></p>
|
||||||
<!-- 关键字搜索 -->
|
<cl-flex1 />
|
||||||
<cl-search-key />
|
<!-- 关键字搜索 -->
|
||||||
</el-row>
|
<cl-search-key />
|
||||||
|
</el-row>
|
||||||
|
|
||||||
<el-row>
|
<el-row>
|
||||||
<!-- 数据表格 -->
|
<!-- 数据表格 -->
|
||||||
<cl-table v-bind="table">
|
<cl-table v-bind="table">
|
||||||
<template #column-enable="{ scope }">
|
<template #column-enable="{ scope }">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.enable"
|
v-model="scope.row.enable"
|
||||||
size="mini"
|
size="mini"
|
||||||
:inactive-value="0"
|
:inactive-value="0"
|
||||||
:active-value="1"
|
:active-value="1"
|
||||||
:disabled="!perms.enable"
|
:disabled="!perms.enable"
|
||||||
@change="onEnableChange($event, scope.row)"
|
@change="onEnableChange($event, scope.row)"
|
||||||
></el-switch>
|
></el-switch>
|
||||||
</template>
|
</template>
|
||||||
</cl-table>
|
</cl-table>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row type="flex">
|
<el-row type="flex">
|
||||||
<cl-flex1 />
|
<cl-flex1 />
|
||||||
<!-- 分页控件 -->
|
<!-- 分页控件 -->
|
||||||
<cl-pagination :props="{ layout: 'total' }" />
|
<cl-pagination :props="{ layout: 'total' }" />
|
||||||
</el-row>
|
</el-row>
|
||||||
</cl-crud>
|
</cl-crud>
|
||||||
|
|
||||||
|
<cl-form ref="form"></cl-form>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -189,7 +193,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async openConf(item) {
|
async openConf(item) {
|
||||||
let form = await this.$service.plugin.info.getConfig({
|
const form = await this.$service.plugin.info.getConfig({
|
||||||
namespace: item.namespace
|
namespace: item.namespace
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -202,7 +206,7 @@ export default {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$crud.openForm({
|
this.$refs.form.open({
|
||||||
title: `${item.name}配置`,
|
title: `${item.name}配置`,
|
||||||
items,
|
items,
|
||||||
form,
|
form,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user