|
@@ -42,7 +42,7 @@
|
|
|
detailName: this.$route.params.name,
|
|
|
radio:this.$t('ren-yuan'),
|
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
|
-
|
|
|
+ permissions: JSON.parse(sessionStorage.getItem("permissions")),
|
|
|
cost: 0,
|
|
|
|
|
|
tableHeight: 0,
|
|
@@ -194,11 +194,15 @@
|
|
|
formatter: function (params,ticket,callback) {
|
|
|
var res
|
|
|
if(_this.user.userNameNeedTranslate == 1 && _this.radio == _this.$t('ren-yuan')) {
|
|
|
- res = '' + "<br/>"+_this.$t('workcost')+" : " + params[0].data.money
|
|
|
- + _this.$t('yuan')+"<br/>"+_this.$t('screening.workTime')+" : " + params[0].data.cost + _this.$t('time.hour');
|
|
|
+ // res = '' + "<br/>"+_this.$t('workcost')+" : " + params[0].data.money
|
|
|
+ // + _this.$t('yuan')+"<br/>"+_this.$t('screening.workTime')+" : " + params[0].data.cost + _this.$t('time.hour');
|
|
|
+ res = ((_this.permissions.countCost) ? _this.$t('workcost') + ":" + params[0].data.money + _this.$t('yuan') + "</br>" : '') +
|
|
|
+ ((_this.permissions.countHours) ? _this.$t('screening.workTime') + ":" + params[0].data.cost + _this.$t('time.hour') + "</br>" : '')
|
|
|
} else {
|
|
|
- res = params[0].name + "<br/>"+_this.$t('workcost')+" : " + params[0].data.money
|
|
|
- + _this.$t('yuan')+"<br/>"+_this.$t('screening.workTime')+" : " + params[0].data.cost + _this.$t('time.hour');
|
|
|
+ // res = params[0].name + "<br/>"+_this.$t('workcost')+" : " + params[0].data.money
|
|
|
+ // + _this.$t('yuan')+"<br/>"+_this.$t('screening.workTime')+" : " + params[0].data.cost + _this.$t('time.hour');
|
|
|
+ res = ((_this.permissions.countCost) ? _this.$t('workcost') + ":" + params[0].data.money + _this.$t('yuan') + "</br>" : '') +
|
|
|
+ ((_this.permissions.countHours) ? _this.$t('screening.workTime') + ":" + params[0].data.cost + _this.$t('time.hour') + "</br>" : '')
|
|
|
}
|
|
|
|
|
|
return res;
|