|
@@ -24,6 +24,11 @@
|
|
|
{{ scope.row.orJump == 1 ? "跳转" : "不跳转" }}
|
|
{{ scope.row.orJump == 1 ? "跳转" : "不跳转" }}
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template #location="scope">
|
|
|
|
|
+ <el-tag :type="scope.row.location == 1 ? 'primary' : 'danger'">
|
|
|
|
|
+ {{ scope.row.location == 1 ? "首页" : "我的" }}
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ </template>
|
|
|
<template #status="scope">
|
|
<template #status="scope">
|
|
|
<el-tag :type="scope.row.status == 1 ? 'success' : 'warning'">
|
|
<el-tag :type="scope.row.status == 1 ? 'success' : 'warning'">
|
|
|
{{ scope.row.status == 1 ? "启用" : "禁用" }}
|
|
{{ scope.row.status == 1 ? "启用" : "禁用" }}
|
|
@@ -71,7 +76,6 @@
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import SingleImageUpload from "@/components/Upload/SingleImageUpload.vue";
|
|
import SingleImageUpload from "@/components/Upload/SingleImageUpload.vue";
|
|
|
-
|
|
|
|
|
defineOptions({ name: "BannerInfo" });
|
|
defineOptions({ name: "BannerInfo" });
|
|
|
|
|
|
|
|
import BannerInfoAPI, {
|
|
import BannerInfoAPI, {
|
|
@@ -80,7 +84,6 @@ import BannerInfoAPI, {
|
|
|
} from "@/api/operationsManage/banner-info-api";
|
|
} from "@/api/operationsManage/banner-info-api";
|
|
|
import type { IObject, IModalConfig, IContentConfig, ISearchConfig } from "@/components/CURD/types";
|
|
import type { IObject, IModalConfig, IContentConfig, ISearchConfig } from "@/components/CURD/types";
|
|
|
import usePage from "@/components/CURD/usePage";
|
|
import usePage from "@/components/CURD/usePage";
|
|
|
-import { IMAGE_BASE_URL } from "@/constants";
|
|
|
|
|
// 组合式 CRUD
|
|
// 组合式 CRUD
|
|
|
const {
|
|
const {
|
|
|
searchRef,
|
|
searchRef,
|
|
@@ -170,6 +173,13 @@ const contentConfig: IContentConfig<BannerInfoPageQuery> = reactive({
|
|
|
align: "center",
|
|
align: "center",
|
|
|
templet: "custom",
|
|
templet: "custom",
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "展示位置",
|
|
|
|
|
+ prop: "location",
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+ align: "center",
|
|
|
|
|
+ templet: "custom",
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "跳转小程序appid",
|
|
label: "跳转小程序appid",
|
|
|
prop: "jumpAppid",
|
|
prop: "jumpAppid",
|
|
@@ -254,6 +264,21 @@ const addModalConfig: IModalConfig<BannerInfoForm> = reactive({
|
|
|
initialValue: 0,
|
|
initialValue: 0,
|
|
|
rules: [{ required: true, message: "请选择是否跳转", trigger: "change" }],
|
|
rules: [{ required: true, message: "请选择是否跳转", trigger: "change" }],
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ type: "select",
|
|
|
|
|
+ label: "banner位置",
|
|
|
|
|
+ prop: "location",
|
|
|
|
|
+ attrs: {
|
|
|
|
|
+ placeholder: "请选择banner位置",
|
|
|
|
|
+ clearable: true,
|
|
|
|
|
+ style: { width: "200px" },
|
|
|
|
|
+ },
|
|
|
|
|
+ rlules: [{ required: true, message: "请选择是否跳转", trigger: "change" }],
|
|
|
|
|
+ options: [
|
|
|
|
|
+ { label: "首页", value: 1 },
|
|
|
|
|
+ { label: "我的", value: 2 },
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
type: "input",
|
|
type: "input",
|
|
|
attrs: {
|
|
attrs: {
|