From 4636161d56a4a14a8bdb190edd5ded79db0dea3d Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 22 Mar 2024 14:54:41 +0800
Subject: [PATCH] 轮播图片
---
src/views/article/rotation.vue | 38 ++++++++++++++++++++++++++++++++++++--
1 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/src/views/article/rotation.vue b/src/views/article/rotation.vue
index 972a1c9..ce161a4 100644
--- a/src/views/article/rotation.vue
+++ b/src/views/article/rotation.vue
@@ -33,7 +33,9 @@
export default {
data() {
return {
- form: {},
+ form: {
+ publicFlag: 1
+ },
query: {},
loading: true,
page: {
@@ -93,6 +95,25 @@
value: 2
}
]
+ }, {
+ width: 110,
+ labelWidth: 100,
+ label: "是否公开",
+ prop: "publicFlag",
+ span: 12,
+ searchSpan: 4,
+ search: true,
+ // cascader: ["communityCode"],
+ type: "select",
+ dicData: [{
+ label: "不公开",
+ value: 1
+ },
+ {
+ label: "公开",
+ value: 2
+ }
+ ]
},
// {
// width: 156,
@@ -125,6 +146,7 @@
tags: true,
type: "tree",
multiple: true,
+ editDisplay: false,
cascader: ['articleId'],
dicUrl: "/api/blade-district/district/getDistrictTree?filterFlag=1",
rules: [{
@@ -207,7 +229,19 @@
data: [],
}
},
- watch: {},
+ watch: {
+ 'form.publicFlag': {
+ handler(newData) {
+ // console.log('** ** ** ** ** ** **', newData)
+ const column = this.findObject(this.option.column, "rotationRange")
+ if (newData == 1) {
+ column.editDisplay = true
+ } else {
+ column.editDisplay = false
+ }
+ },
+ },
+ },
computed: {
...mapGetters(["permission", "userInfo"]),
permissionList() {
--
Gitblit v1.9.3