Commit 22aa4e41 authored by zhengke's avatar zhengke

修改

parent 189d7c84
...@@ -579,3 +579,16 @@ export function SetOrderChange(data) { ...@@ -579,3 +579,16 @@ export function SetOrderChange(data) {
}); });
} }
/**
* 保存分拆申请
*/
export function SetOrderSplit(data) {
return request({
url: '/OrderChange/SetOrderSplit',
method: 'post',
data
});
}
...@@ -299,7 +299,8 @@ ...@@ -299,7 +299,8 @@
<script> <script>
import { import {
getSchoolDropdown, getSchoolDropdown,
SetOrderChange SetOrderChange,
SetOrderSplit
} from '../../api/school/index' } from '../../api/school/index'
import { import {
GetClassTypeList GetClassTypeList
...@@ -515,20 +516,37 @@ ...@@ -515,20 +516,37 @@
}) })
return; return;
} }
SetOrderChange(this.transMsg).then(res => { if(this.transMsg.ChangeType==1){
if (res.Code == 1) { SetOrderChange(this.transMsg).then(res => {
this.$q.notify({ if (res.Code == 1) {
icon: 'iconfont icon-chenggong', this.$q.notify({
color: 'accent', icon: 'iconfont icon-chenggong',
timeout: 2000, color: 'accent',
message: '保存成功!', timeout: 2000,
position: 'top' message: '保存成功!',
}) position: 'top'
//调用父页面成功方法 })
this.$emit('success'); //调用父页面成功方法
this.IsShowContinueClassDialog = false this.$emit('success');
} this.IsShowContinueClassDialog = false
}) }
})
}else{
SetOrderSplit(this.transMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '保存成功!',
position: 'top'
})
//调用父页面成功方法
this.$emit('success');
this.IsShowContinueClassDialog = false
}
})
}
}, },
//获取校区列表 //获取校区列表
getSchool() { getSchool() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment