保安监管系统-验收版本
zhengpz
2021-12-04 fa6f109c6a03668634c3582e26d4a65cc883acb8
现实表现改接口
3 files modified
141 ■■■■■ changed files
src/api/index/index.js 10 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue 40 ●●●● patch | view | raw | blame | history
src/views/securityUnitOperation/operationAnalysis.vue 91 ●●●● patch | view | raw | blame | history
src/api/index/index.js
@@ -259,3 +259,13 @@
    method: 'get',
  })
}
// 现实表现弹窗接口
// 资格审查异常人员清单
export const xsbxPages = params => {
  return request({
    url: "/api/blade-user/pages",
    method: "get",
    params: params
  });
};
src/views/home/index.vue
@@ -766,6 +766,7 @@
  seCountI,
  selectExtypeUser,
  qualificationPages,
  xsbxPages,
  selectCf,
  selectCl,
  selectYs,
@@ -883,6 +884,11 @@
    }
  },
  methods: {
    scoreFormatter(row) {
      if (row.score === "3") {
        return "差";
      }
    },
    getPeoplePosition() {
      getPosition({ type: 1, workerId: "1432897970143014913" }).then(result => {
        getNewPeople().then(res => {
@@ -1485,7 +1491,7 @@
        this.getPunishList(1);
      } else if (type === "xs") {
        this.gridData.title = "现实表现差人员清单";
        this.getQualificationPages(1);
        this.getXsbxPages(1);
      }
    },
    getWgTable() {
@@ -1546,8 +1552,10 @@
      });
    },
    changePage(page) {
      if (this.gridData.type === "zg" || this.gridData.type === "xs") {
      if (this.gridData.type === "zg") {
        this.getQualificationPages(page);
      } else if (this.gridData.type === "xs") {
        this.getXsbxPages(page);
      } else {
        this.showDialogTable(this.gridData.type);
      }
@@ -1587,13 +1595,9 @@
      let params = {
        current: this.gridData.current,
        size: 10,
        jurisdiction: this.value1
        jurisdiction: this.value1,
        examinationType: 1
      };
      if (this.gridData.type === "zg") {
        Object.assign(params, { examinationType: 1 });
      } else if (this.gridData.type === "xs") {
        Object.assign(params, { score: 3 });
      }
      qualificationPages(params).then(res => {
        if (res.data.code === 200) {
          this.gridData.data = res.data.data.records;
@@ -1602,6 +1606,26 @@
        this.dialogloading = false;
      });
    },
    // 现实表现差弹框
    getXsbxPages(page) {
      this.gridData.current = page;
      this.dialogloading = true;
      this.gridData.data = [];
      let params = {
        current: this.gridData.current,
        size: 10,
        jurisdiction: this.value1,
        score: 3
      };
      xsbxPages(params).then(res => {
        if (res.data.code === 200) {
          this.gridData.data = res.data.data.records;
          this.gridData.total = res.data.data.total;
        }
        this.dialogloading = false;
      });
    },
    // 派遣率低于50%的保安公司表格接口
    getPunishNum() {
      let params = {
src/views/securityUnitOperation/operationAnalysis.vue
@@ -78,7 +78,7 @@
            >
              <span>服务对象预警(家)</span>
              <span>{{ yj.fuwu }}</span>
              <span>服务对象小于2家</span>
              <span>服务对象小于{{ inputNum.fuwu }}家</span>
            </div>
            <div
              class="box-card"
@@ -87,7 +87,7 @@
            >
              <span>派遣预警(家)</span>
              <span>{{ yj.paiqian }}</span>
              <span>派遣率小于50%</span>
              <span>派遣率小于{{ inputNum.paiqian }}%</span>
            </div>
            <div
              class="box-card"
@@ -96,7 +96,7 @@
            >
              <span>持证上岗预警(家)</span>
              <span>{{ yj.chizheng }}</span>
              <span>持证率小于50%</span>
              <span>持证率小于{{ inputNum.chizheng }}%</span>
            </div>
          </div>
        </div>
@@ -299,7 +299,7 @@
  selectAge,
  getSecurityUnitServerLessPage,
  getSecurityUnitDispatcherLessPage,
  getSecurityUnitHoldLessPage,
  getSecurityUnitHoldLessPage
} from "../../api/securityUnitOperation/securityUnitOperation";
export default {
  data() {
@@ -321,38 +321,38 @@
        sheb: 0,
        addsheb: 0,
        baoanPq: 0,
        addbaoanPq: 0,
        addbaoanPq: 0
      },
      yj: {
        fuwu: 0,
        paiqian: 0,
        chizheng: 0,
        chizheng: 0
      },
      options0: [
        {
          value: "2012",
          label: "2012年",
          label: "2012年"
        },
        {
          value: "2011",
          label: "2011年",
          label: "2011年"
        },
        {
          value: "2010",
          label: "2010年",
          label: "2010年"
        },
        {
          value: "2009",
          label: "2009年",
          label: "2009年"
        },
        {
          value: "2008",
          label: "2008年",
          label: "2008年"
        },
        {
          value: "2007",
          label: "2007年",
        },
          label: "2007年"
        }
      ],
      options1: [],
      options2: [],
@@ -365,22 +365,22 @@
        middleEchart1: null,
        middleEchart2: null,
        bottomEchart: null,
        bottomEchart1: null,
        bottomEchart1: null
      },
      ageData: {
        qing: 0,
        zhong: 0,
        lao: 0,
        lao: 0
      },
      props: {
        children: "children",
        label: "title",
        value: "id",
        value: "id"
      },
      props2: {
        children: "children",
        label: "enterpriseName",
        value: "departmentid",
        value: "departmentid"
      },
      node: {}, //选中的记录
      gridData: {
@@ -388,10 +388,15 @@
        total: 0,
        current: 1,
        type: "fw",
        title: "",
        title: ""
      },
      dialogloading: false,
      dialogTableVisible: false,
      inputNum: {
        fuwu: 2,
        paiqian: 50,
        chizheng: 50
      }
    };
  },
  methods: {
@@ -435,9 +440,9 @@
      this.loading4 = true;
      let params = {
        jurisdiction: this.value1,
        deptid: this.value2,
        deptid: this.value2
      };
      selectAge(params).then((res) => {
      selectAge(params).then(res => {
        if (res.data.code === 200) {
          if (!this.echartDom.bottomEchart1) {
            this.echartDom.bottomEchart1 = echarts.init(
@@ -457,7 +462,7 @@
      });
    },
    toOperationTable() {
      debugger
      debugger;
      this.$router.push({
        path:
          "/securityUnitOperation/operationTable?jurisdiction=" +
@@ -465,14 +470,14 @@
          "&enterpriseName=" +
          this.enterpriseName +
          "&jurisdiction1=" +
          this.value1,
          this.value1
      });
    },
    getFenju() {
      this.options1 = [];
      this.value1 = "";
      this.node = {};
      lazyTrees().then((res) => {
      lazyTrees().then(res => {
        if (res.data.code === 200) {
          this.options1 = res.data.data;
          // this.value1 = this.options1[0] ? this.options1[0].id : "";
@@ -486,7 +491,7 @@
    },
    getCompanys() {
      getCompanys({ jurisdiction: this.value1 }).then((res) => {
      getCompanys({ jurisdiction: this.value1 }).then(res => {
        if (res.data.code === 200) {
          this.options2 = res.data.data;
          // this.value2 = this.options2[0] ? this.options2[0].departmentid : "";
@@ -500,9 +505,9 @@
    getQueryCounts() {
      let params = {
        jurisdiction: this.value1,
        deptid: this.value2,
        deptid: this.value2
      };
      queryCounts(params).then((res) => {
      queryCounts(params).then(res => {
        if (res.data.code === 200) {
          let data = res.data.data[0];
          this.card = {
@@ -519,7 +524,7 @@
            sheb: data.sheb.num,
            addsheb: data.sheb.thisnum,
            baoanPq: data.paiq.num,
            addbaoanPq: data.paiq.thisnum,
            addbaoanPq: data.paiq.thisnum
          };
        }
      });
@@ -528,9 +533,9 @@
      this.loading2 = true;
      let params = {
        jurisdiction: this.value1,
        deptid: this.value2,
        deptid: this.value2
      };
      queryYearKh(params).then((res) => {
      queryYearKh(params).then(res => {
        if (res.data.code === 200) {
          if (!this.echartDom.middleEchart2) {
            this.echartDom.middleEchart2 = echarts.init(
@@ -549,9 +554,9 @@
      this.loading3 = true;
      let params = {
        jurisdiction: this.value1,
        deptid: this.value2,
        deptid: this.value2
      };
      queryYearG(params).then((res) => {
      queryYearG(params).then(res => {
        if (res.data.code === 200) {
          if (!this.echartDom.middleEchart1) {
            this.echartDom.middleEchart1 = echarts.init(
@@ -590,17 +595,17 @@
        sheb: 0,
        addsheb: 0,
        baoanPq: 0,
        addbaoanPq: 0,
        addbaoanPq: 0
      };
      this.yj = {
        fuwu: 0,
        paiqian: 0,
        chizheng: 0,
        chizheng: 0
      };
      this.ageData = {
        qing: 0,
        zhong: 0,
        lao: 0,
        lao: 0
      };
    },
    getSecurityUnitServerLessPage() {
@@ -608,9 +613,9 @@
        jurisdiction: this.value1,
        departmentid: this.value2,
        current: this.gridData.current,
        size: 10,
        size: 10
      };
      getSecurityUnitServerLessPage(params).then((res) => {
      getSecurityUnitServerLessPage(params).then(res => {
        if (res.data.code === 200) {
          this.yj.fuwu = res.data.data.total;
          this.gridData.data = res.data.data.records;
@@ -626,9 +631,9 @@
        jurisdiction: this.value1,
        departmentid: this.value2,
        current: this.gridData.current,
        size: 10,
        size: 10
      };
      getSecurityUnitDispatcherLessPage(params).then((res) => {
      getSecurityUnitDispatcherLessPage(params).then(res => {
        if (res.data.code === 200) {
          this.yj.paiqian = res.data.data.total;
          this.gridData.data = res.data.data.records;
@@ -644,9 +649,9 @@
        jurisdiction: this.value1,
        departmentid: this.value2,
        current: this.gridData.current,
        size: 10,
        size: 10
      };
      getSecurityUnitHoldLessPage(params).then((res) => {
      getSecurityUnitHoldLessPage(params).then(res => {
        if (res.data.code === 200) {
          this.yj.chizheng = res.data.data.total;
          this.gridData.data = res.data.data.records;
@@ -658,7 +663,7 @@
      });
    },
    changeCompanys() {
      this.options2.forEach((item) => {
      this.options2.forEach(item => {
        if (item.departmentid === this.value2) {
          this.enterpriseName = item.enterpriseName;
        }
@@ -671,11 +676,11 @@
      this.getSecurityUnitServerLessPage();
      this.getSecurityUnitDispatcherLessPage();
      this.getSecurityUnitHoldLessPage();
    },
    }
  },
  mounted() {
    this.getFenju();
  },
  }
};
</script>
<style lang="scss" scoped>