Commit 6e4cbdc7 authored by mengwenhao's avatar mengwenhao

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

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