|
@@ -34,6 +34,7 @@ import dataTable from '@/components/data-table.vue';
|
|
import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: live } = createNamespacedHelpers('live');
|
|
const { mapActions: live } = createNamespacedHelpers('live');
|
|
const { mapActions: place } = createNamespacedHelpers('place');
|
|
const { mapActions: place } = createNamespacedHelpers('place');
|
|
|
|
+const { mapActions: authUser } = createNamespacedHelpers('authUser');
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
@@ -90,6 +91,8 @@ export default {
|
|
{ label: '省', prop: 'sheng' },
|
|
{ label: '省', prop: 'sheng' },
|
|
{ label: '市', prop: 'shi' },
|
|
{ label: '市', prop: 'shi' },
|
|
{ label: '对接会简介', prop: 'desc' },
|
|
{ label: '对接会简介', prop: 'desc' },
|
|
|
|
+ { label: '负责人', prop: 'adminuser' },
|
|
|
|
+ { label: '负责人手机号', prop: 'phone' },
|
|
{
|
|
{
|
|
label: '审核状态',
|
|
label: '审核状态',
|
|
prop: 'is_allowed',
|
|
prop: 'is_allowed',
|
|
@@ -119,6 +122,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...live(['query', 'delete', 'update']),
|
|
...live(['query', 'delete', 'update']),
|
|
...place({ palcequery: 'query', palcefetch: 'fetch' }),
|
|
...place({ palcequery: 'query', palcefetch: 'fetch' }),
|
|
|
|
+ ...authUser({ authUserDelete: 'delete' }),
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
if (this.user.role != '1') info.user_id = this.user.uid;
|
|
if (this.user.role != '1') info.user_id = this.user.uid;
|
|
let res = await this.query({ skip, limit, user_id: this.user.uid });
|
|
let res = await this.query({ skip, limit, user_id: this.user.uid });
|
|
@@ -143,6 +147,7 @@ export default {
|
|
this.$router.push({ path: './detail', query: { id: data.id } });
|
|
this.$router.push({ path: './detail', query: { id: data.id } });
|
|
},
|
|
},
|
|
async toDelete({ data }) {
|
|
async toDelete({ data }) {
|
|
|
|
+ const arr = await this.authUserDelete(data.uid);
|
|
const res = await this.delete(data.id);
|
|
const res = await this.delete(data.id);
|
|
if (this.$checkRes(res, '删除成功', res.errmsg || '删除失败')) this.search();
|
|
if (this.$checkRes(res, '删除成功', res.errmsg || '删除失败')) this.search();
|
|
},
|
|
},
|