页面调整

This commit is contained in:
zxy
2024-02-22 16:57:46 +08:00
parent 2ea01fdee8
commit c9ede71cd8
3 changed files with 24 additions and 24 deletions

View File

@@ -19,20 +19,20 @@
</template> </template>
<script> <script>
import { isMobile } from "@/util/validate"; // import { isMobile } from "@/util/validate";
import { getAdmin } from "@/api/manage/company"; import { getAdmin } from "@/api/manage/company";
import { add } from "@/api/manage/account"; import { add } from "@/api/manage/account";
import { check18IdCardNo } from "@/util/validate"; // import { check18IdCardNo } from "@/util/validate";
import md5 from "js-md5"; import md5 from "js-md5";
import lodash from "lodash"; import lodash from "lodash";
const validateMobile = (rule, value, callback) => { // const validateMobile = (rule, value, callback) => {
if (isMobile(value)) { // if (isMobile(value)) {
callback(); // callback();
} else { // } else {
callback(new Error("手机号格式不正确")); // callback(new Error("手机号格式不正确"));
} // }
}; // };
export default { export default {
props: {}, props: {},
@@ -67,7 +67,7 @@ export default {
message: "请输入登录手机号", message: "请输入登录手机号",
trigger: "blur", trigger: "blur",
}, },
{ validator: validateMobile, trigger: "blur" }, // { validator: validateMobile, trigger: "blur" },
], ],
span: 12, span: 12,
}, },
@@ -115,15 +115,15 @@ export default {
message: "请输入身份证号", message: "请输入身份证号",
trigger: "blur", trigger: "blur",
}, },
{ // {
validator: (rule, value, callback) => { // validator: (rule, value, callback) => {
if (check18IdCardNo(value)) { // if (check18IdCardNo(value)) {
callback(); // callback();
} else { // } else {
callback(new Error("身份证格式不正确")); // callback(new Error("身份证格式不正确"));
} // }
}, // },
}, // },
], ],
}, },
{ {

View File

@@ -8,8 +8,8 @@
<template slot="menuLeft"> <template slot="menuLeft">
<el-button v-if="vaildData(permission.manage_compan_companyList_addUser, false)" size="small" <el-button v-if="vaildData(permission.manage_compan_companyList_addUser, false)" size="small"
@click.stop="handleAddUser" type="primary" :disabled="selectionList.length === 0">添加账号</el-button> @click.stop="handleAddUser" type="primary" :disabled="selectionList.length === 0">添加账号</el-button>
<el-button v-if="vaildData(permission.manage_compan_companyList_config, false)" size="small" <!-- <el-button v-if="vaildData(permission.manage_compan_companyList_config, false)" size="small"
@click.stop="handleConfig" type="primary" :disabled="selectionList.length === 0">服务设置</el-button> @click.stop="handleConfig" type="primary" :disabled="selectionList.length === 0">服务设置</el-button> -->
<el-button v-if="vaildData(permission.manage_compan_companyList_check, false)" size="small" <el-button v-if="vaildData(permission.manage_compan_companyList_check, false)" size="small"
@click.stop="handleCheck" type="primary" :disabled="selectionList.length === 0">审核</el-button> @click.stop="handleCheck" type="primary" :disabled="selectionList.length === 0">审核</el-button>
</template> </template>
@@ -197,7 +197,7 @@ export default {
viewBtn: true, viewBtn: true,
addBtn: true, addBtn: true,
editBtn: true, editBtn: true,
addBtnText: "企业开户", addBtnText: "社区街道登记",
addTitle: "新增企业", addTitle: "新增企业",
delBtn: false, delBtn: false,
menuWidth: 300, menuWidth: 300,

View File

@@ -23,9 +23,9 @@ module.exports = {
port: 1888, port: 1888,
proxy: { proxy: {
"/api": { "/api": {
// target: 'http://192.168.3.104:8000', // 本地服务接口地址 target: 'http://192.168.3.104:8000', // 本地服务接口地址
// target: "http://39.98.184.58:8000", // 阿里云后台地址 // target: "http://39.98.184.58:8000", // 阿里云后台地址
target: "http://192.168.3.111:8000", // 本地 // target: "http://192.168.3.111:8000", // 本地
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {