标准清单 检索中心

This commit is contained in:
宋伟佳
2021-06-24 18:00:23 +08:00
parent de7578716b
commit 2e19c04a9f
14 changed files with 2870 additions and 2423 deletions
@@ -346,7 +346,7 @@ export default {
editTable(item) {
sessionStorage.setItem("accessRow", JSON.stringify(item));
this.$router.push({
name: "ListOfStandardsAndRegulationsDetails",
name: "OtherAddEit",
query: {
id: item.id
}
@@ -349,7 +349,7 @@ export default {
editTable(item) {
sessionStorage.setItem("accessRow", JSON.stringify(item));
this.$router.push({
name: "ListOfStandardsAndRegulationsDetails",
name: "ProjectAddEit",
query: {
id: item.id
}
@@ -544,6 +544,7 @@ export default {
// region: '', // 区域
countryArea: '', // 国家
keywords: '', // 关键字
detailedListName: '', //清单名称
applyArctic: '', // 能源种类
// category: '', // 所属专业领域
// applyArctic: '', // 适用车型
@@ -917,12 +918,7 @@ export default {
// 点击清空查询条件 按钮事件
clearSearchLaws () {
this.sarAccessInfoSearch.advanceSearchVOStr = ''
// this.sarAccessInfoSearch.applyArctic = '' // 适用车型
this.sarAccessInfoSearch.applyArctic = '' // 能源种类
// this.sarAccessInfoSearch.category = '' // 所属专业领域
// this.sarAccessInfoSearch.applyAuth = '' // 认证类型
// this.sarAccessInfoSearch.country = '' // 国家
// this.sarAccessInfoSearch.region = '' // 区域
this.sarAccessInfoSearch.keywords = '' // 关键字
this.sarAccessInfoSearch.accessSarType = 'SKILL' // 清单类型
this.sarAccessInfoSearch.askType = '' // 监管类型
@@ -935,7 +931,6 @@ export default {
dataSourceChange (val) {
this.isListType = val === 'TEMP'
this.sarAccessInfoSearch.advanceSearchVOStr = ''
this.$refs.advancedQuery.clearAllSearch()
// 国内标准法规可查字段
if (val === 'INLAND_STAND'){
this.twoOptions=[
@@ -1459,6 +1454,7 @@ export default {
sarAccessEO.inforlist = JSON.stringify(rowlist)
sarAccessEO.adminInfoList = JSON.stringify(rowList2)
sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
sarAccessEO.detailedListName = sarAccessEO.detailedListName.join(',')
// 判断是否有附件
if (this.fileInfoList.length > 0) {
let relateFile = []
@@ -2215,7 +2211,7 @@ export default {
this.$nextTick(() => {
this.sarAccessEO.type = accessRow.type
this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
this.sarAccessEO.accessContent = accessRow.accessContent
this.sarAccessEO.detailedListName = accessRow.detailedListName
this.sarAccessEO.id = accessRow.id
this.sarAccessEO.remark = accessRow.remark || ''
this.sarAccessEO.relateFile = accessRow.relateFile
@@ -115,7 +115,7 @@
fixed="left"
label="标准号">
<template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
</template>
</el-table-column>
<el-table-column
@@ -125,7 +125,7 @@
fixed="left"
>
<template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column>
<el-table-column
@@ -134,7 +134,7 @@
fixed="left"
label="英文名称">
<template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standEnName }}</a>
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standEnName }}</a>
</template>
</el-table-column>
<el-table-column
@@ -190,7 +190,7 @@
</el-form>
<span slot="footer" class="demo-drawer-footer">
<el-button class="common-button-default" icon="el-icon-close" @click="cancal">取消</el-button>
<el-button type="primary" round class="common-button-primary" icon="el-icon-check"
<el-button type="primary" class="common-button-primary" icon="el-icon-check"
@click="exportTestItem">提交</el-button>
</span>
</el-dialog>
@@ -222,6 +222,8 @@
</template>
<script>
import { interfaceUrl } from "@/sysConfig";
export default {
name: "AccessStandardDetails",
data() {
@@ -234,19 +236,18 @@ export default {
heightShow: true,
dataLoading: false,
standardForm: {
standNumber: '',
standName: '',
responseUnit:'',
standNumber: "",
standName: "",
responseUnit: "",
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
pageSize: this.$store.getters.userInfo.configContent
},
page: 1,
// pageSize: this.$store.getters.userInfo.configContent,
total: 0,
stateList: [], // 标准状态列表
activeName: "SKILL", // 当前激活
// 导出文件模态框控制,和文件名称
saveExportType: "",
exportModelFlag: false,
exportName: "",
standType: "INLAND",
@@ -255,6 +256,9 @@ export default {
loading: false,
accessSarType: "",
selectedList: [],
pageId: '',
// 导出文件模态框控制,和文件名称
saveExportType: "",
depNode: [], // 部门树
sarAccessEO: {},
fileInfoList: [],
@@ -302,14 +306,16 @@ export default {
},
// 根据准入id查询标准法规详情
selectInfobyAccid() {
console.log('309',this.pageId);
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardForm,
id: this.pageId,
}, {
_this: this
}, res => {
this.standinfoList = res.data
this.total = res.data.total
},e => {
this.standinfoList = res.data;
this.total = res.data.total;
}, e => {
});
},
@@ -330,12 +336,17 @@ export default {
// 重置搜索
resetSelect() {
this.standardForm = {
standName: '',
responseUnit:'',
}
standName: "",
responseUnit: ""
};
this.selectInfobyAccid();
},
exportStandard() {
if (this.selectedList.length > 0) {
this.saveExportType = "apart";
} else {
this.saveExportType = "all";
}
this.exportName = "";
this.exportModelFlag = true;
},
@@ -344,7 +355,23 @@ export default {
this.exportModelFlag = false;
},
// 导出确定功能
exportTestItem() {
//确认导出
exportTestItem () {
if(this.saveExportType === 'apart') {
if (this.selectedList != null && this.selectedList != ''){
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?' +
'exportType' + this.saveExportType + '&ids=' + this.selectedList.join(',') + '&exportName=' + this.exportName
window.open(exportURL)
this.$message.success('导出信息成功')
}
} else if (this.saveExportType === 'all') {
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?' +
'exportType' + this.saveExportType + '&id=' + this.pageId + '&exportName=' + this.exportName
window.open(exportURL)
this.$message.success('导出信息成功')
}
this.exportModelFlag = false
this.selectedList = []
},
// tab页切换
handleClick(tab, event) {
@@ -355,8 +382,11 @@ export default {
this.selectInfobyAccid();
},
// 修改成表格样式后,选择项勾选改变
standSelectChange(selected) {
this.selectedList = selected;
standSelectChange (data) {
this.selectedList = []
for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id)
}
},
pageChange(page) {
this.standardForm.page = page;
@@ -506,12 +536,12 @@ export default {
},
mounted() {
this.$nextTick(() => {
let accessRow = JSON.parse(sessionStorage.getItem("accessRow"));
this.pageId = accessRow.id
this.sarAccessEO = accessRow;
this.selectInfobyAccid();
this.getOrgTreeSource();
let accessRow = JSON.parse(sessionStorage.getItem("accessRow"));
this.sarAccessEO = accessRow;
this.getFileInfo();
console.log("1818", this.selectInfobyAccid());
});
// 从数据库中查询各下拉框数据
@@ -920,7 +920,6 @@ export default {
dataSourceChange (val) {
this.isListType = val === 'TEMP'
this.sarAccessInfoSearch.advanceSearchVOStr = ''
this.$refs.advancedQuery.clearAllSearch()
// 国内标准法规可查字段
if (val === 'INLAND_STAND'){
this.twoOptions=[
@@ -1441,9 +1440,6 @@ export default {
rowList2.push(this.sarAccessInfoListADMIN[i])
}
let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
sarAccessEO.inforlist = JSON.stringify(rowlist)
sarAccessEO.adminInfoList = JSON.stringify(rowList2)
sarAccessEO.country = sarAccessEO.countryArea.join(',')
// 判断是否有附件
if (this.fileInfoList.length > 0) {
let relateFile = []
@@ -1486,6 +1482,7 @@ export default {
this.$message.error('请检查表单是否填写正确')
}
})
},
// 查询数据搜索 table 数据
selectLawsStands () {
@@ -2199,8 +2196,10 @@ export default {
let accessRow = JSON.parse(sessionStorage.getItem('accessRow'))
this.$nextTick(() => {
this.sarAccessEO.type = accessRow.type
this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
this.sarAccessEO.accessContent = accessRow.accessContent
// this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
// this.sarAccessEO.accessContent = accessRow.accessContent
this.sarAccessEO.detailedListName = accessRow.detailedListName //清单名称
this.sarAccessEO.detailedList = accessRow.detailedList //清单类别
this.sarAccessEO.id = accessRow.id
this.sarAccessEO.remark = accessRow.remark || ''
this.sarAccessEO.relateFile = accessRow.relateFile
@@ -920,7 +920,6 @@ export default {
dataSourceChange (val) {
this.isListType = val === 'TEMP'
this.sarAccessInfoSearch.advanceSearchVOStr = ''
this.$refs.advancedQuery.clearAllSearch()
// 国内标准法规可查字段
if (val === 'INLAND_STAND'){
this.twoOptions=[
@@ -1443,7 +1442,6 @@ export default {
let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
sarAccessEO.inforlist = JSON.stringify(rowlist)
sarAccessEO.adminInfoList = JSON.stringify(rowList2)
sarAccessEO.country = sarAccessEO.countryArea.join(',')
// 判断是否有附件
if (this.fileInfoList.length > 0) {
let relateFile = []
@@ -1709,7 +1707,7 @@ export default {
this.addEntryForm.XGBMName = this.addEntryForm.XGBMName || this.addEntryForm.xgbmname
this.addEntryForm.XGBM = this.addEntryForm.XGBM || this.addEntryForm.xgbm
// this.addEntryForm.GXHBQ = this.addEntryForm.GXHBQ || this.addEntryForm.gxhbq
this.addEntryForm.applyArctic = this.addEntryForm.applyArctic ? this.addEntryForm.applyArctic.split(',') : []
// this.addEntryForm.applyArctic = this.addEntryForm.applyArctic ? this.addEntryForm.applyArctic.split(',') : []
// this.addEntryForm.GXHBQ = this.addEntryForm.gxhbq ? this.addEntryForm.gxhbq.split(',') : []
// this.addEntryForm.GXHBQ = ''
// delete this.addEntryForm.gxhbq
@@ -1932,7 +1930,7 @@ export default {
this.sarStandardsInfoEO.XMPGJSName = item.proEssessUser // 项目评估人员
this.sarStandardsInfoEO.standNature = item.natureId // 标准性质
this.sarStandardsInfoEO.NRDBZFGQD = this.sarAccessEO.country // 国家地区
this.sarStandardsInfoEO.CLLX = item.applyArctic ? item.applyArctic.split(',') : []
// this.sarStandardsInfoEO.CLLX = item.applyArctic ? item.applyArctic.split(',') : []
this.sarStandardsInfoEO.YQLX = item.askType
this.sarStandardsInfoEO.GXHBQ = item.GXHBQ ? item.GXHBQ.split(',') : []
this.sarStandardsInfoEO.ZRLX = item.askNature ? item.askNature.split(',') : []
@@ -2199,8 +2197,9 @@ export default {
let accessRow = JSON.parse(sessionStorage.getItem('accessRow'))
this.$nextTick(() => {
this.sarAccessEO.type = accessRow.type
this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
this.sarAccessEO.accessContent = accessRow.accessContent
// this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
this.sarAccessEO.detailedListName = accessRow.detailedListName //清单名称
this.sarAccessEO.projectName = accessRow.projectName //项目名称
this.sarAccessEO.id = accessRow.id
this.sarAccessEO.remark = accessRow.remark || ''
this.sarAccessEO.relateFile = accessRow.relateFile