wl
2023-01-09 1e07cfd8ac6c3e31e94c0ea98dcff61db51e49d1
src/views/systemSetting/baseSetting/department/index.vue
@@ -76,6 +76,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 +322,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) => {