| | |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <template slot-scope="{ type, size, row, index }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-view" |
| | | type="text" |
| | | size="mini" |
| | | @click="goTaskinfoDetail(row)" |
| | | >查看</el-button> |
| | | v-if="permission.taskinfo_view" |
| | | >查 看</el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | type="text" |
| | | size="mini" |
| | | @click="$refs.crud.rowEdit(row,index)" |
| | | v-if="permission.taskinfo_edit" |
| | | >编 辑</el-button> |
| | | <el-button |
| | | icon="el-icon-delete" |
| | | type="text" |
| | | size="mini" |
| | | @click="$refs.crud.rowDel(row,index)" |
| | | v-if="permission.taskinfo_delete" |
| | | >删 除</el-button> |
| | | |
| | | </template> |
| | | <template slot="routeRangeForm"> |
| | | <open-layers-map ref="OpenLayersMap" @toData="toData" :routeRange="form.routeRange"></open-layers-map> |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | const date = new Date() |
| | | const year = date.getFullYear() |
| | | const month = date.getMonth() + 1 |
| | | const strDate = date.getDate() |
| | | this.query.startTime = `${year}-${month}-${strDate} 00:00:00` |
| | | this.query.endTime = `${year}-${month}-${strDate} 23:59:59` |
| | | // 默认时间查询 |
| | | // const date = new Date() |
| | | // const year = date.getFullYear() |
| | | // const month = date.getMonth() + 1 |
| | | // const strDate = date.getDate() |
| | | // this.query.startTime = `${year}-${month}-${strDate} 00:00:00` |
| | | // this.query.endTime = `${year}-${month}-${strDate} 23:59:59` |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |