标准清单数据列表进入详情页返回
This commit is contained in:
@@ -88,7 +88,7 @@ export default {
|
||||
this.tabValue = this.list[0].name;
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
const toName = ["ListOfStandardsAndRegulationsDetails", "Details", "ProjectAddEit", "OtherAddEit"];
|
||||
const toName = ["ListOfStandardsAndRegulationsDetails", "AccessStandardDetails", "ProjectAddEit", "OtherAddEit"];
|
||||
// 离开此页面之前,记录tabName以便返回使用,如果将要访问的页面不是这两个,则清空tabName
|
||||
if (toName.includes(to.name)) {
|
||||
this.$store.commit("SET_ACCESS_STANDARD_REG_TABS", this.tabValue);
|
||||
|
||||
@@ -561,6 +561,7 @@
|
||||
<el-date-picker
|
||||
v-model.trim="editRowData.putTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
@@ -568,6 +569,7 @@
|
||||
<el-date-picker
|
||||
v-model.trim="editRowData.zccssrqgj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
@@ -575,6 +577,7 @@
|
||||
<el-date-picker
|
||||
v-model.trim="editRowData.xcxssrqgj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
||||
@@ -15,10 +15,9 @@
|
||||
<div v-show="heightShow" class="transition-box">
|
||||
<p class="transition-box-p" v-if="sarAccessEO.sortKey === '1'">
|
||||
<label class="transition-box-label">国家/地区:</label>
|
||||
<span class="transition-box-span" v-if="sarAccessEO.countryArea !== null && sarAccessEOInfo > 0">
|
||||
<span>{{ sarAccessEO.countryArea }}</span>
|
||||
<span class="transition-box-span">
|
||||
{{ sarAccessEO.countryArea }}
|
||||
</span>
|
||||
<span class="transition-box-span" v-else>{{ countryAreaMap[sarAccessEO.countryArea] }}</span>
|
||||
</p>
|
||||
<p v-else></p>
|
||||
<p class="transition-box-p">
|
||||
@@ -71,26 +70,6 @@
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
<!-- <el-input v-model="standardForm.responseUnit" v-show="false"></el-input>
|
||||
<el-popover placement="bottom" popper-class="user-dept-popper" trigger="click">
|
||||
<el-input
|
||||
v-model="standardForm.responseUnit"
|
||||
placeholder="请选择部门"
|
||||
readonly
|
||||
id="depBtnsAuth"
|
||||
slot="reference"
|
||||
/>
|
||||
<div class="api">
|
||||
<laws-tree :zNodes="depNode"
|
||||
deptSelect
|
||||
treeDivId="depTreeAuth"
|
||||
@treeDblClick="(treeId, treeNode) => treeDblAuthDepartClick(treeId, treeNode)"
|
||||
:editable="false"
|
||||
ref="depTreeAuth"
|
||||
class="ztree" style="height: 300px;overflow: auto">
|
||||
</laws-tree>
|
||||
</div>
|
||||
</el-popover>-->
|
||||
</el-form-item>
|
||||
<el-form-item label="" class="search-item btn-box">
|
||||
<el-button v-btn-permission="'670dd74a8469a6232a0762c69b575775'" class="common-button-primary" type="primary" size="small" @click="selectProductBtn">查询
|
||||
@@ -142,7 +121,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="能源类型" >
|
||||
<el-form-item label="能源类型" label-width="68px" >
|
||||
<el-select
|
||||
class="showBox"
|
||||
v-model="standardFormList.nylx"
|
||||
@@ -158,7 +137,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="责任部门" >
|
||||
<el-form-item label="责任部门" label-width="68px" >
|
||||
<el-select
|
||||
class="showBox"
|
||||
v-model="standardFormList.zrbm"
|
||||
@@ -174,7 +153,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="适用产品线" >
|
||||
<el-form-item label="适用产品线" label-width="86px" >
|
||||
<el-select
|
||||
class="showBox"
|
||||
v-model="standardFormList.sycpx"
|
||||
@@ -464,7 +443,7 @@ export default {
|
||||
dialogColor: false,
|
||||
dialogType: "",
|
||||
color: "",
|
||||
isShow: false
|
||||
isShow: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -519,25 +498,7 @@ export default {
|
||||
},
|
||||
|
||||
back() {
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations',
|
||||
})
|
||||
/* if (this.sarAccessEO.sortKey === '1') {
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations',
|
||||
menuName: '国家/地区清单'
|
||||
})
|
||||
} else if(this.sarAccessEO.sortKey === '2') {
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations',
|
||||
menuName: '项目类清单'
|
||||
})
|
||||
} else {
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations',
|
||||
menuName: '其他清单'
|
||||
})
|
||||
}*/
|
||||
this.$router.push({name: 'AccessStandardsAndRegulations'})
|
||||
// this.$router.push(this.$store.state.detailMap)
|
||||
// this.$store.commit('setDetailMap', '')
|
||||
},
|
||||
@@ -774,7 +735,6 @@ export default {
|
||||
let accessRow = JSON.parse(sessionStorage.getItem("accessRow"));
|
||||
this.pageId = accessRow.id
|
||||
this.sarAccessEO = accessRow;
|
||||
console.log(this.sarAccessEO)
|
||||
this.selectInfobyAccid();
|
||||
this.getOrgTreeSource();
|
||||
this.getFileInfo();
|
||||
|
||||
Reference in New Issue
Block a user