|
@@ -8,7 +8,7 @@
|
8
|
8
|
<view v-html="data.content"></view>
|
9
|
9
|
</view>
|
10
|
10
|
<view class="sign">
|
11
|
|
- <view>引入次数:{{data.introduceCount}}</view>
|
|
11
|
+ <view>引入次数:{{data.introduceCount || 0}}</view>
|
12
|
12
|
<view>{{data.createtime}}</view>
|
13
|
13
|
</view>
|
14
|
14
|
</view>
|
|
@@ -29,15 +29,22 @@
|
29
|
29
|
import { api_getSolution } from "@/http/api.js"
|
30
|
30
|
import { useSetTitle } from '@/share/useSetTitle.js'
|
31
|
31
|
import { useGoBack } from '@/share/useGoBack.js'
|
32
|
|
-
|
|
32
|
+ import { useHandlerStore } from '@/stores/handler'
|
|
33
|
+
|
33
|
34
|
useSetTitle();
|
|
35
|
+
|
|
36
|
+ const handlerStore = useHandlerStore();
|
|
37
|
+
|
34
|
38
|
const { goBack } = useGoBack();
|
35
|
39
|
|
36
|
40
|
// 操作类型
|
37
|
|
- const operateType = ref(null)
|
|
41
|
+ // const operateType = ref(null)
|
|
42
|
+
|
|
43
|
+ // 关联故障分类的知识库数量
|
|
44
|
+ const introduceCount = ref(0)
|
38
|
45
|
|
39
|
46
|
// tab类型
|
40
|
|
- const tabType = ref(null)
|
|
47
|
+ // const tabType = ref(null)
|
41
|
48
|
|
42
|
49
|
// 数据
|
43
|
50
|
const dataInfo = reactive({
|
|
@@ -51,29 +58,34 @@
|
51
|
58
|
function toCategoryTwo(data){
|
52
|
59
|
uni.navigateTo({
|
53
|
60
|
url: `/pages/repositoryDetails/repositoryDetails?incidentId=${dataInfo.incidentId}
|
54
|
|
- &solutionnumber=${data.solutionnumber}&operateType=${operateType.value}
|
55
|
|
- &tabType=${tabType.value}`
|
|
61
|
+ &solutionnumber=${data.solutionnumber}`
|
56
|
62
|
})
|
57
|
63
|
}
|
58
|
64
|
|
59
|
65
|
// 引入
|
60
|
66
|
function importData(data){
|
61
|
67
|
let url = null
|
62
|
|
- if(operateType.value=='malfunction'){ //故障处理
|
|
68
|
+ let type = handlerStore.handler.data.operateType
|
|
69
|
+ let storeInfo = handlerStore.handler.data
|
|
70
|
+ storeInfo.introduceCount = introduceCount.value
|
|
71
|
+ storeInfo.handleDescription = data.content
|
|
72
|
+ storeInfo.solutionId = data.id
|
|
73
|
+ storeInfo.type = 'rep'
|
|
74
|
+ storeInfo.isSummaryNext = 1
|
|
75
|
+ handlerStore.setHandlerData(storeInfo,'assign', 'assign')
|
|
76
|
+ if(type=='malfunction'){ //故障处理
|
63
|
77
|
url = '/pages/handler/handler'
|
64
|
|
- }else if(operateType.value=='reissue'){ //补单
|
|
78
|
+ }else if(type=='reissue'){ //补单
|
65
|
79
|
url = '/pages/assign/assign'
|
66
|
80
|
}
|
67
|
81
|
uni.navigateTo({
|
68
|
|
- url: `${url}?incidentId=${encodeURIComponent(JSON.stringify(dataInfo.incidentId))}
|
69
|
|
- &handleDescription=${encodeURIComponent(data.content)}&solutionId=${encodeURIComponent(JSON.stringify(data.id))}&isSummaryNext=1&type=${encodeURIComponent('rep')}
|
70
|
|
- &introduceCount=${encodeURIComponent(data.introduceCount)}
|
71
|
|
- &tabType=${encodeURIComponent(tabType.value)}`
|
|
82
|
+ url: url
|
72
|
83
|
})
|
73
|
84
|
}
|
74
|
85
|
|
75
|
86
|
// 获取列表信息
|
76
|
87
|
function getList(idx){
|
|
88
|
+
|
77
|
89
|
uni.showLoading({
|
78
|
90
|
title: "加载中",
|
79
|
91
|
mask: true,
|
|
@@ -83,19 +95,15 @@
|
83
|
95
|
if(dataInfo.idx === 0){
|
84
|
96
|
dataInfo.list = [];
|
85
|
97
|
}
|
86
|
|
-
|
|
98
|
+ console.log(777,handlerStore.handler.data)
|
87
|
99
|
let postData = {
|
88
|
100
|
idx: dataInfo.idx,
|
89
|
|
- sum: 20,
|
|
101
|
+ sum: 9999,
|
90
|
102
|
solution: {
|
91
|
|
- selectType:"",
|
92
|
|
- keySearch:"",
|
93
|
|
- keywords:"",
|
94
|
|
- solutionType:{id:""},
|
|
103
|
+ category:{
|
|
104
|
+ id:handlerStore.handler.data.category.id,
|
|
105
|
+ },
|
95
|
106
|
status:{id:72},
|
96
|
|
- createUser:{name:""},
|
97
|
|
- dutyId:1,
|
98
|
|
- tabType:"publish"
|
99
|
107
|
}
|
100
|
108
|
}
|
101
|
109
|
|
|
@@ -104,6 +112,7 @@
|
104
|
112
|
uni.stopPullDownRefresh();
|
105
|
113
|
if(res.status == 200){
|
106
|
114
|
let list = res.list || [];
|
|
115
|
+ introduceCount.value = res.totalNum
|
107
|
116
|
if(list.length){
|
108
|
117
|
dataInfo.hasMore = true;
|
109
|
118
|
dataInfo.list = dataInfo.idx === 0 ? list : dataInfo.list.concat(list);
|
|
@@ -121,8 +130,6 @@
|
121
|
130
|
|
122
|
131
|
onLoad((option) => {
|
123
|
132
|
dataInfo.incidentId = option.incidentId;
|
124
|
|
- operateType.value = option.operateType;
|
125
|
|
- tabType.value = option.tabType
|
126
|
133
|
getList(0);
|
127
|
134
|
})
|
128
|
135
|
|