Commit f6956e2f by 王栋源

wdy

parent 8fed5753
...@@ -38,7 +38,7 @@ module.exports={ ...@@ -38,7 +38,7 @@ module.exports={
"auth":{ "auth":{
"add":[ "add":[
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true}, {"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
{"icon":"el-icon-save","title":"提交","type":"default","key":"submit","isOnForm":true}, {"icon":"el-icon-save","title":"提交","type":"default","key":"alisubmit","isOnForm":true},
], ],
"edit":[ "edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true}, {"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
......
...@@ -25,9 +25,10 @@ ...@@ -25,9 +25,10 @@
validateformmethod(rule, value, cbk){ validateformmethod(rule, value, cbk){
return cbk(); return cbk();
}, },
onDlgFormClick(k, model){\ onDlgFormClick(k, model){
var that=this; var that=this;
if (k = "submit") { if (k = "alisubmit") {
debugger;
this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) { this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) {
if (d.status > -1) { if (d.status > -1) {
$("[name='grdid']").show(); $("[name='grdid']").show();
...@@ -39,10 +40,6 @@ ...@@ -39,10 +40,6 @@
}else{ }else{
$("[name='grdid']").show(); $("[name='grdid']").show();
$("[name='frmid']").hide(); $("[name='frmid']").hide();
that.$message({
type: 'warning',
message: '提交失败!'
});
} }
}) })
} }
......
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