|
|
@ -14,13 +14,12 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<div> |
|
|
|
|
|
|
|
<el-input placeholder="请输入产品名称" prefix-icon="el-icon-search" v-model="keyword" clearable></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="tool"> |
|
|
|
<div class="tool"> |
|
|
|
<div></div> |
|
|
|
<div> |
|
|
|
|
|
|
|
<el-input placeholder="请输入产品名称" prefix-icon="el-icon-search" v-model="keyword" clearable></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" round @click="add" v-auth="'/data:产品管理:新增'">新增</el-button> |
|
|
|
<el-button type="primary" round @click="add" v-auth="'/data:产品管理:新增'">新增</el-button> |
|
|
|
<el-button type="primary" round @click="delAllSelection" v-auth="'/data:产品管理:批量删除'">批量删除</el-button> |
|
|
|
<el-button type="primary" round @click="delAllSelection" v-auth="'/data:产品管理:批量删除'">批量删除</el-button> |
|
|
@ -52,7 +51,7 @@ |
|
|
|
<el-pagination background layout="total, prev, pager, next" @current-change="handleCurrentChange" :current-page="page" :total="totals"></el-pagination> |
|
|
|
<el-pagination background layout="total, prev, pager, next" @current-change="handleCurrentChange" :current-page="page" :total="totals"></el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="isDetail ? '查看产品' : (id ? '编辑产品' : '新增产品')" :visible.sync="productVisible" width="30%" center @close="closeProduct" class="dialog" :close-on-click-modal="false"> |
|
|
|
<el-dialog :title="isDetail ? '查看产品' : (id ? '编辑产品' : '新增产品')" :visible.sync="productVisible" width="600px" center @close="closeProduct" class="dialog" :close-on-click-modal="false"> |
|
|
|
<el-form ref="form" label-width="98px" :disabled="isDetail"> |
|
|
|
<el-form ref="form" label-width="98px" :disabled="isDetail"> |
|
|
|
<el-form-item label="数据产品名称"> |
|
|
|
<el-form-item label="数据产品名称"> |
|
|
|
<el-input v-model="productName" placeholder="请输入数据产品名称"></el-input> |
|
|
|
<el-input v-model="productName" placeholder="请输入数据产品名称"></el-input> |
|
|
@ -64,14 +63,15 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="配置数据"> |
|
|
|
<el-form-item label="配置数据"> |
|
|
|
<el-button type="primary" @click="configData">配置数据权限</el-button> |
|
|
|
<el-button type="primary" @click="configData">配置数据权限</el-button> |
|
|
|
<div class="type-wrap" ref="typeWrap" @scroll="loadType" v-show="checkedIds.length"> |
|
|
|
|
|
|
|
<el-tree ref="type" :data="typeList" show-checkbox accordion node-key="id" :default-expanded-keys="checkedIds" :default-checked-keys="checkedIds" :props="defaultProps" @node-expand="typeExpand"> |
|
|
|
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
|
|
|
|
<span :title="node.label">{{ node.label }}</span> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</el-tree> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<div class="type-wrap" ref="typeWrap" @scroll="loadType" v-show="checkedIds.length"> |
|
|
|
|
|
|
|
<el-tree ref="type" :data="typeList" show-checkbox accordion node-key="id" :default-expanded-keys="checkedIds" :default-checked-keys="checkedIds" :props="defaultProps" @node-expand="typeExpand"> |
|
|
|
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
|
|
|
|
<span :title="node.label">{{ node.label }}</span> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</el-tree> |
|
|
|
|
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer" v-if="!isDetail"> |
|
|
|
<span slot="footer" class="dialog-footer" v-if="!isDetail"> |
|
|
|
<el-button @click="productVisible = false">取 消</el-button> |
|
|
|
<el-button @click="productVisible = false">取 消</el-button> |
|
|
@ -628,6 +628,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
.type-wrap{ |
|
|
|
.type-wrap{ |
|
|
|
height: 450px; |
|
|
|
height: 450px; |
|
|
|
|
|
|
|
margin-left: 25px; |
|
|
|
overflow:auto; |
|
|
|
overflow:auto; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |