|
@@ -182,8 +182,6 @@ export default {
|
|
|
async searchInfo({ skip = 0, limit = 8, ...info } = {}) {
|
|
|
const res = await this.ProductQuery({ skip, limit, ...info });
|
|
|
for (const val of res.data) {
|
|
|
- console.log(val.totaltype);
|
|
|
-
|
|
|
if (val.totaltype === '0') {
|
|
|
var arr = res.data.filter(item => item.totaltype === '0');
|
|
|
this.$set(this, `jishuList`, arr);
|
|
@@ -192,13 +190,9 @@ export default {
|
|
|
var arrs = res.data.filter(item => item.totaltype === '1');
|
|
|
this.$set(this, `chanpinList`, arrs);
|
|
|
this.$set(this, `chanpinTotal`, arrs.length);
|
|
|
- console.log(arrs);
|
|
|
} else if (val.totaltype === '2') {
|
|
|
- console.log('344');
|
|
|
-
|
|
|
var arrss = res.data.filter(item => item.totaltype === '2');
|
|
|
this.$set(this, `serviceList`, arrss);
|
|
|
- console.log(arrss);
|
|
|
this.$set(this, `serveTotal`, arrss.length);
|
|
|
}
|
|
|
}
|
|
@@ -209,6 +203,7 @@ export default {
|
|
|
this.$set(this, `tableData`, res.data);
|
|
|
},
|
|
|
fabu() {
|
|
|
+ console.log('闹');
|
|
|
if (this.user.role == '2' || this.user.role == '3') {
|
|
|
this.$router.push({ path: '/enterprise/enterprisexuqiu' });
|
|
|
}
|