|
@@ -2,11 +2,11 @@
|
|
|
<basic-container>
|
|
<basic-container>
|
|
|
<avue-crud :option="option" v-model:search="search" v-model:page="page" v-model="form" :table-loading="loading" :data="data" :permission="permissionList" :before-open="beforeOpen" ref="crud" @row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
|
|
<avue-crud :option="option" v-model:search="search" v-model:page="page" v-model="form" :table-loading="loading" :data="data" :permission="permissionList" :before-open="beforeOpen" ref="crud" @row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
|
|
|
<template #menu-left>
|
|
<template #menu-left>
|
|
|
- <el-button type="primary" icon="el-icon-plus" v-if="permission.famousLocation_add" @click="toEdit()">新增</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" icon="el-icon-plus" v-if="permission.famousSnacks_add" @click="toEdit()">新增</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template #menu="scope">
|
|
<template #menu="scope">
|
|
|
- <el-button type="text" icon="el-icon-edit" v-if="permission.famousLocation_edit" @click="toEdit(scope.row)">编辑</el-button>
|
|
|
|
|
- <el-button type="text" icon="el-icon-delete" v-if="permission.famousLocation_delete" @click="rowDel(scope.row)">删 除</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" icon="el-icon-edit" v-if="permission.famousSnacks_edit" @click="toEdit(scope.row)">编辑</el-button>
|
|
|
|
|
+ <el-button type="text" icon="el-icon-delete" v-if="permission.famousSnacks_delete" @click="rowDel(scope.row)">删 除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template #videos="scope">
|
|
<template #videos="scope">
|
|
|
<video v-if="scope.row.videos" :src="scope.row.videos" style="width: 200px; height: 112px; border: 1px dashed #d9d9d9" controls></video>
|
|
<video v-if="scope.row.videos" :src="scope.row.videos" style="width: 200px; height: 112px; border: 1px dashed #d9d9d9" controls></video>
|
|
@@ -19,8 +19,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import { getList, getDetail, add, update, remove } from "@/api/ycwh/famousLocation";
|
|
|
|
|
- import option from "@/option/ycwh/famousLocation";
|
|
|
|
|
|
|
+ import { getList, getDetail, add, update, remove } from "@/api/ycwh/famousSnacks";
|
|
|
|
|
+ import option from "@/option/ycwh/famousSnacks";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import { exportBlob } from "@/api/common";
|
|
import { exportBlob } from "@/api/common";
|
|
|
import { getToken } from '@/utils/auth';
|
|
import { getToken } from '@/utils/auth';
|
|
@@ -30,7 +30,7 @@
|
|
|
import 'nprogress/nprogress.css';
|
|
import 'nprogress/nprogress.css';
|
|
|
//
|
|
//
|
|
|
import { getLazyTree } from "@/api/base/region";
|
|
import { getLazyTree } from "@/api/base/region";
|
|
|
- import editArticle from "./components/editFamousLocation/index.vue"
|
|
|
|
|
|
|
+ import editArticle from "./components/editFamousSnacks/index.vue"
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -60,10 +60,10 @@
|
|
|
...mapGetters(["permission"]),
|
|
...mapGetters(["permission"]),
|
|
|
permissionList() {
|
|
permissionList() {
|
|
|
return {
|
|
return {
|
|
|
- addBtn: this.validData(this.permission.famousLocation_add, false),
|
|
|
|
|
- viewBtn: this.validData(this.permission.famousLocation_view, false),
|
|
|
|
|
- delBtn: this.validData(this.permission.famousLocation_delete, false),
|
|
|
|
|
- editBtn: this.validData(this.permission.famousLocation_edit, false)
|
|
|
|
|
|
|
+ addBtn: this.validData(this.permission.famousSnacks_add, false),
|
|
|
|
|
+ viewBtn: this.validData(this.permission.famousSnacks_view, false),
|
|
|
|
|
+ delBtn: this.validData(this.permission.famousSnacks_delete, false),
|
|
|
|
|
+ editBtn: this.validData(this.permission.famousSnacks_edit, false)
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
ids() {
|
|
ids() {
|
|
@@ -147,7 +147,7 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
- let downloadUrl = `/famous_dish/famousLocation/export-famousLocation?${this.website.tokenHeader}=${getToken()}`;
|
|
|
|
|
|
|
+ let downloadUrl = `/famous_dish/famousSnacks/export-famousSnacks?${this.website.tokenHeader}=${getToken()}`;
|
|
|
const {} = this.query;
|
|
const {} = this.query;
|
|
|
let values = {};
|
|
let values = {};
|
|
|
this.$confirm("是否导出数据?", "提示", {
|
|
this.$confirm("是否导出数据?", "提示", {
|