| | |
| | | import languageMixin from "@/mixin/language.js"; |
| | | |
| | | export default { |
| | | name:"SelSeries", |
| | | mixins: [languageMixin], |
| | | data() { |
| | | return { |
| | |
| | | showPopover: false |
| | | }; |
| | | }, |
| | | activated() { |
| | | // keepalive缓存的页面每次进入都会进行的生命周期 |
| | | console.log("keepalive缓存的页面每次进入都会进行的生命周期") |
| | | }, |
| | | mounted() { |
| | | let _this = this; |
| | | let userType = this.$store.state.instante.account.UserType; |
| | |
| | | } |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | // console.log(res); |
| | | let result = res.data; |
| | | if (result.Code != 0) { |
| | | myToast.clear(); |
| | |
| | | changeSelectAllList(val) { |
| | | let SeriesID = []; |
| | | if (val) { |
| | | this.m_SeriesList.forEach(node => { |
| | | this.m_VisibleSeriesList.forEach(node => { |
| | | node.isCheck = true; |
| | | SeriesID.push(node.ID); |
| | | }); |
| | | this.m_SelectSeriesID = SeriesID; |
| | | } else { |
| | | this.m_SeriesList.forEach(node => { |
| | | this.m_VisibleSeriesList.forEach(node => { |
| | | node.isCheck = false; |
| | | }); |
| | | this.m_SelectSeriesID = []; |
| | |
| | | }, |
| | | //跳转到泵详情界面 |
| | | toSelPumpList() { |
| | | let Toast = this.$toast; |
| | | if (this.m_SelectSeriesID.length == 0) { |
| | | let Toast = this.$toast; |
| | | if (this.m_selectIndex == 1) { |
| | | Toast.fail({ |
| | | duration: 1000, //为0时 不关闭toast框 |
| | |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | if (this.m_SelectSeriesID.length > 10) { |
| | | Toast.fail({ |
| | | duration: 1000, //为0时 不关闭toast框 |
| | | message: `${'选择的系列不能超过十个'}`, |
| | | forbidClick: true |
| | | }); |
| | | return |
| | | } |
| | | let groupPageData = { |
| | | //页面其他展示数据 |
| | |
| | | IsVisCorrect: this.m_prevPageData.DesignInfo.IsVisCorrect //是否修正粘度 默认false |
| | | } |
| | | }; |
| | | console.log(groupPageData,497) |
| | | //将筛选数据存储到vuex中 |
| | | this.$store.commit("instante/select/ByParas", { |
| | | //select 表示vuex的文件名 |
| | |
| | | } |
| | | }) |
| | | }) |
| | | console.log(showSeriesList,568) |
| | | // console.log(showSeriesList,568) |
| | | this.filterSeriesList( |
| | | showSeriesList, |
| | | this.m_pinlv |
| | | ); |
| | | // this.m_VisibleSeriesList = showSeriesList |
| | | //判断当前是否是全选 |
| | | // if(this.m_BrandValue.length != this.m_BrandColumns.length){ |
| | | // this.brandSelectAll = false |
| | | // }else { |
| | | // this.brandSelectAll = true |
| | | // } |
| | | |
| | | }, |
| | | //公司筛选列表去重 |
| | | uniqueCorpList (arr) { |