Commit d031c72e by 张立顺

fix 去掉交互

1 parent 0fd5d326
...@@ -1745,17 +1745,12 @@ export default { ...@@ -1745,17 +1745,12 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
let labels = []; let labels = [];
let rawLeaf = null;
const cascader = this.$refs.brandModelCascader; const cascader = this.$refs.brandModelCascader;
if (cascader && typeof cascader.getCheckedNodes === "function") { if (cascader && typeof cascader.getCheckedNodes === "function") {
const checked = cascader.getCheckedNodes(); const checked = cascader.getCheckedNodes();
const cn = checked && checked[0]; const cn = checked && checked[0];
if (cn && cn.pathNodes && cn.pathNodes.length) { if (cn && cn.pathNodes && cn.pathNodes.length) {
labels = cn.pathNodes.map(pn => (pn.label != null ? String(pn.label) : "")); labels = cn.pathNodes.map(pn => (pn.label != null ? String(pn.label) : ""));
const lastPn = cn.pathNodes[cn.pathNodes.length - 1];
const lastData = lastPn && lastPn.data;
if (lastData && lastData.raw !== undefined)
rawLeaf = lastData.raw;
} }
} }
...@@ -1767,12 +1762,6 @@ export default { ...@@ -1767,12 +1762,6 @@ export default {
d.carSeriesName = labels[2] !== undefined ? labels[2] : undefined; d.carSeriesName = labels[2] !== undefined ? labels[2] : undefined;
d.carTypeName = labels[3] !== undefined ? labels[3] : undefined; d.carTypeName = labels[3] !== undefined ? labels[3] : undefined;
if (rawLeaf && rawLeaf.guidePrice != null && rawLeaf.guidePrice !== "") {
const gp = Number(rawLeaf.guidePrice);
if (Number.isFinite(gp))
this.baseForm.guidePrice = String(gp);
}
if (this.$refs.baseFormRef) if (this.$refs.baseFormRef)
this.$refs.baseFormRef.validateField("brandModel"); this.$refs.baseFormRef.validateField("brandModel");
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!