<template>
	<div>
		<el-drawer title="标签列表" :visible.sync="Drawer" direction="rtl" ref="drawer" size="90%">
			<div class="demo-drawers">
				<el-button type="primary" icon="el-icon-plus" @click="NewinnerDrawer">添加标签</el-button>
				<div style="margin-top: 10px;">
					<el-table :data="tableData1" border size="mini">
						<el-table-column label="标签名称" width="300" :show-overflow-tooltip="true">
							<template slot-scope="scope">
								<span>{{ scope.row.T_name }}</span>
							</template>
						</el-table-column>
						<el-table-column label="数据类型" width="80" :show-overflow-tooltip="true">
							<template slot-scope="scope">
								<span>{{ scope.row.T_source }}</span>
							</template>
						</el-table-column>
						<el-table-column label="标签" width="150" :show-overflow-tooltip="true">
							<template slot-scope="scope">
								<span>{{ scope.row.T_field }}</span>
							</template>
						</el-table-column>
						<el-table-column label="排序" width="80" :show-overflow-tooltip="true">
							<template slot-scope="scope">
								<span>{{ scope.row.T_sort }}</span>
							</template>
						</el-table-column>
						<el-table-column label="操作">
							<template slot-scope="scope">
								<el-dropdown @command="commands($event,scope.row)">
									<div class="el-dropdown-link dropdown-links" style="">
										<el-button type="primary" plain size="mini">更多操作</el-button>
									</div>
									<el-dropdown-menu slot="dropdown">
										<el-dropdown-item command="a">编辑</el-dropdown-item>
										<el-dropdown-item command="c">删除</el-dropdown-item>
									</el-dropdown-menu>
								</el-dropdown>
							</template>
						</el-table-column>
					</el-table>
				</div>
				<div style="margin-top: 10px;">
					<el-pagination @current-change="handleCurrentChange111" :current-page="pages2.page"
						:page-size="pages2.page_z" layout="total, prev, pager, next, jumper" :total="total1">
					</el-pagination>
				</div>
			</div>
		</el-drawer>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				Drawer:false,
				innerDrawer1:false,
				innerDrawer3:false,
				tableData1:[],
				tableData2:[],
				pages2:{},
				pages1:{},
				pages3:{},
				total1:0,
				total2:0,
				titles:'',
				titles1:'',
				rules3:{}
				
			}
		},
		methods:{
			//添加标签
			NewinnerDrawer(){
				console.log('添加标签')
			},
			//分页
			handleCurrentChange111(val){
				console.log('分页',val)
			},
			//分页
			handleCurrentChange12(val){
				console.log('分页',val)
			},
			//添加流程
			TimeNew(){
				console.log('添加流程')
			}
			
		}
	}
</script>

<style>
</style>