askbot-dragon 1.4.65 → 1.4.67
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
|
@@ -1323,7 +1323,14 @@ export default {
|
|
|
1323
1323
|
clearOptionStruct() {
|
|
1324
1324
|
// this.fieldValue,this.cascadeDetail.field.id
|
|
1325
1325
|
console.log(this.detailField,'this.cascadeDetail',this.fieldValue[this.detailField.fieldId]);
|
|
1326
|
-
let options =
|
|
1326
|
+
let options = [];
|
|
1327
|
+
if (this.detailField.formField.extInfo.cascadeDown && this.detailField.formField.extInfo.cascadeDown.options){
|
|
1328
|
+
options = this.detailField.formField.extInfo.cascadeDown.options
|
|
1329
|
+
} else if (this.detailField.formField.extInfo.cascade){
|
|
1330
|
+
options = this.detailField.formField.extInfo.cascade
|
|
1331
|
+
} else if (this.detailField.formField.extInfo.cascadeDown && this.detailField.formField.extInfo.cascadeDown[0]){
|
|
1332
|
+
options = this.detailField.formField.extInfo.cascadeDown[0].options
|
|
1333
|
+
}
|
|
1327
1334
|
let clear = (options, parent) => {
|
|
1328
1335
|
for (let index = 0; index < options.length; index++) {
|
|
1329
1336
|
const opt = options[index];
|
|
@@ -1427,11 +1434,12 @@ export default {
|
|
|
1427
1434
|
setOptions(extInfo){
|
|
1428
1435
|
let options = []
|
|
1429
1436
|
console.debug('cascadeDown',extInfo)
|
|
1430
|
-
if (extInfo.cascadeDown.options){
|
|
1437
|
+
if (extInfo.cascadeDown && extInfo.cascadeDown.options){
|
|
1431
1438
|
options = extInfo.cascadeDown.options
|
|
1432
1439
|
return options
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1440
|
+
} else if (extInfo.cascade){
|
|
1441
|
+
options = extInfo.cascade
|
|
1442
|
+
} else if (extInfo.cascadeDown && extInfo.cascadeDown[0]){
|
|
1435
1443
|
options = extInfo.cascadeDown[0].options
|
|
1436
1444
|
}
|
|
1437
1445
|
return options
|
|
@@ -2076,10 +2084,10 @@ export default {
|
|
|
2076
2084
|
if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascade){
|
|
2077
2085
|
cascader = this.formShow.form.formFieldRelation[i].formField.extInfo.cascade
|
|
2078
2086
|
}
|
|
2079
|
-
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options){
|
|
2087
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown && this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options){
|
|
2080
2088
|
cascader = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options
|
|
2081
2089
|
}
|
|
2082
|
-
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0]){
|
|
2090
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown && this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0]){
|
|
2083
2091
|
cascader = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0].options
|
|
2084
2092
|
}
|
|
2085
2093
|
cascader.forEach(item=>{
|
|
@@ -2285,10 +2293,10 @@ export default {
|
|
|
2285
2293
|
if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascade){
|
|
2286
2294
|
this.data = this.formShow.form.formFieldRelation[i].formField.extInfo.cascade
|
|
2287
2295
|
}
|
|
2288
|
-
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options){
|
|
2296
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown && this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options){
|
|
2289
2297
|
this.data = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options
|
|
2290
2298
|
}
|
|
2291
|
-
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0]){
|
|
2299
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown && this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0]){
|
|
2292
2300
|
this.data = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0].options
|
|
2293
2301
|
}
|
|
2294
2302
|
this.column[0].values = Object.values(this.data).map(function (e) {
|
package/src/components/tree.vue
CHANGED
|
@@ -131,7 +131,7 @@ export default {
|
|
|
131
131
|
computed: {
|
|
132
132
|
dataTree() {
|
|
133
133
|
let arr = []
|
|
134
|
-
if (this.dataOptions.extInfo.cascadeDown.options){
|
|
134
|
+
if (this.dataOptions.extInfo.cascadeDown && this.dataOptions.extInfo.cascadeDown.options){
|
|
135
135
|
arr = this.dataOptions.extInfo.cascadeDown.options
|
|
136
136
|
}
|
|
137
137
|
else if (this.dataOptions.extInfo.cascade){
|
|
@@ -147,8 +147,8 @@ export default {
|
|
|
147
147
|
let options = [];
|
|
148
148
|
let arr = []
|
|
149
149
|
if (this.dataOptions.extInfo && (this.dataOptions.extInfo.cascadeDown || this.dataOptions.extInfo.cascade)){
|
|
150
|
-
arr = this.dataOptions.extInfo.cascadeDown.options ? this.dataOptions.extInfo.cascadeDown.options :
|
|
151
|
-
(this.dataOptions.extInfo.cascadeDown[0] ? this.dataOptions.extInfo.cascadeDown[0].options :
|
|
150
|
+
arr = this.dataOptions.extInfo.cascadeDown && this.dataOptions.extInfo.cascadeDown.options ? this.dataOptions.extInfo.cascadeDown.options :
|
|
151
|
+
(this.dataOptions.extInfo.cascadeDown && this.dataOptions.extInfo.cascadeDown[0] ? this.dataOptions.extInfo.cascadeDown[0].options :
|
|
152
152
|
(this.dataOptions.extInfo.cascade ? this.dataOptions.extInfo.cascade: []));
|
|
153
153
|
}
|
|
154
154
|
if (this.dataOptions.extInfo && this.dataOptions.extInfo.dependent && JSON.stringify(this.dataOptions.extInfo.dependent)!=='{}'){
|