Commit 4016de90 by 潘际乾

保存提示

parent a56b2f78
...@@ -22,6 +22,19 @@ export default { ...@@ -22,6 +22,19 @@ export default {
let vm = this.getVM(); let vm = this.getVM();
let result = await vm.save() let result = await vm.save()
console.log(result) console.log(result)
if (result.respCode == SUCCESS) {
this.$notify({
title: '成功',
message: '保存成功',
type: 'success'
});
} else {
this.$notify({
title: '失败',
message: '保存失败',
type: 'error'
});
}
}, },
async pedding(){ async pedding(){
let result = await this.getVM().pedding() let result = await this.getVM().pedding()
......
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
for (let i = 0; i < fields.length; i++) { for (let i = 0; i < fields.length; i++) {
const field = fields[i]; const field = fields[i];
if (field.prop === prop) { if (field.prop === prop) {
// select、checkbox使用change触发
if (field.$children[1].$children[0].$el.className.startsWith("el-select") || field.$children[1].$children[0].$el.className.startsWith("el-checkbox")) { if (field.$children[1].$children[0].$el.className.startsWith("el-select") || field.$children[1].$children[0].$el.className.startsWith("el-checkbox")) {
return "change"; return "change";
} }
......
...@@ -14,34 +14,39 @@ export default { ...@@ -14,34 +14,39 @@ export default {
* source:trnget.@0009.script * source:trnget.@0009.script
* recpan.recget * recpan.recget
*/ */
function checkTrnInrN1500() function checkTrnInrN1500(rule, value, callback)
{ {
callback()
} }
/** /**
* source:atpget.@0001.script * source:atpget.@0001.script
* atpget * atpget
*/ */
function checkAtpgetSdamodDadsndN100() function checkAtpgetSdamodDadsndN100(rule, value, callback)
{ {
callback()
} }
/** /**
* source:txmmod.@0009.script * source:txmmod.@0009.script
* recpan.inftxt * recpan.inftxt
*/ */
function checkTrnInftxtN100() function checkTrnInftxtN100(rule, value, callback)
{ {
callback()
} }
/** /**
* source:atpget.@0001.script * source:atpget.@0001.script
* recpan.atpget * recpan.atpget
*/ */
function checkRecpanAtpgetSdamodDadsndN100() function checkRecpanAtpgetSdamodDadsndN100(rule, value, callback)
{ {
callback()
} }
/** /**
* source:trnget.@0001.script * source:trnget.@0001.script
* recpan.recget * recpan.recget
*/ */
function checkRecpanRecgetSdamodDadsndN100() function checkRecpanRecgetSdamodDadsndN100(rule, value, callback)
{ {
callback()
} }
...@@ -175,7 +175,6 @@ export default { ...@@ -175,7 +175,6 @@ export default {
}, },
methods:{ methods:{
tabClick(vm){ tabClick(vm){
this.changeFormValidateDisabled(true)
// this.$refs.modelForm.validate(valid => { // this.$refs.modelForm.validate(valid => {
// if (valid){ // if (valid){
// console.log(1) // console.log(1)
......
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