手机端-修改

This commit is contained in:
zyn
2023-11-07 15:57:56 +08:00
parent 57981cf8bc
commit a465ac2243
3 changed files with 13 additions and 3 deletions
@@ -39,7 +39,7 @@ export default {
return { return {
popupShow: true, popupShow: true,
checkedKeys: [], // 选择的标准体系 checkedKeys: [], // 选择的标准体系
textStatusName: '全部', textStatusName: '现行有效',
standardSystemTreeData: [], standardSystemTreeData: [],
loading: false, loading: false,
api: { api: {
@@ -92,7 +92,7 @@ export default {
handleReset () { handleReset () {
this.popupShow = false this.popupShow = false
// this.$emit('standSystemKeys', []) // this.$emit('standSystemKeys', [])
this.$emit('searchQuery', { checkedKeys: [], textStatusName: '全部' }) this.$emit('searchQuery', { checkedKeys: [], textStatusName: '现行有效' })
}, },
async getData () { async getData () {
let url = this.api.getListStand let url = this.api.getListStand
+1 -1
View File
@@ -131,7 +131,7 @@ export default {
textStatusMap: {},// 文本状态id与name对应 textStatusMap: {},// 文本状态id与name对应
natureMap:{}, natureMap:{},
lawsMap:{}, lawsMap:{},
textStatusName: '全部', textStatusName: '现行有效',
standSystemKeys: [] standSystemKeys: []
} }
}, },
+10
View File
@@ -199,6 +199,8 @@ export default {
this.page++; this.page++;
if (this.messageType == "ZLZX") { if (this.messageType == "ZLZX") {
this.getAdvice(); this.getAdvice();
console.log(this.$refs.cardBoxThree.scrollTop)
} else { } else {
this.onDynamics(); this.onDynamics();
} }
@@ -243,6 +245,10 @@ export default {
//获取数据 //获取数据
getAdvice(first = false) { getAdvice(first = false) {
this.listFlag = false; this.listFlag = false;
let scrollTop = 0
if (this.$refs.cardBoxThree) {
scrollTop = this.$refs.cardBoxThree.scrollTop
}
this.$http.get("fileMaterialCenter/file-material", { this.$http.get("fileMaterialCenter/file-material", {
page: first ? 1 : this.page, page: first ? 1 : this.page,
pageSize: 10, pageSize: 10,
@@ -255,6 +261,9 @@ export default {
if (mList.length) { if (mList.length) {
if (!first && this.standardReleaseList.length) { if (!first && this.standardReleaseList.length) {
this.standardReleaseList = this.standardReleaseList.concat(mList); this.standardReleaseList = this.standardReleaseList.concat(mList);
this.$nextTick(() => {
this.$refs.cardBoxThree.scrollTop = scrollTop
})
} else { } else {
this.standardReleaseList = mList; this.standardReleaseList = mList;
} }
@@ -322,6 +331,7 @@ export default {
mounted() { mounted() {
this.onDynamics(); this.onDynamics();
this.getAdvice(); this.getAdvice();
this.$refs.cardBoxThree.addEventListener('scroll', this.scroolThree);
//从数据库中查询下拉框数据 //从数据库中查询下拉框数据
this.$http.get("sys/dictype/getDicTypeListCode", {}, { this.$http.get("sys/dictype/getDicTypeListCode", {}, {
_this: this _this: this