|
|
|
@ -84,7 +84,9 @@ |
|
|
|
|
<template slot="content"> |
|
|
|
|
<p>{{ text }}</p> |
|
|
|
|
</template> |
|
|
|
|
<a style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;width: 100px">{{ text }}</a> |
|
|
|
|
<a style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;width: 100px">{{ |
|
|
|
|
text |
|
|
|
|
}}</a> |
|
|
|
|
</a-popover> |
|
|
|
|
</span> |
|
|
|
|
<span slot="machineIds_dictText" slot-scope="text, record"> |
|
|
|
@ -92,12 +94,13 @@ |
|
|
|
|
<template slot="content"> |
|
|
|
|
<p>{{ text }}</p> |
|
|
|
|
</template> |
|
|
|
|
<a style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;width: 100px">{{ text }}</a> |
|
|
|
|
<a style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;width: 100px">{{ |
|
|
|
|
text |
|
|
|
|
}}</a> |
|
|
|
|
</a-popover> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="action1" slot-scope="text, record"> |
|
|
|
|
<a @click="jumpPage1(record)">管理</a> |
|
|
|
|
</span> |
|
|
|
@ -112,6 +115,10 @@ |
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete2(record.id)"> |
|
|
|
|
<a>删除</a> |
|
|
|
|
</a-popconfirm> |
|
|
|
|
<a-divider type="vertical"/> |
|
|
|
|
<a @click="up(record.id)">升序</a> |
|
|
|
|
<a-divider type="vertical"/> |
|
|
|
|
<a @click="down(record.id)">降序</a> |
|
|
|
|
</span> |
|
|
|
|
</a-table> |
|
|
|
|
</div> |
|
|
|
@ -214,6 +221,8 @@ export default { |
|
|
|
|
url: { |
|
|
|
|
list: "/team/station/list", |
|
|
|
|
queryIsCanDelete: "/team/station/queryIsCanDelete", |
|
|
|
|
up: "/team/station/up", |
|
|
|
|
down: "/team/station/down", |
|
|
|
|
delete: "/team/station/delete", |
|
|
|
|
deleteBatch: "/team/station/deleteBatch", |
|
|
|
|
exportXlsUrl: "/team/station/exportXls", |
|
|
|
@ -279,9 +288,30 @@ export default { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
up(id) { |
|
|
|
|
getAction(this.url.up, {id: id}).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.loadData(); |
|
|
|
|
this.$message.success(res.message); |
|
|
|
|
} else { |
|
|
|
|
this.$message.warning(res.message); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
down(id) { |
|
|
|
|
getAction(this.url.down, {id: id}).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.loadData(); |
|
|
|
|
this.$message.success(res.message); |
|
|
|
|
} else { |
|
|
|
|
this.$message.warning(res.message); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style scoped> |
|
|
|
|
@import '~@assets/less/common.less'; |
|
|
|
|
</style> |
|
|
|
|
<!--<style scoped>--> |
|
|
|
|
<!--@import '~@assets/less/common.less';--> |
|
|
|
|
<!--</style>--> |