Commit c684061b authored by 沈翠玲's avatar 沈翠玲

排班计划->选择工作单元 添加双击某一行关闭弹窗并回显的功能

parent 21230653
......@@ -54,7 +54,7 @@
</el-form>
<el-table v-loading="loading" :data="workunitList" @selection-change="handleSelectionChange" height="600px">
<el-table v-loading="loading" :data="workunitList" @selection-change="handleSelectionChange" @row-dblclick="rowClick" height="600px">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="工作单元编码" align="center" prop="workunitCode" />
<el-table-column label="工作单元名称" align="center" prop="workunitName" />
......@@ -124,6 +124,11 @@ export default {
},
methods: {
rowClick(row) {
this.selectedRows = [row];
this.$emit('onSelected', this.selectedRows);
this.showFlag = false;
},
/** 查询工作单元列表 */
getList() {
this.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment