You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

45 lines
560 B

<template>
<view >
<text :class="statusStyle(jobStatus)">
{{ jobStatusInfo.label}}
</text>
</view>
</template>
<script>
import {
getJobStateInfo
} from '@/common/directory.js';
export default {
components: {
},
data() {
return {
jobStatusInfo: {}
};
},
watch: {},
props: {
jobStatus: {
type: String,
default: ""
}
},
mounted() {},
methods: {
statusStyle(value) {
this.jobStatusInfo = getJobStateInfo(value);
return getJobStateInfo(value).remark
},
}
}
</script>
<style>
</style>