diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index 2dd3698..93e09ff 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -530,24 +530,24 @@ export default { }).catch((res) => {}) }else{ this.$post(this.api.addCustomer,data).then((res) => { - let customerId = res.customerId - this.$store.commit('schoolIdData',{schoolId: this.form.schoolId}) - this.$post(this.api.saveOrUpdate,{ - clientId: 0, - id: '', - roleName: '超级管理员', - remark: '拥有一切权限', - isPort: 2 - }).then(res => { - let roleId = res.roleId - let perData = { - roleId, - permissionId: ["1408370117262635009","1409351488911056897","1409351867862228993","1408370186435096578","1409352518310699009","1409352550615228418","1409352584240963585","1409352623344459778","1409352647054860289","1409352682471563266","1409352720786530305","1409352742290726913","1408370244584927233","1409352872662278146","1409352903574298626","1409352923509825538","1409352940068937730","1409353018443702273"], - isPort: 2 - } - this.$post(this.api.doAssign,perData).then(res => {}).catch(res => {}) - this.$post(`${this.api.updateCustomerByRoleId}?customerId=${customerId}&roleId=${roleId}`).then(res => {}).catch(res => {}) - }).catch(res => {}) + // let customerId = res.customerId + // this.$store.commit('schoolIdData',{schoolId: this.form.schoolId}) + // this.$post(this.api.saveOrUpdate,{ + // clientId: 0, + // id: '', + // roleName: '超级管理员', + // remark: '拥有一切权限', + // isPort: 2 + // }).then(res => { + // let roleId = res.roleId + // let perData = { + // roleId, + // permissionId: ["1408370117262635009","1409351488911056897","1409351867862228993","1408370186435096578","1409352518310699009","1409352550615228418","1409352584240963585","1409352623344459778","1409352647054860289","1409352682471563266","1409352720786530305","1409352742290726913","1408370244584927233","1409352872662278146","1409352903574298626","1409352923509825538","1409352940068937730","1409353018443702273"], + // isPort: 2 + // } + // this.$post(this.api.doAssign,perData).then(res => {}).catch(res => {}) + // this.$post(`${this.api.updateCustomerByRoleId}?customerId=${customerId}&roleId=${roleId}`).then(res => {}).catch(res => {}) + // }).catch(res => {}) this.$message.success('添加成功') this.goback() diff --git a/src/views/user/User.vue b/src/views/user/User.vue index 4f7e760..2b41227 100644 --- a/src/views/user/User.vue +++ b/src/views/user/User.vue @@ -366,6 +366,9 @@ export default {