Commit 6e4cbdc7 authored by mengwenhao's avatar mengwenhao

feature:企业信息提交字段更新

parent b9c05701
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementPlus from 'element-plus';
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from "element-plus";
import 'element-plus/lib/theme-chalk/index.css';
import 'dayjs/locale/zh-cn';
import locale from 'element-plus/lib/locale/lang/zh-cn';
import "element-plus/lib/theme-chalk/index.css";
import "dayjs/locale/zh-cn";
import locale from "element-plus/lib/locale/lang/zh-cn";
import { fetchCurrentUser } from './service/user';
import { checkPathAuth } from './utils/authUtil';
import { redirectToLogin } from './utils/util';
/* import { fetchCurrentUser } from "./service/user";
import { checkPathAuth } from "./utils/authUtil";
import { redirectToLogin } from "./utils/util"; */
// 处理路由权限
router.beforeResolve(async (to, from, next) => {
/* router.beforeResolve(async (to, from, next) => {
if (to.meta.requireAuth && !store.state.permissions) {
const { status, user } = await fetchCurrentUser();
if (status === 'success') {
......@@ -31,10 +31,10 @@ router.beforeResolve(async (to, from, next) => {
} else {
next()
}
})
}) */
createApp(App)
.use(router)
.use(store)
.use(ElementPlus, { locale })
.mount('#app');
.mount("#app");
......@@ -290,17 +290,6 @@
align="center"
prop="adminId"
></el-table-column>
<el-table-column
label="创建生活号"
align="center"
>
<template #default="scope">
<el-button
type="primary"
@click="onCreateLife(scope.row)"
>创建生活号</el-button>
</template>
</el-table-column>
</el-table>
</el-card>
<!-- 查看详情__创建生活号表单 -->
......
......@@ -133,7 +133,7 @@
@click="goAuditPage('AUDIT', scope.row.id)"
>审核</el-button>
<el-button
:disabled="scope.row.status === 4 ? true : false"
disabled
size="mini"
type="success"
@click="goAuditPage('EDIT', scope.row.id)"
......@@ -212,24 +212,14 @@ export default {
// 企业认证管理列表
enterpriseList: [
{
id: 1,
status: 1,
code: 1,
name: "一点资讯",
userName: "蒙文昊",
date: "2021-05-24",
type: 1,
number: 18147683288
id: 1
}
],
// 跳转详情页弹窗
detailDialogVisible: false,
// 当前页
currentPage: "1",
// 每页条数
pageSize: 20
detailDialogVisible: false,// 跳转详情页弹窗
currentPage: 1,// 当前页
pageSize: 20, // 每页条数
totalCount: 0 // 总条数
};
},
......@@ -249,18 +239,21 @@ export default {
proxy_user_name
} = this.enterpriseForm;
const params = {
page: this.currentPage,
limit: this.pageSize,
name,
code,
legal_person,
audit_status,
data_form,
proxy_user_name
page: this.currentPage, // 当前页
limit: this.pageSize, // 每页条数
name, // 企业注册名称
code, // 注册码
legal_person, // 法人或经营者姓名
audit_status, // 审核状态
data_form, // 提交类型
proxy_user_name // 提交人账号
};
console.log(params);
const res = await auditList(params);
console.log(res);
if (res.code !== 0) return this.$message.error(res.result);
this.enterpriseList = res.result.data;
this.total
},
// 重置表单
......@@ -294,7 +287,8 @@ export default {
// 换页操作
handleCurrentChange (e) {
console.log(e);
this.currentPage = e; // 更换页码
this.getEnterpriseList(); // 加载数据
}
}
};
......
This diff is collapsed.
......@@ -8,7 +8,7 @@ import axios from "../utils/request";
* @param query
*/
export async function auditList (params) {
const res = await axios.post(`/api/v1/certification`, { params });
const res = await axios.post(`/api/v1/certification`, params);
return res;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment