zengh
2022-05-26 89c00344ccc002d3ac92b6d3f979f5e99cb6357c
角色权限修改
6 files modified
35 ■■■■ changed files
src/views/activitys/real.vue 3 ●●●●● patch | view | raw | blame | history
src/views/activitys/real_px.vue 3 ●●●●● patch | view | raw | blame | history
src/views/activitys/real_xc.vue 3 ●●●●● patch | view | raw | blame | history
src/views/examination/examination.vue 13 ●●●●● patch | view | raw | blame | history
src/views/system/user.vue 3 ●●●●● patch | view | raw | blame | history
src/views/zc/zc.vue 10 ●●●● patch | view | raw | blame | history
src/views/activitys/real.vue
@@ -928,6 +928,9 @@
    },
    onLoad(page, params = {}) {
      params["tasktype"] = "0"; // 治安巡查
      if (this.userInfo.role_name != "administrator"){
        params["jurisdiction"] = this.userInfo.workjurisdiction;
      }
      getList(page.currentPage, page.pageSize, params).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
src/views/activitys/real_px.vue
@@ -954,6 +954,9 @@
    },
    onLoad(page, params = {}) {
      params["tasktype"] = "2"; // 治安防范培训
      if (this.userInfo.role_name != "administrator"){
        params["jurisdiction"] = this.userInfo.workjurisdiction;
      }
      getList(page.currentPage, page.pageSize, params).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
src/views/activitys/real_xc.vue
@@ -928,6 +928,9 @@
    },
    onLoad(page, params = {}) {
      params["tasktype"] = "1"; // 治安义务宣传
      if (this.userInfo.role_name != "administrator"){
        params["jurisdiction"] = this.userInfo.workjurisdiction;
      }
      getList(page.currentPage, page.pageSize, params).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
src/views/examination/examination.vue
@@ -156,10 +156,12 @@
              display: false,
              width:95,
              prop: "phone",
            },
             {
              label: "辖区",
            }, {
              label: "居住地辖区",
              prop: "xqname",
            },{
              label: "工作地辖区",
              prop: "workname",
            },
            {
              label: "角色",
@@ -208,7 +210,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["permission", "userInfo"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.zc_add, false),
@@ -366,6 +368,9 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.workjurisdiction;
        }
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/system/user.vue
@@ -1173,6 +1173,9 @@
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      if (this.userInfo.role_name != "administrator"){
        params["jurisdiction"] = this.userInfo.workjurisdiction;
      }
      this.loading = true;
      getList(
        page.currentPage,
src/views/zc/zc.vue
@@ -159,8 +159,11 @@
              //   value: "value"
              // },
            }, {
              label: "辖区",
              label: "居住地辖区",
              prop: "xqname",
            },{
              label: "工作地辖区",
              prop: "workname",
            },
            {
              label: "角色",
@@ -226,7 +229,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["permission", "userInfo"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.zc_add, false),
@@ -384,6 +387,9 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.workjurisdiction;
        }
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;