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