fix: 帮助页面配置修改

dev2.0.1
chenhc 1 year ago
parent 308daccbba
commit 659f554a2f

@ -10,7 +10,7 @@
<el-row>
<el-col :span="3">
<div class="ao-text">
<span>组件路径</span>
<span>组件标识</span>
</div>
</el-col>
<el-col :span="8">
@ -21,7 +21,7 @@
<el-col :span="3">
<div class="ao-text">
<span>菜单名称</span>
<span>组件名称</span>
</div>
</el-col>
<el-col :span="8">
@ -81,10 +81,37 @@
</el-row>
<el-row>
<el-col :span="3">
<div class="ao-text">
<span>组件类型</span>
</div>
</el-col>
<el-col :span="8" type="flex">
<el-form-item prop="userFlag">
<el-radio-group v-model="formData.helpType==null?0:formData.helpType" >
<el-radio :label="0">文件</el-radio>
<el-radio :label="1">URL</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row v-show="formData.helpType == 1">
<el-col :span="3">
<div class="ao-text">
<span>URL</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="urlPath">
<el-input v-model="formData.urlPath" auto-complete="off" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-row v-show="formData.helpType==null || formData.helpType==0">
<el-col :span="3">
<div class="ao-text">
<span>文件</span>
@ -173,6 +200,8 @@ export default {
menuName: null,
filePath: null,
status: null,
helpType: null,
urlPath: null
},
formRules: {
menuKey: [

@ -35,8 +35,13 @@
<el-table ref="tables" v-loading="loading" :data="list"
border>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="组件路径" align="center" prop="menuKey"/>
<el-table-column label="菜单名称" align="center" prop="menuName"/>
<el-table-column label="组件标识" align="center" prop="menuKey"/>
<el-table-column label="组件类型" align="center" prop="status" width="130">
<template slot-scope="scope">
<el-tag type="success" effect="plain">{{ helpTypeMap[scope.row.helpType==null?0:scope.row.helpType] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="组件名称" align="center" prop="menuName"/>
<el-table-column label="状态" align="center" prop="status" width="130">
<template slot-scope="scope">
@ -48,7 +53,7 @@
<el-table-column label="修改日期" align="center" prop="updateTime">
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
<template slot-scope="scope" >
<el-button
type="text"
@ -109,6 +114,10 @@
0: "禁用",
1: "启用"
},
helpTypeMap: {
0: "文件",
1: "URL"
},
formName: 1,
formMap: {
1: "新增菜单",
@ -196,6 +205,7 @@
},
addMenu(){
this.formName=1;
this.addMenuVisible=true;
this.form={};
},

Loading…
Cancel
Save