Commit 42659315 by ningjihai

123123

parent c5d2b0f7
...@@ -72,72 +72,67 @@ ...@@ -72,72 +72,67 @@
</el-form-item> </el-form-item>
</page-wrapper-search> </page-wrapper-search>
<!-- 树形数据表格 -->
<div style="flex: 1;min-height: 200px;">
<el-table
ref="treeTable"
v-loading="loading"
<!-- 树形数据表格 --> :data="currentTreeNodeData"
<div style="flex: 1;min-height: 200px;"> height="100%"
<el-table row-key="id"
ref="treeTable" :default-expand-all="isExpandAll"
v-loading="loading" :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
:data="currentTreeNodeData" >
height="100%" <!-- <el-table-column type="selection" width="55" align="center"/> -->
row-key="id" <el-table-column
:default-expand-all="isExpandAll" label="物料分类名称"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}" align="center"
> prop="categoryName"
<!-- <el-table-column type="selection" width="55" align="center"/> -->
<el-table-column fixed="left"
label="物料分类名称" />
align="center" <el-table-column label="物料分类编码" align="center" prop="categoryCode" />
prop="categoryName" <el-table-column label="排序" align="center" prop="sortNo" width="80" />
<el-table-column label="创建时间" align="center" prop="createTime">
fixed="left" <template slot-scope="scope">
/> <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
<el-table-column label="物料分类编码" align="center" prop="categoryCode" /> </template>
<el-table-column label="排序" align="center" prop="sortNo" width="80" /> </el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime"> <el-table-column label="修改时间" align="center" prop="updateTime">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="修改时间" align="center" prop="updateTime"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span> <el-button
</template> size="mini"
</el-table-column> link
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250" fixed="right"> type="text"
<template slot-scope="scope"> icon="el-icon-plus"
<el-button @click="handleAdd(scope.row.id)"
size="mini" v-hasPermi="['inventory:materials_category:add']"
link >新增下级</el-button>
type="text" <el-button
icon="el-icon-plus" size="mini"
@click="handleAdd(scope.row.id)" link
v-hasPermi="['inventory:materials_category:add']" type="text"
>新增下级</el-button> icon="el-icon-edit"
<el-button @click="handleUpdate(scope.row)"
size="mini" v-hasPermi="['inventory:materials_category:edit']"
link >修改</el-button>
type="text" <el-button
icon="el-icon-edit" size="mini"
@click="handleUpdate(scope.row)" link
v-hasPermi="['inventory:materials_category:edit']" type="text"
>修改</el-button> icon="el-icon-delete"
<el-button @click="handleDelete(scope.row)"
size="mini" v-hasPermi="['inventory:materials_category:remove']"
link >删除</el-button>
type="text" </template>
icon="el-icon-delete" </el-table-column>
@click="handleDelete(scope.row)" </el-table>
v-hasPermi="['inventory:materials_category:remove']" </div>
>删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div> </div>
</div> </div>
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<div class="table-container"> <div class="table-container">
<el-table v-loading="loading" height="100%" :data="typeList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" height="100%" :data="typeList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" fixed/>
<el-table-column label="字典编号" align="center" prop="dictId" /> <el-table-column label="字典编号" align="center" prop="dictId" />
<el-table-column label="字典名称" align="center" prop="dictName" :show-overflow-tooltip="true" /> <el-table-column label="字典名称" align="center" prop="dictName" :show-overflow-tooltip="true" />
<el-table-column label="字典类型" align="center" :show-overflow-tooltip="true"> <el-table-column label="字典类型" align="center" :show-overflow-tooltip="true">
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
...@@ -188,6 +188,8 @@ ...@@ -188,6 +188,8 @@
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论