telephone-clients 3.0.103-85 → 3.0.103-86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="row">
|
|
3
|
+
<label class = "col-sm-4 " v-if="value">故障明细:</label>
|
|
4
|
+
<span class = "col-sm-8" v-for="failure in failures">
|
|
5
|
+
{{failure.f_failure_type}}:
|
|
6
|
+
<span v-for="caes in failure.failurecase">{{caes}} </span>
|
|
7
|
+
</span>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default {
|
|
13
|
+
title: "failure-show",
|
|
14
|
+
props:{
|
|
15
|
+
// 要显示的故障
|
|
16
|
+
value: {
|
|
17
|
+
type: String
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
data () {
|
|
21
|
+
return {
|
|
22
|
+
// 故障类型
|
|
23
|
+
failures: [],
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
// 把字符串转换成故障类型列表
|
|
28
|
+
procValue() {
|
|
29
|
+
// 清除原来内容
|
|
30
|
+
this.failures.splice(0, this.failures.length)
|
|
31
|
+
|
|
32
|
+
// 空串,直接返回
|
|
33
|
+
if (this.value) {
|
|
34
|
+
// 把字符串转换成故障列表对象
|
|
35
|
+
let array = JSON.parse(this.value)
|
|
36
|
+
if(Array.isArray(array)) {
|
|
37
|
+
array.forEach((value) => {
|
|
38
|
+
this.failures.push(value)
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
watch: {
|
|
45
|
+
'value' () {
|
|
46
|
+
this.failures.splice(0, this.failures.length)
|
|
47
|
+
this.procValue()
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
created () {
|
|
51
|
+
},
|
|
52
|
+
ready () {
|
|
53
|
+
|
|
54
|
+
this.procValue()
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<style scoped>
|
|
60
|
+
|
|
61
|
+
</style>
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
|
+
<failure-show :value='service.failure'>
|
|
22
|
+
</failure-show>
|
|
21
23
|
<div style="clear:both;">
|
|
22
24
|
<phone-sell-info-lite v-if="showSellInfo" :user="{}"
|
|
23
25
|
:f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
|
|
@@ -50,6 +52,7 @@
|
|
|
50
52
|
</modal>
|
|
51
53
|
</template>
|
|
52
54
|
<script>
|
|
55
|
+
import FailureShow from './FailureShow'
|
|
53
56
|
import {HttpResetClass} from "vue-client";
|
|
54
57
|
import Vue from "vue";
|
|
55
58
|
|
|
@@ -242,6 +245,8 @@
|
|
|
242
245
|
},
|
|
243
246
|
},
|
|
244
247
|
components: {
|
|
248
|
+
FailureShow,
|
|
249
|
+
'failure-show': FailureShow
|
|
245
250
|
}
|
|
246
251
|
}
|
|
247
252
|
</script>
|