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", "jsencrypt": "3.0.3",
"lodash": "4.17.15", "lodash": "4.17.15",
"mint-ui": "2.2.13", "mint-ui": "2.2.13",
"node-sass": "4.12.0", "node-sass": "^4.12.0",
"ol": "6.9.0", "ol": "6.9.0",
"particles.js": "2.0.0", "particles.js": "2.0.0",
"portfinder": "1.0.21", "portfinder": "1.0.21",

183
src/views/components/resiSearch.vue

@ -1,26 +1,24 @@
<template> <template>
<div class="resi-container"> <div class="resi-container">
<!-- <el-card class="resi-card"> --> <!-- <el-card class="resi-card"> -->
<el-row class="resi-row-box" :class="!isArrow && 'resi-row-more'"> <el-row class="resi-row-box" :class="!isArrow && 'resi-row-more'">
<el-row v-if="showGrid" class="resi-row"> <el-row v-if="showGrid" class="resi-row">
<el-col :span="6"> <el-col :span="6">
<div class="resi-cell"> <div class="resi-cell">
<div class="resi-cell-label">所属组织</div> <div class="resi-cell-label">所属组织</div>
<div class="resi-cell-value"> <div class="resi-cell-value">
<el-cascader <el-cascader class="customer_cascader"
class="customer_cascader" ref="myCascader"
ref="myCascader" v-model="agencyIdArray"
v-model="agencyIdArray" filterable
filterable :options="orgOptions"
:options="orgOptions" :props="orgOptionProps"
:props="orgOptionProps" :show-all-levels="false"
:show-all-levels="false" @change="handleChangeAgency"></el-cascader>
@change="handleChangeAgency" </div>
></el-cascader>
</div> </div>
</div> </el-col>
</el-col> <!-- <el-col :span="6">
<!-- <el-col :span="6">
<div class="resi-cell"> <div class="resi-cell">
<div class="resi-cell-label">所属网格</div> <div class="resi-cell-label">所属网格</div>
<div class="resi-cell-value"> <div class="resi-cell-value">
@ -262,7 +260,7 @@
</template> </template>
<script> <script>
import inputRange from "./rangeInput.vue"; import inputRange from './rangeInput.vue'
export default { export default {
name: "ResiSearch", name: "ResiSearch",
components: { components: {
@ -327,19 +325,19 @@ export default {
}); });
let constForm = { let constForm = {
...form, ...form,
GRID_ID: "", GRID_ID: '',
VILLAGE_ID: "", VILLAGE_ID: '',
BUILD_ID: "", BUILD_ID: '',
UNIT_ID: "", UNIT_ID: '',
HOME_ID: "", HOME_ID: ''
}; }
let orgOptionProps = { let orgOptionProps = {
multiple: false, multiple: false,
value: "agencyId", value: 'agencyId',
label: "agencyName", label: 'agencyName',
children: "subAgencyList", children: 'subAgencyList',
checkStrictly: true, checkStrictly: true
}; }
return { return {
pageLoading: false, pageLoading: false,
@ -356,22 +354,22 @@ export default {
itemList, itemList,
fixedList: [], fixedList: [],
fixedForm: { fixedForm: {
AGENCY_ID: "", AGENCY_ID: '',
GRID_ID: "", GRID_ID: '',
VILLAGE_ID: "", VILLAGE_ID: '',
BUILD_ID: "", BUILD_ID: '',
UNIT_ID: "", UNIT_ID: '',
HOME_ID: "", HOME_ID: ''
}, },
constForm, constForm,
form: { form: {
...form, ...form,
AGENCY_ID: "", AGENCY_ID: '',
GRID_ID: "", GRID_ID: '',
VILLAGE_ID: "", VILLAGE_ID: '',
BUILD_ID: "", BUILD_ID: '',
UNIT_ID: "", UNIT_ID: '',
HOME_ID: "", HOME_ID: ''
}, },
tempFormList, tempFormList,
pickerOptions: { pickerOptions: {
@ -406,14 +404,10 @@ export default {
], ],
}, },
queryType: { queryType:{
AGENCY_ID: "like", 'AGENCY_ID':'like'
}, }
ageObj: { }
start:"",
end:""
},
};
}, },
computed: { computed: {
sliceList() { sliceList() {
@ -572,46 +566,41 @@ export default {
// const e = this.computedBirth(val.start) // const e = this.computedBirth(val.start)
}, },
handleChangeAgency(val) { handleChangeAgency(val) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data; let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
if (obj) { if (obj) {
if (obj.level === "grid") { if(obj.level === 'grid'){
this.form.GRID_ID = this.form.GRID_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.agencyIdArray.length > 0 this.form.AGENCY_ID=''
? this.agencyIdArray[this.agencyIdArray.length - 1] }else{
: ""; this.form.AGENCY_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.form.AGENCY_ID = ""; this.form.GRID_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 = ""; }else{
this.form.GRID_ID = ""; this.form.AGENCY_ID=''
this.form.GRID_ID = ''
} }
this.form.VILLAGE_ID = ""; this.form.VILLAGE_ID = ''
this.form.BUILD_ID = ""; this.form.BUILD_ID = ''
this.form.UNIT_ID = ""; this.form.UNIT_ID = ''
this.form.HOME_ID = ""; this.form.HOME_ID = ''
this.getValiheList(); this.getValiheList()
}, },
handleChangeGrid(val) { handleChangeGrid(val) {
console.log("val", val); console.log('val', val)
this.form.VILLAGE_ID = ""; this.form.VILLAGE_ID = ''
this.form.BUILD_ID = ""; this.form.BUILD_ID = ''
this.form.UNIT_ID = ""; this.form.UNIT_ID = ''
this.form.HOME_ID = ""; this.form.HOME_ID = ''
this.getValiheList(); this.getValiheList()
}, },
handleChangeV(val) { handleChangeV(val) {
console.log("val", val); console.log('val', val)
this.form.BUILD_ID = ""; this.form.BUILD_ID = ''
this.form.UNIT_ID = ""; this.form.UNIT_ID = ''
this.form.HOME_ID = ""; this.form.HOME_ID = ''
this.getBuildList(); this.getBuildList()
}, },
handleChangeB(val) { handleChangeB(val) {
console.log("val", val); console.log("val", val);
@ -633,20 +622,30 @@ export default {
let hasVal = false; let hasVal = false;
this.fixedList.forEach((item, index) => { this.fixedList.forEach((item, index) => {
if (item.columnName == val) { if (item.columnName == val) {
hasVal = true; hasVal = true
item.columnValue[0] = this.form[val]; item.columnValue[0] = this.form[val]
if (!this.form[val]) this.fixedList.splice(index, 1); if (!this.form[val]) this.fixedList.splice(index, 1)
console.log("fixedList----val", this.fixedList); console.log('fixedList----val', this.fixedList)
} else { } else {
let columnValue = undefined;
let valueInForm = this.form[val]
if (valueInForm instanceof Array) {
//
columnValue = valueInForm
} else {
//
columnValue = [valueInForm]
}
_item = { _item = {
queryType: this.queryType[val] queryType: this.queryType[val]
? this.queryType[val] ? this.queryType[val]
: "equal", //'equal', : "equal", //'equal',
tableName: "ic_resi_user", tableName: "ic_resi_user",
columnName: val, columnName: val,
columnValue: [this.form[val]], columnValue: [this.form[val]]
}; }
console.log("fixedList----else", _item); console.log('fixedList----else', _item)
// this.$set(this.fixedList, index, _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) => { this.tempFormList.forEach((item) => {
if (item.columnName === val) item.isChange = true; if (item.columnName === val) item.isChange = true;
}); });
@ -706,7 +705,7 @@ export default {
getValiheList() { getValiheList() {
const { user } = this.$store.state; const { user } = this.$store.state;
this.$http this.$http
.post("/gov/org/icneighborhood/neighborhoodoption", { .post('/gov/org/icneighborhood/neighborhoodoption', {
gridId: this.form.GRID_ID, gridId: this.form.GRID_ID,
agencyId: this.form.AGENCY_ID, agencyId: this.form.AGENCY_ID,
// agencyId: user.agencyId // 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" type="text"
size="small" size="small"
class="btn-color-look">查看</el-button> --> class="btn-color-look">查看</el-button> -->
<!-- <el-button @click="handleTransfer(scope.row)" <!-- <el-button @click="handleTransfer(scope.row)"
type="text" type="text"
size="small" size="small"
class="div-table-button--detail">变动</el-button> --> class="div-table-button--detail">变动</el-button> -->
@ -656,14 +656,9 @@ export default {
handleSearchFrom () { handleSearchFrom () {
let arr = []; let arr = [];
this.searchList.forEach((item) => { this.searchList.forEach((item) => {
const arr1 = const arr1 = this.$refs[`resiSearch${item.itemGroupId}`][0].handleSearch();
this.$refs[`resiSearch${item.itemGroupId}`][0].handleSearch();
arr = arr.concat(arr1); 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.currentPage = 1;
this.conditions = arr; this.conditions = arr;
this.getTableData(); this.getTableData();
@ -675,10 +670,6 @@ export default {
this.getTableData(); this.getTableData();
}, },
resetSearchForm (formName) { resetSearchForm (formName) {
// for(const n in this.form) {
// this.form[n] = ''
// }
// this.handleSearch()
this.searchList.forEach((item) => { this.searchList.forEach((item) => {
this.$refs[`resiSearch${item.itemGroupId}`][0].resetForm(); this.$refs[`resiSearch${item.itemGroupId}`][0].resetForm();
// console.log('search-----refs', this.$refs[`resiSearch${item.itemGroupId}`]) // console.log('search-----refs', this.$refs[`resiSearch${item.itemGroupId}`])
@ -1246,15 +1237,12 @@ export default {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg); return this.$message.error(res.msg);
} else { } else {
console.log("获取查询详情成功--sss", res);
res.data.forEach((item) => { res.data.forEach((item) => {
item.queryItemList.forEach((n) => { item.queryItemList.forEach((n) => {
if (n.optionSourceType === "remote") { if (n.optionSourceType === "remote") {
this.getOptionsList(n.optionSourceValue).then((res) => { this.getOptionsList(n.optionSourceValue).then((res) => {
n.options = this.getTreeData(res); n.options = this.getTreeData(res);
}); });
// console.log('')
} else if (n.itemType == "radio" && n.options.length == 0) { } else if (n.itemType == "radio" && n.options.length == 0) {
n.options = [ n.options = [
{ {

Loading…
Cancel
Save