Browse Source

志愿者联调,智能查询如果没有返回条件给一个空的条件

V1.0
mk 2 years ago
parent
commit
cf27c13e5d
  1. 1
      src/views/modules/base/residentManagement/resiDisability/resiDisability.vue
  2. 1
      src/views/modules/base/residentManagement/veteran/veteran.vue
  3. 37
      src/views/modules/base/residentManagement/volunteer/addForm.vue
  4. 52
      src/views/modules/base/residentManagement/volunteer/volunteer.vue
  5. 5
      src/views/modules/shequ/chaxun.vue

1
src/views/modules/base/residentManagement/resiDisability/resiDisability.vue

@ -394,7 +394,6 @@
<el-table-column
prop="remark"
align="center"
width="100"
label="备注"
:show-overflow-tooltip="true"
>

1
src/views/modules/base/residentManagement/veteran/veteran.vue

@ -483,7 +483,6 @@
<el-table-column
prop="remark"
align="center"
width="100"
label="备注"
:show-overflow-tooltip="true"
>

37
src/views/modules/base/residentManagement/volunteer/addForm.vue

@ -87,7 +87,7 @@
<el-col :span="12">
<div class="info-prop" v-if="formType == 'detail'">
<span class="info-title-2">出生日期: </span>
<span>{{formData.birthday||'--'}}</span>
<span v-if="formData.birthday">{{formData.birthday.substr(0,10)||'--'}}</span>
</div>
<el-form-item label-width="100px" label="出生日期" v-else>
<el-date-picker
@ -131,7 +131,7 @@
<el-col :span="12">
<div class="info-prop" v-if="formType == 'detail'">
<span class="info-title-2">民族: </span>
<span>{{ nationName || "--" }}</span>
<span>{{ formData.nationName || "--" }}</span>
</div>
<el-form-item label-width="100px" label="民族" v-else>
<el-select v-model="formData.nation" clearable>
@ -217,7 +217,7 @@
<el-col :span="12">
<div class="info-prop" v-if="formType == 'detail'">
<span class="info-title-2">文化程度: </span>
<span>{{ formData.disabilityCategoryName || "--" }}</span>
<span>{{ formData.cultureLevelName || "--" }}</span>
</div>
<el-form-item label-width="100px" label="文化程度" v-else>
<el-select v-model="formData.cultureLevel" clearable>
@ -251,7 +251,7 @@
<el-col :span="12">
<div class="info-prop" v-if="formType == 'detail'">
<span class="info-title-2">志愿者类别: </span>
<span>{{ formData.volunteerCategoryNames || "--" }}</span>
<span v-if="formData.volunteerCategorieNames">{{ formData.volunteerCategorieNames.join(',') || "--" }}</span>
</div>
<el-form-item label-width="100px" label="志愿者类别" v-else>
<el-select
@ -291,7 +291,7 @@
<el-col :span="24">
<div class="info-prop" v-if="formType == 'detail'">
<span class="info-title-2">兴趣特长: </span>
<span>{{ formData.interestDesc || "--" }}</span>
<span v-if="formData.hobbyNames">{{ formData.hobbyNames.join(',') || "--" }}</span>
</div>
<el-form-item
label-width="100px"
@ -299,11 +299,23 @@
class="wd-wr"
v-else
>
<el-input
v-model="formData.interestDesc"
placeholder="请输入"
<el-select
v-model="formData.hobbyCodes"
placeholder="请选择"
size="small"
class="u-item-width-normal"
clearable
></el-input>
multiple
collapse-tags
>
<el-option
v-for="item in dicts.hobbyList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
@ -376,7 +388,7 @@ export default {
workUnit: "",
volunteerCategories: [],
occupation: "",
interestDesc: "",
hobbyCodes: [],
remark: "",
},
genderList,
@ -395,6 +407,7 @@ export default {
educationList: [],
volunteerList: [],
idCard_type: [],
hobbyList:[]
},
};
},
@ -460,12 +473,16 @@ export default {
this.$http.post("sys/dict/data/dictlist", {
dictType: "idCard_type",
}),
this.$http.post("sys/dict/data/dictlist", {
dictType: "SPECIAL_SKILL",
}),
];
const dictKeys = [
"nationList",
"educationList",
"volunteerList",
"idCard_type",
"hobbyList"
]; //
const results = await Promise.all(requests);

52
src/views/modules/base/residentManagement/volunteer/volunteer.vue

@ -132,13 +132,23 @@
></el-input>
</el-form-item>
<el-form-item label="兴趣特长">
<el-input
v-model="formData.hobbyInfo"
placeholder="请输入"
<el-select
v-model="formData.hobbyCodes"
placeholder="请选择"
size="small"
class="u-item-width-normal"
clearable
></el-input>
multiple
collapse-tags
>
<el-option
v-for="item in dicts.hobbyList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="居住地址">
<el-input
@ -260,12 +270,15 @@
/>
<el-table-column
prop="volunteerCategoriesName"
prop="hobbyNames"
align="center"
width="200"
label="志愿者类别"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<span> {{scope.row.volunteerCategorieNames.join(",")|| "--"}}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
@ -344,17 +357,19 @@
>
</el-table-column>
<el-table-column
prop="hobbyInfo"
prop="hobbyCodes"
align="center"
width="100"
label="兴趣特长"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<span> {{scope.row.hobbyNames.join(",")|| "--"}}</span>
</template>
</el-table-column>
<el-table-column
prop="residentialAddress"
prop="currentResidence"
align="center"
width="100"
width="150"
label="居住地址"
:show-overflow-tooltip="true"
>
@ -474,7 +489,7 @@ export default {
cultureLevel: "",
volunteerCategories: "",
occupation: "",
hobbyInfo: "",
hobbyCodes: [],
remark: "",
},
pageNo: 1,
@ -500,7 +515,8 @@ export default {
dicts: {
educationList: [],
nationList: [],
volunteerList:[]
volunteerList:[],
hobbyList:[]
}, //
};
},
@ -536,8 +552,11 @@ export default {
this.$http.post("sys/dict/data/dictlist", {
dictType: "VOLUNTEER_CATEGORY",
}),
this.$http.post("sys/dict/data/dictlist", {
dictType: "SPECIAL_SKILL",
}),
];
const dictKeys = ["nationList", "educationList", "volunteerList"]; //
const dictKeys = ["nationList", "educationList", "volunteerList","hobbyList"]; //
const results = await Promise.all(requests);
results.forEach((result, index) => {
@ -639,7 +658,14 @@ export default {
},
//
async handleEdit(row) {},
async handleEdit(row) {
this.addDiaTitle = "编辑";
this.formType = "edit";
this.showAdd = true;
this.$nextTick(() => {
this.$refs.ref_add_form.initForm("edit", row);
});
},
//
handleClose() {
this.formType = "";

5
src/views/modules/shequ/chaxun.vue

@ -498,7 +498,7 @@ export default {
this.showSmatrForm = true;
this.$nextTick(() => {
this.$refs.smatr_rules_form.initForm(
this.rulesData.length == 0 ? this.childrenRulesData : this.rulesData
this.rulesData.length == 0 ? this.childrenRulesData : this.rulesData
);
});
},
@ -556,8 +556,7 @@ export default {
formData.append("type", this.searchData.type);
const { data, code, msg } = await requestPost(url, formData);
if (code == 0) {
this.rulesData = data;
console.log(this.rulesData);
this.rulesData = data && data.length !== 0 ? data : null;
} else {
console.log(msg);
}

Loading…
Cancel
Save