zengh
2021-07-20 c784b1b2e8384fe2696e88e48e1494bda3b2c024
src/views/feedbackReport/feedbackReport.vue
@@ -31,6 +31,15 @@
          >删 除
        </el-button>
      </template>
      <template slot-scope="scope" slot="menuLeft">
        <el-button type="danger" icon="el-icon-plus" size="small" plain @click.stop="$refs.crud.rowAdd()">新增</el-button>
      </template>
      <template slot-scope="{type,size, row}" slot="menu">
        <el-button icon="el-icon-check" :size="size" :type="type" @click="setReal(row)">接收</el-button>
      </template>
    </avue-crud>
  </basic-container>
</template>
@@ -61,6 +70,7 @@
      option: {
        height: "auto",
        calcHeight: 54,
          menuWidth: 330,
        tip: false,
        searchShow: true,
        searchMenuSpan: 6,
@@ -115,6 +125,14 @@
                trigger: "blur",
              },
            ],
            },
            {
              label: "经度",
              prop: "jd",
            },
            {
              label: "纬度",
              prop: "wd",
          },
          {
            label: "备注",
@@ -209,7 +227,7 @@
    ...mapGetters(["permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.feedback_add, false),
          addBtn: this.vaildData(this.permission.feedback_add, true),
        viewBtn: this.vaildData(this.permission.feedback_view, true),
        delBtn: this.vaildData(this.permission.feedback_delete, true),
        editBtn: this.vaildData(this.permission.feedback_edit, true),
@@ -360,6 +378,26 @@
      this.query = {};
      this.onLoad(this.page);
    },
      //派遣任务
      setReal(row) {
        var arr = [];
        this.$store.state.tags.tagList.forEach((item) => {
          if (item.label != "任务下发") {
            arr.push(item);
          }
        });
        this.$store.state.tags.tagList = arr;
        row.bz = row.result;
        row.sjsb = 1;
        window.sessionStorage.setItem('sjsb', 1)
        this.$router.push({
          path: `/realTimePolice/index`,
          query: row
        });
      },
    searchChange(params, done) {
      this.query = params;
      this.page.currentPage = 1;