askbot-dragon 0.7.96 → 0.7.97
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
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
</template>
|
|
215
215
|
<div
|
|
216
216
|
@click="lodeMore(item)"
|
|
217
|
-
v-if="
|
|
217
|
+
v-if="refNextPage[item.fieldId] && refNextPage[item.fieldId].hasNextPage"
|
|
218
218
|
style="width:100%;height:30px;display:flex;align-items: center;justify-content: center;color:#606266">
|
|
219
219
|
加载更多
|
|
220
220
|
</div>
|
|
@@ -486,6 +486,9 @@
|
|
|
486
486
|
label:'name'
|
|
487
487
|
}"
|
|
488
488
|
>
|
|
489
|
+
<template slot="popup-footer" v-if="refNextPage[item.fieldId] && refNextPage[item.fieldId].hasNextPage">
|
|
490
|
+
<span @click="lodeMore(item)">加载更多</span>
|
|
491
|
+
</template>
|
|
489
492
|
</select-popup>
|
|
490
493
|
</van-popup>
|
|
491
494
|
</div>
|
|
@@ -697,6 +700,7 @@ export default {
|
|
|
697
700
|
refTemplateList:{},
|
|
698
701
|
refList:{},
|
|
699
702
|
dataQuery:{},
|
|
703
|
+
refNextPage:{},
|
|
700
704
|
drawer:false,
|
|
701
705
|
detailField:{
|
|
702
706
|
formField:{}
|
|
@@ -1537,7 +1541,9 @@ export default {
|
|
|
1537
1541
|
SelectClear(fieldId) {
|
|
1538
1542
|
if(this.disableds === false){
|
|
1539
1543
|
let i = this.formShow.form.formFieldRelation.findIndex(item => { console.log(item.fieldId); return item.fieldId == fieldId })
|
|
1540
|
-
this.selectValues[this.formShow.form.formFieldRelation[i].fieldId] = ''
|
|
1544
|
+
this.selectValues[this.formShow.form.formFieldRelation[i].fieldId] = '';
|
|
1545
|
+
this.formShow.form.formFieldRelation[i].value = "";
|
|
1546
|
+
this.extInfoFieldValue[this.formShow.form.formFieldRelation[i].fieldId] = ""
|
|
1541
1547
|
this.$forceUpdate()
|
|
1542
1548
|
}
|
|
1543
1549
|
},
|
|
@@ -1886,7 +1892,7 @@ export default {
|
|
|
1886
1892
|
let fields = field.formField.type === 'REF' ? field.formField.extInfo.ref.field : field.formField.extInfo.ref.vars
|
|
1887
1893
|
if (visible) {
|
|
1888
1894
|
if (
|
|
1889
|
-
!this.refTemplateList[field.fieldId] || this.
|
|
1895
|
+
!this.refTemplateList[field.fieldId] || this.refNextPage[field.fieldId].hasNextPage
|
|
1890
1896
|
) {
|
|
1891
1897
|
this.$set(this.refTemplateList, field.fieldId, [])
|
|
1892
1898
|
!this.dataQuery[field.fieldId] && this.$set(this.dataQuery,field.fieldId, {
|
|
@@ -1903,7 +1909,8 @@ export default {
|
|
|
1903
1909
|
templateId:field.formField.extInfo.ref.source,
|
|
1904
1910
|
fieldId:fields,
|
|
1905
1911
|
field:field,
|
|
1906
|
-
dataQuery:this.dataQuery
|
|
1912
|
+
dataQuery:this.dataQuery,
|
|
1913
|
+
refNextPage:this.refNextPage
|
|
1907
1914
|
}
|
|
1908
1915
|
this.$emit('getTemplateList',param)
|
|
1909
1916
|
}
|
package/src/components/tree.vue
CHANGED
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
else if (this.dataOptions.extInfo.cascadeDown && this.dataOptions.extInfo.cascadeDown[0]){
|
|
100
100
|
this.dataTree = this.dataOptions.extInfo.cascadeDown[0].options
|
|
101
101
|
}
|
|
102
|
-
console.debug('dataTree',this.dataTree)
|
|
102
|
+
console.debug('dataTree',this.dataOptions,this.dataTree)
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
</script>
|