|  |  |  | 
|---|
|  |  |  | <!-- 表格和分页 --> | 
|---|
|  |  |  | <template v-slot:table-wrap> | 
|---|
|  |  |  | <ul class="toolbar" v-permissions="['business:sites:create']"> | 
|---|
|  |  |  | <li><el-button type="primary" @click="$refs.operaSitesWindow.open('新建站点信息表')" icon="el-icon-plus" v-permissions="['business:sites:create']">新建</el-button></li> | 
|---|
|  |  |  | <li><el-button type="primary" @click="$refs.operaSitesWindow.open('新建站点')" icon="el-icon-plus" v-permissions="['business:sites:create']">新建</el-button></li> | 
|---|
|  |  |  | </ul> | 
|---|
|  |  |  | <el-table | 
|---|
|  |  |  | v-loading="isWorking.search" | 
|---|
|  |  |  | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-table-column prop="code" label="站点编号" min-width="100px" align="center"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="name" label="站点名称" min-width="100px" align="center"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="ip" label="站点ip" min-width="100px" align="center"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="port" label="端口号" min-width="100px" align="center"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="editDate" label="最后通讯时间" min-width="100px" align="center"></el-table-column> | 
|---|
|  |  |  | <!-- <el-table-column prop="ip" label="站点ip" min-width="100px" align="center"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="port" label="端口号" min-width="100px" align="center"></el-table-column> --> | 
|---|
|  |  |  | <el-table-column prop="lastLinkDate" label="最后通讯时间" min-width="100px" align="center"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="status" label="状态" min-width="100px" align="center"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <div v-if="row.status==0" style="color: green;">正常</div> | 
|---|
|  |  |  | 
|---|
|  |  |  | fixed="right" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <el-button type="text" @click="$refs.operaSitesWindow.open('编辑站点信息表', row)" icon="el-icon-edit" v-permissions="['business:sites:update']">编辑</el-button> | 
|---|
|  |  |  | <el-button type="text" @click="$refs.operaSitesWindow.open('编辑站点', row)" icon="el-icon-edit" v-permissions="['business:sites:update']">编辑</el-button> | 
|---|
|  |  |  | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:sites:delete']">删除</el-button> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|