From df231da241b9f19c06d3f1a6184fc44ae0edd44e Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 21 Oct 2021 14:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4,=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E6=96=B0=E5=A2=9E=E5=AE=A2=E6=88=B7=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=96=B0=E5=A2=9E=E8=B6=85=E7=BA=A7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/customer/AddCustomer.vue | 36 +++++++++++++++--------------- src/views/user/User.vue | 3 +++ 2 files changed, 21 insertions(+), 18 deletions(-) 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 {