|
@@ -176,7 +176,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { Pagination, Progress } from 'element-ui'
|
|
|
+import { Pagination, Progress, Message } from 'element-ui'
|
|
|
import { mapState } from 'vuex'
|
|
|
// import { getPushList } from '@/api/modules/'
|
|
|
import Empty from '@/components/common/Empty.vue'
|
|
@@ -188,6 +188,7 @@ export default {
|
|
|
components: {
|
|
|
[Pagination.name]: Pagination,
|
|
|
[Progress.name]: Progress,
|
|
|
+ [Message.name]: Message,
|
|
|
Empty
|
|
|
},
|
|
|
data () {
|
|
@@ -419,10 +420,14 @@ export default {
|
|
|
this.$router.push(`/ent_portrait/${id}`)
|
|
|
},
|
|
|
goEntPor (id) {
|
|
|
- const routeUrl = this.$router.resolve({
|
|
|
- path: `/ent_portrait/${id}`
|
|
|
- })
|
|
|
- return window.open(routeUrl.href, '_blank')
|
|
|
+ if (id && id !== '' && id !== undefined && id !== 'undefined') {
|
|
|
+ const routeUrl = this.$router.resolve({
|
|
|
+ path: `/ent_portrait/${id}`
|
|
|
+ })
|
|
|
+ return window.open(routeUrl.href, '_blank')
|
|
|
+ } else {
|
|
|
+ this.$message('暂无数据')
|
|
|
+ }
|
|
|
},
|
|
|
goViewDetail (id) {
|
|
|
this.$router.push({
|