标准法规清单
This commit is contained in:
@@ -237,13 +237,13 @@
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standNumber"
|
||||
prop="code"
|
||||
show-overflow-tooltip
|
||||
fixed="left"
|
||||
width="180px"
|
||||
label="标准号">
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</a>
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{scope.row.standSortShow}} {{ scope.row.standNumber }}-{{scope.row.standYear}}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -370,13 +370,13 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standNumber"
|
||||
prop="code"
|
||||
show-overflow-tooltip
|
||||
width="180px"
|
||||
fixed="left"
|
||||
label="标准号">
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</a>
|
||||
<a @click="handlePreview(scope.row)">{{scope.row.standSortShow}} {{ scope.row.standNumber }}-{{scope.row.standYear}}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -676,6 +676,7 @@ export default {
|
||||
editRowData: {
|
||||
id: '',
|
||||
standName: '',
|
||||
standSortShow:'',
|
||||
standEnName: '',
|
||||
typeApplicable: '',
|
||||
nylx: '',
|
||||
@@ -715,7 +716,7 @@ export default {
|
||||
],
|
||||
detailedListName: [
|
||||
{required: true, message: '清单名称不能为空', trigger: 'blur'},
|
||||
{type: 'string', max: 100, message: '表单名称不能超过100个字符', trigger: 'blur'}
|
||||
{type: 'string', max: 100, message: '清单名称不能超过100个字符', trigger: 'blur'}
|
||||
]
|
||||
},
|
||||
disabledFlag: false,
|
||||
@@ -740,7 +741,7 @@ export default {
|
||||
dataSourceOptions: [
|
||||
{value: 'INLAND_STAND', label: '国内标准法规'},
|
||||
{value: 'FOREIGN_STAND', label: '海外标准法规'},
|
||||
{value: 'FOREIGN_LAWS', label: '国内外政策'},
|
||||
//{value: 'FOREIGN_LAWS', label: '国内外政策'},
|
||||
// {value: 'BUSINESS', label: '企业标准 '},
|
||||
{value: 'TEMP', label: '标准法规清单 '}
|
||||
],
|
||||
@@ -877,6 +878,7 @@ export default {
|
||||
// country: 'CN', // 适用区域
|
||||
standSort: '', // 标准类别
|
||||
standNumber: '', // 标准编号
|
||||
standSortShow:'',
|
||||
standYear: '', // 标准年份
|
||||
standName: '', // 中文名称
|
||||
standEnName: '', // 英文名称
|
||||
@@ -897,6 +899,7 @@ export default {
|
||||
// country: 'CN', // 适用区域
|
||||
standSort: '', // 标准类别
|
||||
standNumber: '', // 标准编号
|
||||
standSortShow:'',
|
||||
standYear: '', // 标准年份
|
||||
standName: '', // 中文名称
|
||||
standEnName: '', // 英文名称
|
||||
@@ -1322,7 +1325,7 @@ export default {
|
||||
editTghisRow(row) {
|
||||
this.rowList = row
|
||||
this.editRowData = this.rowList
|
||||
this.editRowData.standNumber = this.rowList.standSortShow + this.rowList.standNumber
|
||||
this.editRowData.standNumber = this.rowList.standSortShow + this.rowList.standNumber + '-' + this.rowList.standYear
|
||||
this.drawerEdit = true
|
||||
},
|
||||
// 抽屉取消按钮
|
||||
@@ -1452,7 +1455,7 @@ export default {
|
||||
loading: 'loadData'
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
this.$message.success('编辑成功')
|
||||
//this.$message.success('编辑成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
@@ -1896,12 +1899,12 @@ export default {
|
||||
})
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
let routerName = item.sarType === 'FOREIGN_LAWS' ? 'OtherLawsDetails' : 'OtherStandardDetails'
|
||||
handlePreview (data) {
|
||||
let routerName = data.sarType === 'FOREIGN_LAWS' ? 'OtherLawsDetails' : 'OtherStandardDetails'
|
||||
let routeUrl = this.$router.resolve({
|
||||
name: routerName,
|
||||
params: {
|
||||
id: item.resId,
|
||||
id: data.id,
|
||||
pageType: this.sarAccessInfoSearch.dataSource
|
||||
}
|
||||
})
|
||||
|
||||
@@ -212,14 +212,13 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standNumber"
|
||||
prop="code"
|
||||
fixed="left"
|
||||
width="180px"
|
||||
align="center"
|
||||
label="标准号">
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.resId" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
|
||||
<span v-else>{{ scope.row.standNumber }}</span>
|
||||
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -227,12 +226,18 @@
|
||||
label="中文名称"
|
||||
width="180px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
align="center"
|
||||
width="180px"
|
||||
label="英文名称">
|
||||
<template slot-scope="scope">
|
||||
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standEnName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="typeApplicable"
|
||||
@@ -656,12 +661,13 @@ export default {
|
||||
window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview(item) {
|
||||
handlePreview(data) {
|
||||
debugger
|
||||
let routeUrl = this.$router.resolve({
|
||||
name: "OtherStandardDetails",
|
||||
params: {
|
||||
id: item.resId,
|
||||
pageType: item.sarType
|
||||
id: data.id,
|
||||
pageType: data.sarType
|
||||
}
|
||||
});
|
||||
window.open(routeUrl.href, "_blank");
|
||||
|
||||
@@ -577,7 +577,7 @@ export default {
|
||||
{required: true, message: '国内/海外不能为空', trigger: 'change'}
|
||||
],
|
||||
detailedList: [
|
||||
{required: true, message: '清单类别不能为空', trigger: 'change'}
|
||||
{required: true, message: '清单类别不能为空', trigger: 'blur'}
|
||||
],
|
||||
detailedListName: [
|
||||
{required: true, message: '清单名称不能为空', trigger: 'blur'},
|
||||
|
||||
+2
-2
@@ -572,11 +572,11 @@ export default {
|
||||
],
|
||||
projectName: [
|
||||
{required: true, message: '项目名称不能为空', trigger: 'blur'},
|
||||
{type: 'string', max: 100, message: '表单名称不能超过100个字符', trigger: 'blur'}
|
||||
{type: 'string', max: 100, message: '项目名称不能超过100个字符', trigger: 'blur'}
|
||||
],
|
||||
detailedListName: [
|
||||
{required: true, message: '清单名称不能为空', trigger: 'blur'},
|
||||
{type: 'string', max: 100, message: '表单名称不能超过100个字符', trigger: 'blur'}
|
||||
{type: 'string', max: 100, message: '清单名称不能超过100个字符', trigger: 'blur'}
|
||||
]
|
||||
},
|
||||
disabledFlag: false,
|
||||
|
||||
Reference in New Issue
Block a user