liuyg
2021-11-05 b7ab82b77106d146462fb9f37c8910f3a86b855a
src/views/licenseApproval/securityGuard.vue
@@ -2,7 +2,7 @@
 * @Author: liu
 * @Date: 2021-08-26 16:57:58 
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-23 08:37:38
 * @Last Modified time: 2021-11-05 14:16:49
 */
@@ -48,16 +48,16 @@
            :type="type"
            class="zhengJian-icon"
            @click.stop="handleCredentials(row)"
            >附件审查</el-button
            >附件</el-button
          >
          <el-button
          <!-- <el-button
            icon="el-icon-edit"
            :size="size"
            :type="type"
            v-if="row.stateOur == '0'"
            @click.stop="rowDel(row)"
            >备案审批
          </el-button>
          </el-button> -->
          <el-button
            icon="el-icon-edit"
            :size="size"
@@ -103,9 +103,12 @@
                ? "不通过"
                : "待审核"
            }}
            <i class="gz" v-if="row.stateOur == '0'"></i>
            <i class="yj" v-if="row.stateOur == '2'"></i>
            <i class="zc" v-if="row.stateOur == '1'"></i>
            <i class="gz" v-if="row.type == '2'"></i>
            <!--  黄色 -->
            <i class="yj" v-if="row.type == '1'"></i>
            <!--  红色 -->
            <i class="zc" v-if="row.type == '0'"></i>
            <!--  绿色 -->
          </el-tag>
        </template>
      </avue-crud>
@@ -288,7 +291,7 @@
        searchShow: true,
        searchMenuSpan: 8,
        border: true,
        menuWidth: 300,
        menuWidth: 377,
        labelWidth: 130,
        headerAlign: "center",
        align: "center",
@@ -394,6 +397,11 @@
      } else if (this.user_name == "市") {
        // 市局审批
        this.stateText = row.sopinion;
      } else {
        let shi = row.sopinion == "" ? "" : "市局:" + row.sopinion + "。";
        let fen = row.xopinion == "" ? "" : "分局:" + row.xopinion + "。";
        let pai = row.popinion == "" ? "" : "派出所:" + row.popinion + "。";
        this.stateText = shi + fen + pai;
      }
    },
@@ -546,6 +554,18 @@
      } else if (this.user_name == "市") {
        // 市局审批
        b["stateOur"] = b.sapprove == "0" ? "0" : b.sapprove == "1" ? "1" : "2";
      } else {
        let shi = b.sapprove == "0" ? "0" : b.sapprove == "1" ? "1" : "2";
        let fen = b.xapprove == "0" ? "0" : b.xapprove == "1" ? "1" : "2";
        let pai = b.papprove == "0" ? "0" : b.papprove == "1" ? "1" : "2";
        // console.log(shi, fen, pai);
        if (shi == "1" && fen == "1" && pai == "1") {
          b["stateOur"] = 1;
        }
        if (shi == "2" || fen == "2" || pai == "2") {
          b["stateOur"] = 2;
        }
        // b["stateOur"];
      }
      return b;
    },