Authored by wangtao

故障拨测

@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <h3 style="margin-left: 10px;color: #666666;font-size: 18px">业务拨测</h3> 4 <h3 style="margin-left: 10px;color: #666666;font-size: 18px">业务拨测</h3>
5 <div style="width: calc(100% - 200px);line-height: 54px" class="align-right"> 5 <div style="width: calc(100% - 200px);line-height: 54px" class="align-right">
6 <a class="m-r-20" v-if="card && card.length > 0" @click="openMoreDialog">更多</a> 6 <a class="m-r-20" v-if="card && card.length > 0" @click="openMoreDialog">更多</a>
7 - <a v-model="cardName" v-if="card && card.length > 0" @click="openOrCloseDialtest(dialTest.faultFixInfoList)">{{cardName}}</a> 7 + <a v-model="cardName" v-if="card && card.length > 0" @click="openOrCloseDialtest()">{{cardName}}</a>
8 </div> 8 </div>
9 </div> 9 </div>
10 <el-divider/> 10 <el-divider/>
@@ -26,13 +26,18 @@ export default { @@ -26,13 +26,18 @@ export default {
26 let card = Vue.ref({}) 26 let card = Vue.ref({})
27 let cardOpen = Vue.ref(false); 27 let cardOpen = Vue.ref(false);
28 let cardName = Vue.ref('展开'); 28 let cardName = Vue.ref('展开');
29 - let openOrCloseDialtest = (data) => { 29 +
  30 +
  31 + let openOrCloseDialtest = () => {
30 cardOpen.value = !cardOpen.value; 32 cardOpen.value = !cardOpen.value;
31 - if (cardOpen.value) {  
32 - cardName.value = '收起';  
33 - getDialtestCard(data);  
34 - } else {  
35 - cardName.value = '展开'; 33 + if (cardOpen.value){
  34 + cardName.value='收起';
  35 + if (dialTest.value!=''&&dialTest.value!=null){
  36 + getDialtestCard(dialTest.value.faultFixInfoList);
  37 + }
  38 + }else {
  39 + cardName.value='展开';
  40 + cardData = Vue.ref([]);
36 } 41 }
37 } 42 }
38 43
@@ -40,7 +45,7 @@ export default { @@ -40,7 +45,7 @@ export default {
40 let getDialtestList = () => { 45 let getDialtestList = () => {
41 let params = { 46 let params = {
42 faultNo: props.faultNo, 47 faultNo: props.faultNo,
43 - targetType: props.targetType 48 + targetType: props.targetType.toLocaleLowerCase()
44 } 49 }
45 50
46 store.dispatch('getFaultList', params).then((res) => { 51 store.dispatch('getFaultList', params).then((res) => {