cloud-web-corejs 1.0.54-dev.37 → 1.0.54-dev.38
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
@@ -35,7 +35,7 @@
|
|
35
35
|
</label>
|
36
36
|
</el-popover>
|
37
37
|
<el-popover
|
38
|
-
:disabled="!value1 || cities.length==0"
|
38
|
+
:disabled="selectTopLevel || (!value1 || cities.length==0)"
|
39
39
|
placement="bottom"
|
40
40
|
width="486"
|
41
41
|
trigger="click"
|
@@ -55,7 +55,7 @@
|
|
55
55
|
</label>
|
56
56
|
</el-popover>
|
57
57
|
<el-popover
|
58
|
-
:disabled="!value2 || districts.length==0"
|
58
|
+
:disabled="selectTopLevel || (!value2 || districts.length==0)"
|
59
59
|
placement="bottom"
|
60
60
|
width="486"
|
61
61
|
trigger="click"
|
@@ -75,7 +75,7 @@
|
|
75
75
|
</label>
|
76
76
|
</el-popover>
|
77
77
|
<el-popover
|
78
|
-
:disabled="!value3 || counties.length == 0"
|
78
|
+
:disabled="selectTopLevel || (!value3 || counties.length == 0)"
|
79
79
|
placement="bottom"
|
80
80
|
width="486"
|
81
81
|
trigger="click"
|
@@ -175,7 +175,7 @@ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
|
175
175
|
|
176
176
|
export default {
|
177
177
|
name: 'areaDialog',
|
178
|
-
props: ['visiable', 'multi', 'rows', 'param'],
|
178
|
+
props: ['visiable', 'multi', 'rows', 'param', 'selectTopLevel'],
|
179
179
|
mixins: [selectDialogMixins],
|
180
180
|
created() {
|
181
181
|
this.initSetting();
|
@@ -329,7 +329,8 @@ export default {
|
|
329
329
|
url: USER_PREFIX + '/area/getChildren',
|
330
330
|
method: "post",
|
331
331
|
data: {
|
332
|
-
id: id
|
332
|
+
id: id,
|
333
|
+
enabled: true
|
333
334
|
},
|
334
335
|
success: res => {
|
335
336
|
// const {level} = node;
|
@@ -396,7 +397,18 @@ export default {
|
|
396
397
|
checkboxConfig: {
|
397
398
|
checkStrictly: true,
|
398
399
|
showHeader: this.selectMulti,
|
399
|
-
trigger: 'row'
|
400
|
+
trigger: 'row',
|
401
|
+
checkMethod: ({row}) => {
|
402
|
+
if (this.selectTopLevel) {
|
403
|
+
if (row.parent) {
|
404
|
+
return false;
|
405
|
+
} else {
|
406
|
+
return true;
|
407
|
+
}
|
408
|
+
}
|
409
|
+
|
410
|
+
return true;
|
411
|
+
}
|
400
412
|
}
|
401
413
|
}
|
402
414
|
};
|