|
@@ -347,14 +347,15 @@ export default {
|
|
|
} else if (item.subEqValue) {
|
|
|
item.dataType = '2';
|
|
|
}
|
|
|
- const del =
|
|
|
- localStorage
|
|
|
- .getItem('zskDelDict')
|
|
|
- .match(
|
|
|
- new RegExp(this.firstPlace.checkedType + '-\\d+' + '-\\d+', 'g')
|
|
|
- ) || [];
|
|
|
+
|
|
|
// disable
|
|
|
if (this.form.parHasSub && this.firstPlace) {
|
|
|
+ const del =
|
|
|
+ localStorage
|
|
|
+ .getItem('zskDelDict')
|
|
|
+ .match(
|
|
|
+ new RegExp(this.firstPlace.checkedType + '-\\d+' + '-\\d+', 'g')
|
|
|
+ ) || [];
|
|
|
if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
|
|
|
this.$set(item, 'disabled', false);
|
|
|
if (del.length > 0) {
|
|
@@ -365,11 +366,7 @@ export default {
|
|
|
const screenArr = subobj.subMenuList.filter(item => {
|
|
|
return !types[3].includes(item.code);
|
|
|
});
|
|
|
- this.$set(
|
|
|
- item,
|
|
|
- 'baseTermTypeList',
|
|
|
- screenArr
|
|
|
- );
|
|
|
+ this.$set(item, 'baseTermTypeList', screenArr);
|
|
|
}
|
|
|
} else {
|
|
|
this.$set(item, 'disabled', true);
|