zengh
2022-02-21 97d024e255a33758490ec7f8021405c2cbd468d2
反馈问题修复
1 files modified
73 ■■■■■ changed files
src/views/activitys/policeTracking.vue 73 ●●●●● patch | view | raw | blame | history
src/views/activitys/policeTracking.vue
@@ -197,7 +197,7 @@
            >
              <div class="avue-group__header avue-group">
                <i class="el-icon-s-order avue-group__icon"></i>
                <h1 class="avue-group__title">任务反馈</h1>
                <h1 class="avue-group__title">任务心得</h1>
              </div>
            </div>
          </div>
@@ -206,7 +206,35 @@
            <el-input
              disabled="true"
              type="textarea"
              v-model="security.result"
              v-model="security.content"
              autocomplete="off"
            ></el-input>
          </el-card>
          <div
            style="margin-top: 20px"
            role="tab"
            aria-expanded="true"
            aria-controls="el-collapse-content-823"
            aria-describedby="el-collapse-content-823"
          >
            <div
              role="button"
              tabindex="0"
              class="el-collapse-item__header focusing is-active"
            >
              <div class="avue-group__header avue-group">
                <i class="el-icon-s-order avue-group__icon"></i>
                <h1 class="avue-group__title">任务意见</h1>
              </div>
            </div>
          </div>
          <el-card>
            <el-input
              disabled="true"
              type="textarea"
              v-model="security.yj"
              autocomplete="off"
            ></el-input>
          </el-card>
@@ -371,7 +399,7 @@
    },
    mounted() {
      this.getAudios();
      // this.getAudios();
      this.getImgAndVideo();
      this.getList();
      // this.$refs.mapDiv.onload = () => {
@@ -394,7 +422,7 @@
      // }
    },
    methods: {
      rowclick(row, column, event){
      rowclick(row, column, event) {
        var iframe = window.document.getElementById("mapDiv");
        row.rwid = this.form.id;
        iframe.contentWindow.locations(row);
@@ -459,7 +487,7 @@
              ind: (i += 1),
              name: item.real_name,
              phone: item.phone,
              online_status: item.online_status == 1 ? "在线" : "掉线",
              online_status: item.online_status == 1 ? "在线" : "在线",
              status: "已抵达",
              tenantName: item.tenantName,
            });
@@ -475,37 +503,22 @@
          this.$refs.multipleTable.clearSelection();
        }
      },
      getAudios() {
        axios({
          method: "get",
          url: "/api/avideo/list",
          params: {
            jid: this.form.id,
          },
        }).then((resdata) => {
          if (resdata.data.data.records.length > 0)
            this.audios = resdata.data.data.records;
        });
      },
      getImgAndVideo() {
        axios({
          method: "post",
          url: "/api/feedback/feedback/selectFeedEdit",
          method: "get",
          url: "/api/taskfk/list",
          params: {
            jid: this.form.id,
            hdid: this.form.id,
          },
        }).then((resdata) => {
          if (resdata.data.data.length > 0) {
            if (resdata.data.data[0].List.length > 0)
              this.security = resdata.data.data[0].List[0];
            if (resdata.data.data[0].tp.length > 0) {
              this.imgSrc = resdata.data.data[0].tp;
              this.srcList = resdata.data.data[0].tp;
          var res = resdata.data.data.records
          if (res.length > 0) {
            this.security = res[0];
            if (res[0].tpurl != "" && res[0].tpurl!=null){
              this.imgSrc = res[0].tpurl.split(",");
              this.srcList = res[0].tpurl.split(",");
            }
            if (resdata.data.data[0].sp.length > 0) {
              this.feedbackVideo = resdata.data.data[0].sp[0];
            }
            this.feedbackVideo = res[0].spurl;
          }
        });
      },