代码提交-3-13
This commit is contained in:
@@ -133,13 +133,15 @@
|
||||
// console.log();
|
||||
}
|
||||
},
|
||||
submit(ref) {
|
||||
this.$refs[ref].validate().then(res => {
|
||||
this.SafetyDeclarationTable.declarationImg = this.joinList()
|
||||
console.log("提交成功");
|
||||
console.log("this.SafetyDeclarationTable", this.SafetyDeclarationTable);
|
||||
addSafetyDeclaration(this.SafetyDeclarationTable).then(res => {
|
||||
uni.showToast({
|
||||
submit(ref) {
|
||||
this.$refs[ref].validate().then(res => {
|
||||
// 绑定当前用户为申报人
|
||||
this.SafetyDeclarationTable.applyUser = this.$store.getters.name
|
||||
this.SafetyDeclarationTable.declarationImg = this.joinList()
|
||||
console.log("提交成功");
|
||||
console.log("this.SafetyDeclarationTable", this.SafetyDeclarationTable);
|
||||
addSafetyDeclaration(this.SafetyDeclarationTable).then(res => {
|
||||
uni.showToast({
|
||||
title: '提交成功',
|
||||
icon: 'success', // 成功图标
|
||||
duration: 1000 // 持续时间为2000ms
|
||||
|
||||
Reference in New Issue
Block a user