|
|
@ -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() |
|
|
|