| | |
| | | </template> |
| | | </el-table-column> |
| | | </scTable> |
| | | <div style="margin-left: 14px;flex: 1 1 auto;" |
| | | v-if="Object.keys(previewData).length > 0"> |
| | | <div :style="{ |
| | | 'max-width': showTable ? '50%' : '100%', 'margin-left': '14px', |
| | | flex: '1 1 auto' |
| | | }" v-if="Object.keys(previewData).length > 0"> |
| | | <div class="header"> |
| | | <el-icon @click="showTable = !showTable" |
| | | style="font-size: 20px;cursor: pointer;margin-top: 10px;"> |
| | |
| | | <el-header> |
| | | <h2>采集信息</h2> |
| | | <el-button v-show="list.length > 0" |
| | | @click="() => { editFlag = !editFlag; }" |
| | | @click="() => { editFlag = !editFlag; showTable = !editFlag }" |
| | | style="margin-left: auto;" text type="primary" |
| | | size="small">配置工位采集</el-button> |
| | | size="small">{{ editFlag ? '取消' : '配置工位采集' }}</el-button> |
| | | <el-button v-show="editFlag" @click="saveInfo" text |
| | | type="primary" size="small">保存</el-button> |
| | | <el-button text type="primary" size="small" |
| | |
| | | saveInfo() { |
| | | this.$HTTP.post('/api/blade-cps/workstation-wcs/save', this.workbenchVOList).then(res => { |
| | | this.editFlag = false |
| | | this.showTable = true |
| | | }) |
| | | }, |
| | | } |