feat(完善多数据源)

master
031026 2024-06-05 22:38:29 +08:00
commit 3b6a11b2a7
3 changed files with 40 additions and 13 deletions

View File

@ -17,6 +17,12 @@ export function getEnterprise(id) {
}) })
} }
export function enterpriseUpdateId(id) {
return request({
url: '/authentication/enterprise/enterpriseUpdateId?id=' + id,
method: 'post'
})
}
// 新增企业 // 新增企业
export function addEnterprise(data) { export function addEnterprise(data) {
return request({ return request({

View File

@ -21,7 +21,7 @@ export function getUser(userId) {
// 新增用户 // 新增用户
export function addUser(data) { export function addUser(data) {
return request({ return request({
url: '/system/user', url: '/system/user/add',
method: 'post', method: 'post',
data: data data: data
}) })

View File

@ -73,10 +73,10 @@
placeholder="请选择企业入驻平台时期"> placeholder="请选择企业入驻平台时期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="企业认证id" prop="certificationId"> <el-form-item label="审核状态" prop="examineStatus">
<el-input <el-input
v-model="queryParams.certificationId" v-model="queryParams.examineStatus"
placeholder="请输入企业认证id" placeholder="审核状态"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -170,15 +170,14 @@
<span>{{ parseTime(scope.row.registrationDate, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.registrationDate, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="企业认证id" align="center" prop="certificationId" /> <el-table-column label="审核状态" align="center" prop="examineStatus" />
<el-table-column label="认证时间" align="center" prop="authenticationDate" width="180"> <el-table-column label="认证时间" align="center" prop="authenticationDate" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.authenticationDate, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.authenticationDate, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="服务级别" align="center" prop="serviceLevel" /> <el-table-column label="服务级别" align="center" prop="serviceLevel" />
<el-table-column label="开通服务id" align="center" prop="openServerId" /> <el-table-column label="开通服务级别" align="center" prop="openServerId" />
<el-table-column label="增值服务id" align="center" prop="addServerId" />
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
@ -189,6 +188,12 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['authentication:enterprise:edit']" v-hasPermi="['authentication:enterprise:edit']"
>修改</el-button> >修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="EnterpriseUpdate(scope.row)"
>认证</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -253,7 +258,14 @@
</template> </template>
<script> <script>
import { listEnterprise, getEnterprise, delEnterprise, addEnterprise, updateEnterprise } from "@/api/enterprise/enterprise"; import {
listEnterprise,
getEnterprise,
delEnterprise,
addEnterprise,
updateEnterprise,
enterpriseUpdateId
} from "@/api/enterprise/enterprise";
export default { export default {
name: "Enterprise", name: "Enterprise",
@ -290,12 +302,11 @@ export default {
contactPhone: null, contactPhone: null,
email: null, email: null,
status: null, status: null,
examineStatus:null,
registrationDate: null, registrationDate: null,
certificationId: null,
authenticationDate: null, authenticationDate: null,
serviceLevel: null, serviceLevel: null,
openServerId: null, openServerId: null
addServerId: null,
}, },
// //
form: {}, form: {},
@ -308,6 +319,17 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
EnterpriseUpdate(row){
enterpriseUpdateId(row.id).then(res=>{
if (res.code === 200) {
this.$modal.msgSuccess(res.data);
this.getList();
}else {
this.$modal.msgSuccess(res.data);
this.getList();
}
})
},
/** 查询企业列表 */ /** 查询企业列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -336,11 +358,10 @@ export default {
email: null, email: null,
status: null, status: null,
registrationDate: null, registrationDate: null,
certificationId: null, examineStatus: null,
authenticationDate: null, authenticationDate: null,
serviceLevel: null, serviceLevel: null,
openServerId: null, openServerId: null,
addServerId: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,