国家地区清单详情页展示字段
This commit is contained in:
@@ -3177,7 +3177,6 @@ export default {
|
|||||||
displayLocation.forEach(location => {
|
displayLocation.forEach(location => {
|
||||||
// 动态属性字段-FBGBJBD 单独添加至基础信息
|
// 动态属性字段-FBGBJBD 单独添加至基础信息
|
||||||
const list = displayLocation.filter(item => item.label === '过程稿件');
|
const list = displayLocation.filter(item => item.label === '过程稿件');
|
||||||
console.log()
|
|
||||||
if (location.label === '基础信息' && list && list.length > 0) {
|
if (location.label === '基础信息' && list && list.length > 0) {
|
||||||
if (!list[0].child) {
|
if (!list[0].child) {
|
||||||
location['child1'] = []
|
location['child1'] = []
|
||||||
@@ -3207,7 +3206,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const child = location.child || []
|
const child = location.child || []
|
||||||
const one = []
|
const one = []
|
||||||
const half = []
|
const half = []
|
||||||
@@ -3232,7 +3230,6 @@ export default {
|
|||||||
location.showAll = false
|
location.showAll = false
|
||||||
})
|
})
|
||||||
console.log(displayLocation)
|
console.log(displayLocation)
|
||||||
|
|
||||||
this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list', {
|
this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list', {
|
||||||
id: this.$route.params.id
|
id: this.$route.params.id
|
||||||
}, {
|
}, {
|
||||||
@@ -3240,6 +3237,31 @@ export default {
|
|||||||
}, res => {
|
}, res => {
|
||||||
displayLocation.map(item => {
|
displayLocation.map(item => {
|
||||||
if (item.value === '2URVBGR2Y4UG77KZ5YPL') {
|
if (item.value === '2URVBGR2Y4UG77KZ5YPL') {
|
||||||
|
item.child.forEach(items =>{
|
||||||
|
let accessCountry = JSON.parse(sessionStorage.getItem("accessCountry"));
|
||||||
|
if (accessCountry.country === undefined) {
|
||||||
|
accessCountry.country = '文本'
|
||||||
|
}
|
||||||
|
if (accessCountry.ssrq === undefined) {
|
||||||
|
accessCountry.ssrq = '-'
|
||||||
|
}
|
||||||
|
if (accessCountry.zccssrqgj === undefined) {
|
||||||
|
accessCountry.zccssrqgj = '-'
|
||||||
|
}
|
||||||
|
if (accessCountry.xcxssrqgj === undefined) {
|
||||||
|
accessCountry.xcxssrqgj = '-'
|
||||||
|
}
|
||||||
|
if(items.attrField === 'SSRQ') {
|
||||||
|
items.attrName = '实施日期' + '(' + accessCountry.country + ')' + ':'
|
||||||
|
item.value = accessCountry.ssrq
|
||||||
|
} else if (items.attrField === 'ZCCSSRQ') {
|
||||||
|
items.attrName = '在产车实施日期' + '(' + accessCountry.country + ')' + ':'
|
||||||
|
item.value = accessCountry.zccssrqgj
|
||||||
|
} else if(items.attrField === 'XCXSSRQ') {
|
||||||
|
items.attrName = '新车型实施日期' + '(' + accessCountry.country + ')' + ':'
|
||||||
|
item.value = accessCountry.xcxssrqgj
|
||||||
|
}
|
||||||
|
})
|
||||||
for (let key in res.data) {
|
for (let key in res.data) {
|
||||||
item.one.push({
|
item.one.push({
|
||||||
attrName: key,
|
attrName: key,
|
||||||
|
|||||||
@@ -418,7 +418,8 @@ export default {
|
|||||||
dialogColor: false,
|
dialogColor: false,
|
||||||
dialogType: "",
|
dialogType: "",
|
||||||
color: "",
|
color: "",
|
||||||
isShow: false
|
isShow: false,
|
||||||
|
countryAreaShow: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -654,11 +655,19 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(data) {
|
handlePreview(data) {
|
||||||
|
console.log(this.countryAreaShow)
|
||||||
|
let item = {
|
||||||
|
country: this.countryAreaShow,
|
||||||
|
ssrq: data.ssrq,
|
||||||
|
xcxssrqgj: data.xcxssrqgj,
|
||||||
|
zccssrqgj: data.zccssrqgj
|
||||||
|
}
|
||||||
|
sessionStorage.setItem("accessCountry", JSON.stringify(item));
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
name: "OtherStandardDetails",
|
name: "OtherStandardDetails",
|
||||||
params: {
|
params: {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
pageType: data.standType
|
pageType: data.standType,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, "_blank");
|
||||||
@@ -773,6 +782,7 @@ export default {
|
|||||||
let accessRow = JSON.parse(sessionStorage.getItem("accessRow"));
|
let accessRow = JSON.parse(sessionStorage.getItem("accessRow"));
|
||||||
this.pageId = accessRow.id;
|
this.pageId = accessRow.id;
|
||||||
this.sarAccessEO = accessRow;
|
this.sarAccessEO = accessRow;
|
||||||
|
this.countryAreaShow = accessRow.countryAreaShow
|
||||||
this.selectInfobyAccid();
|
this.selectInfobyAccid();
|
||||||
this.getOrgTreeSource();
|
this.getOrgTreeSource();
|
||||||
this.getFileInfo();
|
this.getFileInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user