zengh
2021-08-09 ee4e0076832e55cf23b41bdf0426e11e26bb8a5c
src/views/zc/zc.vue
@@ -27,7 +27,7 @@
                   @click="handleDelete">删 除
        </el-button>
      </template>
    <template slot-scope="{row}" slot="type">
      <template slot-scope="{row}" slot="type">
        <el-tag>{{row.type==='0'?'未审核':row.type==='1'?'审核通过':'审核未通过'}}</el-tag>
      </template>
      <template slot-scope="{ row }" slot="examination_type">
@@ -43,7 +43,7 @@
        <el-tag>{{row.roleName}}</el-tag>
      </template>
      <template slot-scope="scope" slot="menu">
        <el-button icon="el-icon-check" size="small"  @click.stop="handleEdit(scope.row,scope.index)">审核</el-button>
        <el-button icon="el-icon-check" size="small" @click.stop="handleEdit(scope.row,scope.index)">审核</el-button>
      </template>
    </avue-crud>
@@ -69,7 +69,7 @@
        },
        selectionList: [],
        option: {
          height:'auto',
          height: 'auto',
          calcHeight: 54,
          tip: false,
          searchShow: true,
@@ -85,9 +85,9 @@
            {
              label: "账号",
              search: true,
              searchSpan:4,
              searchSpan: 4,
              display: false,
              disabled:true,
              disabled: true,
              prop: "username",
            },
            {
@@ -100,17 +100,17 @@
            {
              label: "姓名",
              display: false,
              searchSpan:4,
              searchSpan: 4,
              search: true,
              disabled:true,
              disabled: true,
              prop: "sname",
            },
            {
              label: "性别",
              display: false,
              searchSpan:4,
              searchSpan: 4,
              search: true,
              disabled:true,
              disabled: true,
              prop: "sex",
              type: "select",
              dicData: [
@@ -122,11 +122,11 @@
                  label: "女",
                  value: "2"
                }
            ],
              ],
            },
            {
              label: "手机号码",
              disabled:true,
              disabled: true,
              display: false,
              prop: "phone",
            },
@@ -139,15 +139,18 @@
              //   label: "title",
              //   value: "value"
              // },
            }, {
              label: "辖区",
              prop: "jurisdiction",
            },
            {
              label: "角色",
              prop: "parentId",
              hide: true,
              dicData: [],
              type: "tree",
              prop: "parentId",
              dicUrl: "/api/blade-system/role/tree",
              props: {
                label: "title"
                label: "title",
                value: "value"
              },
            },
            {
@@ -155,7 +158,7 @@
              prop: "type",
              search: true,
              slot: true,
              searchSpan:4,
              searchSpan: 4,
              type: "select",
              dicData: [
                {
@@ -172,12 +175,12 @@
                }
              ],
            },{
            }, {
              label: "审查状态",
              prop: "examination_type",
              slot: true,
              search: true,
              searchSpan:4,
              searchSpan: 4,
              display: false,
              type: "select",
              dicData: [
@@ -206,7 +209,7 @@
      ...mapGetters(["permission"]),
      permissionList() {
        return {
         addBtn: this.vaildData(this.permission.zc_add, false),
          addBtn: this.vaildData(this.permission.zc_add, false),
          viewBtn: this.vaildData(this.permission.zc_view, true),
          delBtn: this.vaildData(this.permission.zc_delete, false),
          editBtn: this.vaildData(this.permission.zc_edit, false)
@@ -221,14 +224,14 @@
      }
    },
    methods: {
      initData(){
      initData() {
        getRoleTree().then(res => {
          const column = this.findObject(this.option.column, "parentId");
          column.dicData = res.data.data;
        });
      },
      handleEdit (row, index) {
        this.initData();
      handleEdit(row, index) {
        // this.initData();
        this.$refs.crud.rowEdit(row, index);
      },
      rowSave(row, done, loading) {
@@ -321,10 +324,10 @@
        this.selectionList = [];
        this.$refs.crud.toggleSelection();
      },
      currentChange(currentPage){
      currentChange(currentPage) {
        this.page.currentPage = currentPage;
      },
      sizeChange(pageSize){
      sizeChange(pageSize) {
        this.page.pageSize = pageSize;
      },
      refreshChange() {