|
|
@@ -53,7 +53,7 @@
|
|
|
row-key="id"
|
|
|
highlight-current-row
|
|
|
style="width: 100%;"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
>
|
|
|
<el-table-column :label='$t("common.serialNo")' width="55px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -61,8 +61,7 @@
|
|
|
{{scope.$index+(queryParams.current - 1) * queryParams.size + 1}}
|
|
|
</div>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="center" type="selection" width="50" :reserve-selection="true" />
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="no" :label='$t("prepare.table.tcVersion.no")' width="120px" :show-overflow-tooltip="true"></el-table-column>
|
|
|
<el-table-column prop="version" :label='$t("prepare.table.tcVersion.version")' width="90px"></el-table-column>
|
|
|
<el-table-column prop="source" :label='$t("prepare.table.tcVersion.source")' width="100px">
|
|
|
@@ -256,7 +255,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// 当表格的当前行发生变化的时候会触发该事件
|
|
|
- handleCurrentChange(val) {
|
|
|
+ handleCurrentChange(val) {
|
|
|
this.currentRow = val;
|
|
|
// 动态给子组件赋值
|
|
|
this.$refs.technology.processModeling = this.currentRow
|
|
|
@@ -264,7 +263,7 @@ export default {
|
|
|
this.$refs.technology.currBtn = false
|
|
|
// 查询【工艺管理】列表数据
|
|
|
this.$refs.technology.fetch({bomId: this.currentRow.bomId, bomVersionId: this.currentRow.id})
|
|
|
- },
|
|
|
+ },
|
|
|
// 【提交审核】按钮-事件
|
|
|
audioStatus(status){
|
|
|
if (!this.currentRow) {
|
|
|
@@ -542,7 +541,9 @@ export default {
|
|
|
// 如果有数据,默认选中第一条数据
|
|
|
if(this.tableData.records.length > 0){
|
|
|
// 选择第一行数据
|
|
|
- this.$refs.table.setCurrentRow(this.tableData.records[0])
|
|
|
+ //this.$refs.table.setCurrentRow(this.tableData.records[0])
|
|
|
+ let row = this.tableData.records.find(item=> item.useStatus=="1")
|
|
|
+ this.$refs.table.setCurrentRow(row)
|
|
|
}else{
|
|
|
// 如果没有数据,清空,【工艺管理】的老数据
|
|
|
this.$refs.technology.tableData = { count: 0 , data: []}
|