fix: 帮助页面配置修改

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

@ -10,7 +10,7 @@
<el-row> <el-row>
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>组件路径</span> <span>组件标识</span>
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -21,7 +21,7 @@
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>菜单名称</span> <span>组件名称</span>
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -81,10 +81,37 @@
</el-row> </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"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>文件</span> <span>文件</span>
@ -173,6 +200,8 @@ export default {
menuName: null, menuName: null,
filePath: null, filePath: null,
status: null, status: null,
helpType: null,
urlPath: null
}, },
formRules: { formRules: {
menuKey: [ menuKey: [

@ -35,8 +35,13 @@
<el-table ref="tables" v-loading="loading" :data="list" <el-table ref="tables" v-loading="loading" :data="list"
border> border>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="组件路径" align="center" prop="menuKey"/> <el-table-column label="组件标识" align="center" prop="menuKey"/>
<el-table-column label="菜单名称" align="center" prop="menuName"/> <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"> <el-table-column label="状态" align="center" prop="status" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
@ -48,8 +53,8 @@
<el-table-column label="修改日期" align="center" prop="updateTime"> <el-table-column label="修改日期" align="center" prop="updateTime">
</el-table-column> </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"> <template slot-scope="scope" >
<el-button <el-button
type="text" type="text"
@click="handleView(scope.row,scope.index)" @click="handleView(scope.row,scope.index)"
@ -109,6 +114,10 @@
0: "禁用", 0: "禁用",
1: "启用" 1: "启用"
}, },
helpTypeMap: {
0: "文件",
1: "URL"
},
formName: 1, formName: 1,
formMap: { formMap: {
1: "新增菜单", 1: "新增菜单",
@ -196,6 +205,7 @@
}, },
addMenu(){ addMenu(){
this.formName=1;
this.addMenuVisible=true; this.addMenuVisible=true;
this.form={}; this.form={};
}, },

Loading…
Cancel
Save