riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 应急线索任务响应级别
const ConclusionType = [
  { value: '有问题', label: '有问题' },
  { value: '无问题', label: '无问题' },
  { value: '已解决', label: '已解决' },
];
 
export default {
  ConclusionType,
  toLabel(value) {
    let r = ConclusionType.find(item => {
      return item.value == value;
    });
    if (!r) r = ConclusionType[0];
    return r.label;
  },
 
  toLabel2(value) {
    let l = this.toLabel(value);
    if (l == ConclusionType[0].label) {
      l = '/';
    }
    return l;
  },
 
  toValue(label) {
    const r = ConclusionType.find(item => {
      return item.label == label;
    });
    return r.value;
  },
};