|
|
@@ -11,7 +11,7 @@
|
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
|
- <!-- <el-button type="primary" @click="handelEdit('新建')">新建</el-button> -->
|
|
|
+ <el-button type="primary" @click="handelEdit('新建')">新建</el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
@@ -22,22 +22,24 @@
|
|
|
>刷新</el-button>
|
|
|
</template>
|
|
|
<template v-slot:action="{ row }">
|
|
|
- <el-link type="primary" @click="handelEdit(row)">详情</el-link>
|
|
|
+ <el-link type="primary" @click="handelDetail(row)">详情</el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-card>
|
|
|
- <ViewDialog ref="editDialogRef" :statusOpt="statusOpt" />
|
|
|
+ <ViewDialog ref="detailDialogRef" :statusOpt="statusOpt" />
|
|
|
+ <EditDialog ref="editDialogRef" :statusOpt="statusOpt"></EditDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import BOMSearch from './components/BOM-search.vue';
|
|
|
import ViewDialog from './components/view-dialog.vue';
|
|
|
+ import EditDialog from './components/edit-dialog.vue'
|
|
|
import { getPage , syncBom } from '@/api/material/BOM';
|
|
|
|
|
|
export default {
|
|
|
name: 'SystemDictionary',
|
|
|
- components: { BOMSearch, ViewDialog },
|
|
|
+ components: { BOMSearch, ViewDialog, EditDialog },
|
|
|
data () {
|
|
|
return {
|
|
|
// 表格列配置
|
|
|
@@ -115,15 +117,17 @@
|
|
|
size: limit
|
|
|
});
|
|
|
},
|
|
|
- handelEdit (row) {
|
|
|
- this.$refs.editDialogRef.open(row);
|
|
|
+ handelDetail (row) {
|
|
|
+ this.$refs.detailDialogRef.open(row);
|
|
|
},
|
|
|
/* 刷新表格 */
|
|
|
reload (where) {
|
|
|
this.$refs.table.reload({ where });
|
|
|
},
|
|
|
/* 显示编辑 */
|
|
|
- openEdit (row) {},
|
|
|
+ handelEdit (row) {
|
|
|
+ this.$refs.editDialogRef.open(row);
|
|
|
+ },
|
|
|
/* 删除 */
|
|
|
remove () {
|
|
|
this.$confirm('确定要删除选中的字典吗?', '提示', {
|