luobisheng
2022-11-28 bb66fcc56438b9f123ee4029f807f672b8baede5
src/views/operate/images/index.vue
@@ -40,15 +40,15 @@
                    @selection-change="tableChange">
                    <el-table-column type="selection" min-width="5">
                    </el-table-column>
                    <el-table-column prop="baseId" label="所属事件编号" min-width="18">
                    <el-table-column prop="code" label="所属事件编号" min-width="18">
                    </el-table-column>
                    <el-table-column prop="category" label="问题类别" min-width="8">
                      <template slot-scope="scope">
                      <template v-if="scope.row.category" slot-scope="scope">
                        <span>{{ getCategory(scope.row.category).label }}</span>
                      </template>
                    </el-table-column>
                    <el-table-column prop="eventSource" label="事件来源" min-width="8">
                      <template slot-scope="scope">
                      <template v-if="scope.row.eventSource" slot-scope="scope">
                        <span>{{ getEventSource(scope.row.eventSource).label }}</span>
                      </template>
                    </el-table-column>
@@ -72,10 +72,12 @@
                </el-table>
                <el-dialog
                  :visible.sync="isShowUploadDialog"
                  :destroy-on-close="true"
                  :key="dialogType"
                  width="40%"
                  :title="getDialogTitle"
                >
                  <updateUser @closeDialog="closeDialog" :dialogType="dialogType" :originalData="originalData" />
                  <updateUser v-if="isShowUploadDialog" @closeDialog="closeDialog" :dialogType="dialogType" :originalData="originalData" />
                </el-dialog>
                <div class="tools">
                    <div class="funs">
@@ -259,7 +261,7 @@
            dateParams.startTime = dateParams[0];
            dateParams.endTime = dateParams[1]
          }
          imageManagement.getImageResources({ current: this.currentPage, size: this.size, type: this.type, ...dateParams })
          imageManagement.getImageResources({ current: this.currentPage, size: this.pageSize, type: this.size, ...dateParams })
              .then(({ records, total }) => {
                this.tableData = records;
                this.totalNum = total;
@@ -296,6 +298,7 @@
        closeDialog() {
          this.isShowUploadDialog = false;
          this.getImageResourceList();
        },
      getCategory(value) {
@@ -388,8 +391,9 @@
            margin-bottom: 10px;
            .type-item {
                width: 80px;
                min-width: 80px;
                text-align: center;
                padding-right: 10px;
                &:hover {
                    cursor: pointer;