|
|
|
@ -1,37 +1,26 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-center mgb20"> |
|
|
|
|
<p class="hr_tag"></p> |
|
|
|
|
<span>筛选</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-form label-width="80px" class="flex-between"> |
|
|
|
|
<div class="flex-center no-mb"> |
|
|
|
|
<el-form-item label="创建日期"> |
|
|
|
|
<div class="page"> |
|
|
|
|
<h6 class="p-title">筛选</h6> |
|
|
|
|
<div class="tool"> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
<li> |
|
|
|
|
<label>创建日期</label> |
|
|
|
|
<el-date-picker v-model="date" align="right" unlink-panels type="daterange" start-placeholder="开始日期" end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" clearable></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="状态"> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>状态</label> |
|
|
|
|
<el-select v-model="status" clearable placeholder="请选择状态" @change="initData"> |
|
|
|
|
<el-option v-for="(item,index) in statusList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<el-form-item> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<div> |
|
|
|
|
<el-input placeholder="请输入产品名称" prefix-icon="el-icon-search" v-model="keyword" clearable></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="card"> |
|
|
|
|
<div class="flex-between mgb20"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="hr_tag"></p> |
|
|
|
|
<span>产品列表</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="tool"> |
|
|
|
|
<div></div> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" round @click="add" v-auth="'/data:产品管理:新增'">新增</el-button> |
|
|
|
|
<el-button type="primary" round @click="delAllSelection" v-auth="'/data:产品管理:批量删除'">批量删除</el-button> |
|
|
|
@ -62,7 +51,6 @@ |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background layout="total, prev, pager, next" @current-change="handleCurrentChange" :current-page="page" :total="totals"></el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-dialog :title="isDetail ? '查看产品' : (id ? '编辑产品' : '新增产品')" :visible.sync="productVisible" width="30%" center @close="closeProduct" class="dialog" :close-on-click-modal="false"> |
|
|
|
|
<el-form ref="form" label-width="98px" :disabled="isDetail"> |
|
|
|
@ -635,21 +623,9 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.card { |
|
|
|
|
min-height: calc(100vh - 420px); |
|
|
|
|
} |
|
|
|
|
/deep/ .no-mb .el-form-item{ |
|
|
|
|
margin-bottom: 0; |
|
|
|
|
} |
|
|
|
|
/deep/.el-input--suffix .el-input__inner{ |
|
|
|
|
padding-right: 56px; |
|
|
|
|
} |
|
|
|
|
/deep/.el-container{ |
|
|
|
|
.el-aside{ |
|
|
|
|
padding: 15px; |
|
|
|
|
background-color: #fff; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.type-wrap{ |
|
|
|
|
height: 450px; |
|
|
|
|
overflow:auto; |
|
|
|
|