| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:warningpush:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="æ¥è¦åç±»" prop="warningType"> |
| | | <el-select v-model="searchForm.warningType" placeholder="è¯·éæ©" clearable @change="search"> |
| | | <el-option label="å®é²äºä»¶" value="0"></el-option> |
| | | <el-option label="æ¶é²äºä»¶" value="1"></el-option> |
| | | <el-option label="车载äºä»¶" value="2"></el-option> |
| | | <el-option label="é¥åæäºä»¶" value="3"></el-option> |
| | | <el-option label="天æ°é¢è¦" value="4"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æ¥è¦æ é¢" prop="title"> |
| | | <el-input v-model="searchForm.title" placeholder="请è¾å
¥æ¥è¦æ é¢" clearable @keypress.enter.native="search" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ¥è¦å
容" prop="content"> |
| | | <el-input v-model="searchForm.content" placeholder="请è¾å
¥æ¥è¦å
容" clearable @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="éç¥äººå" prop="content"> |
| | | <el-input v-model="searchForm.memberName" placeholder="请è¾å
¥éç¥äººå" clearable @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="éç¥ç¶æ " prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©" clearable @change="search"> |
| | | <el-option label="æªéç¥" value="0"></el-option> |
| | | <el-option label="éç¥æå" value="1"></el-option> |
| | | <el-option label="éç¥å¤±è´¥" value="2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="åçæ¶é´" prop="date"> |
| | | <el-date-picker |
| | | v-model="searchForm.queryStarttime" |
| | | type="datetime" |
| | | clearable |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | class="w200" |
| | | placeholder="å¼å§æ¶é´" /> è³ |
| | | <el-date-picker |
| | | v-model="searchForm.queryEndtime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | class="w200" |
| | | clearable |
| | | placeholder="ç»ææ¶é´" /> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" v-permissions="['business:warningpush: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:warningpush:create', 'business:warningpush:delete']"> |
| | | <li><el-button type="primary" @click="$refs.operaWarningPushWindow.open('æ°å»ºæ¥è¦æ¨éè®°å½')" icon="el-icon-plus" v-permissions="['business:warningpush:create']">æ°å»º</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:warningpush:delete']">å é¤</el-button></li> |
| | | </ul>--> |
| | | <el-table |
| | | :height="tableHeightNew" |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column prop="createDate" label="åçæ¶é´" min-width="150px"></el-table-column> |
| | | <el-table-column prop="warningName" label="æ¥è¦ç±»å" min-width="120px" show-tooltip-when-overflow></el-table-column> |
| | | <el-table-column prop="warningType" label="æ¥è¦åç±»" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.warningType === 0">å®é²äºä»¶</span> |
| | | <span v-if="row.warningType === 1" >æ¶é²äºä»¶</span> |
| | | <span v-if="row.warningType === 2" >车载äºä»¶</span> |
| | | <span v-if="row.warningType === 3" >é¥åæäºä»¶</span> |
| | | <span v-if="row.warningType === 4" >天æ°é¢è¦</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="warningLevel" label="æ¥è¦ç级" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.warningLevel === 0" class="status-grey">ä½</span> |
| | | <span v-if="row.warningLevel === 1" class="status-yellow" >ä¸</span> |
| | | <span v-if="row.warningLevel === 2" class="status-red">é«</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="region" label="æå¨ä½ç½®" min-width="120px" show-tooltip-when-overflow></el-table-column> |
| | | <el-table-column prop="content" label="æ¥è¦å
容" min-width="180px" show-tooltip-when-overflow></el-table-column> |
| | | <el-table-column prop="memberName" label="éç¥äººå" min-width="100px" show-tooltip-when-overflow></el-table-column> |
| | | <el-table-column prop="companyName" label="人åé¨é¨" min-width="100px" show-tooltip-when-overflow></el-table-column> |
| | | <el-table-column prop="status" label="éç¥ç¶æ" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span style="color: rgba(245, 154, 35, 0.996);" v-if="row.status === 0">æªéç¥</span> |
| | | <span v-if="row.status === 1" style="color: rgba(245, 154, 35, 0.996);">éç¥æå</span> |
| | | <span v-if="row.status === 2" style="color: rgba(245, 154, 35, 0.996);">åå¿å¤±è´¥</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:warningpush:update', 'business:warningpush:delete'])" |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <!-- <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaWarningPushWindow.open('ç¼è¾æ¥è¦æ¨éè®°å½', row)" icon="el-icon-edit" v-permissions="['business:warningpush:update']">ç¼è¾</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:warningpush:delete']">å é¤</el-button> |
| | | </template>--> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaWarningPushWindow ref="operaWarningPushWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaWarningPushWindow from '@/components/business/OperaWarningPushWindow' |
| | | export default { |
| | | name: 'WarningPush', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaWarningPushWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | id: '', |
| | | warningId: '', |
| | | memberName: null, |
| | | warningType: null, |
| | | title: '', |
| | | content: '', |
| | | status: '', |
| | | queryEndtime:null, |
| | | queryStarttime:null |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'æ¥è¦æ¨éè®°å½', |
| | | api: '/business/warningPush', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods:{ |
| | | reset () { |
| | | this.$refs.searchForm.resetFields() |
| | | this.searchForm.queryStarttime = '' |
| | | this.searchForm.queryEndtime = '' |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |