手机端
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
<folderTree ref="folderTreeRef" @checked="getChecked"></folderTree>
|
||||
</div>
|
||||
<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-primary" size="mini" icon="el-icon-check" type="primary" @click="handleOk">确定</el-button>
|
||||
</div>
|
||||
</van-popup>
|
||||
</template>
|
||||
@@ -52,6 +53,10 @@ export default {
|
||||
handleCancel () {
|
||||
this.hide()
|
||||
},
|
||||
handleReset () {
|
||||
this.$emit('checked', {})
|
||||
this.hide()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -6,15 +6,16 @@
|
||||
:close-on-click-overlay="false"
|
||||
@click-overlay="handleCancel">
|
||||
<h3 class="popup-title">
|
||||
<span>标准体系</span>
|
||||
<span>体系结构</span>
|
||||
<van-icon name="cross" size="22px" @click="handleCancel" />
|
||||
</h3>
|
||||
<div class="popup-main">
|
||||
<standardSystemTree ref="standardSystemTreeRef" :data="standardSystemTreeData" :loading="loading" @checkedKey="getCheckedKey"></standardSystemTree>
|
||||
</div>
|
||||
<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-primary" size="mini" icon="el-icon-check" type="primary" @click="handleOk">确定</el-button>
|
||||
</div>
|
||||
</van-popup>
|
||||
</template>
|
||||
@@ -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'
|
||||
})
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -72,11 +72,14 @@
|
||||
</div>
|
||||
</van-tab>
|
||||
<van-tab name="ZLZX" title="资料中心">
|
||||
<van-search v-model="currentSearch.name" show-action clearable placeholder="请输入搜索关键词" @focus="onFocus" >
|
||||
<template #action>
|
||||
<div @click="onCancel">取消</div>
|
||||
</template>
|
||||
</van-search>
|
||||
<!--<van-search v-model="currentSearch.name" show-action clearable placeholder="请输入搜索关键词" @focus="onOpen" >-->
|
||||
<!-- <template #action>-->
|
||||
<!-- <div @click="onCancel">取消</div>-->
|
||||
<!-- </template>-->
|
||||
<!--</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 v-if="loading">
|
||||
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user