|
@@ -36,7 +36,7 @@ define(function (require) {
|
|
|
return {
|
|
|
xtype: 'dialog',
|
|
|
dialogId: 'dialogTugou',
|
|
|
- title: context.isEdit == 2 ? '增补修订需求' :(context.isEdit==3?'取消需求':'新增需求发布') ,
|
|
|
+ title: context.isEdit == 2 ? '增补修订需求' : (context.isEdit == 3 ? '取消需求' : '新增需求发布'),
|
|
|
width: '100%',
|
|
|
height: '100%',
|
|
|
onOpen: function () {
|
|
@@ -187,12 +187,15 @@ define(function (require) {
|
|
|
return;
|
|
|
}
|
|
|
console.log($form.formGet());
|
|
|
- if (isLoading === true) {
|
|
|
- return;
|
|
|
- }
|
|
|
- else {
|
|
|
- isLoading = true;
|
|
|
+ if (context.isEdit == 1) {
|
|
|
+ if (isLoading === true) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ isLoading = true;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
$.yvan.postForm($form, {
|
|
|
url: (context.isEdit == 1 ? api('/yeweihui/tgPublish') : (context.isEdit == 3 ? api('/yeweihui/updateStatus') : api('/yeweihui/tgStatus'))),
|
|
|
success: function (data) {
|