Skip to content

Commit

Permalink
Yearning v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cookie committed Sep 17, 2018
1 parent a33cb1c commit b52ef3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion webpage/src/components/management/userInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<Option v-for="list in groupset" :value="list" :key="list">{{ list }}</Option>
</Select>
</FormItem>
<Button type="primary" @click.native="Registered" style="margin-left: 35%">注册</Button>
<Button type="primary" @click.native="Registered" style="margin-left: 35%" :loading="loading">注册</Button>
</Form>
</div>
</Card>
Expand Down Expand Up @@ -210,6 +210,7 @@
}
}
return {
loading: false,
percent: 0,
permission: {
ddl: '0',
Expand Down Expand Up @@ -621,6 +622,7 @@
Registered () {
this.$refs['userinfova'].validate((valid) => {
if (valid) {
this.loading = true
axios.post(util.url + '/userinfo/', {
'username': this.userinfo.username,
'password': this.userinfo.password,
Expand All @@ -631,6 +633,7 @@
'realname': this.userinfo.realname
})
.then(res => {
this.loading = false
util.notice(res.data)
this.refreshuser()
this.userinfo = {
Expand All @@ -645,6 +648,7 @@
}
})
.catch(error => {
this.loading = false
util.err_notice(error)
})
}
Expand Down
2 changes: 1 addition & 1 deletion webpage/src/components/search/querySql.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
})
},
End_sql () {
axios.put(`${util.url}/query_worklf`, {'mode': 'end','username': sessionStorage.getItem('user')})
axios.put(`${util.url}/query_worklf`, {'mode': 'end', 'username': sessionStorage.getItem('user')})
.then(res => util.notice(res.data))
.catch(err => util.err_notice(err))
this.$router.push({
Expand Down

0 comments on commit b52ef3e

Please sign in to comment.