Browse Source

2025-05-22

master
qiezi 8 months ago
parent
commit
1405ac8b65
  1. 16
      src/views/modules/sampleManagement/technicalSpecificationDetail/changeLog.vue

16
src/views/modules/sampleManagement/technicalSpecificationDetail/changeLog.vue

@ -227,6 +227,13 @@ export default {
this.$message.error(error); this.$message.error(error);
this.queryLoading = false; this.queryLoading = false;
}) })
},
toChangeMenu(changeNo){
if (this.$router.resolve(`/changeManagement-changeRecord`).resolved.name === '404'){
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',});
}else {
this.$router.push({name:`changeManagement-changeRecord`,params:{changeNo:changeNo},})
}
} }
}, },
} }
@ -248,8 +255,13 @@ 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 === 'changeNo'">
<a @click="toChangeMenu(scope.row.changeNo)">{{scope.row[item.columnProp]}}</a>
</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> </el-table>

Loading…
Cancel
Save