|
@@ -4,7 +4,6 @@
|
|
<el-col :span="24" class="top">
|
|
<el-col :span="24" class="top">
|
|
<topInfo :topTitle="topTitle" :display="display"></topInfo>
|
|
<topInfo :topTitle="topTitle" :display="display"></topInfo>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
<el-col :span="24" class="main">
|
|
<el-col :span="24" class="main">
|
|
<newsInfo
|
|
<newsInfo
|
|
:debtTable="debtTable"
|
|
:debtTable="debtTable"
|
|
@@ -27,14 +26,13 @@
|
|
import topInfo from '@/layout/common/topInfo.vue';
|
|
import topInfo from '@/layout/common/topInfo.vue';
|
|
import newsInfo from '@/layout/companyidentify/newsInfo.vue';
|
|
import newsInfo from '@/layout/companyidentify/newsInfo.vue';
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
-const { mapActions } = createNamespacedHelpers('companyidentify');
|
|
|
|
|
|
+const { mapActions: companyidentify } = createNamespacedHelpers('companyidentify');
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
components: {
|
|
components: {
|
|
topInfo, //头部导航
|
|
topInfo, //头部导航
|
|
-
|
|
|
|
newsInfo, //列表
|
|
newsInfo, //列表
|
|
},
|
|
},
|
|
data: () => ({
|
|
data: () => ({
|
|
@@ -54,42 +52,36 @@ export default {
|
|
this.searchinfos();
|
|
this.searchinfos();
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
-
|
|
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['query', 'delete']),
|
|
|
|
|
|
+ ...companyidentify({ companyidentifyQuery: 'query' }),
|
|
async search({ skip, limit = 10, ...info } = {}) {
|
|
async search({ skip, limit = 10, ...info } = {}) {
|
|
let sea = { status: 0 };
|
|
let sea = { status: 0 };
|
|
info = sea;
|
|
info = sea;
|
|
skip = this.skip;
|
|
skip = this.skip;
|
|
- const res = await this.query({ skip, limit, ...info });
|
|
|
|
- console.log(res);
|
|
|
|
|
|
+ const res = await this.companyidentifyQuery({ skip, limit, ...info });
|
|
var weishenhe = res.data.filter(item => item.status === '0');
|
|
var weishenhe = res.data.filter(item => item.status === '0');
|
|
this.$set(this, `debtTable`, weishenhe);
|
|
this.$set(this, `debtTable`, weishenhe);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
},
|
|
},
|
|
-
|
|
|
|
async searchinfo({ skip, limit = 10, ...info } = {}) {
|
|
async searchinfo({ skip, limit = 10, ...info } = {}) {
|
|
let sea = { status: 1 };
|
|
let sea = { status: 1 };
|
|
info = sea;
|
|
info = sea;
|
|
skip = this.skip;
|
|
skip = this.skip;
|
|
- const res = await this.query({ skip, limit, ...info });
|
|
|
|
|
|
+ const res = await this.companyidentifyQuery({ skip, limit, ...info });
|
|
var success = res.data.filter(item => item.status === '1');
|
|
var success = res.data.filter(item => item.status === '1');
|
|
this.$set(this, `shenheTable`, success);
|
|
this.$set(this, `shenheTable`, success);
|
|
this.$set(this, `totals`, res.total);
|
|
this.$set(this, `totals`, res.total);
|
|
},
|
|
},
|
|
-
|
|
|
|
async searchinfos({ skip, limit = 10, ...info } = {}) {
|
|
async searchinfos({ skip, limit = 10, ...info } = {}) {
|
|
let sea = { status: 2 };
|
|
let sea = { status: 2 };
|
|
info = sea;
|
|
info = sea;
|
|
skip = this.skip;
|
|
skip = this.skip;
|
|
- const res = await this.query({ skip, limit, ...info });
|
|
|
|
|
|
+ const res = await this.companyidentifyQuery({ skip, limit, ...info });
|
|
var shibai = res.data.filter(item => item.status === '2');
|
|
var shibai = res.data.filter(item => item.status === '2');
|
|
this.$set(this, `noshenhetable`, shibai);
|
|
this.$set(this, `noshenhetable`, shibai);
|
|
this.$set(this, `totalss`, res.total);
|
|
this.$set(this, `totalss`, res.total);
|
|
},
|
|
},
|
|
-
|
|
|
|
handleClick(newid) {
|
|
handleClick(newid) {
|
|
- console.log(newid);
|
|
|
|
this.$router.push({ path: '/companyidentify/detail', query: { id: newid } });
|
|
this.$router.push({ path: '/companyidentify/detail', query: { id: newid } });
|
|
},
|
|
},
|
|
async handleCurrentChange({ skip, limit, currentPage }) {
|
|
async handleCurrentChange({ skip, limit, currentPage }) {
|
|
@@ -102,7 +94,6 @@ export default {
|
|
},
|
|
},
|
|
async handleCurrentChangess({ skip, limit, currentPage }) {
|
|
async handleCurrentChangess({ skip, limit, currentPage }) {
|
|
this.$set(this, `skip`, skip);
|
|
this.$set(this, `skip`, skip);
|
|
-
|
|
|
|
this.searchinfos();
|
|
this.searchinfos();
|
|
},
|
|
},
|
|
},
|
|
},
|