多体系建设信息化条统-前端
祖安之光
2026-02-10 dd0f652df2d9d9977ade12b80d999b6fe6e52909
src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue
@@ -20,6 +20,9 @@
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="部门名称:"  prop="deptName">
          <el-input v-model.trim="state.form.deptName" :disabled="state.title =='查看'" placeholder="部门名称"></el-input>
        </el-form-item>
        <el-row>
          <el-col :span="12" v-if="state.title == '新增'">
            <el-form-item label="上级部门" prop="parentId">
@@ -54,9 +57,7 @@
          </el-form-item>
          </el-col>
        </el-row>
        <el-form-item label="部门名称:"  prop="deptName">
          <el-input v-model.trim="state.form.deptName" :disabled="state.title =='查看'" placeholder="部门名称"></el-input>
        </el-form-item>
        <el-form-item label="是否是管理层:"  prop="deptType" v-if="state.title !== '修改密码'">
          <el-radio-group v-model="state.form.deptType"  :disabled="disabled">
            <el-radio :label="1">是</el-radio>
@@ -179,7 +180,7 @@
  }
  await getUserList(companyId)
  await getDepartList(companyId)
  await getSysClauseList()
  await getSysClauseList(companyId)
  state.title = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看';
  if(type === 'edit' || type === 'view') {
    state.departList = state.departList.filter(i=>i.deptId !== value.deptId)
@@ -215,6 +216,7 @@
const getDeptList = async ()=>{
  await getDepartList(state.form.companyId)
  await getUserList(state.form.companyId)
  await getSysClauseList(state.form.companyId)
}
const getDepartList = async (companyId)=> {
@@ -229,8 +231,8 @@
  }
};
const getSysClauseList = async ()=> {
  const res = await getSysClause()
const getSysClauseList = async (companyId)=> {
  const res = await getSysClause({companyId: companyId})
  if(res.code == 200){
    state.sysClauseList = res.data.map(i=>{
      return {