Merge branch 'fix_foton_20231213' into 'master'

Fix foton 20231213

See merge request laws-foton-slrs/foton-laws-system-front!142
This commit is contained in:
高嵩
2024-01-06 04:15:25 +00:00
2 changed files with 4541 additions and 4413 deletions
File diff suppressed because it is too large Load Diff
+136 -141
View File
@@ -21,10 +21,12 @@
</p> </p>
<div class="transition-box-p"> <div class="transition-box-p">
<label class="transition-box-label">附件</label> <label class="transition-box-label">附件</label>
<div class="file-box" v-if="fileList.length > 0"> <div v-if="fileList.length > 0" class="file-box">
<p v-for="item in fileList" <p
:key="item.id"> v-for="item in fileList"
<a @click="openFileInPdf(item.id, item.name)" target="_blank" style="color: #409eff">{{ item.name }}</a> :key="item.id"
>
<a target="_blank" style="color: #409eff" @click="openFileInPdf(item.id, item.name)">{{ item.name }}</a>
<!-- <!--
<i <i
title="下载" title="下载"
@@ -41,7 +43,6 @@
<!-- />--> <!-- />-->
</p> </p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@@ -53,14 +54,13 @@
import CustomOrg from '@/components/CustomFormComponents/OrgTree' import CustomOrg from '@/components/CustomFormComponents/OrgTree'
import { dateFormat } from '@/common/date' import { dateFormat } from '@/common/date'
// import RelatedTermsSelect from './components/RelatedTermsSelect' // import RelatedTermsSelect from './components/RelatedTermsSelect'
import RelatedTermsSelect from "@/pages/details/otherStandardDetails/components/RelatedTermsSelect"; import RelatedTermsSelect from '@/pages/details/otherStandardDetails/components/RelatedTermsSelect';
import { getBusStandFileByAttId } from 'api/process' import { getBusStandFileByAttId } from 'api/process'
import {dicTypeData} from "api/unqualProcess"; import { dicTypeData } from 'api/unqualProcess';
import { onlyOfficeUrl, kkFileViewUrl } from '@/sysConfig' import { onlyOfficeUrl, kkFileViewUrl } from '@/sysConfig'
export default { export default {
name: 'domesticDetails', name: 'DomesticDetails',
components: { components: {
PutQuestionButton, PutQuestionButton,
CustomSVPPS, CustomSVPPS,
@@ -84,6 +84,7 @@
return value return value
} }
}, },
props: {},
data () { data () {
return { return {
screenWidth: document.body.offsetWidth - 141, screenWidth: document.body.offsetWidth - 141,
@@ -413,8 +414,88 @@
standMap: {} standMap: {}
} }
}, },
props: {}, computed: {
titleShow () {
return (this.sarStandardsInfoEO.standSortShow || '') + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear + '《' + this.sarStandardsInfoEO.standName + '》' + '标准详情'
},
titleHidden () {
return (this.sarStandardsInfoEO.standSortShow || '') + this.sarStandardsInfoEO.standNumber + '《' + this.sarStandardsInfoEO.standName + '》' + '标准详情'
},
visibleBtn () {
return this.$route.name === 'DomesticStandardDetails'
},
sarType () {
return this.$route.query.pageType
},
standNum () {
const item = this.sarStandardsInfoEO
if (item.standYear) {
return `${item.standSort} ${item.standNumber}-${item.standYear}`
} else {
return `${item.standSort} ${item.standNumber}`
}
},
standId () {
const item = this.sarStandardsInfoEO
return item.id
}
},
watch: {}, watch: {},
/* created() {
dicTypeData().then(res => {
// 能源类型数据字典
this.CycxOptions = res.data.CLLX
})
},*/
async mounted () {
const that = this
window.onresize = () => {
return (() => {
window.screenWidth = document.body.offsetWidth
that.$store.commit('width', window.screenWidth)
that.screenWidth = window.screenWidth - 141
window.screenHeight = document.documentElement.clientHeight
that.$store.commit('height', window.screenHeight)
that.screenHeight = window.screenHeight
that.objs.bodyWidth = window.screenWidth
})()
}
const external = localStorage.getItem('external');
if(external !== undefined && external !== null) {
this.externalStatus = external
}
this.sarStandardsInfoEO.id = this.$route.query.id
await this.selectStandMessage()
this.standItemEO.standId = this.$route.query.id
// 从数据库中查询各下拉框数据
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
this.CycxOptions = res.data.CLLX
this.applyArcticOptions.options = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车辆类型”
this.emergyKindOptions = res.data.ENERGYTYPES
this.requestOptions = res.data.REQUESTTYPE
this.BZFGGXOUIUJ = res.data.BZFGGXOUIUJ // 企标覆盖关系
this.setMap(res.data.WBZTCLASS) // 标准状态
this.setMap(res.data.SARPROPERTY) // 标准性质
}, e => {
})
/**
* 自定义鼠标滚轮事件
* chrome and ie
*/
window.addEventListener('mousewheel', this.handleScroll, false)
// firefox
window.addEventListener('DOMMouseScroll', this.handleScroll, false)
},
destroyed () {
window.removeEventListener('mousewheel', this.handleScroll, false)
window.removeEventListener('DOMMouseScroll', this.handleScroll, false)
sessionStorage.removeItem('displayLocation')
window.onresize = null
this.tableHeight = ''
},
methods: { methods: {
handleChangeList (data) { handleChangeList (data) {
this.handleList = data this.handleList = data
@@ -474,7 +555,7 @@
} else return false; } else return false;
}, },
ocrFunction (file) { ocrFunction (file) {
return "ocr" return 'ocr'
}, },
FormatDate (date) { FormatDate (date) {
return moment(date).format('YYYY-MM-DD'); return moment(date).format('YYYY-MM-DD');
@@ -487,7 +568,7 @@
}) })
}, },
statusClick () { statusClick () {
let routeUrl = this.$router.resolve({ const routeUrl = this.$router.resolve({
name: 'standInvolveProjectTwo', name: 'standInvolveProjectTwo',
query: { query: {
resId: this.sarStandardsInfoEO.id resId: this.sarStandardsInfoEO.id
@@ -609,10 +690,10 @@
this.listVO.public = false this.listVO.public = false
}, },
beforeUpload1 (file) { beforeUpload1 (file) {
var filename = file.name const filename = file.name
var index1 = filename.lastIndexOf('.') const index1 = filename.lastIndexOf('.')
var index2 = filename.length const index2 = filename.length
var fileSuffix = filename.substring(index1, index2) const fileSuffix = filename.substring(index1, index2)
if (fileSuffix === '.pdf' || fileSuffix === '.doc' || fileSuffix === '.docx' || fileSuffix === '.PDF' || fileSuffix === '.ppt' || fileSuffix === '.pptx') { if (fileSuffix === '.pdf' || fileSuffix === '.doc' || fileSuffix === '.docx' || fileSuffix === '.PDF' || fileSuffix === '.ppt' || fileSuffix === '.pptx') {
return true return true
} else { } else {
@@ -639,17 +720,17 @@
} }
}, },
removeOneFile1 (file, fileList) { removeOneFile1 (file, fileList) {
let ids = this.addForm.fileId.split(',') const ids = this.addForm.fileId.split(',')
if (file.response) { if (file.response) {
let fileIds = file.response.data.id const fileIds = file.response.data.id
let newIdList = this.removeAaary(ids, fileIds) const newIdList = this.removeAaary(ids, fileIds)
this.addForm.fileId = newIdList.join(',') this.addForm.fileId = newIdList.join(',')
} }
}, },
// 删除数组中的某个对象 // 删除数组中的某个对象
removeAaary (_arr, _obj) { removeAaary (_arr, _obj) {
var length = _arr.length const length = _arr.length
for (var i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (_arr[i] === _obj) { if (_arr[i] === _obj) {
if (i === 0) { if (i === 0) {
_arr.shift() // 删除并返回数组的第一个元素 _arr.shift() // 删除并返回数组的第一个元素
@@ -799,10 +880,10 @@
this.addForm.content = row.content this.addForm.content = row.content
this.knowId = row.id this.knowId = row.id
this.addForm.fileId = row.file this.addForm.fileId = row.file
let fileList = row.fileList const fileList = row.fileList
if (fileList != null && fileList.length > 0) { if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) { for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}} const obj = { name: '', response: {} }
obj.name = fileList[i].oldFileName obj.name = fileList[i].oldFileName
obj.response.data = fileList[i] obj.response.data = fileList[i]
this.defaultFileList.push(obj) this.defaultFileList.push(obj)
@@ -813,7 +894,7 @@
// 删除知识点 // 删除知识点
deleteknowledge (type, row) { deleteknowledge (type, row) {
// type = 2为批量删除 1为单条删除 // type = 2为批量删除 1为单条删除
var ids = '' let ids = ''
if (type === 2) { if (type === 2) {
if (this.knowIdList.length === 0) { if (this.knowIdList.length === 0) {
this.$message.warning('请选择要删除的数据') this.$message.warning('请选择要删除的数据')
@@ -881,7 +962,7 @@
fileList = res.data fileList = res.data
if (fileList != null && fileList.length > 0) { if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) { for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}} const obj = { name: '', response: {} }
obj.name = fileList[i].oldFileName obj.name = fileList[i].oldFileName
obj.response.data = fileList[i] obj.response.data = fileList[i]
this.defaultFileList.push(obj) this.defaultFileList.push(obj)
@@ -893,10 +974,10 @@
}, },
// 新增、编辑上传文件之前的钩子 // 新增、编辑上传文件之前的钩子
beforeUpload (file) { beforeUpload (file) {
var filename = file.name const filename = file.name
var index1 = filename.lastIndexOf('.') const index1 = filename.lastIndexOf('.')
var index2 = filename.length const index2 = filename.length
var fileSuffix = filename.substring(index1, index2) const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名 // const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式 // 判断上传文件格式
// if (fileSuffix === 'pdf' || fileSuffix === 'PDF' || fileSuffix === 'doc' || fileSuffix === 'docx' || fileSuffix === 'ppt' || fileSuffix === 'pptx') { // if (fileSuffix === 'pdf' || fileSuffix === 'PDF' || fileSuffix === 'doc' || fileSuffix === 'docx' || fileSuffix === 'ppt' || fileSuffix === 'pptx') {
@@ -936,10 +1017,10 @@
}, },
removeOneFile (file, fileList) { removeOneFile (file, fileList) {
// this.sarStandardsInfoEO[this.currentFileList] = this.removeAaary(this.sarStandardsInfoEO[this.currentFileList], file.response.data) // this.sarStandardsInfoEO[this.currentFileList] = this.removeAaary(this.sarStandardsInfoEO[this.currentFileList], file.response.data)
let ids = this.sarStandardsInfoEO[this.currentFile].split(',') const ids = this.sarStandardsInfoEO[this.currentFile].split(',')
if (file.response) { if (file.response) {
let fileIds = file.response.data.id const fileIds = file.response.data.id
let newIdList = this.removeAaary(ids, fileIds) const newIdList = this.removeAaary(ids, fileIds)
let newStr = '' let newStr = ''
if (newIdList != null && newIdList.length > 0) { if (newIdList != null && newIdList.length > 0) {
for (let i = 0; i < newIdList.length; i++) { for (let i = 0; i < newIdList.length; i++) {
@@ -982,7 +1063,7 @@
saveOrUpdateStandItem () { saveOrUpdateStandItem () {
this.$refs['sarStandardsItemForm'].validate((valid) => { this.$refs['sarStandardsItemForm'].validate((valid) => {
if (valid) { if (valid) {
let nowstandItem = JSON.parse(JSON.stringify(this.standItemEO)) const nowstandItem = JSON.parse(JSON.stringify(this.standItemEO))
nowstandItem.applyArctic = nowstandItem.applyArctic.join(',') nowstandItem.applyArctic = nowstandItem.applyArctic.join(',')
nowstandItem.standId = this.standItemSearch.standId nowstandItem.standId = this.standItemSearch.standId
nowstandItem.fileType = this.fileType nowstandItem.fileType = this.fileType
@@ -1045,7 +1126,7 @@
choiceZRRS (type, title, id) { choiceZRRS (type, title, id) {
this.nodeList2 = [] this.nodeList2 = []
if (id) { if (id) {
let ids = id.split(',') const ids = id.split(',')
let idList = [] let idList = []
ids.forEach(item => { ids.forEach(item => {
let a, b let a, b
@@ -1144,7 +1225,7 @@
}, },
// 请求上传的文件信息 // 请求上传的文件信息
getFile (fileId) { getFile (fileId) {
this.$http.get("att/attFile/getMultiFileInfos", { this.$http.get('att/attFile/getMultiFileInfos', {
fileIds: fileId fileIds: fileId
}, { }, {
_this: this _this: this
@@ -1199,10 +1280,10 @@
this.$http.get('sys/org/getTree', {}, { _this: this }, this.$http.get('sys/org/getTree', {}, { _this: this },
res => { res => {
if (res.ok) { if (res.ok) {
let treeNode = [] const treeNode = []
res.data.map((item, index) => { res.data.map((item, index) => {
let treeItem = {} const treeItem = {}
for (let key in item) { for (const key in item) {
if (key === 'orgName') { if (key === 'orgName') {
treeItem.name = item[key] treeItem.name = item[key]
} else { } else {
@@ -1221,10 +1302,10 @@
this.$http.get('sys/org/getTree', {}, { _this: this }, this.$http.get('sys/org/getTree', {}, { _this: this },
res => { res => {
if (res.ok) { if (res.ok) {
let treeNode = [] const treeNode = []
res.data.map((item, index) => { res.data.map((item, index) => {
let treeItem = {} const treeItem = {}
for (let key in item) { for (const key in item) {
if (key === 'orgName') { if (key === 'orgName') {
treeItem.name = item[key] treeItem.name = item[key]
} else { } else {
@@ -1240,7 +1321,7 @@
}, },
// 查询相近标准 // 查询相近标准
selectCloseStand (id) { selectCloseStand (id) {
let obj = {} const obj = {}
obj.id = id obj.id = id
let url = '' let url = ''
url = 'lawss/sarStandardsInfo/selectCloseStand' url = 'lawss/sarStandardsInfo/selectCloseStand'
@@ -1269,11 +1350,11 @@
}) })
}, },
openFileInPdf (attId, oldFileName) { openFileInPdf (attId, oldFileName) {
this.$preview(attId) // this.$preview(attId)
/*
// 判断是否是图片格式,图片格式不预览,直接下载 // 判断是否是图片格式,图片格式不预览,直接下载
let index1 = oldFileName.lastIndexOf('.') const index1 = oldFileName.lastIndexOf('.')
let index2 = oldFileName.length const index2 = oldFileName.length
let fileSuffix = oldFileName.substring(index1, index2) let fileSuffix = oldFileName.substring(index1, index2)
// 把后缀转大写 // 把后缀转大写
if (fileSuffix !== undefined && fileSuffix !== null) { if (fileSuffix !== undefined && fileSuffix !== null) {
@@ -1291,7 +1372,6 @@
const nowTime = new Date().getTime() const nowTime = new Date().getTime()
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) // window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
window.open(kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)) + '&watermarkTxt=' + encodeURIComponent(this.$store.getters.userInfo.userName)); window.open(kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)) + '&watermarkTxt=' + encodeURIComponent(this.$store.getters.userInfo.userName));
} }
} }
}).catch(e => { }).catch(e => {
@@ -1300,7 +1380,6 @@
}else { }else {
this.$message.warning('PDG文件,不支持手机端预览') this.$message.warning('PDG文件,不支持手机端预览')
} }
*/
}, },
showItemsModel (attField) { showItemsModel (attField) {
if (attField) { if (attField) {
@@ -1333,8 +1412,8 @@
this.selectedItemList = [] this.selectedItemList = []
if (res.ok) { if (res.ok) {
res.data.list.forEach(item => { res.data.list.forEach(item => {
let k = (item.applyArctic || "").split(',') const k = (item.applyArctic || '').split(',')
for (let i in this.applyArcticOptions.options) { for (const i in this.applyArcticOptions.options) {
for (let m = 0; m < k.length; m++) { for (let m = 0; m < k.length; m++) {
if (this.applyArcticOptions.options[i].value === k[m]) { if (this.applyArcticOptions.options[i].value === k[m]) {
k[m] = this.applyArcticOptions.options[i].label k[m] = this.applyArcticOptions.options[i].label
@@ -1357,7 +1436,7 @@
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
if(this.$route.query.pageType === 'INLAND_STAND') { if(this.$route.query.pageType === 'INLAND_STAND') {
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber const standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
this.$http.get('sarStandardsInfo/sar-standards-info/logInvalidDownload1', { this.$http.get('sarStandardsInfo/sar-standards-info/logInvalidDownload1', {
standNumber: standNumber, standNumber: standNumber,
standName: this.sarStandardsInfoEO.standName standName: this.sarStandardsInfoEO.standName
@@ -1366,7 +1445,7 @@
}, res => { }, res => {
}) })
}else{ }else{
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber const standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
this.$http.get('sarStandardsInfo/sar-standards-info/logForeignDownload1', { this.$http.get('sarStandardsInfo/sar-standards-info/logForeignDownload1', {
standNumber: standNumber, standNumber: standNumber,
standName: this.sarStandardsInfoEO.standEnName standName: this.sarStandardsInfoEO.standEnName
@@ -1375,13 +1454,12 @@
}, res => { }, res => {
}) })
} }
}, },
/** /**
* @Description: 跳转流程 * @Description: 跳转流程
*/ */
processCenterClick (item) { processCenterClick (item) {
let routeUrl = this.$router.resolve({ const routeUrl = this.$router.resolve({
name: 'ProcessDetail', name: 'ProcessDetail',
query: { query: {
prcNum: item prcNum: item
@@ -1526,7 +1604,6 @@
let fileList = [] let fileList = []
item.defaultFileList = [] item.defaultFileList = []
if (this.standShowItemEO.tackTime != null && this.standShowItemEO.tackTime !== '') { if (this.standShowItemEO.tackTime != null && this.standShowItemEO.tackTime !== '') {
this.standShowItemEO.tackTime = this.standShowItemEO.tackTime.split(' ')[0] this.standShowItemEO.tackTime = this.standShowItemEO.tackTime.split(' ')[0]
} }
@@ -1545,7 +1622,7 @@
fileList = res.data fileList = res.data
if (fileList != null && fileList.length > 0) { if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) { for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}} const obj = { name: '', response: {} }
obj.name = fileList[i].oldFileName obj.name = fileList[i].oldFileName
obj.response.data = fileList[i] obj.response.data = fileList[i]
item.defaultFileList.push(obj) item.defaultFileList.push(obj)
@@ -1699,7 +1776,7 @@
} else { } else {
collectTitle = this.sarStandardsInfoEO.standName + ' ( 编号:' + this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber + ' )' collectTitle = this.sarStandardsInfoEO.standName + ' ( 编号:' + this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber + ' )'
} }
let personCollect = { const personCollect = {
collectResId: this.sarStandardsInfoEO.id, collectResId: this.sarStandardsInfoEO.id,
collectTitle: collectTitle, collectTitle: collectTitle,
collectType: this.$route.query.pageType, // 国内收藏type collectType: this.$route.query.pageType, // 国内收藏type
@@ -1731,9 +1808,9 @@
if (res.data.length > 0) { if (res.data.length > 0) {
this.relateDialog = true this.relateDialog = true
this.relateList = res.data this.relateList = res.data
var i let i
for (i = 0; i < this.relateList.length; i++) { for (i = 0; i < this.relateList.length; i++) {
let obj = {creationUserName: '', creationTime: '', content: ''} const obj = { creationUserName: '', creationTime: '', content: '' }
obj.creationUserName = this.relateList[i].creationUserName obj.creationUserName = this.relateList[i].creationUserName
obj.creationTime = this.relateList[i].creationTime obj.creationTime = this.relateList[i].creationTime
obj.content = this.relateList[i].content obj.content = this.relateList[i].content
@@ -1802,7 +1879,6 @@
handleRelatedTermsDrawerCancel () { handleRelatedTermsDrawerCancel () {
// this.relatedTermsDrawerVisible = false // this.relatedTermsDrawerVisible = false
this.$refs['relatedTermsSelect'].handleCancel() this.$refs['relatedTermsSelect'].handleCancel()
}, },
// 关联成功的提示 // 关联成功的提示
handleRelatedTermsDrawerSubmit () { handleRelatedTermsDrawerSubmit () {
@@ -1828,87 +1904,6 @@
this.itemsTextDialogs = true this.itemsTextDialogs = true
this.itemsText = '<p>' + itemsNum + '</p>' + text.replace(/''/g, '\'') this.itemsText = '<p>' + itemsNum + '</p>' + text.replace(/''/g, '\'')
} }
},
computed: {
titleShow() {
return (this.sarStandardsInfoEO.standSortShow || '') + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear + '《' + this.sarStandardsInfoEO.standName + '》' + '标准详情'
},
titleHidden() {
return (this.sarStandardsInfoEO.standSortShow || '') + this.sarStandardsInfoEO.standNumber + '《' + this.sarStandardsInfoEO.standName + '》' + '标准详情'
},
visibleBtn() {
return this.$route.name === 'DomesticStandardDetails'
},
sarType() {
return this.$route.query.pageType
},
standNum() {
const item = this.sarStandardsInfoEO
if (item.standYear) {
return `${item.standSort} ${item.standNumber}-${item.standYear}`
} else {
return `${item.standSort} ${item.standNumber}`
}
},
standId() {
const item = this.sarStandardsInfoEO
return item.id
}
},
/*created() {
dicTypeData().then(res => {
// 能源类型数据字典
this.CycxOptions = res.data.CLLX
})
},*/
async mounted() {
const that = this
window.onresize = () => {
return (() => {
window.screenWidth = document.body.offsetWidth
that.$store.commit('width', window.screenWidth)
that.screenWidth = window.screenWidth - 141
window.screenHeight = document.documentElement.clientHeight
that.$store.commit('height', window.screenHeight)
that.screenHeight = window.screenHeight
that.objs.bodyWidth = window.screenWidth
})()
}
let external = localStorage.getItem("external");
if(external !== undefined && external !== null){
this.externalStatus = external
}
this.sarStandardsInfoEO.id = this.$route.query.id
await this.selectStandMessage()
this.standItemEO.standId = this.$route.query.id
// 从数据库中查询各下拉框数据
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
this.CycxOptions = res.data.CLLX
this.applyArcticOptions.options = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车辆类型”
this.emergyKindOptions = res.data.ENERGYTYPES
this.requestOptions = res.data.REQUESTTYPE
this.BZFGGXOUIUJ = res.data.BZFGGXOUIUJ // 企标覆盖关系
this.setMap(res.data.WBZTCLASS) // 标准状态
this.setMap(res.data.SARPROPERTY) // 标准性质
}, e => {
})
/**
* 自定义鼠标滚轮事件
* chrome and ie
*/
window.addEventListener('mousewheel', this.handleScroll, false)
// firefox
window.addEventListener('DOMMouseScroll', this.handleScroll, false)
},
destroyed() {
window.removeEventListener('mousewheel', this.handleScroll, false)
window.removeEventListener('DOMMouseScroll', this.handleScroll, false)
sessionStorage.removeItem('displayLocation')
window.onresize = null
this.tableHeight = ''
} }
} }
</script> </script>