tangzy
2022-02-18 312d994acd44280084df467f1cade6a2e77b7de7
任务管理
1 files modified
41 ■■■■■ changed files
src/views/activitys/real.vue 41 ●●●●● patch | view | raw | blame | history
src/views/activitys/real.vue
@@ -451,6 +451,7 @@
            // props: {
            //   label: "title",
            // },
            span: 6,
            width: 72,
            // hide: true,
            minRows: 1,
@@ -459,6 +460,33 @@
            addDisplay: true,
            editDisplay: true,
            viewDisplay: true,
          },
          {
            label: "所属辖区",
            prop: "jurisdiction",
            hide: true,
            searchLabelWidth: 80,
            search: true,
            searchSpan: 4,
            overHidden: true,
            span: 9,
            width: 72,
            parent: false,
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
              label: "title",
              value: "id"
            },
            checkStrictly: true,
            slot: true,
            rules: [
              {
                required: false,
                message: "请选择所属辖区",
                trigger: "click"
              }
            ]
          },
          // {
          //   label: "巡逻路线",
@@ -476,6 +504,7 @@
            label: "请在下方地图中,建立路径!",
            labelWidth: "0",
            className: "mapClass",
            span: 8,
            prop: "haveMap",
            hide: true,
            display: true,
@@ -616,7 +645,7 @@
    },
  },
  computed: {
    ...mapGetters(["permission", "flowRoutes", "rotesData"]),
    ...mapGetters(["permission", "flowRoutes", "rotesData", "userInfo"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.real_add, false),
@@ -649,6 +678,8 @@
    rowSave(row, done, loading) {
      // console.log(row);
      // return;
      var userId1 = this.userInfo.user_id;
      var username = this.userInfo.user_name;
      let d = {
        line: row.line, //路线
        rname: row.rname, //标题
@@ -661,6 +692,8 @@
        integral: row.integral + "", //积分
        content: row.content, //内容
        rtype: row.rtype, //任务状态
        fid: userId1,//发起人id
        fname: username //发起人id
      };
      // console.log(d);
      // done();
@@ -687,12 +720,14 @@
        setTimeout(function () {
          try {
            that.$refs.modalForm.addLinesDraw(val);
          } catch (error) {}
          } catch (error) {
          }
        }, 1500);
      } else {
        try {
          that.$refs.modalForm.addLinesDraw(val);
        } catch (error) {}
        } catch (error) {
        }
      }
    },
    rowUpdate(row, index, done, loading) {