|
|
@ -10,8 +10,20 @@ |
|
|
|
<div>此处期货交易虚拟实验为2020新版本</div> |
|
|
|
<div>此处期货交易虚拟实验为2020新版本</div> |
|
|
|
<div>2019旧版本入口为:<a href="http://www.jgsyzx.uestc.cn/">http://www.jgsyzx.uestc.cn/</a></div> |
|
|
|
<div>2019旧版本入口为:<a href="http://www.jgsyzx.uestc.cn/">http://www.jgsyzx.uestc.cn/</a></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-dialog :visible.sync="changeVisible" width="30%" :modal-append-to-body="false" :close-on-click-modal="false" :show-close="false" center title="更改密码"> |
|
|
|
|
|
|
|
<el-form label-width="80px" :model="regForm" :rules="regRules"> |
|
|
|
|
|
|
|
<el-form-item prop="password" label="新密码"> |
|
|
|
|
|
|
|
<el-input type="password" v-model="regForm.password" placeholder="请输入密码"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item prop="rePassword" label="确认密码"> |
|
|
|
|
|
|
|
<el-input type="password" v-model="regForm.rePassword" placeholder="请再次输入密码"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
<span slot="footer" center class="dialog-footer"> |
|
|
|
|
|
|
|
<el-button type="primary" @click="setPassword">确 定</el-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -19,13 +31,46 @@ export default { |
|
|
|
name: 'project', |
|
|
|
name: 'project', |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
changeVisible:false, |
|
|
|
|
|
|
|
regForm:{ |
|
|
|
|
|
|
|
password:'', |
|
|
|
|
|
|
|
rePassword:'' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
regRules: { |
|
|
|
|
|
|
|
password: [ |
|
|
|
|
|
|
|
{ required: true, message: '请输入密码', trigger: 'blur' }, |
|
|
|
|
|
|
|
{ pattern: /^.{8,}$/, message: '请输入8位数以上的密码', trigger: 'blur' } |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
rePassword: [ |
|
|
|
|
|
|
|
{ required: true, message: '请再次输入密码', trigger: 'blur' }, |
|
|
|
|
|
|
|
{ pattern: /^.{8,}$/, message: '请输入6位数以上的密码', trigger: 'blur' } |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
|
|
|
|
// this.showChangePass() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
setPassword(){ |
|
|
|
|
|
|
|
if(this.regForm.password !== this.regForm.rePassword){ |
|
|
|
|
|
|
|
return this.$message.warning('两次输入的密码不一致,请重新输入') |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.$post(this.api.resetUserPwd,{password:this.regForm.password}).then(res =>{ |
|
|
|
|
|
|
|
this.changeVisible = false |
|
|
|
|
|
|
|
return this.$message.success('更改成功') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err=>{ |
|
|
|
|
|
|
|
return this.$message.error(err.errmessage) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
showChangePass(){ |
|
|
|
|
|
|
|
this.$get(this.api.isRequiredReset).then(res =>{ |
|
|
|
|
|
|
|
if(res.message) this.changeVisible = true |
|
|
|
|
|
|
|
}).catch(err=>{}) |
|
|
|
|
|
|
|
}, |
|
|
|
toFuture(){ |
|
|
|
toFuture(){ |
|
|
|
sessionStorage.setItem("model",0);//期货模式 |
|
|
|
sessionStorage.setItem("model",0);//期货模式 |
|
|
|
this.core.toSubSystem('','','',0) |
|
|
|
this.core.toSubSystem('','','',0) |
|
|
|