手机端-修改
This commit is contained in:
@@ -10,6 +10,14 @@
|
|||||||
<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">
|
||||||
|
<van-field name="radio" label="标准状态">
|
||||||
|
<template #input>
|
||||||
|
<van-radio-group v-model="textStatusName" direction="horizontal">
|
||||||
|
<van-radio name="全部">全部</van-radio>
|
||||||
|
<van-radio name="现行有效">现行有效</van-radio>
|
||||||
|
</van-radio-group>
|
||||||
|
</template>
|
||||||
|
</van-field>
|
||||||
<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">
|
||||||
@@ -31,6 +39,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
popupShow: true,
|
popupShow: true,
|
||||||
checkedKeys: [], // 选择的标准体系
|
checkedKeys: [], // 选择的标准体系
|
||||||
|
textStatusName: '全部',
|
||||||
standardSystemTreeData: [],
|
standardSystemTreeData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
api: {
|
api: {
|
||||||
@@ -64,7 +73,8 @@ export default {
|
|||||||
handleOk () {
|
handleOk () {
|
||||||
// if (this.checkedKeys.length > 0) {
|
// if (this.checkedKeys.length > 0) {
|
||||||
this.popupShow = false
|
this.popupShow = false
|
||||||
this.$emit('standSystemKeys', this.checkedKeys)
|
// this.$emit('standSystemKeys', this.checkedKeys)
|
||||||
|
this.$emit('searchQuery', { checkedKeys: this.checkedKeys, textStatusName: this.textStatusName })
|
||||||
// } else {
|
// } else {
|
||||||
// // this.$toast('请至少选择一项');
|
// // this.$toast('请至少选择一项');
|
||||||
// this.$message.error('请至少选择一项')
|
// this.$message.error('请至少选择一项')
|
||||||
@@ -81,7 +91,8 @@ export default {
|
|||||||
},
|
},
|
||||||
handleReset () {
|
handleReset () {
|
||||||
this.popupShow = false
|
this.popupShow = false
|
||||||
this.$emit('standSystemKeys', [])
|
// this.$emit('standSystemKeys', [])
|
||||||
|
this.$emit('searchQuery', { checkedKeys: [], textStatusName: '全部' })
|
||||||
},
|
},
|
||||||
async getData () {
|
async getData () {
|
||||||
let url = this.api.getListStand
|
let url = this.api.getListStand
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
:lazy="false"
|
:lazy="false"
|
||||||
:show-checkbox="true"
|
:show-checkbox="true"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
:default-expanded-keys="data[0].id"
|
: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"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<div v-else class="title">{{item.standSort + '  ' + item.standNumber }}</div>
|
<div v-else class="title">{{item.standSort + '  ' + item.standNumber }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="standContent">
|
<div class="standContent">
|
||||||
<div class="standState">{{item.standName && item.standName !== '' ? item.standName : item.standEnName}}</div>
|
<div class="standState">{{item.standName && item.standName !== '' ? item.standName : item.standEnName !== '' ? item.standEnName : item.nameshow }}</div>
|
||||||
<!-- <div class="standSubTime">标准性质:-->
|
<!-- <div class="standSubTime">标准性质:-->
|
||||||
<!-- <span v-if="natureMap[item.standNature] === '强制性' "-->
|
<!-- <span v-if="natureMap[item.standNature] === '强制性' "-->
|
||||||
<!-- style="color: #F56C6C; padding-left: 5px;">-->
|
<!-- style="color: #F56C6C; padding-left: 5px;">-->
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
<div v-else-if="!listFlag && moreFlag" @click="moreList" >点击加载更多</div>
|
<div v-else-if="!listFlag && moreFlag" @click="moreList" >点击加载更多</div>
|
||||||
<van-loading v-else size="24px" color="#3170A8">加载中...</van-loading>
|
<van-loading v-else size="24px" color="#3170A8">加载中...</van-loading>
|
||||||
</div>
|
</div>
|
||||||
<standardSystemPopup :init-keys="standSystemKeys" @standSystemKeys="setStandSystemKeys" ref="standardSystemPopupRef" />
|
<standardSystemPopup :init-keys="standSystemKeys" @searchQuery="setSearchQuery" ref="standardSystemPopupRef" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -131,6 +131,7 @@ export default {
|
|||||||
textStatusMap: {},// 文本状态id与name对应
|
textStatusMap: {},// 文本状态id与name对应
|
||||||
natureMap:{},
|
natureMap:{},
|
||||||
lawsMap:{},
|
lawsMap:{},
|
||||||
|
textStatusName: '全部',
|
||||||
standSystemKeys: []
|
standSystemKeys: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -190,6 +191,7 @@ export default {
|
|||||||
selectIndex: 'stand',
|
selectIndex: 'stand',
|
||||||
selectValue: this.searchKey,
|
selectValue: this.searchKey,
|
||||||
standSystem: this.standSystemKeys,
|
standSystem: this.standSystemKeys,
|
||||||
|
textStatusName: this.textStatusName,
|
||||||
selectType: 'titleSearch',
|
selectType: 'titleSearch',
|
||||||
standType: 'INLAND',
|
standType: 'INLAND',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
@@ -227,6 +229,7 @@ export default {
|
|||||||
selectIndex: 'stand',
|
selectIndex: 'stand',
|
||||||
selectValue: this.searchKey,
|
selectValue: this.searchKey,
|
||||||
standSystem: this.standSystemKeys,
|
standSystem: this.standSystemKeys,
|
||||||
|
textStatusName: this.textStatusName,
|
||||||
selectType: 'titleSearch',
|
selectType: 'titleSearch',
|
||||||
standType: 'FOREIGN',
|
standType: 'FOREIGN',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
@@ -249,6 +252,7 @@ export default {
|
|||||||
selectIndex: 'bussstand',
|
selectIndex: 'bussstand',
|
||||||
selectValue: this.searchKey,
|
selectValue: this.searchKey,
|
||||||
standSystem: this.standSystemKeys,
|
standSystem: this.standSystemKeys,
|
||||||
|
textStatusBussName: this.textStatusName,
|
||||||
selectType: 'titleSearch',
|
selectType: 'titleSearch',
|
||||||
standType: 'bussstand',
|
standType: 'bussstand',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
@@ -355,6 +359,7 @@ export default {
|
|||||||
selectIndex: 'stand',
|
selectIndex: 'stand',
|
||||||
selectValue: this.searchKey,
|
selectValue: this.searchKey,
|
||||||
standSystem: this.standSystemKeys,
|
standSystem: this.standSystemKeys,
|
||||||
|
textStatusName: this.textStatusName,
|
||||||
selectType: 'titleSearch',
|
selectType: 'titleSearch',
|
||||||
standType: 'INLAND',
|
standType: 'INLAND',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
@@ -410,6 +415,7 @@ export default {
|
|||||||
selectIndex: 'stand',
|
selectIndex: 'stand',
|
||||||
selectValue: this.searchKey,
|
selectValue: this.searchKey,
|
||||||
standSystem: this.standSystemKeys,
|
standSystem: this.standSystemKeys,
|
||||||
|
textStatusName: this.textStatusName,
|
||||||
selectType: 'titleSearch',
|
selectType: 'titleSearch',
|
||||||
standType: 'FOREIGN',
|
standType: 'FOREIGN',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
@@ -440,6 +446,7 @@ export default {
|
|||||||
selectIndex: 'bussstand',
|
selectIndex: 'bussstand',
|
||||||
selectValue: this.searchKey,
|
selectValue: this.searchKey,
|
||||||
standSystem: this.standSystemKeys,
|
standSystem: this.standSystemKeys,
|
||||||
|
textStatusBussName: this.textStatusName,
|
||||||
selectType: 'titleSearch',
|
selectType: 'titleSearch',
|
||||||
standType: 'bussstand',
|
standType: 'bussstand',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
@@ -572,6 +579,11 @@ export default {
|
|||||||
onChoose () {
|
onChoose () {
|
||||||
this.$refs.standardSystemPopupRef.open()
|
this.$refs.standardSystemPopupRef.open()
|
||||||
},
|
},
|
||||||
|
setSearchQuery (searchQuery) {
|
||||||
|
this.standSystemKeys = searchQuery.checkedKeys
|
||||||
|
this.textStatusName = searchQuery.textStatusName
|
||||||
|
this.onSearch()
|
||||||
|
},
|
||||||
setStandSystemKeys (standSystemKeys) {
|
setStandSystemKeys (standSystemKeys) {
|
||||||
this.standSystemKeys = standSystemKeys
|
this.standSystemKeys = standSystemKeys
|
||||||
this.onSearch()
|
this.onSearch()
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
<span class="content-span">标准化动态</span>
|
<span class="content-span">标准化动态</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="footer" style="">系统开发中...</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -199,5 +200,12 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.footer{
|
||||||
|
color: #3170A7;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user