zhanghua
2023-02-09 bf9a412b20afe9f22e99448eb002ff9e92fd30cb
src/views/operate/management/message/index.vue
@@ -15,7 +15,10 @@
          </el-radio-group>
        </div>
        <div class="btns">
          <el-button type="primary" icon="el-icon-search" @click="getMessageAuditList"
          <el-button
            type="primary"
            icon="el-icon-search"
            @click="getMessageAuditList"
            >查询</el-button
          >
          <el-button icon="el-icon-delete-solid" @click="handleReset"
@@ -41,8 +44,8 @@
              >审核</el-link
            >
          </template>
          <template #time="{timeobj}">
            <span>{{ changeUpdateTime(timeobj.row.updateTime)}}</span>
          <template #time="{ timeobj }">
            <span>{{ changeUpdateTime(timeobj.row.updateTime) }}</span>
          </template>
        </MyTable>
        <div class="tools">
@@ -71,9 +74,9 @@
          :before-close="handleClose"
        >
          <MyCheckSms
              v-if="dialogCheckSms"
              :messageData="messageData"
              @closeDialog="closeDialog"
            v-if="dialogCheckSms"
            :messageData="messageData"
            @closeDialog="closeDialog"
          ></MyCheckSms>
        </el-dialog>
      </div>
@@ -156,18 +159,18 @@
    };
  },
  created() {
    this.getMessageAuditList()
    this.getMessageAuditList();
  },
  methods: {
    // 重置
    handleReset() {
      this.context = '';
      this.context = "";
      this.status = 0;
      this.getMessageAuditList();
    },
    // 获取消息数据
    getMessageAuditList() {
       this.$axios({
      this.$axios({
        method: "post",
        url: "sccg/message_audit/list",
        data: {
@@ -177,12 +180,13 @@
          current: this.currentPage,
          pageSize: this.pageSize,
        },
      }).then((res) => {
        const { records, total } = res.data;
        this.tableData = records;
        this.totalNum = total;
      }).catch(err => this.$message.error(err))
      })
        .then((res) => {
          const { records, total } = res.data;
          this.tableData = records;
          this.totalNum = total;
        })
        .catch((err) => this.$message.error(err));
    },
    // 弹窗关闭
    handleClose(done) {
@@ -207,15 +211,14 @@
    },
    // 获取当前登录用户信息
    getLoginUserInfo() {
            const name = sessionStorage.getItem('name');
            this.$axios({
                method: 'get',
                url: 'sccg/admin/info?name=' + name,
            })
                .then(res => {
                    this.auditId = res.data.userId
                })
     },
      const name = sessionStorage.getItem("name");
      this.$axios({
        method: "get",
        url: "sccg/admin/info?name=" + name,
      }).then((res) => {
        this.auditId = res.data.userId;
      });
    },
    // 关闭dialog
    closeDialog({ flag, index }) {
      this.dialogCheckSms = flag;
@@ -358,7 +361,7 @@
        .line {
          padding: 0 5px;
        }
        color: var(--operation-color);
        span:hover {
          cursor: pointer;
        }