multiple/config.json
@@ -8,7 +8,7 @@ }, "LC": { "env": { "VITE_APP_TITLE": "工厂数字化MOM系统", "VITE_APP_TITLE": "智能供应链管理", "VITE_BASE_API": "http://1.15.17.182:9055", "VITE_JAVA_API": "http://1.15.17.182:9054" }, src/directive/index.js
@@ -1,9 +1,7 @@ import hasRole from './permission/hasRole' import hasPermi from './permission/hasPermi' import copyText from './common/copyText' export default function directive(app){ app.directive('hasRole', hasRole) app.directive('hasPermi', hasPermi) app.directive('copyText', copyText) } src/views/login.vue
@@ -1,63 +1,102 @@ <template> <div class="login-page"> <div class="login-card"> <div class="card-header"> <div class="logo"> <svg-icon icon-class="user" /> <!-- 左侧插画区 --> <div class="illustration-side"> <div class="illustration-content"> <div class="scene"> <!-- 仓库建筑 --> <div class="warehouse"> <div class="building"> <div class="roof"></div> <div class="wall"> <div class="window"></div> <div class="window"></div> <div class="window"></div> </div> <div class="door"></div> </div> </div> <!-- 卡车 --> <div class="truck"> <div class="truck-body"></div> <div class="truck-cab"></div> <div class="wheel wheel-1"></div> <div class="wheel wheel-2"></div> </div> <!-- 箱子 --> <div class="boxes"> <div class="box box-1"></div> <div class="box box-2"></div> <div class="box box-3"></div> </div> <!-- 装饰元素 --> <div class="decor-circle c1"></div> <div class="decor-circle c2"></div> <div class="decor-circle c3"></div> </div> <h1>客户关系管理系统</h1> <p>高效管理客户资源,驱动业务增长</p> <h2>智能供应链管理</h2> <p>高效协同 · 精准管控 · 数据驱动</p> </div> <el-form ref="loginRef" :model="loginForm" :rules="loginRules"> <el-form-item prop="username"> <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" placeholder="请输入账号" > <template #prefix><el-icon><User /></el-icon></template> </el-input> </el-form-item> <el-form-item prop="password"> <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" placeholder="请输入密码" show-password @keyup.enter="handleLogin" > <template #prefix><el-icon><Lock /></el-icon></template> </el-input> </el-form-item> <div class="form-options"> <el-checkbox v-model="loginForm.rememberMe">记住密码</el-checkbox> <router-link v-if="register" :to="'/register'">立即注册</router-link> </div> <el-button :loading="loading" size="large" type="primary" class="login-btn" @click.prevent="handleLogin" > <span v-if="!loading">登 录</span> <span v-else>登录中...</span> </el-button> </el-form> </div> <div class="bg-pattern"> <div class="pattern-item"></div> <div class="pattern-item"></div> <div class="pattern-item"></div> <!-- 右侧登录区 --> <div class="login-side"> <div class="login-form-box"> <div class="form-header"> <h3>欢迎回来</h3> <p>登录您的账号继续使用</p> </div> <el-form ref="loginRef" :model="loginForm" :rules="loginRules"> <el-form-item prop="username"> <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" placeholder="用户名" class="login-input" > <template #prefix> <el-icon><User /></el-icon> </template> </el-input> </el-form-item> <el-form-item prop="password"> <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" placeholder="密码" show-password class="login-input" @keyup.enter="handleLogin" > <template #prefix> <el-icon><Lock /></el-icon> </template> </el-input> </el-form-item> <div class="form-options"> <el-checkbox v-model="loginForm.rememberMe">记住我</el-checkbox> <a href="#" class="forgot-link">忘记密码?</a> </div> <el-button :loading="loading" size="large" type="primary" class="login-btn" @click.prevent="handleLogin" > <span v-if="!loading">登录</span> <span v-else>登录中...</span> </el-button> </el-form> </div> </div> </div> </template> @@ -67,6 +106,7 @@ import Cookies from "js-cookie" import { encrypt, decrypt } from "@/utils/jsencrypt" import useUserStore from "@/store/modules/user" import { User, Lock } from '@element-plus/icons-vue' const userStore = useUserStore() const route = useRoute() @@ -80,13 +120,12 @@ }) const loginRules = { username: [{ required: true, trigger: "blur", message: "请输入账号" }], username: [{ required: true, trigger: "blur", message: "请输入用户名" }], password: [{ required: true, trigger: "blur", message: "请输入密码" }], } const loading = ref(false) const captchaEnabled = ref(true) const register = ref(false) const redirect = ref(undefined) watch( @@ -151,163 +190,320 @@ </script> <style lang="scss" scoped> // 主题色变量 $primary: #1f7a72; $primary-light: #2a9d8f; $primary-lighter: #3abbae; $primary-lightest: #e8f5f3; .login-page { min-height: 100vh; display: flex; } /* 左侧插画区 */ .illustration-side { flex: 1; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--el-color-primary-light-9) 0%, var(--el-color-primary-light-8) 50%, var(--el-color-primary-light-9) 100%); position: relative; overflow: hidden; background: linear-gradient(135deg, $primary-lightest 0%, #d4edea 100%); padding: 60px; } .bg-pattern { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; .pattern-item { position: absolute; border-radius: 50%; background: linear-gradient(135deg, var(--el-color-primary-light-7), var(--el-color-primary-light-9)); } .pattern-item:nth-child(1) { width: 500px; height: 500px; top: -150px; right: -100px; } .pattern-item:nth-child(2) { width: 350px; height: 350px; bottom: -100px; left: -80px; } .pattern-item:nth-child(3) { width: 200px; height: 200px; top: 40%; left: 15%; background: linear-gradient(135deg, var(--el-color-primary-light-8), var(--el-color-primary-light-9)); } } .login-card { width: 420px; padding: 48px 40px; background: rgba(255, 255, 255, 0.95); border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 20px 25px -5px rgba(0, 0, 0, 0.05); backdrop-filter: blur(10px); position: relative; z-index: 1; } .card-header { .illustration-content { text-align: center; margin-bottom: 36px; .logo { width: 72px; height: 72px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--el-color-primary) 0%, var(--el-color-primary-light-3) 100%); border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px var(--el-color-primary-light-5); :deep(svg) { width: 36px; height: 36px; color: #fff; } } h1 { font-size: 24px; h2 { font-size: 32px; font-weight: 600; color: #1f2937; margin: 0 0 8px; color: $primary; margin: 40px 0 12px 0; } p { font-size: 14px; color: #6b7280; font-size: 16px; color: $primary-light; margin: 0; } } :deep(.el-form-item) { margin-bottom: 20px; /* CSS 插画场景 */ .scene { position: relative; width: 320px; height: 240px; margin: 0 auto; } :deep(.el-input__wrapper) { border-radius: 12px; box-shadow: 0 0 0 1px #e5e7eb; /* 仓库 */ .warehouse { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); } .building { position: relative; width: 140px; height: 100px; } .roof { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 75px solid transparent; border-right: 75px solid transparent; border-bottom: 40px solid $primary; } .wall { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 70px; background: #fff; border: 3px solid $primary; border-radius: 0 0 4px 4px; display: flex; justify-content: space-around; align-items: center; padding: 0 10px; } .window { width: 20px; height: 30px; background: $primary-lightest; border-radius: 2px; } .door { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 45px; background: $primary-light; border-radius: 4px 4px 0 0; } /* 卡车 */ .truck { position: absolute; bottom: 40px; right: 20px; width: 100px; height: 50px; } .truck-body { position: absolute; top: 10px; left: 0; width: 60px; height: 35px; background: $primary; border-radius: 4px; } .truck-cab { position: absolute; top: 18px; right: 0; width: 35px; height: 27px; background: $primary-light; border-radius: 0 8px 4px 0; } .wheel { position: absolute; bottom: 0; width: 16px; height: 16px; background: $primary; border-radius: 50%; border: 3px solid $primary-light; } .wheel-1 { left: 12px; } .wheel-2 { right: 8px; } /* 箱子 */ .boxes { position: absolute; bottom: 40px; left: 30px; } .box { position: absolute; border-radius: 3px; } .box-1 { width: 35px; height: 35px; background: $primary; bottom: 0; left: 0; } .box-2 { width: 30px; height: 30px; background: $primary-light; bottom: 0; left: 40px; } .box-3 { width: 28px; height: 28px; background: $primary-lighter; bottom: 38px; left: 5px; } /* 装饰圆圈 */ .decor-circle { position: absolute; border-radius: 50%; opacity: 0.3; } .c1 { width: 80px; height: 80px; background: $primary; top: 20px; left: 30px; } .c2 { width: 50px; height: 50px; background: $primary-light; top: 60px; right: 40px; } .c3 { width: 35px; height: 35px; background: $primary-lighter; bottom: 100px; left: 20px; } /* 右侧登录区 */ .login-side { width: 460px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 40px; } .login-form-box { width: 100%; max-width: 340px; } .form-header { margin-bottom: 32px; h3 { font-size: 26px; font-weight: 600; color: $primary; margin: 0 0 8px 0; } p { font-size: 14px; color: $primary-light; margin: 0; } } :deep(.login-input .el-input__wrapper) { background: $primary-lightest; border: 1px solid #d0e5e2; border-radius: 10px; box-shadow: none; padding: 0 16px; height: 48px; transition: all 0.2s; &:hover { box-shadow: 0 0 0 1px var(--el-color-primary-light-5); border-color: $primary-light; } &:focus-within { box-shadow: 0 0 0 2px var(--el-color-primary); border-color: $primary; background: #fff; box-shadow: 0 0 0 3px rgba(31, 122, 114, 0.1); } } :deep(.el-input__inner) { :deep(.login-input .el-input__inner) { height: 48px; font-size: 15px; color: #374151; color: $primary; &::placeholder { color: #9ca3af; color: #8fb5af; } } :deep(.el-input__prefix) { color: #9ca3af; font-size: 18px; :deep(.login-input .el-input__prefix) { color: $primary-light; margin-right: 10px; } .form-options { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 24px; margin: 16px 0 24px; :deep(.el-checkbox__label) { color: #6b7280; font-size: 14px; color: $primary-light; } :deep(.el-checkbox__input.is-checked .el-checkbox__inner) { background-color: var(--el-color-primary); border-color: var(--el-color-primary); background-color: $primary; border-color: $primary; } a { color: var(--el-color-primary); :deep(.el-checkbox__input.is-checked + .el-checkbox__label) { color: $primary; } .forgot-link { font-size: 14px; font-weight: 500; color: $primary; text-decoration: none; transition: color 0.2s; font-weight: 500; &:hover { color: var(--el-color-primary-light-3); text-decoration: underline; } } } @@ -315,30 +511,28 @@ .login-btn { width: 100%; height: 48px; border-radius: 12px; border-radius: 10px; font-size: 16px; font-weight: 500; background: linear-gradient(135deg, var(--el-color-primary) 0%, var(--el-color-primary-light-3) 100%); background: linear-gradient(135deg, $primary 0%, $primary-light 100%); border: none; box-shadow: 0 4px 14px var(--el-color-primary-light-5); transition: all 0.2s; &:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px var(--el-color-primary-light-4); box-shadow: 0 6px 20px rgba(31, 122, 114, 0.3); } } @media (max-width: 480px) { .login-card { width: 90%; padding: 36px 24px; /* 响应式 */ @media (max-width: 900px) { .illustration-side { display: none; } .card-header { h1 { font-size: 20px; } .login-side { width: 100%; } } </style> src/views/monitor/job/index.vue
@@ -43,7 +43,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['monitor:job:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -53,7 +52,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['monitor:job:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -63,7 +61,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['monitor:job:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -72,7 +69,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['monitor:job:export']" >导出</el-button> </el-col> <el-col :span="1.5"> @@ -81,7 +77,6 @@ plain icon="Operation" @click="handleJobLog" v-hasPermi="['monitor:job:query']" >日志</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -111,19 +106,19 @@ <el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <template #default="scope"> <el-tooltip content="修改" placement="top"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['monitor:job:edit']"></el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button> </el-tooltip> <el-tooltip content="删除" placement="top"> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['monitor:job:remove']"></el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button> </el-tooltip> <el-tooltip content="执行一次" placement="top"> <el-button link type="primary" icon="CaretRight" @click="handleRun(scope.row)" v-hasPermi="['monitor:job:changeStatus']"></el-button> <el-button link type="primary" icon="CaretRight" @click="handleRun(scope.row)"></el-button> </el-tooltip> <el-tooltip content="任务详细" placement="top"> <el-button link type="primary" icon="View" @click="handleView(scope.row)" v-hasPermi="['monitor:job:query']"></el-button> <el-button link type="primary" icon="View" @click="handleView(scope.row)"></el-button> </el-tooltip> <el-tooltip content="调度日志" placement="top"> <el-button link type="primary" icon="Operation" @click="handleJobLog(scope.row)" v-hasPermi="['monitor:job:query']"></el-button> <el-button link type="primary" icon="Operation" @click="handleJobLog(scope.row)"></el-button> </el-tooltip> </template> </el-table-column> src/views/monitor/job/log.vue
@@ -64,7 +64,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['monitor:job:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -73,7 +72,6 @@ plain icon="Delete" @click="handleClean" v-hasPermi="['monitor:job:remove']" >清空</el-button> </el-col> <el-col :span="1.5"> @@ -82,7 +80,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['monitor:job:export']" >导出</el-button> </el-col> <el-col :span="1.5"> @@ -119,7 +116,7 @@ </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="View" @click="handleView(scope.row)" v-hasPermi="['monitor:job:query']">详细</el-button> <el-button link type="primary" icon="View" @click="handleView(scope.row)">详细</el-button> </template> </el-table-column> </el-table> src/views/monitor/logininfor/index.vue
@@ -59,7 +59,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['monitor:logininfor:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -68,7 +67,6 @@ plain icon="Delete" @click="handleClean" v-hasPermi="['monitor:logininfor:remove']" >清空</el-button> </el-col> <el-col :span="1.5"> @@ -78,7 +76,6 @@ icon="Unlock" :disabled="single" @click="handleUnlock" v-hasPermi="['monitor:logininfor:unlock']" >解锁</el-button> </el-col> <el-col :span="1.5"> @@ -87,7 +84,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['monitor:logininfor:export']" >导出</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> src/views/monitor/online/index.vue
@@ -48,7 +48,7 @@ </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Delete" @click="handleForceLogout(scope.row)" v-hasPermi="['monitor:online:forceLogout']">强退</el-button> <el-button link type="primary" icon="Delete" @click="handleForceLogout(scope.row)">强退</el-button> </template> </el-table-column> </el-table> src/views/monitor/operlog/index.vue
@@ -83,7 +83,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['monitor:operlog:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -92,7 +91,6 @@ plain icon="Delete" @click="handleClean" v-hasPermi="['monitor:operlog:remove']" >清空</el-button> </el-col> <el-col :span="1.5"> @@ -101,7 +99,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['monitor:operlog:export']" >导出</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -135,7 +132,7 @@ </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="View" @click="handleView(scope.row, scope.index)" v-hasPermi="['monitor:operlog:query']">详细</el-button> <el-button link type="primary" icon="View" @click="handleView(scope.row, scope.index)">详细</el-button> </template> </el-table-column> </el-table> src/views/productionManagement/productStructure/index.vue
@@ -8,13 +8,13 @@ plain icon="Upload" @click="handleImport" v-hasPermi="['product:bom:import']">导入</el-button> >导入</el-button> <el-button type="warning" plain icon="Download" @click="handleExport" :disabled="selectedRows.length !== 1" v-hasPermi="['product:bom:export']">导出</el-button> >导出</el-button> <el-button type="danger" plain @click="handleBatchDelete" src/views/projectManagement/roles/index.vue
@@ -33,7 +33,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:role:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -43,7 +42,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:role:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -53,7 +51,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:role:remove']" >删除</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -83,10 +80,10 @@ <el-table-column fixed="right" label="操作" align="center" width="120"> <template #default="scope"> <el-tooltip content="修改" placement="top" v-if="scope.row.roleId !== 1"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:role:edit']"></el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button> </el-tooltip> <el-tooltip content="删除" placement="top" v-if="scope.row.roleId !== 1"> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:role:remove']"></el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button> </el-tooltip> </template> </el-table-column> src/views/system/config/index.vue
@@ -52,7 +52,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:config:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -62,7 +61,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:config:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -72,7 +70,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:config:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -81,7 +78,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['system:config:export']" >导出</el-button> </el-col> <el-col :span="1.5"> @@ -90,7 +86,6 @@ plain icon="Refresh" @click="handleRefreshCache" v-hasPermi="['system:config:remove']" >刷新缓存</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -115,8 +110,8 @@ </el-table-column> <el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:config:edit']" >修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:config:remove']">删除</el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> </el-table> src/views/system/dept/index.vue
@@ -33,7 +33,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:dept:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -68,9 +67,9 @@ </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:dept:edit']">修改</el-button> <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['system:dept:add']">新增</el-button> <el-button v-if="scope.row.parentId != 0" link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:dept:remove']">删除</el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button> <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)">新增</el-button> <el-button v-if="scope.row.parentId != 0" link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> </el-table> src/views/system/dict/data.vue
@@ -43,7 +43,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:dict:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -53,7 +52,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:dict:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -63,7 +61,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:dict:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -72,7 +69,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['system:dict:export']" >导出</el-button> </el-col> <el-col :span="1.5"> @@ -110,8 +106,8 @@ </el-table-column> <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:dict:edit']">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:dict:remove']">删除</el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> </el-table> src/views/system/dict/index.vue
@@ -57,7 +57,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:dict:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -67,7 +66,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:dict:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -77,7 +75,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:dict:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -86,7 +83,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['system:dict:export']" >导出</el-button> </el-col> <el-col :span="1.5"> @@ -95,7 +91,6 @@ plain icon="Refresh" @click="handleRefreshCache" v-hasPermi="['system:dict:remove']" >刷新缓存</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -125,8 +120,8 @@ </el-table-column> <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:dict:edit']">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:dict:remove']">删除</el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> </el-table> src/views/system/menu/index.vue
@@ -33,7 +33,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:menu:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -76,9 +75,9 @@ </el-table-column> <el-table-column label="操作" align="center" width="210" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:menu:edit']">修改</el-button> <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['system:menu:add']">新增</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:menu:remove']">删除</el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button> <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)">新增</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> </el-table> src/views/system/notice/index.vue
@@ -42,7 +42,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:notice:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -52,7 +51,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:notice:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -62,7 +60,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:notice:remove']" >删除</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -95,8 +92,8 @@ </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:notice:edit']">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:notice:remove']" >删除</el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> </el-table> src/views/system/post/index.vue
@@ -42,7 +42,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:post:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -52,7 +51,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:post:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -62,7 +60,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:post:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -71,7 +68,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['system:post:export']" >导出</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -95,8 +91,8 @@ </el-table-column> <el-table-column label="操作" width="180" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:post:edit']">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:post:remove']">删除</el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> </el-table> src/views/system/role/authUser.vue
@@ -33,7 +33,6 @@ plain icon="Plus" @click="openSelectUser" v-hasPermi="['system:role:add']" >添加用户</el-button> </el-col> <el-col :span="1.5"> @@ -43,7 +42,6 @@ icon="CircleClose" :disabled="multiple" @click="cancelAuthUserAll" v-hasPermi="['system:role:remove']" >批量取消授权</el-button> </el-col> <el-col :span="1.5"> @@ -75,7 +73,7 @@ </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="CircleClose" @click="cancelAuthUser(scope.row)" v-hasPermi="['system:role:remove']">取消授权</el-button> <el-button link type="primary" icon="CircleClose" @click="cancelAuthUser(scope.row)">取消授权</el-button> </template> </el-table-column> </el-table> src/views/system/role/index.vue
@@ -56,7 +56,6 @@ plain icon="Plus" @click="handleAdd" v-hasPermi="['system:role:add']" >新增</el-button> </el-col> <el-col :span="1.5"> @@ -66,7 +65,6 @@ icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:role:edit']" >修改</el-button> </el-col> <el-col :span="1.5"> @@ -76,7 +74,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:role:remove']" >删除</el-button> </el-col> <el-col :span="1.5"> @@ -85,7 +82,6 @@ plain icon="Download" @click="handleExport" v-hasPermi="['system:role:export']" >导出</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> @@ -116,16 +112,16 @@ <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-tooltip content="修改" placement="top" v-if="scope.row.roleId !== 1"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:role:edit']"></el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button> </el-tooltip> <el-tooltip content="删除" placement="top" v-if="scope.row.roleId !== 1"> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:role:remove']"></el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button> </el-tooltip> <el-tooltip content="数据权限" placement="top" v-if="scope.row.roleId !== 1"> <el-button link type="primary" icon="CircleCheck" @click="handleDataScope(scope.row)" v-hasPermi="['system:role:edit']"></el-button> <el-button link type="primary" icon="CircleCheck" @click="handleDataScope(scope.row)"></el-button> </el-tooltip> <el-tooltip content="分配用户" placement="top" v-if="scope.row.roleId !== 1"> <el-button link type="primary" icon="User" @click="handleAuthUser(scope.row)" v-hasPermi="['system:role:edit']"></el-button> <el-button link type="primary" icon="User" @click="handleAuthUser(scope.row)"></el-button> </el-tooltip> </template> </el-table-column> src/views/system/user/index.vue
@@ -39,19 +39,19 @@ <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:user:add']">新增</el-button> <el-button type="primary" plain icon="Plus" @click="handleAdd">新增</el-button> </el-col> <el-col :span="1.5"> <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['system:user:edit']">修改</el-button> <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate">修改</el-button> </el-col> <el-col :span="1.5"> <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:user:remove']">删除</el-button> <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete">删除</el-button> </el-col> <el-col :span="1.5"> <el-button type="info" plain icon="Upload" @click="handleImport" v-hasPermi="['system:user:import']">导入</el-button> <el-button type="info" plain icon="Upload" @click="handleImport">导入</el-button> </el-col> <el-col :span="1.5"> <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['system:user:export']">导出</el-button> <el-button type="warning" plain icon="Download" @click="handleExport">导出</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> </el-row> @@ -82,16 +82,16 @@ <el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width"> <template #default="scope"> <el-tooltip content="修改" placement="top" v-if="scope.row.userId !== 1"> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:user:edit']"></el-button> <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button> </el-tooltip> <el-tooltip content="删除" placement="top" v-if="scope.row.userId !== 1"> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']"></el-button> <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button> </el-tooltip> <el-tooltip content="重置密码" placement="top" v-if="scope.row.userId !== 1"> <el-button link type="primary" icon="Key" @click="handleResetPwd(scope.row)" v-hasPermi="['system:user:resetPwd']"></el-button> <el-button link type="primary" icon="Key" @click="handleResetPwd(scope.row)"></el-button> </el-tooltip> <el-tooltip content="分配角色" placement="top" v-if="scope.row.userId !== 1"> <el-button link type="primary" icon="CircleCheck" @click="handleAuthRole(scope.row)" v-hasPermi="['system:user:edit']"></el-button> <el-button link type="primary" icon="CircleCheck" @click="handleAuthRole(scope.row)"></el-button> </el-tooltip> </template> </el-table-column> src/views/tool/gen/index.vue
@@ -50,7 +50,6 @@ icon="Download" :disabled="multiple" @click="handleGenTable" v-hasPermi="['tool:gen:code']" >生成</el-button > </el-col> @@ -70,7 +69,6 @@ plain icon="Upload" @click="openImportTable" v-hasPermi="['tool:gen:import']" >导入</el-button > </el-col> @@ -81,7 +79,6 @@ icon="Edit" :disabled="single" @click="handleEditTable" v-hasPermi="['tool:gen:edit']" >修改</el-button > </el-col> @@ -92,7 +89,6 @@ icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['tool:gen:remove']" >删除</el-button > </el-col> @@ -169,7 +165,6 @@ type="primary" icon="View" @click="handlePreview(scope.row)" v-hasPermi="['tool:gen:preview']" ></el-button> </el-tooltip> <el-tooltip content="编辑" placement="top"> @@ -178,7 +173,6 @@ type="primary" icon="Edit" @click="handleEditTable(scope.row)" v-hasPermi="['tool:gen:edit']" ></el-button> </el-tooltip> <el-tooltip content="删除" placement="top"> @@ -187,7 +181,6 @@ type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['tool:gen:remove']" ></el-button> </el-tooltip> <el-tooltip content="同步" placement="top"> @@ -196,7 +189,6 @@ type="primary" icon="Refresh" @click="handleSynchDb(scope.row)" v-hasPermi="['tool:gen:edit']" ></el-button> </el-tooltip> <el-tooltip content="生成代码" placement="top"> @@ -205,7 +197,6 @@ type="primary" icon="Download" @click="handleGenTable(scope.row)" v-hasPermi="['tool:gen:code']" ></el-button> </el-tooltip> </template>