Browse Source

Merge branch 'yantai_dev' into yantai_master

jly/task002
tianq 2 years ago
parent
commit
03456f0f81
  1. 2
      package.json
  2. 183
      src/views/components/resiSearch.vue
  3. 892
      src/views/modules/base/collect.vue
  4. 16
      src/views/modules/base/resi.vue

2
package.json

@ -39,7 +39,7 @@
"jsencrypt": "3.0.3",
"lodash": "4.17.15",
"mint-ui": "2.2.13",
"node-sass": "4.12.0",
"node-sass": "^4.12.0",
"ol": "6.9.0",
"particles.js": "2.0.0",
"portfinder": "1.0.21",

183
src/views/components/resiSearch.vue

@ -1,26 +1,24 @@
<template>
<div class="resi-container">
<!-- <el-card class="resi-card"> -->
<el-row class="resi-row-box" :class="!isArrow && 'resi-row-more'">
<el-row v-if="showGrid" class="resi-row">
<el-col :span="6">
<div class="resi-cell">
<div class="resi-cell-label">所属组织</div>
<div class="resi-cell-value">
<el-cascader
class="customer_cascader"
ref="myCascader"
v-model="agencyIdArray"
filterable
:options="orgOptions"
:props="orgOptionProps"
:show-all-levels="false"
@change="handleChangeAgency"
></el-cascader>
<el-row class="resi-row-box" :class="!isArrow && 'resi-row-more'">
<el-row v-if="showGrid" class="resi-row">
<el-col :span="6">
<div class="resi-cell">
<div class="resi-cell-label">所属组织</div>
<div class="resi-cell-value">
<el-cascader class="customer_cascader"
ref="myCascader"
v-model="agencyIdArray"
filterable
:options="orgOptions"
:props="orgOptionProps"
:show-all-levels="false"
@change="handleChangeAgency"></el-cascader>
</div>
</div>
</div>
</el-col>
<!-- <el-col :span="6">
</el-col>
<!-- <el-col :span="6">
<div class="resi-cell">
<div class="resi-cell-label">所属网格</div>
<div class="resi-cell-value">
@ -262,7 +260,7 @@
</template>
<script>
import inputRange from "./rangeInput.vue";
import inputRange from './rangeInput.vue'
export default {
name: "ResiSearch",
components: {
@ -327,19 +325,19 @@ export default {
});
let constForm = {
...form,
GRID_ID: "",
VILLAGE_ID: "",
BUILD_ID: "",
UNIT_ID: "",
HOME_ID: "",
};
GRID_ID: '',
VILLAGE_ID: '',
BUILD_ID: '',
UNIT_ID: '',
HOME_ID: ''
}
let orgOptionProps = {
multiple: false,
value: "agencyId",
label: "agencyName",
children: "subAgencyList",
checkStrictly: true,
};
value: 'agencyId',
label: 'agencyName',
children: 'subAgencyList',
checkStrictly: true
}
return {
pageLoading: false,
@ -356,22 +354,22 @@ export default {
itemList,
fixedList: [],
fixedForm: {
AGENCY_ID: "",
GRID_ID: "",
VILLAGE_ID: "",
BUILD_ID: "",
UNIT_ID: "",
HOME_ID: "",
AGENCY_ID: '',
GRID_ID: '',
VILLAGE_ID: '',
BUILD_ID: '',
UNIT_ID: '',
HOME_ID: ''
},
constForm,
form: {
...form,
AGENCY_ID: "",
GRID_ID: "",
VILLAGE_ID: "",
BUILD_ID: "",
UNIT_ID: "",
HOME_ID: "",
AGENCY_ID: '',
GRID_ID: '',
VILLAGE_ID: '',
BUILD_ID: '',
UNIT_ID: '',
HOME_ID: ''
},
tempFormList,
pickerOptions: {
@ -406,14 +404,10 @@ export default {
],
},
queryType: {
AGENCY_ID: "like",
},
ageObj: {
start:"",
end:""
},
};
queryType:{
'AGENCY_ID':'like'
}
}
},
computed: {
sliceList() {
@ -572,46 +566,41 @@ export default {
// const e = this.computedBirth(val.start)
},
handleChangeAgency(val) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data;
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
if (obj) {
if (obj.level === "grid") {
this.form.GRID_ID =
this.agencyIdArray.length > 0
? this.agencyIdArray[this.agencyIdArray.length - 1]
: "";
this.form.AGENCY_ID = "";
} else {
this.form.AGENCY_ID =
this.agencyIdArray.length > 0
? this.agencyIdArray[this.agencyIdArray.length - 1]
: "";
this.form.GRID_ID = "";
if(obj.level === 'grid'){
this.form.GRID_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.form.AGENCY_ID=''
}else{
this.form.AGENCY_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.form.GRID_ID = ''
}
} else {
this.form.AGENCY_ID = "";
this.form.GRID_ID = "";
}else{
this.form.AGENCY_ID=''
this.form.GRID_ID = ''
}
this.form.VILLAGE_ID = "";
this.form.BUILD_ID = "";
this.form.UNIT_ID = "";
this.form.HOME_ID = "";
this.getValiheList();
this.form.VILLAGE_ID = ''
this.form.BUILD_ID = ''
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
this.getValiheList()
},
handleChangeGrid(val) {
console.log("val", val);
this.form.VILLAGE_ID = "";
this.form.BUILD_ID = "";
this.form.UNIT_ID = "";
this.form.HOME_ID = "";
this.getValiheList();
console.log('val', val)
this.form.VILLAGE_ID = ''
this.form.BUILD_ID = ''
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
this.getValiheList()
},
handleChangeV(val) {
console.log("val", val);
this.form.BUILD_ID = "";
this.form.UNIT_ID = "";
this.form.HOME_ID = "";
this.getBuildList();
console.log('val', val)
this.form.BUILD_ID = ''
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
this.getBuildList()
},
handleChangeB(val) {
console.log("val", val);
@ -633,20 +622,30 @@ export default {
let hasVal = false;
this.fixedList.forEach((item, index) => {
if (item.columnName == val) {
hasVal = true;
item.columnValue[0] = this.form[val];
if (!this.form[val]) this.fixedList.splice(index, 1);
console.log("fixedList----val", this.fixedList);
hasVal = true
item.columnValue[0] = this.form[val]
if (!this.form[val]) this.fixedList.splice(index, 1)
console.log('fixedList----val', this.fixedList)
} else {
let columnValue = undefined;
let valueInForm = this.form[val]
if (valueInForm instanceof Array) {
//
columnValue = valueInForm
} else {
//
columnValue = [valueInForm]
}
_item = {
queryType: this.queryType[val]
? this.queryType[val]
: "equal", //'equal',
tableName: "ic_resi_user",
columnName: val,
columnValue: [this.form[val]],
};
console.log("fixedList----else", _item);
columnValue: [this.form[val]]
}
console.log('fixedList----else', _item)
// this.$set(this.fixedList, index, _item)
}
});
@ -662,7 +661,7 @@ export default {
}
}
}
console.log("fixedList----999", this.fixedList);
console.log('fixedList----999', this.fixedList)
this.tempFormList.forEach((item) => {
if (item.columnName === val) item.isChange = true;
});
@ -706,7 +705,7 @@ export default {
getValiheList() {
const { user } = this.$store.state;
this.$http
.post("/gov/org/icneighborhood/neighborhoodoption", {
.post('/gov/org/icneighborhood/neighborhoodoption', {
gridId: this.form.GRID_ID,
agencyId: this.form.AGENCY_ID,
// agencyId: user.agencyId

892
src/views/modules/base/collect.vue

File diff suppressed because it is too large

16
src/views/modules/base/resi.vue

@ -142,7 +142,7 @@
type="text"
size="small"
class="btn-color-look">查看</el-button> -->
<!-- <el-button @click="handleTransfer(scope.row)"
<!-- <el-button @click="handleTransfer(scope.row)"
type="text"
size="small"
class="div-table-button--detail">变动</el-button> -->
@ -656,14 +656,9 @@ export default {
handleSearchFrom () {
let arr = [];
this.searchList.forEach((item) => {
const arr1 =
this.$refs[`resiSearch${item.itemGroupId}`][0].handleSearch();
const arr1 = this.$refs[`resiSearch${item.itemGroupId}`][0].handleSearch();
arr = arr.concat(arr1);
// console.log('search-----refs', this.$refs[`resiSearch${item.itemGroupId}`])
});
console.log("search-----refs", this.$refs);
console.log("search-----arr", arr);
this.currentPage = 1;
this.conditions = arr;
this.getTableData();
@ -675,10 +670,6 @@ export default {
this.getTableData();
},
resetSearchForm (formName) {
// for(const n in this.form) {
// this.form[n] = ''
// }
// this.handleSearch()
this.searchList.forEach((item) => {
this.$refs[`resiSearch${item.itemGroupId}`][0].resetForm();
// console.log('search-----refs', this.$refs[`resiSearch${item.itemGroupId}`])
@ -1246,15 +1237,12 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
console.log("获取查询详情成功--sss", res);
res.data.forEach((item) => {
item.queryItemList.forEach((n) => {
if (n.optionSourceType === "remote") {
this.getOptionsList(n.optionSourceValue).then((res) => {
n.options = this.getTreeData(res);
});
// console.log('')
} else if (n.itemType == "radio" && n.options.length == 0) {
n.options = [
{

Loading…
Cancel
Save