|
|
|
@ -9,12 +9,11 @@ |
|
|
|
:label-width="$i18n.locale === 'en-US' ? '120px' : '80px'"> |
|
|
|
<el-row> |
|
|
|
<el-form-item label="所属机构"> |
|
|
|
<el-cascader |
|
|
|
v-model="dataForm.allDeptIdsShow" |
|
|
|
:options="options" |
|
|
|
:props="{ checkStrictly: true }" |
|
|
|
clearable |
|
|
|
></el-cascader> |
|
|
|
<el-cascader v-model="dataForm.allDeptIdsShow" |
|
|
|
:options="options" |
|
|
|
:props="{ multiple: true }" |
|
|
|
clearable |
|
|
|
collapse-tags></el-cascader> |
|
|
|
</el-form-item> |
|
|
|
<!--<el-form-item label="所属街道" |
|
|
|
prop="streetId"> |
|
|
|
@ -199,16 +198,21 @@ export default { |
|
|
|
this.getDeptInfoList('street', localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street')) |
|
|
|
this.getListCategory() |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
'dataForm.allDeptIdsShow': function (val) { |
|
|
|
console.log(this.dataForm.allDeptIdsShow); |
|
|
|
} |
|
|
|
}, |
|
|
|
created () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/user/deptOptions/getByLoginUser`) |
|
|
|
.get(`/sys/user/deptOptions/getAllByLoginUser`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.options = res.data.options |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
.catch(() => { }) |
|
|
|
this.getDeptInfoList('street', localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street')) |
|
|
|
this.getListCategory() |
|
|
|
this.visible = true |
|
|
|
|