|
@@ -151,16 +151,17 @@
|
|
|
border
|
|
|
:tree-props="{children: 'childModules', hasChildren: 'hasChildren'}"
|
|
|
:row-class-name="tableRowhidden"
|
|
|
+ header-align="center"
|
|
|
>
|
|
|
- <el-table-column v-if="false" prop="id" label="ID" width="180" />
|
|
|
- <el-table-column prop="moduleName" label="模块名称" width="280">
|
|
|
+ <el-table-column v-if="false" prop="id" label="ID" width="180" align="center" />
|
|
|
+ <el-table-column prop="moduleName" label="模块名称">
|
|
|
<template slot="header">
|
|
|
模块名称<i class="el-icon-circle-plus" @click="handlerModule('add')" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="creator" label="创建人" width="120" />
|
|
|
- <el-table-column prop="createTime" label="创建时间" />
|
|
|
- <el-table-column label="操作">
|
|
|
+ <el-table-column prop="creator" label="创建人" width="120" align="center" />
|
|
|
+ <el-table-column prop="createTime" label="创建时间" width="180" align="center" />
|
|
|
+ <el-table-column label="操作" width="240" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -172,7 +173,6 @@
|
|
|
>编辑</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
- type="danger"
|
|
|
@click="handlerModule('delete', scope.row, scope.$index)"
|
|
|
>删除</el-button>
|
|
|
</template>
|
|
@@ -589,19 +589,21 @@ export default {
|
|
|
handlerModule(type, data, index) { // 模块处理
|
|
|
console.log(data)
|
|
|
this.moduleDialog = true
|
|
|
- this.moduleTitle = '新增模块'
|
|
|
this.curcentModule = type
|
|
|
this.moduleForm = { bizId: null, moduleNames: [null], parentId: -1, id: null }// 初始化
|
|
|
this.curcentParent = '无'
|
|
|
if (data && type === 'add') {
|
|
|
+ this.moduleTitle = '新增模块'
|
|
|
this.curcentParent = data.moduleName
|
|
|
this.moduleForm.parentId = data.id
|
|
|
} else if (data && type === 'edit') {
|
|
|
+ this.moduleTitle = '编辑模块'
|
|
|
this.moduleForm.id = data.id
|
|
|
this.curcentParent = data.parentId === -1 ? '无' : data.parentModuleName
|
|
|
this.moduleForm.parentId = data.parentId
|
|
|
this.moduleForm.moduleNames[0] = data.moduleName
|
|
|
} else if (data && type === 'delete') {
|
|
|
+ this.moduleTitle = '删除确认'
|
|
|
this.moduleForm.id = data.id
|
|
|
this.moduleForm.moduleNames[0] = data.moduleName
|
|
|
}
|