Commit 7ba45521 authored by 黄奎's avatar 黄奎

页面修改

parent 5eaa4fe0
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
//有默认值 //有默认值
defaultArray: { defaultArray: {
handler(newValue) { handler(newValue) {
this.chooseTreeNodeArray = [];
if (this.defaultArray && this.defaultArray.length > 0) { if (this.defaultArray && this.defaultArray.length > 0) {
this.defaultArray.forEach(item => { this.defaultArray.forEach(item => {
if (item != '') { if (item != '') {
...@@ -128,7 +129,7 @@ ...@@ -128,7 +129,7 @@
var resultStr = ""; var resultStr = "";
if (this.resultObj && this.resultObj.length > 0) { if (this.resultObj && this.resultObj.length > 0) {
if (this.multiple) { if (this.multiple) {
let newarr = Array.from(new Set(this.resultObj))//数组去重 let newarr = Array.from(new Set(this.resultObj)) //数组去重
resultStr = newarr.toString(); resultStr = newarr.toString();
} else { } else {
resultStr = this.resultObj[0]; resultStr = this.resultObj[0];
......
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