提交代码

This commit is contained in:
jiang 2025-02-10 14:57:08 +08:00
parent aa515c8f96
commit 6490a8677d
6 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"name": "bonus",
"name": "bonus-ai-ui",
"version": "3.6.4",
"description": "博诺思管理系统",
"author": "博诺思",
@ -47,6 +47,7 @@
"file-saver": "2.0.5",
"fuse.js": "6.4.3",
"highlight.js": "9.18.5",
"js-base64": "^3.7.7",
"js-beautify": "1.13.0",
"js-cookie": "3.0.1",
"jsencrypt": "3.0.0-rc.1",

View File

@ -1,6 +1,7 @@
<template>
<div>
<el-dialog title="目录位置" :visible.sync="open" width="40%" append-to-body @close="cancel" :close-on-click-modal="false">
<span style="color: red;font-size: 10px">只能选择文件夹</span>
<el-row :gutter="10" class="mb8">
<el-col :span="20">
<el-input placeholder="请输入内容" readonly :disabled="true" v-model="folder">

View File

@ -81,6 +81,7 @@
<el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column type="index" label="序号" align="center" :index="indexMethod" width="50"/>
<el-table-column label="岗位编号" align="center" prop="postId" />
<el-table-column label="岗位编码" align="center" prop="postCode" />
<el-table-column label="岗位名称" align="center" prop="postName" />
@ -210,6 +211,9 @@ export default {
this.getList();
},
methods: {
indexMethod(index) {
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1
},
/** 查询岗位列表 */
getList() {
this.loading = true;

View File

@ -103,6 +103,7 @@
<el-table v-loading="loading" :data="roleList" @selection-change="handleSelectionChange" :selectable="checkSelectable" :row-class-name="getRowClassName">
<el-table-column type="selection" min-width="55" align="center"/>
<el-table-column type="index" label="序号" align="center" :index="indexMethod" width="50"/>
<el-table-column label="角色编号" prop="roleId" min-width="120" align="center"/>
<el-table-column label="角色名称" align="center" prop="roleName" :show-overflow-tooltip="true" min-width="150"/>
<el-table-column label="权限字符" align="center" prop="roleKey" :show-overflow-tooltip="true" min-width="150"/>
@ -371,6 +372,9 @@ export default {
this.getList()
},
methods: {
indexMethod(index) {
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1
},
/** 查询角色列表 */
getList() {
this.loading = true

View File

@ -86,6 +86,7 @@
:selectable="checkSelectable" :row-class-name="getRowClassName"
>
<el-table-column type="selection" width="50" align="center"/>
<el-table-column type="index" label="序号" align="center" :index="indexMethod" width="50"/>
<el-table-column label="用户编号" align="center" key="userId" prop="userId" v-if="columns[0].visible"/>
<el-table-column label="用户名称" align="center" key="userName" prop="userName" v-if="columns[1].visible"
:show-overflow-tooltip="true"
@ -480,6 +481,9 @@ export default {
})
},
methods: {
indexMethod(index) {
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1
},
/* 手机号码脱敏 */
hidePhone(phone) {
if (!phone) return ''

View File

@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://127.0.0.1:18080`,
target: `http://localhost:18080`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''