doway-coms 1.9.5 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
:replaceFields="replaceFields"
|
|
35
35
|
:dropdownMatchSelectWidth="dropdownMatchSelectWidth"
|
|
36
36
|
:treeDefaultExpandAll="treeDefaultExpandAll"
|
|
37
|
+
@change="changeData"
|
|
37
38
|
:size="size"
|
|
38
39
|
:allowClear="allowClear"
|
|
39
40
|
@focus="searchData"
|
|
@@ -257,8 +258,7 @@ export default {
|
|
|
257
258
|
}
|
|
258
259
|
},
|
|
259
260
|
mounted() {
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
this.searchData()
|
|
262
262
|
if (this.treeData.length) {
|
|
263
263
|
this.currentValue = this.row[this.linkedField]
|
|
264
264
|
} else {
|
|
@@ -280,6 +280,7 @@ export default {
|
|
|
280
280
|
* 查询数据
|
|
281
281
|
*/
|
|
282
282
|
searchData() {
|
|
283
|
+
console.log(this.$refs.treeSelectView)
|
|
283
284
|
let tempExp = {
|
|
284
285
|
operator: 'or',
|
|
285
286
|
expressions: [],
|
|
@@ -357,6 +358,12 @@ export default {
|
|
|
357
358
|
this.$set(this.row, this.linkedField, value)
|
|
358
359
|
this.$set(this.row, this.field, node.title)
|
|
359
360
|
},
|
|
361
|
+
changeData(value) {
|
|
362
|
+
if (!value) {
|
|
363
|
+
this.$set(this.row, this.linkedField, '')
|
|
364
|
+
this.$set(this.row, this.field, '')
|
|
365
|
+
}
|
|
366
|
+
},
|
|
360
367
|
},
|
|
361
368
|
}
|
|
362
369
|
</script>
|