guanqb
2024-01-29 dba12a23df04489d4b2d16bf78c617a3ecac6483
表格无边框的改成有边框
14 files modified
254 ■■■■ changed files
src/option/convenienceHotline/convenienceHotline.js 2 ●●● patch | view | raw | blame | history
src/views/article/article.vue 2 ●●● patch | view | raw | blame | history
src/views/article/articleWords.vue 221 ●●●●● patch | view | raw | blame | history
src/views/article/components/deitDiscussion.vue 5 ●●●●● patch | view | raw | blame | history
src/views/article/components/publicSignUpChild.vue 3 ●●●● patch | view | raw | blame | history
src/views/article/discussionManage.vue 5 ●●●●● patch | view | raw | blame | history
src/views/article/publicSignUp.vue 2 ●●● patch | view | raw | blame | history
src/views/article/rotation.vue 2 ●●● patch | view | raw | blame | history
src/views/cGovernance/gridPatrolRecord.vue 2 ●●● patch | view | raw | blame | history
src/views/cGovernance/gridWorkLog.vue 2 ●●● patch | view | raw | blame | history
src/views/property/inviteTenders.vue 2 ●●● patch | view | raw | blame | history
src/views/property/oiae.vue 2 ●●● patch | view | raw | blame | history
src/views/property/ownersCommittee.vue 2 ●●● patch | view | raw | blame | history
src/views/propertySupervision/ownersCommittee.vue 2 ●●● patch | view | raw | blame | history
src/option/convenienceHotline/convenienceHotline.js
@@ -6,7 +6,7 @@
  searchShow: true,
  searchMenuSpan: 3,
  menuWidth: 450,
  border: false,
    border: true,
  viewBtn: true,
  selection: true,
  excelBtn: true,
