Commit f5771cd3 authored by xinzhedeai's avatar xinzhedeai

fix:人工巡检 必填添加

parent 4852e23d
...@@ -8,8 +8,8 @@ ENV = 'production' ...@@ -8,8 +8,8 @@ ENV = 'production'
# 若依管理系统/生产环境 # 若依管理系统/生产环境
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
# 正式环境 # 正式环境
# VUE_APP_BASE_URL = 'http://60.212.188.152:12100' VUE_APP_BASE_URL = 'http://182.92.170.89:10082'
# 测试环境 # 测试环境
VUE_APP_BASE_URL = 'http://192.168.3.226:9090' # VUE_APP_BASE_URL = 'http://192.168.3.226:9090'
...@@ -396,6 +396,15 @@ export default { ...@@ -396,6 +396,15 @@ export default {
this.watchDialog = true; this.watchDialog = true;
}, },
submitForm() { submitForm() {
if(!this.form.calibrationAuditName || !this.form.creatTime || !this.form.calibrationType || !this.form.ids.length){
this.$message({
message: "必填项不能为空",
type: "error",
});
return
}
console.log(this.form, "form"); console.log(this.form, "form");
if (this.form.id) { if (this.form.id) {
calibrationEdit(this.form).then((res) => { calibrationEdit(this.form).then((res) => {
......
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