diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index 49c6a111..44f99509 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -80,6 +80,61 @@ + + + + + + + + + + + + + + + + + + { + res.results.forEach((item) => { + let obj = {}; + Object.assign(obj, item); + obj.value = ''; + that.testitems.push(obj); + }) + }); + }, //显示 open(mode = "add") { let that = this; @@ -362,6 +430,13 @@ export default { if (valid) { that.isSaveing = true; that.form.mgroup = that.mgroup; + if(that.testitems.length>0){ + let oinfo_json = {}; + that.testitems.forEach((item) => { + oinfo_json[item.id] = item.value; + }) + that.form.oinfo_json = oinfo_json; + } that.$API.wpm.mlog.quick.req(that.form).then((res) => { if(that.bwItemForms.length>0&&that.batchCountCando!==that.bwItemForms.length){ that.bwItemForms.forEach(item=>{