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

message

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