修改车型项目库相关bug

This commit is contained in:
liuhuaizhi
2021-07-26 13:37:08 +08:00
parent 3de98cdfc3
commit f65a63bfb1
2 changed files with 33 additions and 12 deletions
@@ -1278,13 +1278,14 @@ export default {
}, res => {
if (this.localProTableSearch.prodectCode === 'Maintenance') {
this.localProTableList = res.data.Maintenance.records
this.total = res.data.Maintenance.total
}
else if (this.localProTableSearch.prodectCode === 'notMaintenance')
{
this.localProTableList = res.data.notMaintenance.records
this.total = res.data.notMaintenance.total
}
this.total = res.data.count
// this.localProTableList.map((item) => {
// this.xmztOptions.map((opr) => {
// if (item.productBrand === opr.value) {
@@ -78,47 +78,56 @@
>
</el-table-column>
<el-table-column
prop="SSRQ"
prop="ssrq"
width="190px"
sortable
label="标准实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.ssrq ? $moment(scope.row.ssrq).format('YYYY-MM-DD') : '-' }}</span>
</template>
</el-table-column>
<el-table-column
prop="XCXSSRQGJ"
prop="xcxssrqgj"
width="190px"
label="新车型实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format('YYYY-MM-DD') : '-' }}</span>
</template>
</el-table-column>
<el-table-column
prop="ZCCSSRQGJ"
prop="zccssrqgj"
sortable
width="190px"
label="在产车实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format('YYYY-MM-DD') : '-' }}</span>
</template>
</el-table-column>
<el-table-column
prop="ZRBM"
prop="zrbm"
label="责任部门"
width="180px"
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="KCCVPPSBM"
prop="kccvppsbm"
width="180px"
label="卡车VPPS编码">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="KCCVPPSCN"
prop="cycvppscn"
width="180px"
label="卡车vpps中文名称">
</el-table-column>
<el-table-column
prop="CYCVPPSBM"
prop="cycvppsbm"
width="180px"
label="乘车VPPS编码">
</el-table-column>
<el-table-column
prop="CYCVPPSBM"
prop="cycvppscn"
width="180px"
label="乘车vpps中文名称">
</el-table-column>
@@ -451,10 +460,8 @@ export default {
_this: this
}, res => {
if (res.ok) {
this.$message.success(res.message)
// this.$message.success(res.message)
this.getDataList()
}else {
this.$message.warning(res.message)
}
}, e => {
});
@@ -502,6 +509,17 @@ export default {
this.$message.warning("请选择一条数据进行带入");
}
},
// 点击查看
handlePreview (item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
pageType: 'INLAND_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
back () {
this.$router.push(this.$store.state.detailMap)
this.$store.commit('setDetailMap', '')
@@ -568,6 +586,7 @@ export default {
}
const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName
console.log(exportURL + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM")
window.open(exportURL)
this.$message.success('导出信息成功')
}
@@ -575,6 +594,7 @@ export default {
console.log(this.selectList);
const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
'exportType' + this.saveExportType + '&ids=' + this.selectList.join(',') + '&exportName=' + this.exportName
console.log(exportURL + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM")
window.open(exportURL)
this.$message.success('导出信息成功')
}