南昌市物联网技防平台-前端
zengh
2021-03-13 41a636414a2d76a74ad373a47fe883aff7a3d8bb
流程完善
1 files modified
85 ■■■■ changed files
src/views/policeTracking/policeTracking.vue 85 ●●●● patch | view | raw | blame | history
src/views/policeTracking/policeTracking.vue
@@ -3,8 +3,17 @@
    <el-col :span="12">
      <div style="background: #fff;height: 100%;">
        <el-card class="trackClass">
          <el-tabs type="card">
            <el-tab-pane label="警情信息">
          <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-message-solid avue-group__icon"></i>
                <h1 class="avue-group__title">警情信息</h1></div>
            </div>
          </div>
              <el-form
                :model="form"
                label-position="right"
@@ -129,9 +138,15 @@
                </el-row>
              </el-form>
            </el-tab-pane>
          <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-custom avue-group__icon"></i>
                <h1 class="avue-group__title">保安信息</h1></div>
            </div>
          </div>
            <el-tab-pane label="保安信息">
              <el-form
                :model="security"
                label-position="right"
@@ -212,9 +227,7 @@
                  </el-col>
                </el-row>
              </el-form>
            </el-tab-pane>
            <el-tab-pane label="警情反馈">
              <el-row :gutter="20">
                <el-col :span="16">
                  <div class="grid-content bg-purple">
@@ -233,7 +246,7 @@
                     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-custom avue-group__icon"></i>
                <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>
@@ -254,9 +267,9 @@
                    </div>
                  </div>
                  <div>
                    <el-image :src="src" style="width: 200px;margin-left: 5px"></el-image>
                    <el-image :src="src" style="width: 200px;margin-left: 5px"></el-image>
                    <el-image :src="src" style="width: 200px;margin-left: 5px"></el-image>
                <el-image :src="src" style="width: 150px;margin-left: 5px"></el-image>
                <el-image :src="src" style="width: 150px;margin-left: 5px"></el-image>
                <el-image :src="src" style="width: 150px;margin-left: 5px"></el-image>
                  </div>
                </div>
                <div class="block">
@@ -269,7 +282,7 @@
                    </div>
                  </div>
                  <div>
                    <el-image :src="src" style="width: 200px;margin-left: 5px">
                <el-image :src="src" style="width: 150px;margin-left: 5px">
                      <div slot="placeholder" class="image-slot">
                        加载中<span class="dot">...</span>
                      </div>
@@ -277,16 +290,14 @@
                  </div>
                </div>
              </div>
            </el-tab-pane>
          </el-tabs>
        </el-card>
        <el-row :align="center">
          <el-row :align="center" style="margin-top: 40px">
          <el-col :offset="10">
            <el-button onclick="" style="position: absolute;bottom: 40px" type="danger">处理完成</el-button>
              <el-button @click="onSubmit" type="danger">处理完成</el-button>
          </el-col>
        </el-row>
        </el-card>
      </div>
    </el-col>
@@ -306,6 +317,8 @@
</template>
<script>
  import axios from "axios";
  export default {
    data() {
      return {
@@ -323,6 +336,42 @@
      };
    }, created() {
      this.form = this.$route.query;
    }
    , methods: {
      onSubmit() {
        var newAxios = axios.create({
          baseURL: "https://web.byisf.com",
          withCredentials: false,
          headers: {},
        });
        newAxios
          .post(
            "/api/blade-jfpts/jingdan/jingdan/updateInfo",
            {},
            {
              params: {
                id: this.form.id,
                handleP: this.form.handleP,
                handName: this.form.handName,
                handletype: this.form.handletype,
                type: "2",
              },
            }
          )
          .then((res) => {
            if (res.data.msg == "修改成功") {
              var arr = [];
              this.$store.state.tags.tagList.forEach((item) => {
                if (item.value != this.$store.state.tags.tag.value) {
                  arr.push(item);
                }
              });
              this.$store.state.tags.tagList = arr;
              this.$router.go(-1);
            }
          });
      },
    },
  }
</script>
@@ -334,6 +383,8 @@
  .trackClass {
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
  }