This commit is contained in:
2023-07-19 15:20:35 +08:00
3 changed files with 554 additions and 529 deletions

View File

@@ -334,6 +334,9 @@
<if test="stationDTO.publicFlag != null and stationDTO.publicFlag != ''"> <if test="stationDTO.publicFlag != null and stationDTO.publicFlag != ''">
and t1.public_flag = #{stationDTO.publicFlag,jdbcType=VARCHAR} and t1.public_flag = #{stationDTO.publicFlag,jdbcType=VARCHAR}
</if> </if>
<if test="stationDTO.merchantId != null and stationDTO.merchantId != ''">
and t1.merchant_id = #{stationDTO.merchantId,jdbcType=VARCHAR}
</if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
<if test="stationDTO.merchantDeptIds != null and stationDTO.merchantDeptIds.size() != 0"> <if test="stationDTO.merchantDeptIds != null and stationDTO.merchantDeptIds.size() != 0">
and t3.dept_id in and t3.dept_id in

View File

@@ -8,6 +8,16 @@
v-show="showSearch" v-show="showSearch"
label-width="68px" label-width="68px"
> >
<el-form-item label="所属运营商" prop="merchantId" label-width="120">
<el-select v-model="queryParams.merchantId" filterable clearable placeholder="请选择运营商">
<el-option
v-for="item in merchantList"
:key="item.merchantName"
:label="item.merchantName"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item label="站点名称" prop="stationName"> <el-form-item label="站点名称" prop="stationName">
<el-input <el-input
v-model="queryParams.stationName" v-model="queryParams.stationName"
@@ -22,10 +32,12 @@
icon="el-icon-search" icon="el-icon-search"
size="mini" size="mini"
@click="handleQuery" @click="handleQuery"
>搜索</el-button >搜索
</el-button
> >
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button >重置
</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -39,7 +51,8 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['pile:station:add']" v-hasPermi="['pile:station:add']"
>新增</el-button >新增
</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@@ -51,7 +64,8 @@
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['pile:station:edit']" v-hasPermi="['pile:station:edit']"
>修改</el-button >修改
</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@@ -63,7 +77,8 @@
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['pile:station:remove']" v-hasPermi="['pile:station:remove']"
>删除</el-button >删除
</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@@ -74,7 +89,8 @@
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['pile:station:export']" v-hasPermi="['pile:station:export']"
>导出</el-button >导出
</el-button
> >
</el-col> </el-col>
<right-toolbar <right-toolbar
@@ -280,6 +296,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
stationName: null, stationName: null,
merchantId: null,
aloneApply: null, aloneApply: null,
accountNumber: null, accountNumber: null,
capacity: null, capacity: null,
@@ -337,7 +354,7 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
// this.getMerchantList(); this.getMerchantList();
}, },
methods: { methods: {
goStationDetail(scope) { goStationDetail(scope) {
@@ -353,6 +370,7 @@ export default {
getMerchantList() { getMerchantList() {
getMerchantList().then((response) => { getMerchantList().then((response) => {
this.merchantList = response.rows; this.merchantList = response.rows;
console.log("merchantList", this.merchantList)
}); });
}, },
changeFlag(info) { changeFlag(info) {
@@ -415,6 +433,7 @@ export default {
this.form = { this.form = {
id: null, id: null,
stationName: null, stationName: null,
merchantId: null,
aloneApply: null, aloneApply: null,
accountNumber: null, accountNumber: null,
capacity: null, capacity: null,
@@ -462,6 +481,8 @@ export default {
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
// this.merchantId = form.merchantId;
console.log("merchantId", this.merchantId)
this.getList(); this.getList();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
@@ -535,7 +556,8 @@ export default {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}) })
.catch(() => {}); .catch(() => {
});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {

View File

@@ -35,9 +35,9 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8080`, target: `http://localhost:8080`,
// 更改代理为本地地址 // 更改代理为本地地址
target: `http://192.168.2.6:8080`, // target: `http://192.168.2.6:8080`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "", ["^" + process.env.VUE_APP_BASE_API]: "",