zengh
2021-07-20 936102b1a22a20a0d2370d3d6ad6f0a823b2d028
问题修复
2 files modified
49 ■■■■■ changed files
src/views/examination/examination.vue 2 ●●● patch | view | raw | blame | history
src/views/feedbackReport/feedbackReport.vue 47 ●●●●● patch | view | raw | blame | history
src/views/examination/examination.vue
@@ -701,7 +701,7 @@
    ...mapGetters(["userInfo", "permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.examination_add, true),
        addBtn: this.vaildData(this.permission.examination_add, false),
        viewBtn: this.vaildData(this.permission.examination_view, false),
        delBtn: this.vaildData(this.permission.examination_delete, true),
        editBtn: this.vaildData(this.permission.examination_edit, true),
src/views/feedbackReport/feedbackReport.vue
@@ -36,6 +36,14 @@
        <el-button icon="el-icon-check" :size="size" :type="type" @click="setReal(row)">接收</el-button>
      </template>
      <template slot-scope="{ row }" slot="type">
        <el-tag
        >{{
          row.type == 1 ?"已接受":"未接受"
          }}
        </el-tag>
      </template>
    </avue-crud>
  </basic-container>
</template>
@@ -88,6 +96,7 @@
              search: true,
              searchLabelWidth: 100,
              searchSpan: 5,
              width: 100,
              addDisplay: false,
              editDisplay: false,
            },
@@ -99,7 +108,6 @@
              props: {
                label: "title",
              },
              width: 72,
              hide: true,
              addDisplay: true,
              editDisplay: true,
@@ -115,6 +123,7 @@
            {
              label: "上报时间",
              prop: "stime",
              width: 150,
              type: "datetime",
              format: "yyyy-MM-dd HH:mm:ss",
              valueFormat: "yyyy-MM-dd HH:mm:ss",
@@ -197,6 +206,15 @@
                  trigger: "blur",
                },
              ],
            },
            {
              label: "接收状态",
              prop: "type",
              width: 80,
              slot: true,
              addDisplay: false,
              viewDisplay: false,
              editDisplay: false,
            },
            {
              label: "图片",
@@ -464,6 +482,33 @@
      //派遣任务
      setReal(row) {
        var arr = [];
        var data = {
          id: row.id,
          status: 1,
          tpaddress: "",
          spaddress: "",
          sname: row.$snumber,
          snumber: row.snumber,
          stime: row.stime,
          result: row.result,
          place: row.place,
          jd: row.jd,
          wd: row.wd,
          type: 1,
        };
        updates(data).then(
          () => {
            this.onLoad(this.page);
            // this.$message({
            //   type: "success",
            //   message: "操作成功!",
            // });
            done();
          },
          (error) => {
          }
        );
        this.$store.state.tags.tagList.forEach((item) => {
          if (item.label != "任务下发") {
            arr.push(item);