|
@@ -119,10 +119,32 @@ export default {
|
|
|
name: '',
|
|
|
};
|
|
|
}
|
|
|
- this.orgAddFlag = true;
|
|
|
+ // this.orgAddFlag = true;
|
|
|
},
|
|
|
setPower(row) {},
|
|
|
setOrgManager(row) {},
|
|
|
+ submitOrg() {
|
|
|
+ const _this = this;
|
|
|
+ _this.$refs.formDialog.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.loading = true;
|
|
|
+ createOrg(_this.org_Info)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.status === 1) {
|
|
|
+ this.loading = false;
|
|
|
+ _this.queryOrgList({ cur_page: _this.cur_page, page_capacity: _this.page_capacity });
|
|
|
+ _this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '创建成功!',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|