From e27410aca7eb65b11fec83adb39643399bf3a6b4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 16 Mar 2024 15:23:18 +0800
Subject: [PATCH] 演示分支,系统名称更改
---
src/views/article/rotation.vue | 82 ++++++++++++++++++++++++++++++++++++----
1 files changed, 73 insertions(+), 9 deletions(-)
diff --git a/src/views/article/rotation.vue b/src/views/article/rotation.vue
index 8af2bfd..98fa60f 100644
--- a/src/views/article/rotation.vue
+++ b/src/views/article/rotation.vue
@@ -34,14 +34,17 @@
datetime: "",
selectionList: [],
option: {
+ labelWidth: 66,
+ searchLabelWidth: 66,
+ searchShow: true,
+ searchMenuSpan: 3,
+ menuWidth: 210,
+
height: "auto",
calcHeight: 54,
dialogWidth: 950,
tip: false,
- searchShow: true,
- searchMenuSpan: 3,
- menuWidth: 350,
- border: false,
+ border: true,
//stripe:true,
index: true,
viewBtn: true,
@@ -55,19 +58,71 @@
span: 12,
searchSpan: 4,
search: true,
+ searchLabelWidth: 46,
+ labelWidth:100,
+ },
+ {
+ width: 110,
+ labelWidth:100,
+ label: "类型",
+ prop: "type",
+ span: 12,
+ searchSpan: 4,
+ search: true,
+ cascader: ["communityCode"],
+ type: "select",
+ dicData: [
+ {
+ label: "系统",
+ value: 3
+ },
+ {
+ label: "公安",
+ value: 1
+ },
+ {
+ label: "综治",
+ value: 2
+ }
+ ]
+ },
+ {
+ width: 156,
+ labelWidth:100,
+ overHidden: true,
+ label: "所属社区",
+ // parent: false,
+ prop: "communityCode",
+ multiple: true,
+ tags: true,
+ hide:true,
+ dateType:"string",
+ type: "tree",
+ dicUrl: "/api/blade-system/region/tree?deptNature={{type}}",
+ props: {
+ label: "name",
+ value: "id"
+ },
+ rules: [
+ {
+ required: true,
+ message: "请选择所属社区",
+ trigger: "blur",
+ },
+ ],
},
{
label: "跳转地址",
prop: "junpUrl",
span: 12,
- searchSpan: 4,
- search: true,
+ labelWidth:100,
},
{
+ width: 110,
+ labelWidth:100,
label: "图片",
prop: "url",
type: "upload",
- width: 80,
listType: "picture-img",
action: "/api/blade-resource/oss/endpoint/put-file",
propsHttp: {
@@ -78,9 +133,10 @@
span: 24,
},
{
+ width: 144,
+ labelWidth:100,
label: "时间",
prop: "createTime",
- width: 160,
addDisplay: false,
editDisplay: false,
type: "date",
@@ -246,7 +302,7 @@
this.onLoad(this.page, this.query)
},
onLoad (page, params = {}) {
- const { dateTime } = this.query
+ const { dateTime, communityCode } = this.query
let values = {
...params,
}
@@ -259,6 +315,14 @@
}
values.dateTime = null
}
+ if (communityCode) {
+ values = {
+ ...values,
+ communityName: communityCode
+ }
+
+ delete values.communityCode
+ }
this.loading = true
getList(page.currentPage, page.pageSize, values).then((res) => {
const data = res.data.data
--
Gitblit v1.9.3