Commit 130390bc authored by tianhongyang's avatar tianhongyang

甲方详情获取接口 重置数组

parent 9b3a0a34
...@@ -163,7 +163,6 @@ ...@@ -163,7 +163,6 @@
</template> </template>
<script> <script>
import ClipboardJS from 'clipboard';
import { changePath, encodeStr } from '@/assets/js/common'; import { changePath, encodeStr } from '@/assets/js/common';
var Swiper = require('@/assets/lib/swiper/swiper-bundle.min.js'); var Swiper = require('@/assets/lib/swiper/swiper-bundle.min.js');
import "@/assets/lib/swiper/swiper-bundle.css"; import "@/assets/lib/swiper/swiper-bundle.css";
...@@ -205,11 +204,6 @@ export default { ...@@ -205,11 +204,6 @@ export default {
}, },
mounted() { mounted() {
this.handleWidth(); //企业背景是否收起 this.handleWidth(); //企业背景是否收起
if (this.childStatistic.combineMember) {
this.graphList.unshift({
id: 0, name: '所属集团-' + this.childStatistic.combineMember.companyName, isShow: true, intro: [], ico: require('@/assets/images/detail/overview/company_ssjt.png')
});
}
this.companySwiper(); //swiper滚动板块 this.companySwiper(); //swiper滚动板块
api.label({ companyId: this.companyId }).then(res => { api.label({ companyId: this.companyId }).then(res => {
if (res.code == 200) { if (res.code == 200) {
...@@ -320,6 +314,9 @@ export default { ...@@ -320,6 +314,9 @@ export default {
} }
this.companySwiper(); //swiper滚动板块 this.companySwiper(); //swiper滚动板块
}, },
resetGrapList() {
this.graphList = this.$options.data.call(this).graphList;
},
//获取认领状态 //获取认领状态
getClaimStatus() { getClaimStatus() {
this.ifClaim = this.companyInfo.claimStatus; this.ifClaim = this.companyInfo.claimStatus;
...@@ -406,6 +403,7 @@ export default { ...@@ -406,6 +403,7 @@ export default {
statistic: { statistic: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.childStatistic = newVal; this.childStatistic = newVal;
this.resetGrapList();
this.handleStatistic(); this.handleStatistic();
}, },
deep: true, deep: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment