样式调整,去掉新增客户后,自动新增超级管理员角色

dev
yujialong 3 years ago
parent 1f492f9b1a
commit df231da241
  1. 36
      src/views/customer/AddCustomer.vue
  2. 3
      src/views/user/User.vue

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

@ -366,6 +366,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.el-form-item{ .el-form-item{
margin-bottom: 0; margin-bottom: 0;
.el-radio.is-bordered+.el-radio.is-bordered{
margin-left: 0;
}
} }
</style> </style>

Loading…
Cancel
Save