|
|
@ -900,6 +900,13 @@ export default { |
|
|
this.drawerVisible = false; |
|
|
this.drawerVisible = false; |
|
|
this.saveVisible = false; |
|
|
this.saveVisible = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
toPartMenu (partNo) { |
|
|
|
|
|
if (this.$router.resolve(`/part-partInformation`).resolved.name === '404') { |
|
|
|
|
|
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$router.push({name:`part-partInformation`,params:{partNo:partNo},}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
quote(newVal,oldVal){ |
|
|
quote(newVal,oldVal){ |
|
|
@ -945,9 +952,15 @@ export default { |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<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> |
|
|
|
|
|
|
|
|
<template v-if="item.columnProp === 'partNo'"> |
|
|
|
|
|
<el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toPartMenu(scope.row.partNo)"> {{ scope.row[item.columnProp] }}</el-link> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template 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> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="120"> |
|
|
<el-table-column label="操作" v-if="!authFlag" fixed="right" align="center" width="120"> |
|
|
|