|
@@ -287,6 +287,31 @@ const submitForm = async (formEl) => {
|
|
|
|
|
|
});
|
|
|
|
|
|
+ } else {
|
|
|
+ // console.log('error submit!', fields)
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 更新
|
|
|
+ * @param formEl
|
|
|
+ */
|
|
|
+const updateForm = async (formEl) => {
|
|
|
+ if (!formEl) return
|
|
|
+ await formEl.validate((valid, fields) => {
|
|
|
+ if (valid) {
|
|
|
+
|
|
|
+ // console.log(
|
|
|
+ // "detailsDb", detailsDb.value
|
|
|
+ // );
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
// console.log('error submit!', fields)
|
|
|
}
|
|
@@ -515,7 +540,7 @@ onMounted(function() {
|
|
|
</el-form>
|
|
|
<div class="dialogFoot">
|
|
|
<el-button color="#EAEAEA" @click="state.showDetails = false" style="margin-right: 0.6rem">取消</el-button>
|
|
|
- <el-button color="#2C68FF" @click="submitForm(ruleFormRef)">更新</el-button>
|
|
|
+ <el-button color="#2C68FF" @click="updateForm(ruleFormRef)">更新</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|