mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 18:59:51 +08:00
update 推送联联平台后管页面
This commit is contained in:
@@ -189,6 +189,17 @@ public class PileStationInfoController extends BaseController {
|
|||||||
return AjaxResult.success(thirdPartySettingInfoService.getInfoByStationId(id));
|
return AjaxResult.success(thirdPartySettingInfoService.getInfoByStationId(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询第三方平台配置信息
|
||||||
|
* @param info
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('pile:station:query')")
|
||||||
|
@PostMapping("/getSettingInfo")
|
||||||
|
public AjaxResult getSettingInfo(@RequestBody ThirdPartySettingInfo info) {
|
||||||
|
return AjaxResult.success(thirdPartySettingInfoService.selectSettingInfo(info));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改站点互联互通配置信息
|
* 修改站点互联互通配置信息
|
||||||
* @param info
|
* @param info
|
||||||
|
|||||||
@@ -29,6 +29,13 @@ public interface ThirdPartySettingInfoMapper {
|
|||||||
*/
|
*/
|
||||||
public List<ThirdPartySettingInfo> selectThirdPartySettingInfoList(ThirdPartySettingInfo thirdPartySettingInfo);
|
public List<ThirdPartySettingInfo> selectThirdPartySettingInfoList(ThirdPartySettingInfo thirdPartySettingInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询第三方平台配置信息
|
||||||
|
* @param info
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
ThirdPartySettingInfo selectThirdInfo(ThirdPartySettingInfo info);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增第三方平台配置
|
* 新增第三方平台配置
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -27,6 +27,14 @@ public interface IThirdPartySettingInfoService {
|
|||||||
*/
|
*/
|
||||||
public List<ThirdPartySettingInfo> selectThirdPartySettingInfoList(ThirdPartySettingInfo thirdPartySettingInfo);
|
public List<ThirdPartySettingInfo> selectThirdPartySettingInfoList(ThirdPartySettingInfo thirdPartySettingInfo);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询第三方平台配置信息
|
||||||
|
* @param thirdPartySettingInfo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
ThirdPartySettingInfo selectSettingInfo(ThirdPartySettingInfo thirdPartySettingInfo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增第三方平台配置
|
* 新增第三方平台配置
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -42,6 +42,16 @@ public class ThirdPartySettingInfoServiceImpl implements IThirdPartySettingInfoS
|
|||||||
return thirdPartySettingInfoMapper.selectThirdPartySettingInfoList(thirdPartySettingInfo);
|
return thirdPartySettingInfoMapper.selectThirdPartySettingInfoList(thirdPartySettingInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询第三方平台配置信息
|
||||||
|
* @param thirdPartySettingInfo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ThirdPartySettingInfo selectSettingInfo(ThirdPartySettingInfo thirdPartySettingInfo) {
|
||||||
|
return thirdPartySettingInfoMapper.selectThirdInfo(thirdPartySettingInfo);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增第三方平台配置
|
* 新增第三方平台配置
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -119,4 +119,18 @@
|
|||||||
from thirdparty_setting_info
|
from thirdparty_setting_info
|
||||||
where station_id = #{stationId,jdbcType=BIGINT}
|
where station_id = #{stationId,jdbcType=BIGINT}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectThirdInfo" resultMap="ThirdPartySettingInfoResult">
|
||||||
|
select <include refid="Base_Column_List"/>
|
||||||
|
from thirdparty_setting_info
|
||||||
|
<where>
|
||||||
|
<if test="stationId != null">
|
||||||
|
and station_id = #{stationId,jdbcType=BIGINT}
|
||||||
|
</if>
|
||||||
|
<if test="type != null and type != ''">
|
||||||
|
and type = #{type,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -94,6 +94,15 @@ export function getSettingByStationId(id) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询站点互联互通配置
|
||||||
|
export function getSettingInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: "/pile/station/getSettingInfo",
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 修改站点互联互通配置
|
// 修改站点互联互通配置
|
||||||
export function updateSettingByStationId(data) {
|
export function updateSettingByStationId(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -64,41 +64,59 @@
|
|||||||
style="margin-top:10px">
|
style="margin-top:10px">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="对接平台名称" prop="type">
|
<el-form-item label="对接平台名称:" prop="type">
|
||||||
<el-input placeholder="请输入" v-model="stationSettingInfo.type" :disabled="disableFlag"/>
|
<el-select
|
||||||
|
v-model="stationSettingInfo.type"
|
||||||
|
placeholder="请选择对接平台名称"
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
style="width: 220px"
|
||||||
|
:disabled="true"
|
||||||
|
@change="getStationSettingInfo"
|
||||||
|
>
|
||||||
|
<!-- <el-option label="上海联联平台" value="1" />-->
|
||||||
|
<!-- <el-option label="abc" value="2" />-->
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.third_party_type"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<!-- <el-input placeholder="请输入" v-model="stationSettingInfo.type" :disabled="disableFlag"/>-->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="对接平台url地址" prop="urlAddress">
|
<el-form-item label="对接平台url地址:" prop="urlAddress">
|
||||||
<el-input placeholder="请输入" v-model="stationSettingInfo.urlAddress" :disabled="disableFlag"/>
|
<el-input placeholder="请输入" v-model="stationSettingInfo.urlAddress" :disabled="disableFlag"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="运营商ID" prop="operatorId">
|
<el-form-item label="运营商ID(OperatorID):" prop="operatorId">
|
||||||
<el-input placeholder="请输入" v-model="stationSettingInfo.operatorId" :disabled="disableFlag"/>
|
<el-input placeholder="请输入" v-model="stationSettingInfo.operatorId" :disabled="disableFlag"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="运营商密钥" prop="operatorSecret">
|
<el-form-item label="运营商密钥(OperatorSecret):" prop="operatorSecret">
|
||||||
<el-input placeholder="请输入" v-model="stationSettingInfo.operatorSecret" :disabled="disableFlag"/>
|
<el-input placeholder="请输入" v-model="stationSettingInfo.operatorSecret" :disabled="disableFlag"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="消息Data密钥:" prop="dataSecret">
|
<el-form-item label="消息Data密钥(DataSecret):" prop="dataSecret">
|
||||||
<el-input placeholder="请输入" v-model="stationSettingInfo.dataSecret" :disabled="disableFlag"/>
|
<el-input placeholder="请输入" v-model="stationSettingInfo.dataSecret" :disabled="disableFlag"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="签名密钥" prop="signSecret">
|
<el-form-item label="签名密钥(SigSecret):" prop="signSecret">
|
||||||
<el-input placeholder="请输入" v-model="stationSettingInfo.signSecret" :disabled="disableFlag"/>
|
<el-input placeholder="请输入" v-model="stationSettingInfo.signSecret" :disabled="disableFlag"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="消息Data密钥初始化向量" prop="dataSecretIv">
|
<el-form-item label="消息Data密钥初始化向量(DataSecretIV):" prop="dataSecretIv">
|
||||||
<el-input placeholder="请输入" v-model="stationSettingInfo.dataSecretIv" :disabled="disableFlag"/>
|
<el-input placeholder="请输入" v-model="stationSettingInfo.dataSecretIv" :disabled="disableFlag"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -146,11 +164,13 @@ import {
|
|||||||
updateStationQRCodePrefix,
|
updateStationQRCodePrefix,
|
||||||
getSettingByStationId,
|
getSettingByStationId,
|
||||||
updateSettingByStationId,
|
updateSettingByStationId,
|
||||||
pushStationInfo
|
pushStationInfo,
|
||||||
|
getSettingInfo
|
||||||
} from "@/api/pile/station";
|
} from "@/api/pile/station";
|
||||||
import Whitelist from "@/views/pile/station/stationWhiteList";
|
import Whitelist from "@/views/pile/station/stationWhiteList";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
dicts: ["third_party_type"],
|
||||||
components: {
|
components: {
|
||||||
Whitelist,
|
Whitelist,
|
||||||
SiteInfo,
|
SiteInfo,
|
||||||
@@ -232,10 +252,26 @@ export default {
|
|||||||
this.stationSettingInfo = res.data;
|
this.stationSettingInfo = res.data;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 根据站点id赫对接平台名称查询配置信息
|
||||||
|
getSettingParams() {
|
||||||
|
const param = {
|
||||||
|
stationId: this.stationId,
|
||||||
|
type: this.stationSettingInfo.type,
|
||||||
|
}
|
||||||
|
console.log("param", param);
|
||||||
|
getSettingInfo(param).then((res) => {
|
||||||
|
console.log("getSettingInfo", res)
|
||||||
|
if (res.data === null) {
|
||||||
|
this.stationSettingInfo = null;
|
||||||
|
}else {
|
||||||
|
this.stationSettingInfo = res.data;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 开放编辑按钮
|
// 开放编辑按钮
|
||||||
openEdit() {
|
openEdit() {
|
||||||
this.disableFlag = false;
|
this.disableFlag = this.disableFlag === false;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 提交配置设置
|
// 提交配置设置
|
||||||
|
|||||||
Reference in New Issue
Block a user