src/views/article/article.vue
@@ -133,7 +133,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: true,
src/views/article/articleWords.vue
@@ -1,49 +1,26 @@
<template>
  <basic-container>
    <avue-crud
      :option="option"
      :table-loading="loading"
      :data="data"
      :page.sync="page"
      ref="crud"
      @row-del="rowDel"
      v-model="form"
      :permission="permissionList"
      @row-update="rowUpdate"
      @row-save="rowSave"
      :before-open="beforeOpen"
      @search-change="searchChange"
      @search-reset="searchReset"
      @selection-change="selectionChange"
      @current-change="currentChange"
      @size-change="sizeChange"
      @refresh-change="refreshChange"
      @on-load="onLoad"
    >
        <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
            v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave"
            :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset"
            @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
            @refresh-change="refreshChange" @on-load="onLoad">
      <template slot="menuLeft">
        <el-button
          size="small"
          icon="el-icon-delete"
          plain
          v-if="permission.article_delete"
          @click="handleDelete"
        >删 除
                <el-button size="small" icon="el-icon-delete" plain v-if="permission.article_delete" @click="handleDelete">删
                    除
        </el-button>
      </template>
      <template slot-scope="{ row }" slot="iswords">
        <el-tag
        >{{
                <el-tag>{{
          row.iswords == "1" ? "是" : row.iswords == "0" ? "否" : "是"
          }}
        </el-tag>
      </template>
      <template slot-scope="{ row }" slot="iscomment">
        <el-tag
        >{{
                <el-tag>{{
          row.iscomment == "1" ? "开启" : row.iscomment == "0" ? "关闭" : "关闭"
          }}
        </el-tag>
@@ -54,8 +31,8 @@
</template>
<script>
  import {getListWords, remove, update, add, getNotice, upcomment} from "@/api/article/article";
  import {mapGetters} from "vuex";
import { getListWords, remove, update, add, getNotice, upcomment } from "@/api/article/article"
import { mapGetters } from "vuex"
  export default {
    data() {
@@ -78,7 +55,7 @@
          searchShow: true,
          searchMenuSpan: 3,
          menuWidth: 350,
          border: false,
                border: true,
          //stripe:true,
          index: true,
          viewBtn: true,
@@ -244,28 +221,28 @@
          ],
        },
        data: [],
      };
        }
    },
    watch: {
      "form.articleType": {
        handler(val) {
          if (val) {
            var videoUrl = this.findObject(this.option.column, "videoUrl");
            var content = this.findObject(this.option.column, "content");
                    var videoUrl = this.findObject(this.option.column, "videoUrl")
                    var content = this.findObject(this.option.column, "content")
            if (val.indexOf('ksp') != -1) {
              videoUrl.display = true;
              content.display = false;
                        videoUrl.display = true
                        content.display = false
              videoUrl.rules = [
                {
                  required: false,
                  message: "请选择视频",
                  trigger: "blur",
                },
              ];
                        ]
            } else {
              videoUrl.display = false;
              content.display = true;
              videoUrl.rules = "";
                        videoUrl.display = false
                        content.display = true
                        videoUrl.rules = ""
            }
          }
        },
@@ -280,51 +257,51 @@
          viewBtn: this.vaildData(this.permission.article_view, true),
          delBtn: this.vaildData(this.permission.article_delete, true),
          editBtn: this.vaildData(this.permission.article_edit, true),
        };
            }
      },
      ids() {
        let ids = [];
            let ids = []
        this.selectionList.forEach((ele) => {
          ids.push(ele.id);
        });
        return ids.join(",");
                ids.push(ele.id)
            })
            return ids.join(",")
      },
    },
    methods: {
      rowSave(row, done, loading) {
        if (row.videoUrl.length == 0) {
          row.videoUrl = "";
                row.videoUrl = ""
        }
        add(row).then(
          () => {
            this.onLoad(this.page);
                    this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
            });
            done();
                    })
                    done()
          },
          (error) => {
            window.console.log(error);
            loading();
                    window.console.log(error)
                    loading()
          }
        );
            )
      },
      rowUpdate(row, index, done, loading) {
        update(row).then(
          () => {
            this.onLoad(this.page);
                    this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
            });
            done();
                    })
                    done()
          },
          (error) => {
            window.console.log(error);
            loading();
                    window.console.log(error)
                    loading()
          }
        );
            )
      },
      rowDel(row) {
        this.$confirm("确定将选择数据删除?", {
@@ -333,37 +310,37 @@
          type: "warning",
        })
          .then(() => {
            return remove(row.id);
                    return remove(row.id)
          })
          .then(() => {
            this.onLoad(this.page);
                    this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
            });
          });
                    })
                })
      },
      searchReset() {
        this.query = {};
        this.onLoad(this.page);
            this.query = {}
            this.onLoad(this.page)
      },
      searchChange(params, done) {
        this.query = params;
        this.page.currentPage = 1;
        this.onLoad(this.page, params);
        done();
            this.query = params
            this.page.currentPage = 1
            this.onLoad(this.page, params)
            done()
      },
      selectionChange(list) {
        this.selectionList = list;
            this.selectionList = list
      },
      selectionClear() {
        this.selectionList = [];
        this.$refs.crud.toggleSelection();
            this.selectionList = []
            this.$refs.crud.toggleSelection()
      },
      handleDelete() {
        if (this.selectionList.length === 0) {
          this.$message.warning("请选择至少一条数据");
          return;
                this.$message.warning("请选择至少一条数据")
                return
        }
        this.$confirm("确定将选择数据删除?", {
          confirmButtonText: "确定",
@@ -371,123 +348,123 @@
          type: "warning",
        })
          .then(() => {
            return remove(this.ids);
                    return remove(this.ids)
          })
          .then(() => {
            this.onLoad(this.page);
                    this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
            });
            this.$refs.crud.toggleSelection();
          });
                    })
                    this.$refs.crud.toggleSelection()
                })
      },
      beforeOpen(done, type) {
        if (["edit", "view"].includes(type)) {
          getNotice(this.form.id).then((res) => {
            this.form = res.data.data;
          });
                    this.form = res.data.data
                })
        }
        // con
        done();
            done()
      },
      currentChange(currentPage) {
        this.page.currentPage = currentPage;
            this.page.currentPage = currentPage
      },
      sizeChange(pageSize) {
        this.page.pageSize = pageSize;
            this.page.pageSize = pageSize
      },
      refreshChange() {
        this.onLoad(this.page, this.query);
            this.onLoad(this.page, this.query)
      },
      onLoad(page, params = {}) {
        const {dateTime} = this.query;
            const { dateTime } = this.query
        let values = {
          ...params,
        };
            }
        if (dateTime) {
          values = {
            ...params,
            startTime: dateTime[0],
            endTime: dateTime[1],
            ...this.query,
          };
          values.dateTime = null;
        }
        this.loading = true;
                values.dateTime = null
            }
            this.loading = true
        getListWords(page.currentPage, page.pageSize, values).then((res) => {
          const data = res.data.data;
          this.page.total = data.total;
          this.data = data.records;
          this.loading = false;
          this.selectionClear();
        });
                const data = res.data.data
                this.page.total = data.total
                this.data = data.records
                this.loading = false
                this.selectionClear()
            })
      },
      updateFb(row) {
        if (row.publish == "0") {
          row.publish = "1";
                row.publish = "1"
        } else {
          row.publish = "0";
                row.publish = "0"
        }
        update(row).then(
          () => {
            this.onLoad(this.page);
                    this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
            });
            done();
                    })
                    done()
          },
          (error) => {
            window.console.log(error);
            loading();
                    window.console.log(error)
                    loading()
          }
        );
            )
      },
      kqcomment() {
        if (this.selectionList.length === 0) {
          this.$message.warning("请选择至少一条数据");
          return;
                this.$message.warning("请选择至少一条数据")
                return
        }
        this.$confirm("确定将选择数据开启评论?", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning",
        }).then(() => {
          return upcomment(this.ids, "1");
                return upcomment(this.ids, "1")
        })
          .then(() => {
            this.onLoad(this.page);
                    this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
            });
            this.$refs.crud.toggleSelection();
          });
                    })
                    this.$refs.crud.toggleSelection()
                })
      },
      gbcomment() {
        if (this.selectionList.length === 0) {
          this.$message.warning("请选择至少一条数据");
          return;
                this.$message.warning("请选择至少一条数据")
                return
        }
        this.$confirm("确定将选择数据开启评论?", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning",
        }).then(() => {
          return upcomment(this.ids, "0");
                return upcomment(this.ids, "0")
        })
          .then(() => {
            this.onLoad(this.page);
                    this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
            });
            this.$refs.crud.toggleSelection();
          });
                    })
                    this.$refs.crud.toggleSelection()
                })
      }
    },
  };
}
</script>
<style>
src/views/article/components/deitDiscussion.vue
@@ -32,7 +32,8 @@
          </template>
          <template #menu="{ row, size }">
            <el-button v-if="row.level === 1" :size="size" text type="primary" @click="edit(row)">编辑</el-button>
            <el-button v-if="row.level === 1" :size="size" text type="danger" @click="deletes(row)">删除</el-button>
                        <el-button v-if="row.level === 1" :size="size" text type="danger"
                            @click="deletes(row)">删除</el-button>
            <el-button v-if="row.level === 2" :size="size" text type="primary" @click="openUser(row, 1)">
              选择此项人数:{{ row.number }} 详情</el-button>
          </template>
