Commit f61164a9 by xue_wengang

字典修改

parent 84336e26
...@@ -110,6 +110,7 @@ export default { ...@@ -110,6 +110,7 @@ export default {
props: [] props: []
}, },
fdId: "", fdId: "",
preCode: "",
} }
}, },
...@@ -117,7 +118,7 @@ export default { ...@@ -117,7 +118,7 @@ export default {
newValue() { newValue() {
var self = this; var self = this;
if (this.curItem.id != 'zcjddm' && this.curItem.codeOptions.length != 0) { if (this.curItem.id != 'zcjddm' && this.curItem.codeOptions.length != 0) {
if (this.curFormData[this.curItem.id] != '') { if (this.curFormData[this.curItem.id] != this.preCode) {
let value = this.queryTree(this.curItem.codeOptions, this.curFormData[this.curItem.id]); let value = this.queryTree(this.curItem.codeOptions, this.curFormData[this.curItem.id]);
this.codeTreeConfig.fieldItem = []; this.codeTreeConfig.fieldItem = [];
this.$set( this.$set(
...@@ -125,6 +126,7 @@ export default { ...@@ -125,6 +126,7 @@ export default {
this.curItem.id, this.curItem.id,
value[0] == undefined ? '' : this.curFormData[this.curItem.id] value[0] == undefined ? '' : this.curFormData[this.curItem.id]
); );
this.preCode = this.curFormData[this.curItem.id]
if (value && value.length > 1) { if (value && value.length > 1) {
var label = ''; var label = '';
value.forEach((singleValue, valueIndex) => { value.forEach((singleValue, valueIndex) => {
......
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