fix: 去除 unitId
This commit is contained in:
parent
4031e7fa04
commit
3b20cf21db
@ -266,19 +266,19 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="所属单位" prop="unitId" required>
|
||||
<el-tree-select
|
||||
v-model="form.unitId"
|
||||
:data="UnitOptions"
|
||||
:props="{ value: 'deptId', label: 'deptName', children: 'children' }"
|
||||
placeholder="请选择所属单位"
|
||||
check-strictly
|
||||
@change="handleUnitChange"
|
||||
default-expand-all
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="12">-->
|
||||
<!-- <el-form-item label="所属单位" prop="unitId" required>-->
|
||||
<!-- <el-tree-select-->
|
||||
<!-- v-model="form.unitId"-->
|
||||
<!-- :data="UnitOptions"-->
|
||||
<!-- :props="{ value: 'deptId', label: 'deptName', children: 'children' }"-->
|
||||
<!-- placeholder="请选择所属单位"-->
|
||||
<!-- check-strictly-->
|
||||
<!-- @change="handleUnitChange"-->
|
||||
<!-- default-expand-all-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="12">
|
||||
<el-form-item label="归属部门" prop="deptId" required>
|
||||
<el-tree-select
|
||||
@ -353,11 +353,6 @@
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<span style="font-size: 14px;color:red">提示:</span>
|
||||
<span
|
||||
style="font-size: 14px;">法警归属部门必须选法警部,辅警归属部门必须选辅警部,法警负责人角色必须选法警(辅警)负责人,分管领导角色必须选单位领导</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
</el-form>
|
||||
@ -547,20 +542,20 @@ watch(deptName, val => {
|
||||
// 获取个s人信息
|
||||
const getUserInfo = async () => {
|
||||
await getUserProfile().then(res => {
|
||||
form.value.unitId = res.data.unitId
|
||||
handleUnitChange(form.value.unitId)
|
||||
handleUnitChange()
|
||||
})
|
||||
}
|
||||
|
||||
function handleUnitChange(data) {
|
||||
form.value.deptId = ''
|
||||
listDept().then(res => {
|
||||
deptOptionsEdit.value = res.data.filter(
|
||||
item => item.parentId === data
|
||||
);
|
||||
deptOptionsEdit.value = deptOptionsEdit.value.filter(
|
||||
item => item.isUnit === false
|
||||
);
|
||||
deptOptionsEdit.value = res.data
|
||||
// .filter(
|
||||
// item => item.parentId === data
|
||||
// );
|
||||
// deptOptionsEdit.value = deptOptionsEdit.value.filter(
|
||||
// item => item.isUnit === false
|
||||
// );
|
||||
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user