Browse Source

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

V1.0
mk 3 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 <el-table-column
prop="remark" prop="remark"
align="center" align="center"
width="100"
label="备注" label="备注"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >

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

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

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

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

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

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

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

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

Loading…
Cancel
Save