Merge pull request #768 from cccbbbaaab/master

fix webtrader bug
This commit is contained in:
vn.py 2018-03-06 09:11:26 +08:00 committed by GitHub
commit 097d9797c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@
<el-input v-model="loginForm.user" auto-complete="off"></el-input> <el-input v-model="loginForm.user" auto-complete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="密码" :label-width="formLabelWidth"> <el-form-item label="密码" :label-width="formLabelWidth">
<el-input v-model="loginForm.pwd" auto-complete="off"></el-input> <el-input v-model="loginForm.pwd" auto-complete="off" type="password"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -103,7 +103,7 @@
</div> </div>
</el-row> </el-row>
<el-row class="body-left__connection"> <el-row class="body-left__connection">
<div>服务器连接: <div>socket服务器连接:
<p>{{connection}}</p> <p>{{connection}}</p>
</div> </div>
</el-row> </el-row>
@ -987,7 +987,7 @@ new Vue({
let that = this, let that = this,
positions = new Object(); positions = new Object();
socket.on("ePosition.", function(data) { socket.on("ePosition.", function(data) {
positions[data.vtSymbol] = data positions[data.vtPositionName] = data
that.position = Object.values(positions).reverse() that.position = Object.values(positions).reverse()
}); });
}, },
@ -1064,4 +1064,4 @@ new Vue({
}) })
</script> </script>
</html> </html>