|
@@ -60,9 +60,6 @@ export default {
|
|
|
skip2: '',
|
|
|
}),
|
|
|
created() {
|
|
|
- // this.jiaoyi1();
|
|
|
- // this.jiaoyi2();
|
|
|
- // this.jiaoyi3();
|
|
|
this.faqijiaoyi();
|
|
|
},
|
|
|
computed: {
|
|
@@ -74,22 +71,15 @@ export default {
|
|
|
...login({ logout: 'logout', transactiondtetlse: 'delete' }),
|
|
|
// 查询
|
|
|
async faqijiaoyi({ skip = 0, limit = 3, ...info } = {}) {
|
|
|
- let status = 0;
|
|
|
let market_userid = this.user.uid;
|
|
|
if (this.user.role == '2' || this.user.role == '3') {
|
|
|
skip = this.skip1;
|
|
|
- const res = await this.transactionList({ skip, limit, market_userid, status, ...info });
|
|
|
+ //0
|
|
|
+ const res = await this.transactionList({ skip, limit, market_userid, status: 0, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `faqilist`, res.data);
|
|
|
this.$set(this, `totalfaqi`, res.total);
|
|
|
}
|
|
|
- //
|
|
|
- skip = this.skip;
|
|
|
- const quanbures = await this.transactionList({ skip, limit, market_userid, ...info });
|
|
|
- if (this.$checkRes(quanbures)) {
|
|
|
- this.$set(this, `dinggou3`, quanbures.data);
|
|
|
- this.$set(this, `total3`, quanbures.total);
|
|
|
- }
|
|
|
//1
|
|
|
skip = this.skip2;
|
|
|
const ress = await this.transactionList({ skip, limit, market_userid, status: 1, ...info });
|
|
@@ -104,9 +94,16 @@ export default {
|
|
|
this.$set(this, `dinggou2`, resss.data);
|
|
|
this.$set(this, `total2`, resss.total);
|
|
|
}
|
|
|
+ //
|
|
|
+ skip = this.skip;
|
|
|
+ const quanbures = await this.transactionList({ skip, limit, market_userid, ...info });
|
|
|
+ if (this.$checkRes(quanbures)) {
|
|
|
+ this.$set(this, `dinggou3`, quanbures.data);
|
|
|
+ this.$set(this, `total3`, quanbures.total);
|
|
|
+ }
|
|
|
} else if (this.role == '6') {
|
|
|
skip = this.skip1;
|
|
|
- const res = await this.expertsauditList({ skip, limit, market_userid, status, ...info });
|
|
|
+ const res = await this.expertsauditList({ skip, limit, market_userid, status: 0, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `faqilist`, res.data);
|
|
|
this.$set(this, `totalfaqi`, res.total);
|
|
@@ -177,7 +174,6 @@ export default {
|
|
|
this.$checkRes(res, '删除成功', '删除失败');
|
|
|
},
|
|
|
async onsaveClick({ id }) {
|
|
|
- console.log(id);
|
|
|
if (id === '基本信息') {
|
|
|
this.$router.push({ path: '/enterprise/enterprisejb' });
|
|
|
} else if (id === '消息管理') {
|