diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 3c1371b..282f862 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -33,7 +33,7 @@ - +

依据国家政策法规,需绑定手机号进行网络实名才可登录使用本平台

diff --git a/src/pages/data/list/index.vue b/src/pages/data/list/index.vue index 2471a88..8ee4424 100644 --- a/src/pages/data/list/index.vue +++ b/src/pages/data/list/index.vue @@ -331,7 +331,14 @@ export default { }) this.listData = list this.total = res.pageList.total - }).catch(res => { }) + if (this.$route.query.preview) { + this.preview({ + id: this.$route.query.id, + name: this.$route.query.name + }) + this.$router.replace('list') + } + }).catch(res => {}) }, initData() { this.page = 1 @@ -389,7 +396,7 @@ export default { previewCurrentChange(val) { this.currentRow = val }, - preview(row, isDefault) { + preview(row) { this.$get(`${this.api.previewData}?tableName=${row.name}&tableId=${row.id}`).then(res => { // 查询次数+1 this.$post(this.api.saveRecord, { diff --git a/src/pages/stat/list/index.vue b/src/pages/stat/list/index.vue index 99a2dfa..d028cf5 100644 --- a/src/pages/stat/list/index.vue +++ b/src/pages/stat/list/index.vue @@ -97,7 +97,11 @@ - + + + @@ -218,12 +222,13 @@ export default { for(let n in list[i]){ let item = { year: i, - type: n, + type: n } result.push(item) } } this.yearLen = len + // debugger this.monthData = result this.$nextTick(() => { this.initChart(list) @@ -539,6 +544,21 @@ export default { } } } + .meta:after { + content: ''; + display: inline-block; + width: 12px; + height: 12px; + margin-left: 5px; + vertical-align: middle; + background-color: #55D3DE; + } + /deep/.el-table__body-wrapper tr:nth-child(2n) .meta:after { + background-color: #7ED321; + } + /deep/.el-table__body-wrapper tr:nth-child(3n) .meta:after { + background-color: #1A78F6; + } .chart{ width: calc(100% - 240px); height: 132px; diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue index 8e7937c..88a7c99 100644 --- a/src/pages/user/list/index.vue +++ b/src/pages/user/list/index.vue @@ -216,13 +216,13 @@ export default { trigger: 'blur' } ], - // phone: [ - // { - // pattern: /^1[3456789]\d{9}$/, - // message: '请输入正确的手机号', - // trigger: 'blur' - // } - // ], + phone: [ + { + pattern: /^1[3456789]\d{9}$/, + message: '请输入正确的手机号', + trigger: 'blur' + } + ], email: [ { pattern: /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/, @@ -338,7 +338,7 @@ export default { }).catch(() => {}) }, accountChange(){ - if(this.form.account !== this.originalAccount){ + if(this.form.account && this.form.account !== this.originalAccount){ // type: 0:教师端,1:学生端,2:无端 this.$post(`${this.api.checkAccount}?account=${this.form.account}&type=2&platformId=${Setting.platformId}${this.form.accountId ? '&accountId=' + this.form.accountId : ''}`).then(res => { this.accountRepeat = false @@ -350,7 +350,7 @@ export default { } }, workNumberChange(){ - if(this.form.workNumber !== this.originalWorkNumber){ + if(this.form.workNumber && this.form.workNumber !== this.originalWorkNumber){ this.$post(`${this.api.checkAccount}?workNumber=${this.form.workNumber}&type=2&platformId=${Setting.platformId}`).then(res => { this.workNumberRepeat = false }).catch(res => { @@ -361,7 +361,7 @@ export default { } }, phoneChange(){ - if(this.form.phone !== this.originalPhone){ + if(this.form.phone && this.form.phone !== this.originalPhone){ this.$post(`${this.api.checkEmailOrPhone}?phone=${this.form.phone}${this.form.accountId ? '&accountId=' + this.form.accountId : ''}`).then(res => { this.phoneRepeat = false }).catch(res => { @@ -372,7 +372,7 @@ export default { } }, emailChange(){ - if(this.form.email !== this.originalEmail){ + if(this.form.email && this.form.email !== this.originalEmail){ this.$post(`${this.api.checkEmailOrPhone}?email=${this.form.email}${this.form.accountId ? '&accountId=' + this.form.accountId : ''}`).then(res => { this.emailRepeat = false }).catch(res => { @@ -406,7 +406,7 @@ export default { accountId, userName: data.userName, roleIds: data.roleId.map(e => e.roleId), - phone: data.phone ? data.phone : '暂未绑定', + phone: data.phone, workNumber: data.workNumber, email: data.email, schoolId: data.schoolId,