mt-ck-wms-ui/src/views/basicData/Cache/components/locationBtn.vue
2022-03-15 09:55:49 +08:00

37 lines
773 B
Vue

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