Merge branch 'master' of http://192.168.0.149:10010/r/高精2.0
This commit is contained in:
@@ -11,15 +11,6 @@
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将所有机床零件入库" placement="top">
|
||||
<el-button type="warning" size="small" class="el-icon-success" style="margin: 0 0 0 10px" plain @click="Innumber">入库</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="清除该条零件信息" placement="top">
|
||||
<el-button
|
||||
size="small"
|
||||
type="danger"
|
||||
style="float: right; margin-right: 10px;margin-top: 12px"
|
||||
plain
|
||||
class="el-icon-delete"
|
||||
@click="handleDelete()">移除</el-button>
|
||||
</el-tooltip>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
@@ -27,7 +18,6 @@
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
:data="tableDataNum"
|
||||
:row-class-name="tableRowClassName"
|
||||
stripe
|
||||
highlight-current-row
|
||||
border
|
||||
@@ -80,6 +70,16 @@
|
||||
<el-input v-model="tableData[scope.$index].note" clearable size="mini"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
:disabled="scope.row.是否禁用"
|
||||
size="mini"
|
||||
type="danger"
|
||||
class="el-icon-delete"
|
||||
@click="handleDelete(scope.$index, scope.row)">移除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</div>
|
||||
@@ -122,17 +122,9 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 移除
|
||||
handleDelete() {
|
||||
this.tableDataNum.splice(this.NUM, 1)
|
||||
this.tableData.splice(this.NUM, 1)
|
||||
this.NUM = ''
|
||||
},
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
console.log(rowIndex)
|
||||
this.NUM = rowIndex
|
||||
},
|
||||
searchData(index) {
|
||||
this.NUM = index
|
||||
handleDelete(index, row) {
|
||||
this.tableDataNum.splice(index, 1)
|
||||
this.tableData.splice(index, 1)
|
||||
},
|
||||
// 获取人员编号
|
||||
getpeopleid() {
|
||||
|
||||
Reference in New Issue
Block a user