手机端
This commit is contained in:
@@ -13,8 +13,9 @@
|
|||||||
<folderTree ref="folderTreeRef" @checked="getChecked"></folderTree>
|
<folderTree ref="folderTreeRef" @checked="getChecked"></folderTree>
|
||||||
</div>
|
</div>
|
||||||
<div class="popup-footer">
|
<div class="popup-footer">
|
||||||
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="handleOk">确定</el-button>
|
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="handleReset">重置</el-button>
|
||||||
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="handleCancel">取消</el-button>
|
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="handleCancel">取消</el-button>
|
||||||
|
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="handleOk">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
</template>
|
</template>
|
||||||
@@ -52,6 +53,10 @@ export default {
|
|||||||
handleCancel () {
|
handleCancel () {
|
||||||
this.hide()
|
this.hide()
|
||||||
},
|
},
|
||||||
|
handleReset () {
|
||||||
|
this.$emit('checked', {})
|
||||||
|
this.hide()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -6,15 +6,16 @@
|
|||||||
:close-on-click-overlay="false"
|
:close-on-click-overlay="false"
|
||||||
@click-overlay="handleCancel">
|
@click-overlay="handleCancel">
|
||||||
<h3 class="popup-title">
|
<h3 class="popup-title">
|
||||||
<span>标准体系</span>
|
<span>体系结构</span>
|
||||||
<van-icon name="cross" size="22px" @click="handleCancel" />
|
<van-icon name="cross" size="22px" @click="handleCancel" />
|
||||||
</h3>
|
</h3>
|
||||||
<div class="popup-main">
|
<div class="popup-main">
|
||||||
<standardSystemTree ref="standardSystemTreeRef" :data="standardSystemTreeData" :loading="loading" @checkedKey="getCheckedKey"></standardSystemTree>
|
<standardSystemTree ref="standardSystemTreeRef" :data="standardSystemTreeData" :loading="loading" @checkedKey="getCheckedKey"></standardSystemTree>
|
||||||
</div>
|
</div>
|
||||||
<div class="popup-footer">
|
<div class="popup-footer">
|
||||||
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="handleOk">确定</el-button>
|
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="handleReset">重置</el-button>
|
||||||
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="handleCancel">取消</el-button>
|
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="handleCancel">取消</el-button>
|
||||||
|
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="handleOk">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,7 +32,11 @@ export default {
|
|||||||
popupShow: true,
|
popupShow: true,
|
||||||
checkedKeys: [], // 选择的标准体系
|
checkedKeys: [], // 选择的标准体系
|
||||||
standardSystemTreeData: [],
|
standardSystemTreeData: [],
|
||||||
loading: false
|
loading: false,
|
||||||
|
api: {
|
||||||
|
getListStand: 'sarResource/ts-resource/getListStand', // 国内/海外
|
||||||
|
getListStandLimitData: 'sarResource/ts-resource/getListStandLimitData' // 企标
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -74,10 +79,26 @@ export default {
|
|||||||
// this.open()
|
// this.open()
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
handleReset () {
|
||||||
|
this.popupShow = false
|
||||||
|
this.$emit('standSystemKeys', [])
|
||||||
|
},
|
||||||
async getData () {
|
async getData () {
|
||||||
const res = await this.$http._getData('lawss/sarMenuStandardLimit/getListStandLimit',{
|
let url = this.api.getListStand
|
||||||
dicId:'9m4qqqaansxmox5e82zm'
|
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,
|
_this:this,
|
||||||
loading: 'loading'
|
loading: 'loading'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
:lazy="false"
|
:lazy="false"
|
||||||
:show-checkbox="true"
|
:show-checkbox="true"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
:default-expanded-keys="['aaaaaaaaaaaaaaaaaaaaaa']"
|
:default-expanded-keys="data[0].id"
|
||||||
:check-strictly="true"
|
:check-strictly="true"
|
||||||
:expand-on-click-node="false"
|
:expand-on-click-node="false"
|
||||||
:check-on-click-node="true"
|
:check-on-click-node="true"
|
||||||
|
|||||||
@@ -72,11 +72,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</van-tab>
|
</van-tab>
|
||||||
<van-tab name="ZLZX" title="资料中心">
|
<van-tab name="ZLZX" title="资料中心">
|
||||||
<van-search v-model="currentSearch.name" show-action clearable placeholder="请输入搜索关键词" @focus="onFocus" >
|
<!--<van-search v-model="currentSearch.name" show-action clearable placeholder="请输入搜索关键词" @focus="onOpen" >-->
|
||||||
<template #action>
|
<!-- <template #action>-->
|
||||||
<div @click="onCancel">取消</div>
|
<!-- <div @click="onCancel">取消</div>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</van-search>
|
<!--</van-search>-->
|
||||||
|
<div style="padding: 10px 12px 0;text-align: right">
|
||||||
|
<van-icon name="filter-o" color="#000" size="20px" style="margin-right: 20px" @click="onOpen" />
|
||||||
|
</div>
|
||||||
<div class="card-box-three" ref="cardBoxThree" @scroll="scroolThree">
|
<div class="card-box-three" ref="cardBoxThree" @scroll="scroolThree">
|
||||||
<div v-if="loading">
|
<div v-if="loading">
|
||||||
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
||||||
@@ -304,7 +307,7 @@ export default {
|
|||||||
this.$set(this.textStatusMap, item.value, item.label);
|
this.$set(this.textStatusMap, item.value, item.label);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onFocus () {
|
onOpen () {
|
||||||
this.$refs.folderPopupRef.open(this.currentSearch.id || null)
|
this.$refs.folderPopupRef.open(this.currentSearch.id || null)
|
||||||
},
|
},
|
||||||
onCancel () {
|
onCancel () {
|
||||||
|
|||||||
Reference in New Issue
Block a user