mt-ck-wms-ui/src/views/basicData/Cache/components/locationBtn.vue

37 lines
781 B
Vue
Raw Normal View History

2021-09-13 14:56:28 +08:00
<!--
* @Date: 2021-01-07 20:09:37
2022-03-03 20:48:59 +08:00
* @LastEditors: fzq
2022-03-10 21:15:33 +08:00
* @LastEditTime: 2022-03-10 20:20:44
2021-09-13 14:56:28 +08:00
* @FilePath: \basic-admin\src\components\BaseTable\subcomponents\CheckDetail.vue
* @Description:
-->
<template>
<span>
2022-03-03 20:48:59 +08:00
<el-button type="text" size="small" @click="emitClick">{{ $t('module.basicData.cache.addLocation') }}</el-button>
2021-09-13 14:56:28 +08:00
</span>
</template>
<script>
export default {
props: {
injectData: {
type: Object,
default: () => ({})
}
},
methods: {
emitClick() {
this.$router.push({
name: 'locationAdd',
query: {
2022-03-10 21:15:33 +08:00
id: this.injectData.id,
code: this.injectData.code,
columnNum: this.injectData.columnNum,
shelfName: this.injectData.shelfName
2021-09-13 14:56:28 +08:00
}
})
}
}
}
</script>