Compare commits
1 Commits
master
...
ui_2024_3_
Author | SHA1 | Date |
---|---|---|
|
766faf222d |
|
@ -1,14 +1,14 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form v-show="showSearch" ref="queryForm" :inline="true" :model="queryParams" size="small">
|
||||
<!-- <el-form-item label="企业名称" prop="companySign">-->
|
||||
<!-- <treeselect-->
|
||||
<!-- v-model="queryParams.companySign"-->
|
||||
<!-- :options="deptOptions"-->
|
||||
<!-- :show-count="true"-->
|
||||
<!-- placeholder="请选择上级部门"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="企业名称" prop="companySign">-->
|
||||
<!-- <treeselect-->
|
||||
<!-- v-model="queryParams.companySign"-->
|
||||
<!-- :options="deptOptions"-->
|
||||
<!-- :show-count="true"-->
|
||||
<!-- placeholder="请选择上级部门"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="名称" prop="deptName">
|
||||
<el-input
|
||||
v-model="queryParams.deptName"
|
||||
|
@ -77,7 +77,7 @@
|
|||
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
||||
row-key="deptId"
|
||||
>
|
||||
<el-table-column label="部门名称" prop="deptName" width="260"></el-table-column>
|
||||
<el-table-column label="企业/部门名称" prop="deptName" width="260"></el-table-column>
|
||||
<el-table-column label="企业标识" prop="companySign" width="200"></el-table-column>
|
||||
<el-table-column label="状态" prop="status" width="100">
|
||||
<template slot-scope="scope">
|
||||
|
@ -108,7 +108,7 @@
|
|||
>新增
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.parentId != 0"
|
||||
v-show="scope.row.parentId !== 0"
|
||||
v-hasPermi="['system:dept:remove']"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
|
@ -116,10 +116,29 @@
|
|||
@click="handleDelete(scope.row)"
|
||||
>删除
|
||||
</el-button>
|
||||
<!-- 删除入驻企业-->
|
||||
<el-button
|
||||
v-show="scope.row.parentId === 0 && scope.row.companySign !== 'ZL'"
|
||||
v-hasPermi="['system:dept:remove']"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="handleDelete(scope.row)"
|
||||
>删除
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- v-show="scope.row.parentId != 0"-->
|
||||
<!-- v-hasPermi="['system:dept:remove']"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- >删除-->
|
||||
<!-- </el-button>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<!-- {{deptList}}-->
|
||||
|
||||
<!-- 企业入驻对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="openCompany" append-to-body width="600px">
|
||||
|
@ -271,7 +290,7 @@ export default {
|
|||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 是否显示企业入驻对话框
|
||||
openCompany:false,
|
||||
openCompany: false,
|
||||
// 是否展开,默认全部展开
|
||||
isExpandAll: true,
|
||||
// 重新渲染表格状态
|
||||
|
@ -309,7 +328,8 @@ export default {
|
|||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
myCompanySign: "ZL"
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
@ -436,7 +456,11 @@ export default {
|
|||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {
|
||||
});
|
||||
}
|
||||
},
|
||||
// isZLParent(data) {
|
||||
// console.dir("删除的结果" + data + (data.companySign !== this.myCompanySign))
|
||||
// return data.parentId !== 0 || data.companySign === this.companySign
|
||||
// }
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue