Commit 4016de90 by 潘际乾

保存提示

parent a56b2f78
......@@ -22,6 +22,19 @@ export default {
let vm = this.getVM();
let result = await vm.save()
console.log(result)
if (result.respCode == SUCCESS) {
this.$notify({
title: '成功',
message: '保存成功',
type: 'success'
});
} else {
this.$notify({
title: '失败',
message: '保存失败',
type: 'error'
});
}
},
async pedding(){
let result = await this.getVM().pedding()
......
......@@ -70,6 +70,7 @@ export default {
for (let i = 0; i < fields.length; i++) {
const field = fields[i];
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")) {
return "change";
}
......
......@@ -14,34 +14,39 @@ export default {
* source:trnget.@0009.script
* recpan.recget
*/
function checkTrnInrN1500()
function checkTrnInrN1500(rule, value, callback)
{
callback()
}
/**
* source:atpget.@0001.script
* atpget
*/
function checkAtpgetSdamodDadsndN100()
function checkAtpgetSdamodDadsndN100(rule, value, callback)
{
callback()
}
/**
* source:txmmod.@0009.script
* recpan.inftxt
*/
function checkTrnInftxtN100()
function checkTrnInftxtN100(rule, value, callback)
{
callback()
}
/**
* source:atpget.@0001.script
* recpan.atpget
*/
function checkRecpanAtpgetSdamodDadsndN100()
function checkRecpanAtpgetSdamodDadsndN100(rule, value, callback)
{
callback()
}
/**
* source:trnget.@0001.script
* recpan.recget
*/
function checkRecpanRecgetSdamodDadsndN100()
function checkRecpanRecgetSdamodDadsndN100(rule, value, callback)
{
callback()
}
......@@ -149,7 +149,7 @@ export default {
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules:null,
rules:null,
codes:{
cur:CodeTable.cur,
mytype:CodeTable.mytype,
......@@ -175,7 +175,6 @@ export default {
},
methods:{
tabClick(vm){
this.changeFormValidateDisabled(true)
// this.$refs.modelForm.validate(valid => {
// if (valid){
// 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