| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:notice:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="éç¥æ é¢" prop="title"> |
| | | <el-input v-model="searchForm.title" placeholder="请è¾å
¥éç¥æ é¢" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="åå¸äºº" prop="creatorName"> |
| | | <el-input v-model="searchForm.creatorName" placeholder="请è¾å
¥åå¸äºº" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <!-- <el-button type="primary" :loading="isWorking.export" v-permissions="['business:notice:exportExcel']" @click="exportExcel">导åº</el-button> --> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:notice:create', 'business:notice:delete']"> |
| | | <li><el-button type="primary" @click="$refs.operaNoticeWindow.open('æ°å»ºæ¶æ¯éç¥')" icon="el-icon-plus" v-permissions="['business:notice:create']">æ°å»º</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:notice:delete']">å é¤</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="title" label="æ é¢" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="å叿¶é´" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="creatorName" label="åå¸äºº" align="center" min-width="100px"></el-table-column> |
| | | <!-- <el-table-column prop="editor" label="æ´æ°äººç¼ç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="editDate" label="æ´æ°æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="isdeleted" label="æ¯å¦å é¤0å¦ 1æ¯" min-width="100px"></el-table-column> |
| | | <el-table-column prop="remark" label="夿³¨" min-width="100px"></el-table-column> |
| | | <el-table-column prop="memberId" label="ç¨æ·ç¼ç ï¼å
³èmember表ï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="content" label="å
容" min-width="100px"></el-table-column> |
| | | <el-table-column prop="objId" label="对象ç¼ç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="objType" label="对象类å " min-width="100px"></el-table-column> |
| | | <el-table-column prop="type" label="æ¶æ¯ç±»å 0ç³»ç»æ¶æ¯ 1ä¼è®®éç¥" min-width="100px"></el-table-column> |
| | | <el-table-column prop="status" label="ç¶æ 0æªè¯» 1已读" min-width="100px"></el-table-column> --> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:notice:update', 'business:notice:delete'])" |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | align="center" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaNoticeWindow.open('ç¼è¾æ¶æ¯éç¥', row)" icon="el-icon-edit" v-permissions="['business:notice:update']">ç¼è¾</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:notice:delete']">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaNoticeWindow ref="operaNoticeWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaNoticeWindow from '@/views/meeting/components/OperaNoticeWindow' |
| | | export default { |
| | | name: 'Notice', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaNoticeWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | id: '', |
| | | creatorName: '', |
| | | createDate: '', |
| | | editor: '', |
| | | editDate: '', |
| | | isdeleted: '', |
| | | remark: '', |
| | | memberId: '', |
| | | title: '', |
| | | content: '', |
| | | objId: '', |
| | | objType: '', |
| | | type: '', |
| | | status: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'æ¶æ¯éç¥ä¿¡æ¯è¡¨', |
| | | api: '@/views/meeting/api/notice', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | } |
| | | } |
| | | </script> |