|
@@ -0,0 +1,83 @@
|
|
|
+<template>
|
|
|
+ <!-- 审批流配置 -->
|
|
|
+ <div class="approve-setting-wrap">
|
|
|
+ <div class="head-box">
|
|
|
+ <el-button>添加审批流</el-button>
|
|
|
+ <el-select placeholder="请选择关联报告" style="margin-right: auto;margin-left: 15px;"></el-select>
|
|
|
+ <el-input placeholder="请输入审批名称" style="width:260px;"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="list-box">
|
|
|
+ <el-table :data="tableData" border>
|
|
|
+ <el-table-column
|
|
|
+ v-for="item in tableColumns"
|
|
|
+ :key="item.key"
|
|
|
+ :label="item.label"
|
|
|
+ :prop="item.key"
|
|
|
+ align="center"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <el-button type="text">编辑</el-button>
|
|
|
+ <el-button type="text">删除</el-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div style="text-align:right;margin-top:20px">
|
|
|
+ <el-pagination
|
|
|
+ layout="total,prev,pager,next,jumper"
|
|
|
+ background
|
|
|
+ :current-page="page"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :page-size="pageSize"
|
|
|
+ :total="total"
|
|
|
+ style="display: inline-block"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tableData:[{name:'a'}],
|
|
|
+ tableColumns:[{
|
|
|
+ label:'审批流名称',
|
|
|
+ key:'name'
|
|
|
+ },{
|
|
|
+ label:'关联报告',
|
|
|
+ key:'catalog'
|
|
|
+ },{
|
|
|
+ label:'创建时间',
|
|
|
+ key:'time'
|
|
|
+ }],
|
|
|
+ page:1,
|
|
|
+ pageSize:10,
|
|
|
+ total:0,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleCurrentChange(page){
|
|
|
+ this.page = page
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+.approve-setting-wrap{
|
|
|
+ min-height: calc(100vh - 120px);
|
|
|
+ background-color: #fff;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding:30px;
|
|
|
+ .head-box{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .list-box{
|
|
|
+ margin-top:30px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|