Commit d6a98493 authored by 秦嘉's avatar 秦嘉

Merge remote-tracking branch 'origin/master'

parents c253d8e7 a492fa92
...@@ -6,6 +6,7 @@ import java.util.stream.Collectors; ...@@ -6,6 +6,7 @@ import java.util.stream.Collectors;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.core.domain.entity.SysDictData; import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.DataUtils; import com.ruoyi.common.utils.DataUtils;
import com.ruoyi.common.utils.DictUtils; import com.ruoyi.common.utils.DictUtils;
import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.SecurityUtils;
...@@ -155,6 +156,11 @@ public class FcryController extends BaseController ...@@ -155,6 +156,11 @@ public class FcryController extends BaseController
ExcelUtil<FcryDTO> util = new ExcelUtil<FcryDTO>(FcryDTO.class); ExcelUtil<FcryDTO> util = new ExcelUtil<FcryDTO>(FcryDTO.class);
Class<? extends FcryDTO> clazz = new FcryDTO().getClass(); Class<? extends FcryDTO> clazz = new FcryDTO().getClass();
// //
// 获取当前登陆人所属方舱
SysUser loginUser = getLoginUser().getUser();
String fcPlace = loginUser.getNickName();
String[] fcPlaces={fcPlace};
ExcelUtil.setClassExcelAttribute(clazz,"fcPlace","combo",fcPlaces);
String[] isPositive = {"是","否"}; String[] isPositive = {"是","否"};
ExcelUtil.setClassExcelAttribute( clazz,"isPositive","combo",isPositive); ExcelUtil.setClassExcelAttribute( clazz,"isPositive","combo",isPositive);
String[] positiveOnly = {"是","否"}; String[] positiveOnly = {"是","否"};
......
...@@ -22,7 +22,7 @@ public class FcryDTO extends BaseEntity ...@@ -22,7 +22,7 @@ public class FcryDTO extends BaseEntity
private Long id; private Long id;
/** 方舱名称 */ /** 方舱名称 */
@Excel(name = "方舱名称") @Excel(name = "方舱名称" ,dictType = "fcPlace")
private String fcPlace; private String fcPlace;
/** 房间号 */ /** 房间号 */
......
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
{ required: form.area === '1', message: '请选择街道/镇', trigger: ['blur','change'] } { required: form.area === '1', message: '请选择街道/镇', trigger: ['blur','change'] }
]" ]"
> >
<el-select v-model="form.street" placeholder="请选择街道/镇" :disabled="form.area !== '1'" @change="zhenSelect" style="width: 100%" <el-select v-model="form.street" placeholder="请选择街道/镇" @blur="streetBlur('street')" :disabled="form.area !== '1'" @change="zhenSelect" style="width: 100%"
> >
<el-option <el-option
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
{ required: form.area === '1', message: '请选择居委会', trigger: ['blur','change'] } { required: form.area === '1', message: '请选择居委会', trigger: ['blur','change'] }
]" ]"
> >
<el-select v-model="form.committee" placeholder="请选择居委会" :disabled="form.area !== '1'" @change="juSelect" style="width: 100%"> <el-select v-model="form.committee" @blur="streetBlur('committee')" placeholder="请选择居委会" :disabled="form.area !== '1'" @change="juSelect" style="width: 100%">
<el-option <el-option
v-for="dict in ju" v-for="dict in ju"
:key="dict.code" :key="dict.code"
...@@ -403,7 +403,7 @@ ...@@ -403,7 +403,7 @@
{ required: form.area === '1', message: '请选择小区/村名称', trigger: ['blur','change'] } { required: form.area === '1', message: '请选择小区/村名称', trigger: ['blur','change'] }
]" ]"
> >
<el-select v-model="form.community" placeholder="请选择小区/村名称" :disabled="form.area !== '1'" style="width: 100%"> <el-select v-model="form.community" @blur="streetBlur('community')" @chang="streetBlur('community')" placeholder="请选择小区/村名称" :disabled="form.area !== '1'" style="width: 100%">
<el-option <el-option
v-for="dict in cun" v-for="dict in cun"
:key="dict.code" :key="dict.code"
...@@ -926,6 +926,9 @@ export default { ...@@ -926,6 +926,9 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
streetBlur(val) {
this.$refs.form.validateField(val)
},
quSelect(val){ quSelect(val){
this.zhen = [] this.zhen = []
this.form.community = '' this.form.community = ''
......
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
<dict-tag :options="dict.type.committee" :value="scope.row.committee"/> <dict-tag :options="dict.type.committee" :value="scope.row.committee"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="小区名称" width="120" align="center" prop="community" :show-overflow-tooltip="true"> <el-table-column label="小区/村名称" width="120" align="center" prop="community" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.community" :value="scope.row.community"/> <dict-tag :options="dict.type.community" :value="scope.row.community"/>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment