xiangpei
2024-08-31 74ae9d9453e245a3249ecb832a7202c275ad6ece
src/views/system/work-order/index.vue
@@ -64,10 +64,21 @@
              <div class="card">
                <div class="card-left">
                  <el-image
                    :preview-src-list="['https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357']"
                    fit="cover" src="https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357"
                    v-if="item.imgList && item.imgList.length > 0"
                    :preview-src-list="item.imgList"
                    fit="cover" :src="item.imgList[0]"
                    class="image"
                  />
                    style="display: flex;justify-content: center;align-items: center;"
                  >
                    <div slot="error" class="image-slot">
                      <i class="el-icon-picture-outline">加载失败</i>
                    </div>
                  </el-image>
                  <el-image class="image" style="display: flex;justify-content: center;align-items: center;" v-else>
                    <div slot="error" class="image-slot">
                      <i class="el-icon-picture-outline" style="color: gray;font-size: 14px">未取到图片</i>
                    </div>
                  </el-image>
                </div>
                <div class="work-order">
                  <el-row class="work-order-item">
@@ -546,7 +557,7 @@
      // 运维情况
      ywData: {
        content: '',
        fileList: ''
        fileList: 'process.env.VUE_APP_BASE_API'
      }
    }
  },
@@ -719,11 +730,13 @@
      this.queryParams['end'] = this.daterangeYwHandleTime ? this.daterangeYwHandleTime[1] : null
      listWorkOrder(this.queryParams).then(response => {
        // response.data.forEach(item => {
        //   if (item.errorType) {
        //     item.errorTypeList = item.errorTypeList.split(",")
        //   }
        // })
        response.data.forEach(item => {
          if (item.imgList) {
            item.imgList = item.imgList.map(img => {
              return this.$img + img
            })
          }
        })
        this.workOrderList = response.data
        this.total = response.total
        this.loading = false