From 7c124560b27add087b4aa8fc457de1e84f950d9c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 23 Nov 2021 15:19:33 +0800
Subject: [PATCH] 样式 (1:搜索按钮放入右侧,2:隐藏表格显影按钮,3:页码改为(15,30,50,100))
---
src/views/desk/notification.vue | 47 ++++++++++++++++++++++++++++++++++++-----------
1 files changed, 36 insertions(+), 11 deletions(-)
diff --git a/src/views/desk/notification.vue b/src/views/desk/notification.vue
index eb6f4c2..4c17b9b 100644
--- a/src/views/desk/notification.vue
+++ b/src/views/desk/notification.vue
@@ -1,5 +1,29 @@
<template>
- <basic-container class="desk1">
+ <basic-container
+ :class="[
+ 'desk1',
+ $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+ ]"
+ >
+ <!--
+:class="[
+$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+]"
+:class="[
+'exam-card-body',
+$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+]"
+:class="[
+'dispatchChildoperable',
+$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+]"
+:class="[
+'securityUnit',
+$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+]"
+...this.$store.state.control.clearOtherBut,
+...this.$store.state.control.changePageSize,
+ -->
<avue-crud
:option="option"
:table-loading="loading"
@@ -37,11 +61,11 @@
<el-tag>{{ row.categoryName }}</el-tag>
</template>
<template slot-scope="{ type, size, row }" slot="menu">
- <el-button
- :size="size"
- :type="type"
- v-if="permission.notice_upload"
- @click="handleUploadPage(row)"
+ <el-button
+ :size="size"
+ :type="type"
+ v-if="permission.notice_upload"
+ @click="handleUploadPage(row)"
>附件上传
</el-button>
<!-- <el-button
@@ -60,7 +84,7 @@
import { getListPage, remove, update, add, getNotice } from "@/api/desk/notice";
import { getDept } from "@/api/system/dept";
import { mapGetters } from "vuex";
-import { mapState } from 'vuex';
+import { mapState } from "vuex";
export default {
data() {
@@ -78,6 +102,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
selectionList: [],
option: {
@@ -99,6 +124,7 @@
saveBtnText: "发布",
menuWidth: 320,
dialogClickModal: false,
+ ...this.$store.state.control.clearOtherBut,
column: [
{
label: "标题",
@@ -245,8 +271,8 @@
return ids.join(",");
},
...mapState({
- userInfo: state => state.user.userInfo
- })
+ userInfo: (state) => state.user.userInfo,
+ }),
},
mounted() {
this.getDeptInfo(this.userInfo.dept_id);
@@ -260,7 +286,6 @@
deptCategory == 1
? (that.deptCategory = true)
: (that.deptCategory = false);
-
});
},
//跳转到附件列表页面
@@ -274,7 +299,7 @@
});
},
rowSave(row, done, loading) {
- row['type'] = 3;
+ row["type"] = 3;
row.deptId = this.deptId;
add(row).then(
() => {
--
Gitblit v1.9.3