Commit 1ff8d59b authored by AiNoeLiYa's avatar AiNoeLiYa

1.移入了新文件

2.去除掉了报错的文件
3.去除了自定义的coolbutton
4.去除了权限v-hasP
Signed-off-by: 's avatarAiNoeLiYa <jzbcxy@gmail.com>
parent a17525ae
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<template>
<div>
<div class="mb12 font-small-bold">基础工序列表</div>
<div class="tableList" style="height:600px;">
<el-scrollbar style="height: 100%;">
<el-table
v-loading="allTableArguments.loading"
class="processList"
border
:data="allTableArguments.processList.slice((allTableArguments.queryParams.pageNum - 1) * allTableArguments.queryParams.pageSize, allTableArguments.queryParams.pageNum * allTableArguments.queryParams.pageSize)"
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column type="index" label="序号" width="50" :index="allTableArguments.nIndex" />
<el-table-column label="工序名称" prop="processName" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.processName || '-' }}
</template>
</el-table-column>
<el-table-column label="生产车间" prop="workshop">
<template slot-scope="scope">
{{ scope.row.workshop || '-' }}
</template>
</el-table-column>
<el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime">
<template slot-scope="scope">
<span>{{ scope.row.createTime | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template>
</el-table-column>
<el-table-column label="操作人" prop="createBy" width="210px">
<template slot-scope="scope">
{{ scope.row.createBy || '-' }}
</template>
</el-table-column>
<el-table-column
label="操作"
class-name="small-padding fixed-width"
width="180px"
>
<template slot-scope="scope">
<div class="processListBtns">
<el-button :type="typeParent" :size="size" @click="handleDetail(scope.row)">
详情
</el-button>
<el-button :type="typeParent" :size="size" @click="handleUpdate(scope.row)">
修改
</el-button>
<el-button :type="typeParent" :size="size" @click="handleDelete(scope.row)">
删除
</el-button>
</div>
</template>
</el-table-column>
</el-table>
<el-scrollbar />
</el-scrollbar>
<div />
</div>
</div>
</template>
<script>
export default {
name: 'ProcessTable',
props: {
allTableArguments: {
type: Object,
default: () => {
return {
processList: [],
queryParams: {},
nIndex: 0,
loading: true
}
}
}
},
data() {
return {
typeParent: 'text',
size: 'mini'
}
},
methods: {
handleDetail(row) {
this.$emit('handle-detail', row)
},
handleUpdate(row) {
this.$emit('handle-update', row)
},
handleDelete(row) {
this.$emit('handle-delete', row)
}
}
}
</script>
<style lang="scss" scoped>
/* TODO: 这里是控制内容列表的样式 */
.processListBtns {
.el-button {
margin: 0 7px;
}
}
/* TODO: 深层穿透,解决底部滚动条问题 */
.tableList{
/deep/ .el-scrollbar__wrap{
overflow-x: hidden;
}
/deep/ .is-horizontal {
display: none;
}
}
</style>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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