Authored by wangtao

故障拨测

... ... @@ -4,7 +4,7 @@
<h3 style="margin-left: 10px;color: #666666;font-size: 18px">业务拨测</h3>
<div style="width: calc(100% - 200px);line-height: 54px" class="align-right">
<a class="m-r-20" v-if="card && card.length > 0" @click="openMoreDialog">更多</a>
<a v-model="cardName" v-if="card && card.length > 0" @click="openOrCloseDialtest(dialTest.faultFixInfoList)">{{cardName}}</a>
<a v-model="cardName" v-if="card && card.length > 0" @click="openOrCloseDialtest()">{{cardName}}</a>
</div>
</div>
<el-divider/>
... ...
... ... @@ -26,13 +26,18 @@ export default {
let card = Vue.ref({})
let cardOpen = Vue.ref(false);
let cardName = Vue.ref('展开');
let openOrCloseDialtest = (data) => {
let openOrCloseDialtest = () => {
cardOpen.value = !cardOpen.value;
if (cardOpen.value) {
cardName.value = '收起';
getDialtestCard(data);
} else {
cardName.value = '展开';
if (cardOpen.value){
cardName.value='收起';
if (dialTest.value!=''&&dialTest.value!=null){
getDialtestCard(dialTest.value.faultFixInfoList);
}
}else {
cardName.value='展开';
cardData = Vue.ref([]);
}
}
... ... @@ -40,7 +45,7 @@ export default {
let getDialtestList = () => {
let params = {
faultNo: props.faultNo,
targetType: props.targetType
targetType: props.targetType.toLocaleLowerCase()
}
store.dispatch('getFaultList', params).then((res) => {
... ...