@@ -211,7 +212,7 @@
          calcHeight: 54,
          dialogWidth: 950,
          tip: false,
          border: false,
                border: true,
          //stripe:true,
          index: true,
          editBtn: false,
src/views/article/components/publicSignUpChild.vue
@@ -1,5 +1,4 @@
<template>
  <div>
    <el-dialog title="" append-to-body :visible.sync="dialogVisiblesUser" width="80%" :before-close="userHandleClose">
      <avue-crud ref="DataUser" :option="userOption" :data="dataUser" v-model="dataUser" :page="pageUser"
@@ -124,7 +123,7 @@
          calcHeight: 54,
          dialogWidth: 950,
          tip: false,
          border: false,
                border: true,
          //stripe:true,
          index: true,
          editBtn: false,
src/views/article/discussionManage.vue
@@ -130,7 +130,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: false,
@@ -773,4 +773,5 @@
<style>
.avue-upload__icon {
    line-height: 6;
}</style>
}
</style>
src/views/article/publicSignUp.vue
@@ -124,7 +124,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: false,
src/views/article/rotation.vue
@@ -44,7 +44,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: true,
src/views/cGovernance/gridPatrolRecord.vue
@@ -56,7 +56,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: true,
src/views/cGovernance/gridWorkLog.vue
@@ -51,7 +51,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: true,
src/views/property/inviteTenders.vue
@@ -124,7 +124,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: true,
src/views/property/oiae.vue
@@ -134,7 +134,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: true,
src/views/property/ownersCommittee.vue
@@ -105,7 +105,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: true,
src/views/propertySupervision/ownersCommittee.vue
@@ -102,7 +102,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                addBtn: false,