Commit 21ddedc0 authored by wanli's avatar wanli

更新前端

parent 3bd48911
...@@ -130,6 +130,18 @@ ...@@ -130,6 +130,18 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="接口密钥" name="apiKey">
<el-form size="mini" label-width="100px">
<el-form-item label="AccessKey">
<el-col :md="10" :xs="24">
<el-input v-model="user.uuid" type="text" autocomplete="off" disabled />
</el-col>
<el-col :md="4" :xs="24">
<el-button @click="copyAccessKey">复制</el-button>
</el-col>
</el-form-item>
</el-form>
</el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
</el-col> </el-col>
...@@ -158,6 +170,7 @@ export default { ...@@ -158,6 +170,7 @@ export default {
contact: "", contact: "",
hometown: "", hometown: "",
gender: 1, gender: 1,
uuid: "",
}, },
form: { form: {
password: "", password: "",
...@@ -210,6 +223,7 @@ export default { ...@@ -210,6 +223,7 @@ export default {
this.user.contact = user.contact; this.user.contact = user.contact;
this.user.hometown = user.hometown; this.user.hometown = user.hometown;
this.user.gender = user.gender; this.user.gender = user.gender;
this.user.uuid = user.uuid;
} }
}, },
submitForm(formName) { submitForm(formName) {
...@@ -233,6 +247,15 @@ export default { ...@@ -233,6 +247,15 @@ export default {
return result; return result;
}); });
}, },
copyAccessKey() {
let oInput = document.createElement('input')
oInput.value = this.user.uuid
document.body.appendChild(oInput)
oInput.select()
document.execCommand("Copy")
this.$message({ message: '复制成功', type: 'success' })
oInput.remove()
},
updatePassword() { updatePassword() {
if ( if (
this.form.password.trim().length > 0 && this.form.password.trim().length > 0 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment