|
@@ -10,6 +10,17 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="小程序" prop="appId">
|
|
|
|
|
+ <el-select v-model="queryParams.appId" placeholder="请选择所属小程序" clearable size="small">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in appMallOptions"
|
|
|
|
|
+ :key="dict.appid"
|
|
|
|
|
+ :label="dict.name + '(' + dict.appid + ')'"
|
|
|
|
|
+ :value="dict.appid"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -55,6 +66,11 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="ID" align="center" prop="menuId" />
|
|
<el-table-column label="ID" align="center" prop="menuId" />
|
|
|
<el-table-column label="菜单名称" align="center" prop="menuName" />
|
|
<el-table-column label="菜单名称" align="center" prop="menuName" />
|
|
|
|
|
+ <el-table-column label="小程序" align="center" prop="appId" >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag prop="appId" v-for="(item, index) in appMallOptions" v-if="scope.row.appId==item.appid">{{item.name}}</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="图标" align="center" width="120">
|
|
<el-table-column label="图标" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-popover
|
|
<el-popover
|
|
@@ -142,6 +158,16 @@
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="小程序" prop="appId">
|
|
|
|
|
+ <el-select style="width: 200px" v-model="form.appId" placeholder="请选择所属小程序" clearable size="small" >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in appMallOptions"
|
|
|
|
|
+ :key="dict.appid"
|
|
|
|
|
+ :label="dict.name + '(' + dict.appid + ')'"
|
|
|
|
|
+ :value="dict.appid"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="状态" prop="isShow">
|
|
<el-form-item label="状态" prop="isShow">
|
|
|
<el-radio-group v-model="form.isShow">
|
|
<el-radio-group v-model="form.isShow">
|
|
|
<el-radio v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictValue">{{dict.dictLabel}}</el-radio>
|
|
<el-radio v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictValue">{{dict.dictLabel}}</el-radio>
|
|
@@ -158,6 +184,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { listMenu, getMenu, delMenu, addMenu, updateMenu, exportMenu } from "@/api/hisStore/menu";
|
|
import { listMenu, getMenu, delMenu, addMenu, updateMenu, exportMenu } from "@/api/hisStore/menu";
|
|
|
|
|
+import {list as getAppMallOptions} from '@/api/course/coursePlaySourceConfig';
|
|
|
import Material from '@/components/Material'
|
|
import Material from '@/components/Material'
|
|
|
export default {
|
|
export default {
|
|
|
name: "Menu",
|
|
name: "Menu",
|
|
@@ -171,6 +198,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ appMallOptions:[],
|
|
|
activeName:"00",
|
|
activeName:"00",
|
|
|
menuLinkTypeOptions:[],
|
|
menuLinkTypeOptions:[],
|
|
|
menuTypeOptions:[
|
|
menuTypeOptions:[
|
|
@@ -231,11 +259,17 @@ export default {
|
|
|
this.getDicts("common_status").then((response) => {
|
|
this.getDicts("common_status").then((response) => {
|
|
|
this.statusOptions = response.data;
|
|
this.statusOptions = response.data;
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+ this.getAppMallOptions();
|
|
|
this.getList();
|
|
this.getList();
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 获取小程序选项列表
|
|
|
|
|
+ getAppMallOptions() {
|
|
|
|
|
+ getAppMallOptions({pageNum:1,pageSize:100,isMall:1}).then(response => {
|
|
|
|
|
+ this.appMallOptions = response.rows;
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
handleClick(tab,event){
|
|
handleClick(tab,event){
|
|
|
this.activeName=tab.name;
|
|
this.activeName=tab.name;
|
|
|
if(tab.name=="00"){
|
|
if(tab.name=="00"){
|