123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>部门管理</title>
- #parse("sys/header.html")
- </head>
- <body>
- <div id="rrapp" v-cloak>
- <div v-show="showList">
- <Row :gutter="16">
- <div class="search-group">
- <i-col span="4">
- <i-button type="ghost" @click="reload"><i class="fa fa-refresh"></i> 刷新</i-button>
- </i-col>
- </div>
- <div class="buttons-group">
- #if($shiro.hasPermission("sys:dept:save"))
- <i-button type="info" @click="add"><i class="fa fa-plus"></i> 新增</i-button>
- #end
- #if($shiro.hasPermission("sys:dept:update"))
- <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i> 修改</i-button>
- #end
- #if($shiro.hasPermission("sys:dept:delete"))
- <i-button type="error" @click="del"><i class="fa fa-trash-o"></i> 删除</i-button>
- #end
- </div>
- </Row>
- <table id="deptTable" data-mobile-responsive="true" data-click-to-select="true">
- <thead>
- <tr>
- <th data-field="selectItem" data-checkbox="true"></th>
- </tr>
- </thead>
- </table>
- </div>
- <Card v-show="!showList">
- <p slot="title">{{title}}</p>
- <i-form ref="formValidate" :model="dept" :rules="ruleValidate" :label-width="80">
- <Form-item label="部门名称" prop="name">
- <i-input v-model="dept.name" placeholder="部门名称"/>
- </Form-item>
- <Form-item label="上级部门" prop="deptName">
- <i-input type="text" v-model="dept.parentName" icon="eye" readonly="readonly"
- @on-click="deptTree" readonly="readonly" placeholder="一级部门"/>
- </Form-item>
- <Form-item label="排序号" prop="orderNum">
- <Input-number :min="0" :step="1" v-model="dept.orderNum" placeholder="排序号" style="width: 188px;"/>
- </Form-item>
- <Form-item>
- <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
- <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
- </Form-item>
- </i-form>
- </Card>
- </div>
- <!-- 选择部门 -->
- <div id="deptLayer" style="display: none;padding:10px;">
- <ul id="deptTree" class="ztree"></ul>
- </div>
- <script src="${rc.contextPath}/js/sys/dept.js?_${date.systemTime}"></script>
- </body>
- </html>
|