保安监管系统-验收版本
zhengpz
2021-09-17 c12a6cdcbbef8ebcb07db87bbb702b7c4e792815
src/views/securityUnitOperation/operationAnalysis.vue
@@ -10,7 +10,7 @@
              class="select1"
              default-expand-all
              v-model="value1"
              placeholder="请选择内容"
              placeholder="请选择辖区"
              type="tree"
              :dic="options1"
              :props="props"
@@ -198,7 +198,6 @@
            :key="gridData.type"
            prop="enterprisename"
            label="保安公司名称"
            width="180"
            :show-overflow-tooltip="true"
          ></el-table-column>
          <el-table-column
@@ -223,6 +222,7 @@
            :key="gridData.type"
            prop="pnum"
            label="派遣比例"
            :formatter="kslFormatter"
            :show-overflow-tooltip="true"
          ></el-table-column>
          <!-- <el-table-column
@@ -263,6 +263,7 @@
            :key="gridData.type"
            prop="pnum"
            label="持证比例"
            :formatter="kslFormatter"
            :show-overflow-tooltip="true"
          ></el-table-column>
          <!-- <el-table-column
@@ -394,6 +395,13 @@
    };
  },
  methods: {
    kslFormatter(row) {
      if (row.pnum && row.pnum !== "0") {
        return row.pnum + "%";
      } else {
        return row.pnum;
      }
    },
    changePage() {
      this.showcurTable(this.gridData.type);
    },
@@ -404,8 +412,8 @@
      this.showcurTable(type);
    },
    showcurTable(type) {
      this.dialogloading = true;
      this.dialogTableVisible = true;
      // this.dialogloading = true;
      if (type === "fw") {
        this.gridData.title = "服务对象预警保安公司";
        this.getSecurityUnitServerLessPage();
@@ -465,7 +473,7 @@
      lazyTrees().then(res => {
        if (res.data.code === 200) {
          this.options1 = res.data.data;
          this.value1 = this.options1[0] ? this.options1[0].id : "";
          // this.value1 = this.options1[0] ? this.options1[0].id : "";
          this.node = this.options1[0];
          this.getCompanys();
        } else {
@@ -478,7 +486,7 @@
      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 : "";
          // this.value2 = this.options2[0] ? this.options2[0].departmentid : "";
          this.enterpriseName = this.options2[0]
            ? this.options2[0].enterpriseName
            : "";