标准入库流程提交失败提示语

This commit is contained in:
zyx.net
2022-11-14 16:18:31 +08:00
parent 997453e664
commit 3b49f993fc
3 changed files with 4285 additions and 108 deletions
File diff suppressed because one or more lines are too long
+82 -65
View File
@@ -12,7 +12,8 @@
<div v-if="loading">
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
</div>
<div v-else-if="!loading && standList.length" class="card-content" @click="jumpDetails(item)" v-for="item in standList" :key="item.id" >
<div v-else-if="!loading && standList.length" class="card-content" @click="jumpDetails(item)"
v-for="item in standList" :key="item.id">
<div class="standTitle">
<div class="title">{{ item.standardName }}</div>
</div>
@@ -43,7 +44,8 @@
<div v-if="loading">
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
</div>
<div v-else-if="!loading && standList.length" class="card-content" @click="jumpDetails(item)" v-for="item in standList" :key="item.id">
<div v-else-if="!loading && standList.length" class="card-content" @click="jumpDetails(item)"
v-for="item in standList" :key="item.id">
<div class="standTitle">
<div class="title">{{ item.standardName }}</div>
</div>
@@ -74,14 +76,19 @@
<div v-if="loading">
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
</div>
<div v-else-if="!loading && standardReleaseList.length" class="card-content" @click="jumpDetails(item)" v-for="item in standardReleaseList" :key="item.id">
<div v-else-if="!loading && standardReleaseList.length" class="card-content" @click="jumpDetails(item)"
v-for="item in standardReleaseList" :key="item.id">
<div class="standTitle">
<div class="title">{{ item.dataTitle && item.dataTitle.length > 40 ?item.dataTitle.slice(0,39)+'...':item.dataTitle }}</div>
<div class="title">
{{ item.dataTitle && item.dataTitle.length > 40 ? item.dataTitle.slice(0, 39) + "..." : item.dataTitle
}}
</div>
</div>
<div class="standContent">
<div class="standState">类型:
<span style="color: #35720B; padding-left: 5px;">
{{item.dataType && item.dataType.length > 30 ?item.dataType.slice(0,29)+'...':item.dataType }}
{{ item.dataType && item.dataType.length > 30 ? item.dataType.slice(0, 29) + "..." : item.dataType
}}
</span></div>
<div class="standSubTime">上传时间:
<span style="padding-left: 5px;">
@@ -118,55 +125,55 @@ export default {
standStateOptions: [], //存放文本状态
textStatusMap: {},// 文本状态id与name对应
loading: true,
scrolled: '',
scrolled: "",
moreFlag: false,
listFlag: false
};
},
methods: {
scroolOne() {
this.scrolled = this.$refs.cardBoxOne.scrollTop
console.log(this.$refs.cardBoxOne.scrollTop)
this.scrolled = this.$refs.cardBoxOne.scrollTop;
console.log(this.$refs.cardBoxOne.scrollTop);
//获得可视区的高度
const windowHeight = this.$refs.cardBoxOne.clientHeight
const windowHeight = this.$refs.cardBoxOne.clientHeight;
//获取滚动条的总高度
const scrollHeight = this.$refs.cardBoxOne.scrollHeight
let windowScrolled = this.scrolled + windowHeight
const scrollHeight = this.$refs.cardBoxOne.scrollHeight;
let windowScrolled = this.scrolled + windowHeight;
if (scrollHeight - windowScrolled < 100 && this.scrolled !== 0) {
//把距离顶部的距离加上可视区域的高度
this.moreFlag = true
this.moreFlag = true;
} else {
this.moreFlag = false
this.moreFlag = false;
}
},
scroolTwo() {
this.scrolled = this.$refs.cardBoxTwo.scrollTop
console.log(this.$refs.cardBoxTwo.scrollTop)
this.scrolled = this.$refs.cardBoxTwo.scrollTop;
console.log(this.$refs.cardBoxTwo.scrollTop);
//获得可视区的高度
const windowHeight = this.$refs.cardBoxTwo.clientHeight
const windowHeight = this.$refs.cardBoxTwo.clientHeight;
//获取滚动条的总高度
const scrollHeight = this.$refs.cardBoxTwo.scrollHeight
let windowScrolled = this.scrolled + windowHeight
const scrollHeight = this.$refs.cardBoxTwo.scrollHeight;
let windowScrolled = this.scrolled + windowHeight;
if (scrollHeight - windowScrolled < 100 && this.scrolled !== 0) {
//把距离顶部的距离加上可视区域的高度
this.moreFlag = true
this.moreFlag = true;
} else {
this.moreFlag = false
this.moreFlag = false;
}
},
scroolThree() {
this.scrolled = this.$refs.cardBoxTwo.scrollTop
console.log(this.$refs.cardBoxTwo.scrollTop)
this.scrolled = this.$refs.cardBoxTwo.scrollTop;
console.log(this.$refs.cardBoxTwo.scrollTop);
//获得可视区的高度
const windowHeight = this.$refs.cardBoxTwo.clientHeight
const windowHeight = this.$refs.cardBoxTwo.clientHeight;
//获取滚动条的总高度
const scrollHeight = this.$refs.cardBoxTwo.scrollHeight
let windowScrolled = this.scrolled + windowHeight
const scrollHeight = this.$refs.cardBoxTwo.scrollHeight;
let windowScrolled = this.scrolled + windowHeight;
if (scrollHeight - windowScrolled < 100 && this.scrolled !== 0) {
//把距离顶部的距离加上可视区域的高度
this.moreFlag = true
this.moreFlag = true;
} else {
this.moreFlag = false
this.moreFlag = false;
}
},
//返回上一个页面
@@ -174,48 +181,48 @@ export default {
this.$router.push("/phoneHome");
},
moreList() {
this.moreFlag = false
this.loadingFlag = true
this.page++
if(this.messageType == 'ZLZX'){
this.getAdvice()
this.moreFlag = false;
this.loadingFlag = true;
this.page++;
if (this.messageType == "ZLZX") {
this.getAdvice();
} else {
this.onDynamics();
}
},
jumpDetails(item) {
if(this.messageType == 'ZYBZFG'){
if (this.messageType == "ZYBZFG") {
this.$router.push({
name: 'domesticDetails',
name: "domesticDetails",
query: {
id: item.standardId,
pageType: 'INLAND_STAND'
pageType: "INLAND_STAND"
}
})
} else if(this.messageType == 'GNWBZFG'){
});
} else if (this.messageType == "GNWBZFG") {
this.$router.push({
name: 'domesticDetails',
name: "domesticDetails",
query: {
id: item.standardId,
pageType: 'INLAND_STAND'
pageType: "INLAND_STAND"
}
})
});
} else {
this.$router.push({
name: 'zlzxDetails',
name: "zlzxDetails",
query: {
id: item.id
}
})
});
}
},
onChange(name) {
this.messageType = name;
this.page = 1;
this.standList = []
this.standardReleaseList = []
if(this.messageType == 'ZLZX'){
this.getAdvice()
this.standList = [];
this.standardReleaseList = [];
if (this.messageType == "ZLZX") {
this.getAdvice();
} else {
this.onDynamics();
}
@@ -226,32 +233,32 @@ export default {
page: this.page,
pageSize: 10
}, {
_this: this,loading: 'loading'
_this: this, loading: "loading"
}, res => {
if (res.ok) {
let mList= res.data
let mList = res.data;
if (mList.length) {
if (this.standardReleaseList.length) {
this.standardReleaseList = this.standardReleaseList.concat(mList)
this.standardReleaseList = this.standardReleaseList.concat(mList);
} else {
this.standardReleaseList = mList
this.standardReleaseList = mList;
}
this.loading = false
this.loading = false;
} else {
this.loading = false
this.listFlag = true
this.loading = false;
this.listFlag = true;
}
} else {
this.standardReleaseList = []
this.standardReleaseList = [];
this.loading = false;
}
}, e => {
this.standardReleaseList = []
this.total = 0
})
this.standardReleaseList = [];
this.total = 0;
});
},
onDynamics() {
this.loading = true
this.loading = true;
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
messageType: this.messageType,
page: this.page,
@@ -260,20 +267,20 @@ export default {
_this: this
}, res => {
if (res.ok) {
let msgList= res.data.records
let msgList = res.data.records;
if (msgList.length) {
if (this.standList.length) {
this.standList = this.standList.concat(msgList)
this.standList = this.standList.concat(msgList);
} else {
this.standList = msgList
this.standList = msgList;
}
this.loading = false
this.loading = false;
} else {
this.loading = false
this.listFlag = true
this.loading = false;
this.listFlag = true;
}
} else {
this.standList = []
this.standList = [];
this.loading = false;
}
}, e => {
@@ -308,6 +315,7 @@ export default {
margin: 0;
padding: 0;
background: #F6F6F6;
.search-head {
width: 100%;
height: 100px;
@@ -332,10 +340,12 @@ export default {
.van-tabs {
margin-top: 17px;
}
/deep/ .van-tabs__content {
width: 100%;
height: 95%;
}
.van-tab {
color: #3170A8;
}
@@ -344,10 +354,12 @@ export default {
color: #3170A8;
font-weight: 600;
}
/deep/ .van-tabs__line {
width: 30%;
background-color: #3170A8;
}
/deep/ .van-tab__pane {
height: 95%;
position: fixed;
@@ -362,6 +374,7 @@ export default {
top: 10px;
}
.card-content {
width: 95%;
height: auto;
@@ -403,21 +416,25 @@ export default {
}
}
}
.bottom-box {
height: 40px;
bottom: 0;
padding: 40px;
text-align: center;
color: #3170A8;
.list-box {
color: #3170A8;
text-align: center;
}
.van-loading {
position: absolute;
left: 37%;
}
}
.van-loading {
position: absolute;
top: 350px;
@@ -3705,7 +3705,8 @@
// 流程提交之后,应该流转至待办任务页面
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
} else {
this.isSubmit = false
this.$message.warning(res.message)
this.isSubmit = true
}
})
} else {