luobisheng
2022-11-24 41a2ddabb399c51821ccd606736d4e4c403c4238
src/views/operate/message/myIndex/index.vue
@@ -10,19 +10,23 @@
                    <span>输入查询:</span>
                    <el-input placeholder="消息标题" v-model="context"></el-input>
                </div>
                <div class="message-status">
                <div class="search">
                    <span>消息状态:</span>
                    <el-select v-model="messageStatus" placeholder="请选择消息状态">
                        <el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </el-select>
                </div>
                <div class="message-kind">
                <div class="search">
                    <span>消息分类:</span>
                    <el-select v-model="messageType" placeholder="请选择消息分类">
                        <el-option v-for="item in typeList" :key="item.id" :label="item.columnName" :value="item.id">
                        </el-option>
                    </el-select>
                </div>
                <div class="search">
                  <span>修改时间:</span>
                  <el-date-picker style="width: 200px" type="datetimerange" v-model="datetime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
                </div>
                <div class="find">
                    <el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
@@ -144,6 +148,7 @@
            unsame: false,
            myIdx: 0,
            preMyIdx: 0,
            datetime: null,
            options: [
                {
                    value: 0,
@@ -190,11 +195,11 @@
                    columnName:'站内信',
                },
                {
                    id:'02',
                    id:'03',
                    columnName:'邮件',
                },
                {
                    id:'03',
                    id:'02',
                    columnName:'短信',
                }
            ]
@@ -243,9 +248,11 @@
          const messageParam = {
            current: this.currentPage,
            size: this.pageSize,
            channelCode: this.messageType,
            status: this.messageStatus,
            head: this.context
            channelCode: this.messageType === '00' ? null : this.messageType,
            status: this.messageStatus === 2 ? null : this.messageStatus,
            head: this.context,
            startTime: this.datetime ? this.datetime[0] : null,
            endTime: this.datetime ? this.datetime[1] : null
          }
          getMessageList(messageParam)
              .then(({ records, total }) => {
@@ -375,11 +382,10 @@
            justify-content: space-between;
            align-items: center;
            .search,
            .message-status,
            .message-kind {
            .search {
                display: flex;
                justify-content: flex-start;
                justify-content: space-between;
                align-items: center;
                span {
                    flex: 1;
@@ -595,5 +601,8 @@
    &::v-deep .el-dialog__body {
        padding: 0;
    }
  :deep(.el-range-input) {
    background-color: #09152f;
  }
}
</style>