This commit is contained in:
zhangdingyu
2019-09-22 12:23:18 +08:00
parent a59d1358c1
commit 384e9f58ef
5 changed files with 17 additions and 17 deletions

View File

@@ -12,7 +12,7 @@
<span>操作者:</span>
<el-input v-model="operator" placeholder="操作者" size="small" clearable style="width:200px" @dblclick.native="getOperator();param = 0"/>
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="getTableData">查询</el-button>
<el-button type="primary" size="mini" icon="el-icon-circle-plus-outline" @click="handleAdd"></el-button>
<el-button type="primary" size="mini" icon="el-icon-circle-plus-outline" @click="handleAdd"></el-button>
</el-card>
<el-card>
<el-table v-loading="loading" :data="tableData" stripe highlight-current-row border style="height: 500px">
@@ -115,7 +115,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="cancel">取消</el-button>
<el-button v-show="title === '增加'" type="primary" @click="submitAdd()">确定</el-button>
<el-button v-show="title === '新增设备人员关系'" type="primary" @click="submitAdd()">确定</el-button>
<el-button v-show="title === '编辑'" type="primary" @click="submitEdit()">确定</el-button>
</div>
</el-dialog>
@@ -202,7 +202,7 @@ export default {
this.getTable(getTableData, [this.equipmentNameCheck, this.equipmentNameValue, this.operatorCheck, this.operatorNum, this.pageCurrent, this.pageSize], ['tableData', 'total', 'loading'])
},
handleAdd() {
this.addForm('form', [this.dialogFormVisible_form = true, this.title = '增加'])
this.addForm('form', [this.dialogFormVisible_form = true, this.title = '新增设备人员关系'])
},
handleEdit(row) {
this.No = row.设备人员关系流水号