no commit message

This commit is contained in:
西城念云 2020-01-06 17:57:34 +08:00
parent 49502245d6
commit c0e4f72b3e

View File

@ -84,7 +84,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-table v-loading="loading" stripe border fit highlight-current-row :data="companyList" @selection-change="handleSelectionChange" @sort-change='tableSortChange'> <el-table v-loading="loading" stripe border fit highlight-current-row :data="companyList" @selection-change="handleSelectionChange" @sort-change='tableSortChange' @row-dblclick="rowdblclick">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="行号" width="80" align="center"> <el-table-column label="行号" width="80" align="center">
<template slot-scope="scope">{{scope.$index + 1}}</template> <template slot-scope="scope">{{scope.$index + 1}}</template>
@ -224,6 +224,16 @@ export default {
}); });
}, },
methods: { methods: {
//
rowdblclick(row) {
this.reset();
const id = row.id || this.ids
getCompany(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改公司管理";
});
},
/** 公司管理排序 */ /** 公司管理排序 */
tableSortChange(column) { tableSortChange(column) {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
@ -269,11 +279,6 @@ export default {
row.enabled = row.enabled === "0" ? "1" : "0"; row.enabled = row.enabled === "0" ? "1" : "0";
}); });
}, },
//
cancel() {
this.open = false;
this.reset();
},
// //
reset() { reset() {
this.form = { this.form = {