测试问题修改

This commit is contained in:
zzyuan 2025-12-12 18:29:40 +08:00
parent d5722804f9
commit 28dc340780
8 changed files with 16 additions and 15 deletions

View File

@ -108,7 +108,7 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
location.href = '/glweb/';
location.href = '/certificateWeb/';
})
}).catch(() => {});
}

View File

@ -162,7 +162,7 @@ export default {
},
close() {
this.$store.dispatch('LogOut').then(() => {
location.href = '/glweb/';
location.href = '/certificateWeb/';
})
},

View File

@ -220,6 +220,6 @@ Router.prototype.replace = function push(location) {
export default new Router({
mode: 'hash', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }),
// base:"/glweb/",
// base:"/certificateWeb/",
routes: constantRoutes,
})

View File

@ -120,7 +120,7 @@ service.interceptors.response.use(res => {
}).then(() => {
isRelogin.show = false
store.dispatch('LogOut').then(() => {
location.href = '/glweb/'
location.href = '/certificateWeb/'
})
}).catch(() => {
isRelogin.show = false

View File

@ -217,7 +217,7 @@
<el-row>
<el-col :span="12">
<el-form-item label="姓名" prop="name">
<el-input v-model="baseForm.name" readonly="true" placeholder="请输入" maxlength="30" clearable/>
<el-input v-model="baseForm.name" readonly="true" placeholder="请选择" maxlength="30" clearable/>
</el-form-item>
</el-col>
<el-col el-col :span="12" v-if="baseForm.deptId !== 0">
@ -847,7 +847,7 @@
},
/** 下载模板操作 */
importTemplate() {
let url = window.location.origin + '/glweb/template/证件信息模板.xlsx';
let url = window.location.origin + '/certificateWeb/template/证件信息模板.xlsx';
console.log(url)
downloadFileByUrl(url)
},

View File

@ -495,7 +495,7 @@
},
/** 下载模板操作 */
importTemplate() {
let url = window.location.origin + '/glweb/template/批量新增原料模板.xlsx';
let url = window.location.origin + '/certificateWeb/template/批量新增原料模板.xlsx';
console.log(url)
downloadFileByUrl(url)
},

View File

@ -269,7 +269,7 @@
></el-switch>
</template>
</el-table-column>
<el-table-column
<!-- <el-table-column
label="人脸照片"
align="center"
key="photoUrl"
@ -280,7 +280,7 @@
<span v-if="scope.row.faceStatus==0">未上传</span>
<span v-if="scope.row.faceStatus==2">上传失败</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column label="账号时效" align="center">
<template slot-scope="scope">
<span>{{
@ -562,7 +562,7 @@
v-for="item in postOptions"
:key="item.postId"
:label="item.postName"
:value="item.postId"
:value="item.postId+''"
:disabled="item.status == 1"
></el-option>
</el-select>
@ -628,7 +628,7 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<!-- <el-col :span="12">
<el-form-item label="人脸图片">
<el-upload
:http-request="
@ -651,7 +651,7 @@
></i>
</el-upload>
</el-form-item>
</el-col>
</el-col> -->
</el-row>
<el-row>
<el-col :span="24">
@ -1212,6 +1212,7 @@ export default {
this.postOptions = response.posts
this.roleOptions = response.roles
this.$set(this.form, 'postIds', response.postIds)
// this.$set(this.form, 'postId', response.data.postId)
this.$set(this.form, 'roleIds', response.roleIds)
// console.log(store.getters.face)
if(response.data.photoUrl&&response.data.photoUrl!=''){

View File

@ -18,7 +18,7 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.bonus.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.bonus.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath: process.env.NODE_ENV === 'production' ? '/glweb/' : '/',
publicPath: process.env.NODE_ENV === 'production' ? '/certificateWeb/' : '/',
// 在npm run build 或 yarn build 时 生成文件的目录名称要和baseUrl的生产环境路径一致默认dist
outputDir: 'dist',
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
@ -39,8 +39,8 @@ module.exports = {
// target: `http://127.0.0.1:48380`,//测试
// target: `http://192.168.2.108:48380`,//测试
// target: `http://192.168.137.1:48380`,//测试
target: `http://192.168.1.120:48380`,//测试
// target: `http://192.168.0.176:48380`,//
// target: `http://192.168.1.120:48380`,//测试
target: `http://192.168.0.14:48380`,//
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '',