|
|
|
@ -104,8 +104,14 @@ |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
<div v-if="item.columnProp === 'ifsPartNo'"> |
|
|
|
<el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toPartMenu(scope.row.ifsPartNo)"> {{ scope.row[item.columnProp] }}</el-link> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -1592,6 +1598,11 @@ |
|
|
|
this.searchData.partNo = this.searchData.partNo.toUpperCase() |
|
|
|
} |
|
|
|
}, |
|
|
|
'searchData.plmPartNo': function(newVal, oldVal) { |
|
|
|
if (newVal !== oldVal && newVal !== '') { |
|
|
|
this.getDataList(); |
|
|
|
} |
|
|
|
}, |
|
|
|
modalData: { |
|
|
|
deep: true, |
|
|
|
handler: function (newV, oldV) { |
|
|
|
@ -3418,12 +3429,11 @@ |
|
|
|
plmPartNo: '', |
|
|
|
partType: '' |
|
|
|
} |
|
|
|
// const { partNo } = this.$route.params; |
|
|
|
// |
|
|
|
// if (partNo) { |
|
|
|
// this.searchData.plmPartNo = partNo; |
|
|
|
// } |
|
|
|
// this.$router.replace({ params: {} }); |
|
|
|
const { partNo } = this.$route.params; |
|
|
|
|
|
|
|
if (partNo) { |
|
|
|
this.searchData.plmPartNo = partNo; |
|
|
|
} |
|
|
|
this.getDataList() |
|
|
|
}, |
|
|
|
|
|
|
|
@ -5952,6 +5962,13 @@ |
|
|
|
return { 'background-color': '#E8F7F6', cursor: 'pointer' } |
|
|
|
} |
|
|
|
}, |
|
|
|
toPartMenu (ifsPartNo) { |
|
|
|
if (this.$router.resolve(`/part-partCatalogInformation`).resolved.name === '404') { |
|
|
|
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}) |
|
|
|
} else { |
|
|
|
this.$router.push({name:`part-partCatalogInformation`,params:{ifsPartNo: ifsPartNo},}) |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|