zhanghua
2023-01-30 5173f8e31d106abd003e123c8679cf53c7940b33
src/views/systemSetting/baseSetting/department/index.vue
@@ -33,8 +33,11 @@
      <div class="mainContent">
        <!-- 数据展示 -->
        <el-table
            border
            stripe
            ref="multipleTable"
            :header-cell-style="{
          'background':'#F5F5F5',
            'font-size': '14px',
            'font-weight': '650',
            'line-height': '45px',
@@ -76,6 +79,10 @@
                <span @click="handleUpdate(scope.row)">修改</span>
                <span class="line">|</span>
                <span @click="handleDelete(scope.row)">删除</span>
                <span class="line">|</span>
              <span @click="handleChangeStatus(scope.row)">{{
                scope.row.status === true ? "停用" : "启用"
              }}</span>
              </div>
            </template>
          </el-table-column>
@@ -318,7 +325,7 @@
    // 修改状态
    handleChangeStatus(obj) {
      let {id, status} = obj;
      status == true ? (status = 1) : (status = 0);
      status == true ? (status = 0) : (status = 1);
      this.$axios
          .post(`sccg/depart/status`, {id: id, status: status})
          .then((res) => {
@@ -441,15 +448,16 @@
<style lang="scss" scoped>
.userList {
  text-align: left;
  margin: 10px 20px;
  padding: 10px 20px;
  // color: #4b9bb7;
  //height: 100%;
  border: 1px solid #ccc;
  header {
    // background-color: white;
    // border: 1 pox solid #fff;
    .headerContent {
      padding: 0 40px;
      padding: 0;
      display: flex;
      line-height: 100px;
      justify-content: space-between;
@@ -483,14 +491,14 @@
        .el-button {
          padding: 12px 25px;
          border-radius: 20px;
          //border-radius: 20px;
        }
      }
      .addBtn {
        background-color: #eb5d01;
        //background-color: #eb5d01;
        border: none;
        border-radius: 20px;
        //border-radius: 20px;
        padding: 12px 30px;
      }
    }
@@ -510,10 +518,12 @@
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      padding: 0;
      .funs-sp {
        // border: 1px solid #17324c;
        border: 1px solid #DCDFE6;
        background-color: #fff;
      }
      .funs {