diff --git a/src/pages/phone/components/folderPopup.vue b/src/pages/phone/components/folderPopup.vue index 2957ea640..7f3d5f023 100644 --- a/src/pages/phone/components/folderPopup.vue +++ b/src/pages/phone/components/folderPopup.vue @@ -13,8 +13,9 @@ @@ -52,6 +53,10 @@ export default { handleCancel () { this.hide() }, + handleReset () { + this.$emit('checked', {}) + this.hide() + } } } diff --git a/src/pages/phone/components/standardSystemPopup.vue b/src/pages/phone/components/standardSystemPopup.vue index b098c6d41..cd5c6d868 100644 --- a/src/pages/phone/components/standardSystemPopup.vue +++ b/src/pages/phone/components/standardSystemPopup.vue @@ -6,15 +6,16 @@ :close-on-click-overlay="false" @click-overlay="handleCancel"> @@ -31,7 +32,11 @@ export default { popupShow: true, checkedKeys: [], // 选择的标准体系 standardSystemTreeData: [], - loading: false + loading: false, + api: { + getListStand: 'sarResource/ts-resource/getListStand', // 国内/海外 + getListStandLimitData: 'sarResource/ts-resource/getListStandLimitData' // 企标 + } } }, props: { @@ -74,10 +79,26 @@ export default { // this.open() // } }, + handleReset () { + this.popupShow = false + this.$emit('standSystemKeys', []) + }, async getData () { - const res = await this.$http._getData('lawss/sarMenuStandardLimit/getListStandLimit',{ - dicId:'9m4qqqaansxmox5e82zm' - },{ + let url = this.api.getListStand + let query = { sorDivide: 'INLAND_STAND' } + switch (this.$route.query.standType) { + case 'INLAND': + break + case 'FOREIGN': + query.sorDivide = 'FOREIGN_STAND' + break + case 'bussstand': + url = this.api.getListStandLimitData + query.sorDivide = 'BUSINESS_STAND' + break + } + //INLAND 国内 FOREIGN 海外 bussstand 企标 + const res = await this.$http._getData(url,query,{ _this:this, loading: 'loading' }) diff --git a/src/pages/phone/components/standardSystemTree.vue b/src/pages/phone/components/standardSystemTree.vue index 16e24aa05..d5f0098f4 100644 --- a/src/pages/phone/components/standardSystemTree.vue +++ b/src/pages/phone/components/standardSystemTree.vue @@ -9,7 +9,7 @@ :lazy="false" :show-checkbox="true" node-key="id" - :default-expanded-keys="['aaaaaaaaaaaaaaaaaaaaaa']" + :default-expanded-keys="data[0].id" :check-strictly="true" :expand-on-click-node="false" :check-on-click-node="true" diff --git a/src/pages/phone/standDynamics.vue b/src/pages/phone/standDynamics.vue index 62c9cea99..dcf1cb6cd 100644 --- a/src/pages/phone/standDynamics.vue +++ b/src/pages/phone/standDynamics.vue @@ -72,11 +72,14 @@ - - - + + + + + +
+ +
加载中... @@ -304,7 +307,7 @@ export default { this.$set(this.textStatusMap, item.value, item.label); }); }, - onFocus () { + onOpen () { this.$refs.folderPopupRef.open(this.currentSearch.id || null) }, onCancel () {