askbot-dragon 0.9.14 → 0.9.16
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
|
@@ -1261,11 +1261,10 @@ export default {
|
|
|
1261
1261
|
clear(options)
|
|
1262
1262
|
},
|
|
1263
1263
|
changeSelect(field){
|
|
1264
|
-
if ( field.formField.extInfo.selectType
|
|
1265
|
-
|
|
1264
|
+
if ( field.formField.extInfo.selectType !== '多选'){
|
|
1265
|
+
let arr = field.formField.extInfo.relationControlsId ? JSON.parse(JSON.stringify(field.formField.extInfo.relationControlsId)) : []
|
|
1266
|
+
this.associatedControlsCopy = [...this.associatedControlsCopy, ...arr];
|
|
1266
1267
|
}
|
|
1267
|
-
let arr = field.formField.extInfo.relationControlsId ? JSON.parse(JSON.stringify(field.formField.extInfo.relationControlsId)) : []
|
|
1268
|
-
this.associatedControlsCopy = [...this.associatedControlsCopy, ...arr];
|
|
1269
1268
|
this.$forceUpdate();
|
|
1270
1269
|
this.$set(this.fieldValue,field.fieldId,field.value);
|
|
1271
1270
|
this.formShow.form.formFieldRelation.forEach(item=>{
|
|
@@ -1276,7 +1275,10 @@ export default {
|
|
|
1276
1275
|
if (item.formField.extInfo && item.formField.extInfo.dependent){
|
|
1277
1276
|
for (let k in item.formField.extInfo.dependent){
|
|
1278
1277
|
if (k === field.fieldId && field.value !== item.formField.extInfo.dependent[k].input){
|
|
1279
|
-
item.value = item.formField.type === 'CHECKBOX' || item.formField.type === 'CASCADER' ? [] : ""
|
|
1278
|
+
item.value = item.formField.type === 'CHECKBOX' || item.formField.type === 'CASCADER' ? [] : "";
|
|
1279
|
+
if (this.extInfoFieldValue[item.fieldId]){
|
|
1280
|
+
this.$set(this.extInfoFieldValue,item.fieldId,[])
|
|
1281
|
+
}
|
|
1280
1282
|
}
|
|
1281
1283
|
}
|
|
1282
1284
|
}
|
package/src/components/tree.vue
CHANGED
|
@@ -108,7 +108,6 @@ export default {
|
|
|
108
108
|
setCascadeOption(){
|
|
109
109
|
let options = [];
|
|
110
110
|
let arr = []
|
|
111
|
-
console.debug('dataOptions',this.dataOptions)
|
|
112
111
|
if (this.dataOptions.extInfo && (this.dataOptions.extInfo.cascadeDown || this.dataOptions.extInfo.cascade)){
|
|
113
112
|
arr = this.dataOptions.extInfo.cascadeDown.options ? this.dataOptions.extInfo.cascadeDown.options :
|
|
114
113
|
(this.dataOptions.extInfo.cascadeDown[0] ? this.dataOptions.extInfo.cascadeDown[0].options :
|
|
@@ -146,6 +145,7 @@ export default {
|
|
|
146
145
|
let flag = null
|
|
147
146
|
for (let i = 0; i < options.length; i++) {
|
|
148
147
|
const optArr = options[i];
|
|
148
|
+
item.checked = false;
|
|
149
149
|
if(optArr.indexOf(item.value) !== -1) {
|
|
150
150
|
if(parent === null || item.children && item.children.length != 0) {
|
|
151
151
|
flag = true
|