上饶市警务平台后台管理前端
zengh
2022-12-07 19f0ab9f4f7361be5d6dafac7c695a8c04da3764
1、按辖区权限查看
7 files modified
47 ■■■■ changed files
src/views/policecar/policecar.vue 7 ●●●● patch | view | raw | blame | history
src/views/policeman/policeman.vue 7 ●●●● patch | view | raw | blame | history
src/views/range/range.vue 7 ●●●● patch | view | raw | blame | history
src/views/security/security.vue 7 ●●●● patch | view | raw | blame | history
src/views/securityManage/securityManage.vue 7 ●●●● patch | view | raw | blame | history
src/views/securityManageCar/securityManageCar.vue 7 ●●●● patch | view | raw | blame | history
src/views/system/user.vue 5 ●●●●● patch | view | raw | blame | history
src/views/policecar/policecar.vue
@@ -166,7 +166,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["userInfo","permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.policecar_add, false),
@@ -285,6 +285,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "admin" && this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.dept_id;
        }
        getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/policeman/policeman.vue
@@ -101,7 +101,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["userInfo","permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.policeman_add, false),
@@ -220,6 +220,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "admin" && this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.dept_id;
        }
        getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/range/range.vue
@@ -181,7 +181,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["userInfo","permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.range_add, false),
@@ -304,6 +304,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "admin" && this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.dept_id;
        }
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/security/security.vue
@@ -173,7 +173,7 @@
    //   }
    // },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["userInfo","permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.security_add, false),
@@ -292,6 +292,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "admin" && this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.dept_id;
        }
        getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/securityManage/securityManage.vue
@@ -152,7 +152,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["userInfo","permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.securityManage_add, false),
@@ -290,6 +290,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "admin" && this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.dept_id;
        }
        getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/securityManageCar/securityManageCar.vue
@@ -225,7 +225,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ...mapGetters(["userInfo", "permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.securityManageCar_add, false),
@@ -363,6 +363,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "admin" && this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.dept_id;
        }
        getPage(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
@@ -967,6 +967,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        if (this.userInfo.role_name != "admin" && this.userInfo.role_name != "administrator"){
          params["jurisdiction"] = this.userInfo.dept_id;
        }
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId).then(res => {
          const data = res.data.data;
          this.page.total = data.total;