mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 10:00:11 +08:00
update 联联
This commit is contained in:
@@ -40,12 +40,12 @@
|
||||
<h2>二维码配置</h2>
|
||||
<el-form label-position="right" label-width="200px" style="margin-top:10px">
|
||||
<el-row>
|
||||
<el-col span="12">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="当前配置二维码规则:">
|
||||
<el-input v-model="stationDetail.qrcodePrefix" maxlength="100px" :disabled="true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col span="12">
|
||||
<el-col :span="12">
|
||||
<el-form-item>
|
||||
<el-button icon="el-icon-setting" size="big" @click="handleCreate"
|
||||
v-has-permi="['pile:station:edit']">配置参数
|
||||
@@ -64,15 +64,15 @@
|
||||
style="margin-top:10px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="对接平台名称:" prop="type">
|
||||
<el-form-item label="对接平台名称:" prop="thirdPartyType">
|
||||
<el-select
|
||||
v-model="stationSettingInfo.type"
|
||||
v-model="stationSettingInfo.thirdPartyType"
|
||||
placeholder="请选择对接平台名称"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 220px"
|
||||
:disabled="true"
|
||||
@change="getStationSettingInfo"
|
||||
:disabled="disableFlag"
|
||||
@change="getSettingParams"
|
||||
>
|
||||
<!-- <el-option label="上海联联平台" value="1" />-->
|
||||
<!-- <el-option label="abc" value="2" />-->
|
||||
@@ -88,41 +88,41 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="对接平台url地址:" prop="urlAddress">
|
||||
<el-input placeholder="请输入" v-model="stationSettingInfo.urlAddress" :disabled="disableFlag"/>
|
||||
<el-input placeholder="请输入" v-model="stationSettingInfo.urlAddress" :disabled="true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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="true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="运营商密钥(OperatorSecret):" prop="operatorSecret">
|
||||
<el-input placeholder="请输入" v-model="stationSettingInfo.operatorSecret" :disabled="disableFlag"/>
|
||||
<el-input placeholder="请输入" v-model="stationSettingInfo.operatorSecret" :disabled="true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<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="true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="签名密钥(SigSecret):" prop="signSecret">
|
||||
<el-input placeholder="请输入" v-model="stationSettingInfo.signSecret" :disabled="disableFlag"/>
|
||||
<el-input placeholder="请输入" v-model="stationSettingInfo.signSecret" :disabled="true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<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="true"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item>
|
||||
<el-button size="big" @click="submitConfigForm" v-has-permi="['pile:station:edit']">提交</el-button>
|
||||
<!-- <el-button size="big" @click="submitConfigForm" v-has-permi="['pile:station:edit']">提交</el-button>-->
|
||||
<el-button size="big" @click="pushStation" v-has-permi="['pile:station:edit']">推送站点信息</el-button>
|
||||
<!-- <el-button icon="el-icon-edit" size="big" @click="openEdit" v-has-permi = "['pile:station:edit']" >编辑参数</el-button>-->
|
||||
</el-form-item>
|
||||
@@ -252,21 +252,25 @@ export default {
|
||||
getStationSettingInfo() {
|
||||
getSettingByStationId(this.stationId).then((res) => {
|
||||
console.log("stationId:", this.stationId)
|
||||
console.log("getSettingByStationId==", res)
|
||||
this.stationSettingInfo = res.data;
|
||||
console.log("getSettingByStationId==", res.data === undefined)
|
||||
if (res.data === undefined) {
|
||||
this.stationSettingInfo.thirdPartyType = "0";
|
||||
}else {
|
||||
this.stationSettingInfo = res.data;
|
||||
}
|
||||
})
|
||||
},
|
||||
// 根据站点id赫对接平台名称查询配置信息
|
||||
// 根据对接平台类型查询配置信息
|
||||
getSettingParams() {
|
||||
const param = {
|
||||
stationId: this.stationId,
|
||||
type: this.stationSettingInfo.type,
|
||||
// stationId: this.stationId,
|
||||
thirdPartyType: this.stationSettingInfo.thirdPartyType,
|
||||
}
|
||||
console.log("param", param);
|
||||
getSettingInfo(param).then((res) => {
|
||||
console.log("getSettingInfo", res)
|
||||
if (res.data === null) {
|
||||
this.stationSettingInfo = null;
|
||||
if (res.data === undefined) {
|
||||
this.stationSettingInfo = [];
|
||||
}else {
|
||||
this.stationSettingInfo = res.data;
|
||||
}
|
||||
@@ -305,9 +309,11 @@ export default {
|
||||
pushStation() {
|
||||
const param = {
|
||||
stationId: this.stationId,
|
||||
thirdPartyType: this.stationSettingInfo.thirdPartyType,
|
||||
}
|
||||
pushStationInfo(param).then((response) => {
|
||||
this.$modal.msgSuccess('推送成功')
|
||||
console.log("response", response)
|
||||
this.$modal.msg(response.obj)
|
||||
this.disableFlag = true;
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user