|
@@ -34,7 +34,7 @@ import detailTopInfo from '@/layout/common/detailTopInfo.vue';
|
|
|
import detailTop from '@/layout/common/detailTop.vue';
|
|
|
import detailInfo from '@/layout/companyidentify/detailInfo.vue';
|
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions } = createNamespacedHelpers('companyidentify');
|
|
|
+const { mapActions: companyidentify } = createNamespacedHelpers('companyidentify');
|
|
|
const { mapActions: profession } = createNamespacedHelpers('profession');
|
|
|
|
|
|
export default {
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(['query', 'delete', 'fetch', 'update']),
|
|
|
+ ...companyidentify(['query', 'delete', 'fetch', 'update', 'updateStatus']),
|
|
|
...profession({ query: 'query', create: 'create' }),
|
|
|
async searchquery() {
|
|
|
let pcode = 0;
|
|
@@ -104,10 +104,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 提交
|
|
|
- submitForm(ruleForm) {
|
|
|
- this.ruleForm.status = 1;
|
|
|
- console.log(this.ruleForm);
|
|
|
- let res = this.update(this.ruleForm);
|
|
|
+ async submitForm({ data }) {
|
|
|
+ const res = await this.updateStatus(data);
|
|
|
this.$checkRes(res, '认证成功', '发布失败');
|
|
|
this.$router.push({ path: '/companyidentify/index' });
|
|
|
},
|