|
@@ -23,10 +23,10 @@
|
|
|
<el-form-item label="余额预警:">
|
|
|
{{alarm_amount}}
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="密钥设置:" :prop="isKey == '1' ? 'ReSecurityKey' : 'securityKey'">
|
|
|
- <el-input v-if="isKey == '1'" v-model="formKey.ReSecurityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
|
|
|
+ <el-form-item label="密钥设置:" :prop="useKey == '1' ? 'ReSecurityKey' : 'securityKey'">
|
|
|
+ <el-input v-if="useKey == '1'" v-model="formKey.ReSecurityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
|
|
|
<el-input v-else v-model="formKey.securityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
|
|
|
- <el-button type="primary" size="small" @click="updateKey">{{isKey == '1' ? '重设' : '设置'}}</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="updateKey">{{useKey == '1' ? '重设' : '设置'}}</el-button>
|
|
|
<el-alert
|
|
|
title="请输入数字,字母或者两者结合的字符作为密钥。用于接口对接时生成签名"
|
|
|
type="info"
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
// 是否设置过密钥 1-设置过
|
|
|
- isKey: ''
|
|
|
+ useKey: ''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -221,7 +221,7 @@ export default {
|
|
|
this.merchantsName = res.datas.name
|
|
|
this.ipList = res.datas.ips
|
|
|
this.alarm_amount = res.datas.alarm_amount
|
|
|
- this.isKey = res.datas.is_key
|
|
|
+ this.useKey = res.datas.use_key
|
|
|
}
|
|
|
},
|
|
|
// 设置密钥
|