|
@@ -287,6 +287,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> -->
|
|
</div> -->
|
|
|
|
+
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="dialogVisible=false">取消</el-button>
|
|
<el-button @click="dialogVisible=false">取消</el-button>
|
|
@@ -1207,6 +1208,7 @@
|
|
submitInsert() {
|
|
submitInsert() {
|
|
var form = {}
|
|
var form = {}
|
|
var ssR = this.upRepeat(this.insertForm.certJson)
|
|
var ssR = this.upRepeat(this.insertForm.certJson)
|
|
|
|
+ var trs = true
|
|
this.$refs.form1.validate(valid => {
|
|
this.$refs.form1.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.submitLoading = true;
|
|
this.submitLoading = true;
|
|
@@ -1218,6 +1220,19 @@
|
|
this.submitLoading = false;
|
|
this.submitLoading = false;
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
+ for(var s in this.insertForm.certJson) {
|
|
|
|
+ if(!this.insertForm.certJson[s].certDate || !this.insertForm.certJson[s].certId) {
|
|
|
|
+ trs = false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(!trs) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '证书未填写完整',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ });
|
|
|
|
+ this.submitLoading = false;
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
form = {
|
|
form = {
|
|
name: this.insertForm.name,
|
|
name: this.insertForm.name,
|
|
phone: this.insertForm.phone,
|
|
phone: this.insertForm.phone,
|
|
@@ -1241,9 +1256,10 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- // console.log(form, '提交的数据')
|
|
|
|
|
|
+ console.log(form, '提交的数据')
|
|
// return
|
|
// return
|
|
- if(!ssR) {
|
|
|
|
|
|
+ console.log(ssR, trs)
|
|
|
|
+ if(!ssR && trs) {
|
|
this.http.post( this.port.manage.insert, form,
|
|
this.http.post( this.port.manage.insert, form,
|
|
res => {
|
|
res => {
|
|
this.submitLoading = false;
|
|
this.submitLoading = false;
|