Commit 0aea5ae9 authored by 吴冠's avatar 吴冠

message

parent 3402c99d
...@@ -142,9 +142,17 @@ import Cookies from 'js-cookie' ...@@ -142,9 +142,17 @@ import Cookies from 'js-cookie'
methods: { methods: {
async queryStr() { async queryStr() {
console.log(this.getData); console.log(this.getData);
const { data,total } = await getErrorList(this.getData); const { data,total,code } = await getErrorList(this.getData);
this.priceList = data; this.priceList = data;
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
reset(){ reset(){
this.getData.industryId = '' this.getData.industryId = ''
......
...@@ -216,9 +216,17 @@ import Cookies from 'js-cookie' ...@@ -216,9 +216,17 @@ import Cookies from 'js-cookie'
}, },
async queryStr() { async queryStr() {
console.log(this.getData); console.log(this.getData);
const { data,total } = await getAllList(this.getData); const { data,total,code } = await getAllList(this.getData);
this.priceList = data; this.priceList = data;
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
reset(){ reset(){
this.getData.industryId = '' this.getData.industryId = ''
......
...@@ -175,9 +175,17 @@ import Cookies from 'js-cookie' ...@@ -175,9 +175,17 @@ import Cookies from 'js-cookie'
}, },
async queryStr(){ async queryStr(){
console.log(this.getData) console.log(this.getData)
const {data,total} = await getBidingList(this.getData) const {data,total,code} = await getBidingList(this.getData)
this.priceList = data this.priceList = data
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
receiveP(value){ receiveP(value){
this.getData.provinceId = value this.getData.provinceId = value
......
...@@ -229,9 +229,17 @@ export default { ...@@ -229,9 +229,17 @@ export default {
//查询按钮getLi //查询按钮getLi
async queryStr() { async queryStr() {
console.log(this.getData); console.log(this.getData);
const { data,total } = await getWinList(this.getData); const { data,total,code } = await getWinList(this.getData);
this.priceList = data; this.priceList = data;
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
async industryList() { async industryList() {
const res = await industryList(); const res = await industryList();
......
...@@ -144,9 +144,17 @@ import Cookies from 'js-cookie' ...@@ -144,9 +144,17 @@ import Cookies from 'js-cookie'
methods: { methods: {
async queryStr() { async queryStr() {
console.log(this.getData); console.log(this.getData);
const { data,total } = await getCadidateList(this.getData); const { data,total,code } = await getCadidateList(this.getData);
this.priceList = data; this.priceList = data;
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
reset(){ reset(){
this.getData.industryId = '' this.getData.industryId = ''
......
...@@ -144,9 +144,17 @@ import Cookies from 'js-cookie' ...@@ -144,9 +144,17 @@ import Cookies from 'js-cookie'
methods: { methods: {
async queryStr() { async queryStr() {
console.log(this.getData); console.log(this.getData);
const { data,total } = await getChangeList(this.getData); const { data,total,code } = await getChangeList(this.getData);
this.priceList = data; this.priceList = data;
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
reset(){ reset(){
this.getData.industryId = '' this.getData.industryId = ''
......
...@@ -142,9 +142,17 @@ import Cookies from 'js-cookie' ...@@ -142,9 +142,17 @@ import Cookies from 'js-cookie'
methods: { methods: {
async queryStr() { async queryStr() {
console.log(this.getData); console.log(this.getData);
const { data,total } = await getClerList(this.getData); const { data,total,code } = await getClerList(this.getData);
this.priceList = data; this.priceList = data;
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
reset(){ reset(){
this.getData.industryId = '' this.getData.industryId = ''
......
...@@ -213,9 +213,17 @@ export default { ...@@ -213,9 +213,17 @@ export default {
//查询按钮getLi //查询按钮getLi
async queryStr() { async queryStr() {
console.log(this.getData); console.log(this.getData);
const { data,total } = await getInquiryList(this.getData); const { data,total,code } = await getInquiryList(this.getData);
this.priceList = data; this.priceList = data;
this.total = total this.total = total
if(code==200){
if(total==0){
this.$message.error("当前查询无内容!")
this.reset()
}else{
this.$message.success("查询成功!")
}
}
}, },
async industryList() { async industryList() {
const res = await industryList(); const res = await industryList();
......
...@@ -157,14 +157,16 @@ ...@@ -157,14 +157,16 @@
setTimeout(()=>{ setTimeout(()=>{
this.$router.push("/") this.$router.push("/")
},1500) },1500)
/* this.$message.success(msg) */
} else { } else {
this.$message({ /* this.$message({
message: msg, message: msg,
type: 'error' type: 'error'
}); }); */
this.$message.error(msg)
} }
//储存公司id 审核未通过时自动填充数据 //储存公司id 审核未通过时自动填充数据
if(code!==200){ if(code!=200){
this.$router.push("/login/auditStatus") this.$router.push("/login/auditStatus")
Cookies.set("companyErrorId",data.companyId) Cookies.set("companyErrorId",data.companyId)
} }
...@@ -190,19 +192,16 @@ ...@@ -190,19 +192,16 @@
console.log(data,code) console.log(data,code)
if (code == 200) { if (code == 200) {
Cookies.set("token",data); Cookies.set("token",data);
this.$message({ this.$message.success(msg)
message: msg,
type: 'success',
duration:1500
});
setTimeout(()=>{ setTimeout(()=>{
this.$router.push("/") this.$router.push("/")
},1500) },1500)
} else { } else {
this.$message({ /* this.$message({
message: msg, message: msg,
type: 'error' type: 'error'
}); }); */
this.$message.error(msg)
} }
} }
} catch (err) { } catch (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment