|
@@ -391,7 +391,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { addadmin } from "../../api/organization/orgAddMan";
|
|
|
+import { addadmin,checkApp } from "../../api/organization/orgAddMan";
|
|
|
import {
|
|
|
getOssInterimCredentials,
|
|
|
GotOssAccessConfig,
|
|
@@ -1284,38 +1284,42 @@ export default {
|
|
|
addadmin(this.ruleForm)
|
|
|
.then(() => {
|
|
|
// this.cancel();
|
|
|
+ debugger
|
|
|
+ var commonUser={};
|
|
|
+ commonUser.phone = this.ruleForm.staffMobilePhone
|
|
|
+ checkApp(commonUser).then(()=>{
|
|
|
+ })
|
|
|
this.$message({
|
|
|
- message: "保存成功",
|
|
|
- type: "success",
|
|
|
- showClose: true
|
|
|
- });
|
|
|
-
|
|
|
- if (flag) {
|
|
|
- this.$router.go(-1);
|
|
|
- } else {
|
|
|
- this.clearZhiwu();
|
|
|
- this.checklist = [
|
|
|
- {
|
|
|
- value: ""
|
|
|
- }
|
|
|
- ];
|
|
|
- this.checklist1 = [
|
|
|
- {
|
|
|
- value: ""
|
|
|
- }
|
|
|
- ];
|
|
|
- this.seleteShipList = [];
|
|
|
- this.ruleForm.staffName = "";
|
|
|
- this.ruleForm.deptId = "";
|
|
|
- this.url =
|
|
|
- "http://winsea-saas-test.oss-cn-shanghai.aliyuncs.com/default-logo.png";
|
|
|
-
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.ruleForm.clearValidate();
|
|
|
- this.$refs.ruleForm.resetFields();
|
|
|
+ message: "保存成功",
|
|
|
+ type: "success",
|
|
|
+ showClose: true
|
|
|
});
|
|
|
- }
|
|
|
- this.loading = false;
|
|
|
+ if (flag) {
|
|
|
+ this.$router.go(-1);
|
|
|
+ } else {
|
|
|
+ this.clearZhiwu();
|
|
|
+ this.checklist = [
|
|
|
+ {
|
|
|
+ value: ""
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ this.checklist1 = [
|
|
|
+ {
|
|
|
+ value: ""
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ this.seleteShipList = [];
|
|
|
+ this.ruleForm.staffName = "";
|
|
|
+ this.ruleForm.deptId = "";
|
|
|
+ this.url =
|
|
|
+ "http://winsea-saas-test.oss-cn-shanghai.aliyuncs.com/default-logo.png";
|
|
|
+
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.ruleForm.clearValidate();
|
|
|
+ this.$refs.ruleForm.resetFields();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.loading = false;
|
|
|
})
|
|
|
.catch(code => {
|
|
|
this.loading = false;
|