|
@@ -2,7 +2,7 @@
|
|
|
<div class='app-container'>
|
|
|
<div class="left">
|
|
|
<el-button type="primary" plain icon="Plus" @click="getDialog()"
|
|
|
- v-hasPermi="['content:scene:addScene']">新增场景</el-button>
|
|
|
+ v-hasPermi="['scene:presets:addScene']">新增场景</el-button>
|
|
|
<el-input class="search" v-model="data.form.takeName" placeholder="搜索场景名称" clearable>
|
|
|
<template #append>
|
|
|
<el-button icon="Search" @click="getSearch" />
|
|
@@ -14,7 +14,7 @@
|
|
|
<template #item="{ element, index }">
|
|
|
<div class="item" @click="getDialog(element.takeId)">
|
|
|
<el-icon class="close" size="18" @click.stop="getDelete(element)"
|
|
|
- v-hasPermi="['content:scene:deleteScene']">
|
|
|
+ v-hasPermi="['scene:presets::deleteScene']">
|
|
|
<CircleClose />
|
|
|
</el-icon>
|
|
|
<img src="@/assets/icons/svg/file.svg" width="50" height="50" />
|
|
@@ -26,7 +26,7 @@
|
|
|
v-model:page="data.form.pageNum" v-model:limit="data.form.pageSize" @pagination="getList" />
|
|
|
</div>
|
|
|
<div class="right">
|
|
|
- <gantt-chart path="/content/scene/detail" type="scene" />
|
|
|
+ <gantt-chart path="/scene/presets/detail" type="scene" />
|
|
|
</div>
|
|
|
|
|
|
<!-- 弹窗 -->
|
|
@@ -52,7 +52,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { list, submit, detail, remove } from '@/api/content/scene'
|
|
|
+import { list, submit, detail, remove } from '@/api/scene/presets'
|
|
|
import { checkPermi } from '@/utils/permission'
|
|
|
import GanttChart from '@/components/GanttChart/index.vue'
|
|
|
|
|
@@ -106,7 +106,7 @@ function getSearch() {
|
|
|
|
|
|
// 拖拽结束
|
|
|
function onEnd(params) {
|
|
|
- if (checkPermi(['content:scene:add'])) {
|
|
|
+ if (checkPermi(['scene:presets:add'])) {
|
|
|
if (params.from.className !== params.to.className) {
|
|
|
proxy.$modal.confirm(`是否要添加?`).then(() => {
|
|
|
getRouter({ audioList: JSON.stringify(params.item.__draggable_context.element), disabled: true })
|
|
@@ -123,7 +123,7 @@ const dialogVisible = ref(false)
|
|
|
const title = ref('')
|
|
|
// 打开弹窗
|
|
|
function getDialog(id) {
|
|
|
- if (checkPermi(['content:scene:editScene'])) {
|
|
|
+ if (checkPermi(['scene:presets:editScene'])) {
|
|
|
dialogVisible.value = true
|
|
|
title.value = '新增'
|
|
|
if (id) {
|
|
@@ -184,7 +184,7 @@ function getDelete(row) {
|
|
|
// 新增预设
|
|
|
function getRouter(query) {
|
|
|
proxy.$router.push({
|
|
|
- path: `/content/scene/detail`,
|
|
|
+ path: `/scene/presets/detail`,
|
|
|
query
|
|
|
})
|
|
|
}
|