|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px" @submit.native.prevent>
|
|
|
|
|
|
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" @submit.native.prevent>
|
|
<!--<el-form-item label="创建人姓名" prop="createName">
|
|
<!--<el-form-item label="创建人姓名" prop="createName">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.createName"
|
|
v-model="queryParams.createName"
|
|
@@ -67,6 +67,15 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item prop="deptId">
|
|
|
|
+ <template slot="label">
|
|
|
|
+ <span @click="changeQueryType" v-if="queryParams.deptName == 0">本级及下级</span>
|
|
|
|
+ <span @click="changeQueryType" v-if="queryParams.deptName == 1">只查询本级</span>
|
|
|
|
+ </template>
|
|
|
|
+ <treeselect v-model="queryParams.deptId" :options="deptOptions" multiple:false :show-count="true"
|
|
|
|
+ placeholder="请选择部门" @select="hx" :noResultsText="'空'" :noOptionsText="'空'" style="width: 240px"/>
|
|
|
|
+ <el-input v-model="queryParams.deptName" v-if="false"/>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -360,7 +369,7 @@
|
|
updateName: null,
|
|
updateName: null,
|
|
deptStatus: null,
|
|
deptStatus: null,
|
|
deptId: null,
|
|
deptId: null,
|
|
- deptName: null,
|
|
|
|
|
|
+ deptName: 0,
|
|
latitude: null,
|
|
latitude: null,
|
|
longitude: null,
|
|
longitude: null,
|
|
areaName: null,
|
|
areaName: null,
|
|
@@ -528,6 +537,7 @@
|
|
},
|
|
},
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
resetQuery() {
|
|
|
|
+ this.queryParams.deptName = 0;
|
|
this.resetForm("queryForm");
|
|
this.resetForm("queryForm");
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
},
|
|
},
|
|
@@ -590,6 +600,10 @@
|
|
this.download('sooka-sponest-center-data/importarea/export', {
|
|
this.download('sooka-sponest-center-data/importarea/export', {
|
|
...this.queryParams
|
|
...this.queryParams
|
|
}, `重点区域_${new Date().getTime()}.xlsx`)
|
|
}, `重点区域_${new Date().getTime()}.xlsx`)
|
|
|
|
+ },
|
|
|
|
+ // 点击按钮修改是否只查询本级部门用户
|
|
|
|
+ changeQueryType() {
|
|
|
|
+ this.queryParams.deptName = this.queryParams.deptName == 0 ? 1 : 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|