{
let typeData = {
type: row.globalEnable == 'ENABLE' ? 'success' : 'info',
value: row.globalEnable == 'ENABLE' ? '启用' : '禁用'
}
return
- {typeData.value}
+ {typeData.value}
{cell}
{row.siteId}
@@ -581,6 +626,13 @@ export default {
},
},
},
+ watch:{
+ showHistory(){
+ if(!n){
+ this.historyData = []
+ }
+ }
+ },
created() {
this.getByPage();
oilVehicleOwnerApi.getOils().then((res) => {
@@ -594,6 +646,12 @@ export default {
window.addEventListener("resize", this.getHeight, false);
},
methods: {
+ showHistoryFn(row) {
+ oilSiteOilsPriceApi.findByRelationId(row.id).then(res => {
+ this.historyData = res.data;
+ this.showHistory = true
+ })
+ },
toOutPutPiliang() {
if (this.multipleSelection.length < 1) {
this.$message.warning('请至少选择一条数据')
@@ -643,7 +701,7 @@ export default {
},
modifyStrategy(id) {
oilSiteOilsPriceApi.get(id.id).then((res) => {
- this.oilSiteOilsPrice = res.data
+ this.oilSiteOilsPrice = res.data
// Object.assign(res.data, {
// personalPriceApp: id.personalPriceApp,
// personalPriceBase: id.personalPriceBase,