| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <html>
- <head>
- <style>
- .space-tbs .tabs-right-btns{
- margin-right: 8px;
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <el-form action="@service{name:'authorization_department_list', page:'department_list_authorization'}@" ref="obj" method="post" :inline="true" :model="obj">
-
- <el-container class="space-container">
- <div class="space-tbs">
- <el-tabs>
- <div class="advanced-query" v-show="obj.showForm">
- <el-row :gutter="20">
- <el-col :span="7" :offset="1">
- <el-form-item label="所属单位" prop="unitid">
- <el-select v-model="obj.unitid" placeholder="请选择" clearable multiple collapse-tags style="width: 100%;" size="small">
- <app:codeBookOption name="unit" />
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <el-form-item class="formBtn">
- <el-button size="mini" onclick="space.forms.hide();">收起</el-button>
- <el-button size="mini" @click="space.forms.reset()">重置</el-button>
- <el-button size="mini" icon="el-icon-search" :loading="loading" type="primary" onclick="space.forms.submit();">查询</el-button>
- </el-form-item>
- </el-col>
- </el-row>
- </div>
- <el-tab-pane label="部门列表" name=""></el-tab-pane>
- </el-tabs>
- <div class="tab-right">
- <div class="tabs-right-btns">
- <el-button type="primary" plain size="small" onclick='@service{ page:`authorization_role_tabs`, show:`true` }@' >授权权限</el-button>
- <el-button type="primary" plain size="small" onclick='@service{ page:`department_common_authorization`, show:`true` }@' >公共权限</el-button>
- <el-button type="primary" plain size="small" onclick='@service{ page:`department_batch_authorization`, show:`true` }@' >批量授权</el-button>
- </div>
- <div class="tabs-right-search">
- <el-input placeholder="搜索部门名称" v-model="obj.name" size="small" clearable>
- <i slot="suffix" class="el-input__icon el-icon-search space-search-icon" onclick="space.forms.submit();"></i>
- <el-button slot="append" icon="spaceicon icon-filter" title="高级查询" onclick="space.forms.show();" :class="{'activeColor':obj.showForm}"></el-button>
- </el-input>
- </div>
- </div>
- </div>
- </el-container>
- </el-form>
- <table lay-filter="appDataTable" class="layui-table">
-
- <thead>
- <tr>
- <th lay-data="{field:'1'}">名称</th>
- <th lay-data="{field:'2', width: '60%'}">部门职责</th>
- <th lay-data="{field:'3'}">所属单位</th>
- <th lay-data="{field:'4'}">上级部门</th>
- <th lay-data="{field:'5', width: 80 }">操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${departmentList }" var="item">
- <tr onclick='@service{ name:`authorization_department_info`, page:`department_info`, params:`{departmentid: "${item.departmentid}"}`, show:`true` }@'>
- <td>${item.name}</td>
- <td>
- <app:getHtmlContent filePath="${item.describe}" delHtmlTag="true" />
- </td>
- <td>${item.unit_name}</td>
- <td>${item.p_name}</td>
- <td>
- <div class="laytable-btns">
- <el-button-group>
- <el-button size="small" type="primary" onclick='@service{ page:`department_authorization`, params:`{departmentid: "${item.departmentid}"}`, show:`true`}@' >授权</el-button>
- </el-button-group>
- </div>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <app:appPage />
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- obj: {
- name: '${name}',
- showForm: space.utils.parseBoolean('${showForm}'),
- unitid: space.utils.parseAry('${unitid}')
- },
- loading: false
- };
- },
- methods: {
-
- }
- })
- </script>
- </html>
|