Commit 6ab3fcbf by huangqy

改的是个啥啊,改了封面

parent 4544fde0
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"axios": "^0.21.1", "axios": "^0.21.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"echarts": "^4.9.0", "echarts": "^4.9.0",
"element-ui": "^2.14.1", "element-ui": "^2.15.7",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"swiper": "^6.3.5", "swiper": "^6.3.5",
......
No preview for this file type
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>公用被装全寿命管理系统</title> <title>金锭生产防伪管理系统</title>
</head> </head>
<body> <body>
<noscript> <noscript>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script> <script>
window._CONFIG = {}; window._CONFIG = {};
window._CONFIG['domianURL'] = 'http://192.168.3.130:10027'; window._CONFIG['domianURL'] = 'http://192.168.2.12:10030';
</script> </script>
</body> </body>
</html> </html>
...@@ -271,15 +271,12 @@ i { ...@@ -271,15 +271,12 @@ i {
margin: 10px 0; margin: 10px 0;
} }
.el-divider--horizontal { /* .el-divider--horizontal {
margin: 5px 0 !important; margin: 5px 0 !important;
} } */
/* 分割线设置 */ /* 分割线设置 */
.el-divider .el-divider__text { .el-divider .el-divider__text {
font-size: 16px; font-size: 20px;
font-weight: 700;
color: #284527;
text-shadow: 0 0px 1px #2a770d;
} }
/* alert警告样式 */ /* alert警告样式 */
.el-alert { .el-alert {
......
src/assets/logo.png

26.4 KB | W: | H:

src/assets/logo.png

337 KB | W: | H:

src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -121,6 +121,7 @@ export default { ...@@ -121,6 +121,7 @@ export default {
font-weight: 500; font-weight: 500;
margin-left: 8px; margin-left: 8px;
color: #fff; color: #fff;
line-height: 90px;
} }
span { span {
display: block; display: block;
...@@ -140,6 +141,7 @@ export default { ...@@ -140,6 +141,7 @@ export default {
font-weight: 500; font-weight: 500;
margin-left: 8px; margin-left: 8px;
color: #fff; color: #fff;
line-height: 90px;
} }
} }
.active { .active {
......
...@@ -57,9 +57,13 @@ import { ...@@ -57,9 +57,13 @@ import {
Collapse, Collapse,
CollapseItem, CollapseItem,
Image, Image,
Calendar Calendar,
Descriptions,
DescriptionsItem
} from 'element-ui' } from 'element-ui'
// import element from 'element-ui' // import element from 'element-ui'
Vue.use(Descriptions)
Vue.use(DescriptionsItem)
Vue.use(Step) Vue.use(Step)
Vue.use(Steps) Vue.use(Steps)
Vue.use(Alert) Vue.use(Alert)
......
...@@ -2,6 +2,28 @@ ...@@ -2,6 +2,28 @@
基础数据 基础数据
*/ */
const basicData = [ const basicData = [
{
path: '/base/company',
name: 'base/company',
component: () => import(/* webpackChunkName: "index/data/room" */ '@/basicData/company')
},
{
path: '/base/product',
name: 'base/product',
component: () => import(/* webpackChunkName: "index/data/room" */ '@/basicData/product')
},
{
path: '/production/produce',
name: 'production/produce',
component: () => import(/* webpackChunkName: "index/data/room" */ '@/basicData/produce')
},
{
path: '/production/check',
name: 'production/check',
component: () => import(/* webpackChunkName: "index/data/room" */ '@/basicData/check')
},
// 基础数据 // 基础数据
{ {
// 基础数据 - 物资数据同步 // 基础数据 - 物资数据同步
...@@ -29,12 +51,7 @@ const basicData = [ ...@@ -29,12 +51,7 @@ const basicData = [
component: () => import(/* webpackChunkName: "index/data/room" */ '@/basicData/app') component: () => import(/* webpackChunkName: "index/data/room" */ '@/basicData/app')
}, },
{
// 基础数据 - 企业管理
path: '/data/company',
name: 'data/company',
component: () => import(/* webpackChunkName: "index/data/room" */ '@/basicData/company')
},
{ {
// 基础数据 - 企业管理 // 基础数据 - 企业管理
......
...@@ -13,11 +13,6 @@ const production = [ ...@@ -13,11 +13,6 @@ const production = [
component: () => import(/* webpackChunkName: "index/audit/work" */ '@/production/list') component: () => import(/* webpackChunkName: "index/audit/work" */ '@/production/list')
}, },
{ {
path: '/production/check',
name: 'production/check',
component: () => import(/* webpackChunkName: "index/audit/work" */ '@/production/check')
},
{
path: '/production/delivery', path: '/production/delivery',
name: 'production/delivery', name: 'production/delivery',
component: () => import(/* webpackChunkName: "index/audit/work" */ '@/production/delivery') component: () => import(/* webpackChunkName: "index/audit/work" */ '@/production/delivery')
......
...@@ -22,6 +22,12 @@ const system = [ ...@@ -22,6 +22,12 @@ const system = [
component: () => import(/* webpackChunkName: "index/system/role" */ '@/system/role') component: () => import(/* webpackChunkName: "index/system/role" */ '@/system/role')
}, },
{ {
// 系统管理 - 角色管理
path: '/system/log',
name: 'system/log',
component: () => import(/* webpackChunkName: "index/system/role" */ '@/system/log')
},
{
// 系统管理 - 授权管理 // 系统管理 - 授权管理
path: '/system/empower', path: '/system/empower',
name: 'system/empower', name: 'system/empower',
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<el-input <el-input
clearable clearable
placeholder="请输入企业名称" placeholder="请输入企业名称"
v-model="searchData.businessName" v-model="searchData.name"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -28,33 +28,15 @@ ...@@ -28,33 +28,15 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-form-item>
<a-upload
name="file"
:multiple="false"
:showUploadList="false"
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
@change="handleUpload"
>
<a-button type="primary" icon="upload" ghost round> 导入 </a-button>
</a-upload>
</el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<el-table :data="data" style="width: 100%;overflow: auto;" size="medium" highlight-current-row> <el-table :data="data" style="width: 100%;overflow: auto;" size="medium" highlight-current-row>
<el-table-column type="index" width="60" label="序号" align="center" /> <el-table-column type="index" width="60" label="序号" align="center" />
<el-table-column prop="orgName" label="企业名称" align="center" /> <el-table-column prop="name" label="企业名称" align="center" />
<el-table-column prop="orgCode" label="企业代码" align="center" /> <!-- <el-table-column prop="bizType" label="企业类型" align="center" /> -->
<el-table-column prop="orgFullName" label="企业全称" align="center" /> <el-table-column prop="shortName" label="企业简称" align="center" />
<el-table-column prop="contact" label="联系人" align="center" /> <el-table-column prop="remark" label="备注" align="center" :show-overflow-tooltip="true"/>
<el-table-column prop="phone" label="电话" align="center" />
<el-table-column label="状态" align="center" >
<template slot-scope="scope">
{{ scope.row.statusFlag === 1 ? '启用' : '禁用' }}
</template>
</el-table-column>
<!-- <el-table-column prop="remark" label="备注" align="center" :show-overflow-tooltip="true"/> -->
<el-table-column label="操作" align="center" width="280"> <el-table-column label="操作" align="center" width="280">
<template slot-scope="scope"> <template slot-scope="scope">
<a-button <a-button
...@@ -78,7 +60,7 @@ ...@@ -78,7 +60,7 @@
:current-page="searchData.pageNo" :current-page="searchData.pageNo"
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="searchData.pageSize" :page-size="searchData.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, prev, pager, next, jumper"
:total="total" :total="total"
/> />
...@@ -99,58 +81,27 @@ ...@@ -99,58 +81,27 @@
<el-input <el-input
clearable clearable
placeholder="请输入企业名称" placeholder="请输入企业名称"
v-model="formData.orgName" v-model="formData.name"
/>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item label="企业编码 :" prop="orgCode">
<el-input
clearable
placeholder="请输入企业编码"
v-model="formData.orgCode"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row type="flex" justify="space-between">
<el-col :span="11"> <el-col :span="11">
<el-form-item label="企业称 :"> <el-form-item label="企业称 :">
<el-input <el-input
clearable clearable
placeholder="请输入企业称" placeholder="请输入企业称"
v-model="formData.orgFullName" v-model="formData.shortName"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <!-- <el-col :span="11">
<el-form-item label="状态 :"> <el-form-item label="企业类型 :">
<el-select v-model="formData.statusFlag" style="width: 100%;" :disabled="title === '修改生产企业'"> <el-select v-model="formData.bizType" style="width: 100%;">
<el-option label="启用" :value="1"/> <el-option label="1" :value="1"/>
<el-option label="禁用" :value="2"/> <el-option label="2" :value="2"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
</el-row>
<el-row type="flex" justify="space-between">
<el-col :span="11">
<el-form-item label="联系人 :">
<el-input
clearable
placeholder="请输入联系人"
v-model="formData.contact"
/>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item label="电话 :">
<el-input
clearable
placeholder="请输入电话"
v-model="formData.phone"
/>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item label="备注信息 :"> <el-form-item label="备注信息 :">
...@@ -179,24 +130,9 @@ import initData from '../../mixins/initData' ...@@ -179,24 +130,9 @@ import initData from '../../mixins/initData'
export default { export default {
mixins: [initData], mixins: [initData],
data () { data () {
let checkCode = (rule, value, cb) => {
if (value.length === 8) {
return cb()
}
cb(new Error('企业代码长度必须为8位'))
}
return { return {
formData: { formData: {},
orgType: 100, formDataRules: {}
orgParentId: '1480804695504134146',
orgParentIds: '[-1, 1480804695504134146]'
},
formDataRules: {
orgCode: [
{ required: true, message: '此项为必填项', trigger: 'blur' },
{ validator: checkCode, trigger: 'blur' },
]
}
} }
}, },
...@@ -208,8 +144,7 @@ export default { ...@@ -208,8 +144,7 @@ export default {
methods: { methods: {
beforeInit() { beforeInit() {
this.url = '/org/page' this.url = '/api/company/page'
this.searchData.orgType = 100
return true return true
}, },
handleAdd() { handleAdd() {
...@@ -217,39 +152,37 @@ export default { ...@@ -217,39 +152,37 @@ export default {
this.dialogVisible = true this.dialogVisible = true
}, },
dialogClose() { dialogClose() {
this.formData = { this.formData = {}
orgType: 100,
orgParentId: '1480804695504134146',
orgParentIds: '[-1, 1480804695504134146]'
}
this.$refs.fromRef.resetFields() this.$refs.fromRef.resetFields()
}, },
subFormData () { subFormData () {
this.$refs.fromRef.validate(async falg => { this.$refs.fromRef.validate(async falg => {
if (!falg) return; if (!falg) return;
let url = '/org/add' let url = '/api/company'
if (this.formData.orgId) { if (this.formData.bizId) {
url = '/org/edit' const { data: res } = await this.$axios.put(url, this.formData)
} if (!res.data) return this.$message.error(res.message)
this.$message.success(res.message)
} else {
const { data: res } = await this.$axios.post(url, this.formData) const { data: res } = await this.$axios.post(url, this.formData)
if (!res.data) return this.$message.error(res.message) if (!res.data) return this.$message.error(res.message)
this.$message.success(res.message) this.$message.success(res.message)
}
this.dialogVisible = false this.dialogVisible = false
this.init() this.init()
}) })
}, },
editClickBtn(val) { editClickBtn(val) {
this.title = '修改生产企业' this.title = '修改企业'
// 拷贝 // 拷贝
const obj = JSON.parse(JSON.stringify(val)) const obj = JSON.parse(JSON.stringify(val))
this.dialogVisible = true this.dialogVisible = true
this.formData = obj this.formData = obj
}, },
deleteClick (row) { deleteClick (row) {
const url = '/org/delete' const url = '/api/company'
const params = { const params = {
orgId: row.orgId bizId: row.bizId
} }
this.delete(url, params, this.init()) this.delete(url, params, this.init())
}, },
...@@ -259,7 +192,7 @@ export default { ...@@ -259,7 +192,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(async () => { }).then(async () => {
const { data: res } = await this.$axios.post(url, data) const { data: res } = await this.$axios.delete(url, {data})
if (res.code === 99200) { if (res.code === 99200) {
this.$message.success(res.message) this.$message.success(res.message)
this.init() this.init()
...@@ -268,16 +201,6 @@ export default { ...@@ -268,16 +201,6 @@ export default {
} }
}) })
}, },
handleUpload(info) {
if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList);
}
if (info.file.status === 'done') {
this.$message.success(`${info.file.name} 导入成功`);
} else if (info.file.status === 'error') {
this.$message.error(`${info.file.name} 导入失败.`);
}
}
} }
} }
</script> </script>
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<el-container class="home-container"> <el-container class="home-container">
<!-- 顶部区域 S --> <!-- 顶部区域 S -->
<el-header class="ltk-header"> <el-header class="ltk-header">
<div class="logo" @click="goHome()"> <div class="logo">
<img src="../assets/logo.png" alt="logo" /> <img src="../assets/logo.png" alt="logo" />
<span>公用被装全寿命管理系统</span> <span>金锭生产防伪管理系统</span>
</div> </div>
<div class="time_box" @click="cut"> <div class="time_box" @click="cut">
<bo-time></bo-time> <bo-time></bo-time>
...@@ -13,12 +13,7 @@ ...@@ -13,12 +13,7 @@
<span class="user mgr15" style="cursor:pointer" @click="$router.push('/center')"> <span class="user mgr15" style="cursor:pointer" @click="$router.push('/center')">
当前账号: {{userData.userInfo.realName}} 当前账号: {{userData.userInfo.realName}}
</span> </span>
<div ref="noticeRef" style="cursor:pointer" @click="$router.push('/read')"> <a-button style="font-weight:bold;color:#fff;background: rgb(221, 115 ,37);border: 0px solid transparent;" icon="logout" @click="logout">退出</a-button>
<el-badge :value="readCount" style="margin-top:1px;">
<svg t="1600915000040" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2006" width="20" height="20"><path d="M608.0336 936.448C608.0336 984.768 565.0256 1024 512.0336 1024S416.0336 984.768 416.0336 936.448m96-778.88c-31.68 0-57.6-23.616-57.6-52.48V52.48C454.4336 23.616 480.3536 0 512.0336 0s57.6 23.68 57.6 52.48v52.608c0 28.864-25.92 52.48-57.6 52.48zM384.0336 576c-17.728 0-32-18.56-32-41.472V361.472C352.0336 338.56 366.3056 320 384.0336 320s32 18.56 32 41.472v173.056C415.9056 557.44 401.6336 576 384.0336 576z" p-id="2007" fill="#f6f6f6"></path><path d="M833.9536 896H190.1136a92.8 92.8 0 0 1-81.728-48.192 95.04 95.04 0 0 1 1.152-95.744l1.856-2.816 64.64-90.496V404.48C176.0336 216.704 326.6256 64 512.0336 64s336 152.704 336 340.48v254.08l66.496 93.376c17.6 29.824 18.048 65.536 1.152 95.744A92.672 92.672 0 0 1 833.9536 896zM173.7936 792.448a18.624 18.624 0 0 0 16.256 27.008h643.84c9.728 0 14.4-6.528 15.936-9.408a18.304 18.304 0 0 0 0.32-17.6l-64.384-90.048a71.808 71.808 0 0 1-13.44-42.176V404.48c0-145.472-116.8-263.808-260.416-263.808-143.552 0-260.352 118.336-260.352 263.808v255.68c0 15.104-4.608 29.696-13.44 42.048l-64.32 90.24z" p-id="2008" fill="#f6f6f6"></path></svg>
</el-badge>
</div>
<a-button style="font-weight:bold;color:#fff;background: rgb(221, 115 ,37);border: 0px solid transparent;margin-left: 25px;" icon="logout" @click="logout">退出</a-button>
</div> </div>
</el-header> </el-header>
<!-- 顶部区域 N --> <!-- 顶部区域 N -->
...@@ -52,15 +47,14 @@ ...@@ -52,15 +47,14 @@
<swiper-slide v-for="item in menuList.children" :key="item.id"> <swiper-slide v-for="item in menuList.children" :key="item.id">
<el-card :class="`${item.path === active ? 'active-top-card' : 'top-card'}`"> <el-card :class="`${item.path === active ? 'active-top-card' : 'top-card'}`">
<div class="card_item" @click="saveNavState(item.path)"> <div class="card_item" @click="saveNavState(item.path)">
<!-- <i class="el-icon-setting"></i> -->
<img :src="require('@icons/设置.png')" style="width: 25px;"> <img :src="require('@icons/设置.png')" style="width: 25px;">
<br/> <br/>
<span> {{item.title}}</span> <span> {{item.title}}</span>
</div> </div>
</el-card> </el-card>
</swiper-slide> </swiper-slide>
<div class="swiper-button-prev swiper-button-white" slot="button-prev" @click="prev"></div> <div class="swiper-button-prev swiper-button-white" slot="button-prev" @click="prev" v-if="menuList.children.length > 6"></div>
<div class="swiper-button-next swiper-button-white" slot="button-next" @click="next"></div> <div class="swiper-button-next swiper-button-white" slot="button-next" @click="next" v-if="menuList.children.length > 6"></div>
</swiper> </swiper>
</el-header> </el-header>
<el-main> <el-main>
...@@ -121,12 +115,12 @@ export default { ...@@ -121,12 +115,12 @@ export default {
this.getPlanTopData() this.getPlanTopData()
} }
this.activeClick() this.activeClick()
this.initWebsock() // this.initWebsock()
// this.getCut() // this.getCut()
//刷新未读数量 //刷新未读数量
eventBus.$on("updateMessage",() =>{ // eventBus.$on("updateMessage",() =>{
this.getReadCount() // this.getReadCount()
}) // })
}, },
computed: { computed: {
...mapState(['userData']), ...mapState(['userData']),
...@@ -279,7 +273,6 @@ export default { ...@@ -279,7 +273,6 @@ export default {
this.show = true this.show = true
const path = e ? e.path : this.activeOnePath const path = e ? e.path : this.activeOnePath
this.edActiveOnePath(path) this.edActiveOnePath(path)
console.log(path, e)
if (e) { if (e) {
this.edActive(e.children[0].path) this.edActive(e.children[0].path)
this.$router.push(e.children[0].path) this.$router.push(e.children[0].path)
...@@ -323,14 +316,14 @@ export default { ...@@ -323,14 +316,14 @@ export default {
} }
}, },
//获取当前用户未读信息 //获取当前用户未读信息
async getReadCount () { // async getReadCount () {
const params = { // const params = {
userId: this.userData.userId // userId: this.userData.userId
} // }
const { data: res } = await this.$axios.get('/first/getMessageCount', { params: params }) // const { data: res } = await this.$axios.get('/first/getMessageCount', { params: params })
if (res.code !== 99200) return this.$message(res.message) // if (res.code !== 99200) return this.$message(res.message)
this.readCount = res.data // this.readCount = res.data
}, // },
// 保存链接的激活状态 // 保存链接的激活状态
saveNavState (val) { saveNavState (val) {
...@@ -473,6 +466,7 @@ export default { ...@@ -473,6 +466,7 @@ export default {
/* 主体内容区域 */ /* 主体内容区域 */
.container_box { .container_box {
box-sizing: border-box; box-sizing: border-box;
// background: rgb(0, 204, 255);
background: url("../assets/images/bg.png"); background: url("../assets/images/bg.png");
background-size: 100% 100%; background-size: 100% 100%;
position: fixed; position: fixed;
......
<template> <template>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-header class="ltk-header"> <el-header class="ltk-header">
<div class="logo" @click="goHome()"> <div class="logo" @click="goHome()">
<img src="../assets/logo.png" alt="logo" /> <img src="../assets/logo.png" alt="logo" />
<span>公用被装全寿命管理系统</span> <span>金锭生产防伪管理系统</span>
</div> </div>
<div class="time_box" @click="cut"> <div class="time_box" @click="cut">
<bo-time></bo-time> <bo-time></bo-time>
......
<template> <template>
<div class="login_container" @keyup.enter="loginClick()"> <div class="login_container" @keyup.enter="loginClick()">
<dv-border-box-12 :color="['#fff','#fff']" style="width: 450px;height: 360px;display: block;float: right;margin-right: 36%;margin-top: 24%"> <div class="logo">
<img src="../../assets/images/logo.png" style="font-style: inherit;font-weight: inherit;line-height: 1.8; color: rgb(58, 58, 58);font-size: 14px;box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0,0,0,0);
height: auto;
max-width: 100%;
display: block;
border: 0;
margin: 0 auto;"></div>
<dv-border-box-12 :color="['#fff','#fff']" style="width: 450px;height: 300px;display: block;float: right;margin-right: 38.4%;margin-top: 18%">
<span style="font-size: 26px;color:#fff;padding:0px 172px;display:inline-block;margin-top: 20px">用户登录</span> <span style="font-size: 26px;color:#fff;padding:0px 172px;display:inline-block;margin-top: 20px">用户登录</span>
<el-form <el-form
class="login_form" class="login_form"
...@@ -8,9 +16,6 @@ ...@@ -8,9 +16,6 @@
:rules="loginFormRules" :rules="loginFormRules"
ref="loginFormRef" ref="loginFormRef"
> >
<el-form-item prop="orgCode">
<el-input v-model="loginForm.orgCode" style="width: 350px" placeholder="请输入单位代码"></el-input>
</el-form-item>
<el-form-item prop="account"> <el-form-item prop="account">
<el-input v-model="loginForm.account" style="width: 350px" placeholder="请输入登录ID"> <el-input v-model="loginForm.account" style="width: 350px" placeholder="请输入登录ID">
<i slot="prefix"> <i slot="prefix">
...@@ -78,22 +83,15 @@ export default { ...@@ -78,22 +83,15 @@ export default {
this.$refs.loginFormRef.validate(async flag => { this.$refs.loginFormRef.validate(async flag => {
// 登录验证 // 登录验证
if (!flag) return if (!flag) return
const { data: res } = await this.$axios.post('/auth/login', this.loginForm) const { data: res } = await this.$axios.post('/api/auth/login', this.loginForm)
if (res.code != 99200) return this.$message.error(res.message); if (res.code != 99200) return this.$message.error(res.message);
window.sessionStorage.setItem('token', res.data.token) window.sessionStorage.setItem('token', res.data.token)
const userData = res.data.userInfo const userData = res.data.userInfo
var date = new Date()
var year = date.getFullYear()
userData.gznd = year
window.sessionStorage.setItem('userData', JSON.stringify(userData)) window.sessionStorage.setItem('userData', JSON.stringify(userData))
// 菜单列表 // 菜单列表
const { data: menuRes } = await this.$axios.get('/sysMenu/getLeftMenus') const { data: menuRes } = await this.$axios.get('/sysMenu/getLeftMenus')
window.sessionStorage.setItem('navList', JSON.stringify(menuRes.data[0].children)) window.sessionStorage.setItem('navList', JSON.stringify(menuRes.data[0].children))
if (userData.roleInfoList[0].roleCode === '10002') { this.$router.push('/production/produce')
this.$router.push('/production/write')
} else {
this.$router.push('index')
}
}) })
}, },
// 密码显示 // 密码显示
...@@ -115,6 +113,21 @@ export default { ...@@ -115,6 +113,21 @@ export default {
line-height: 50px; line-height: 50px;
} }
.logo {
font-style: inherit;
font-weight: inherit;
line-height: 1.8;
color: rgb(58, 58, 58);
font-size: 14px;
font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0,0,0,0);
position: absolute;
width: 80%;
top: 20%;
left: 10%;
}
.login_container { .login_container {
position:fixed; position:fixed;
top: 0; top: 0;
...@@ -122,7 +135,6 @@ export default { ...@@ -122,7 +135,6 @@ export default {
width:100%; width:100%;
height:100%; height:100%;
min-width: 1000px; min-width: 1000px;
//z-index:-10;
zoom: 1; zoom: 1;
background-color: #fff; background-color: #fff;
background: url('../../assets/images/loginbg.png') no-repeat; background: url('../../assets/images/loginbg.png') no-repeat;
......
// 日志管理 - 登录日志
<template>
<div class="body" :style="'height:' + height + 'px'">
<div class="inner_border">
<!-- 主体区域 - 卡片视图 -->
<el-card :style="'height:' + (height - 60) + 'px; overflow-y: auto; position:relative;'">
<!-- 查询功能区域 -->
<el-form :inline="true" :model="searchData" size="medium" label-position="left">
<el-row type="flex" justify="space-between" align="middle">
<el-col>
<el-form-item label="时间节点 :" class="mgr15 mgl15">
<el-date-picker
@change="dateChange"
v-model="timeData"
type="daterange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item>
<a-button type="primary" ghost class="mgl15" icon="search" @click="toQuery()">查询</a-button>
</el-form-item>
<el-form-item>
<a-button type="primary" ghost @click="resClick()" icon="reload">重置</a-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 主表 -->
<el-table :data="data" style="overflow: auto;" highlight-current-row>
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column>
<el-table-column prop="logName" label="日志名称" align="center"></el-table-column>
<el-table-column prop="logSucceed" label="是否执行成功" align="center"></el-table-column>
<el-table-column prop="logMessage" label="具体消息" align="center"></el-table-column>
<el-table-column prop="loginIpAddress" label="登录ip" align="center"></el-table-column>
<el-table-column prop="userId" label="用户id" align="center"></el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
</el-table>
<el-pagination
style="text-align: center;position: absolute;bottom: 0;background: #fff;width: 100%"
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="searchData.pageNo"
:page-sizes="[10, 20, 30, 40]"
:page-size="searchData.pageSize"
layout="total, prev, pager, next, jumper"
:total="total"
/>
</el-card>
</div>
</div>
</template>
<script>
import initData from '../../mixins/initData'
export default {
mixins: [initData],
data () {
return {
timeData: []
}
},
created () {
this.$nextTick(() => {
this.init()
})
},
methods: {
beforeInit() {
this.url = '/loginLog/page'
return true
},
dateChange (date) {
this.searchData.beginTime = date ? date[0] : ''
this.searchData.endTime = date ? date[1] : ''
},
}
}
</script>
<style scoped lang='less'>
</style>
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
// 表单数据 // 表单数据
formData: { formData: {
appCode: 10001, appCode: 10003,
iconShow: false iconShow: false
}, },
// 表单验证规则 // 表单验证规则
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
editClose() { editClose() {
this.formData = { this.formData = {
appCode: 10001, appCode: 10003,
iconShow: false iconShow: false
} }
this.$refs.fromRef.resetFields() this.$refs.fromRef.resetFields()
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<el-card :style="'height:' + (height - 60) + 'px;overflow-y: auto;position:relative;'"> <el-card :style="'height:' + (height - 60) + 'px;overflow-y: auto;position:relative;'">
<el-form :inline="true" :model="searchData" size="medium" label-position="left"> <el-form :inline="true" :model="searchData" size="medium" label-position="left">
<el-row > <el-row >
<el-form-item label="人员名称 :"> <el-form-item label="人员姓名 :">
<el-input <el-input
clearable clearable
@keypress.native.enter="toQuery()" @keypress.native.enter="toQuery()"
placeholder="请输入人员名称" placeholder="请输入人员姓名"
v-model="searchData.realName" v-model="searchData.realName"
/> />
</el-form-item> </el-form-item>
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<el-card :style="'height:' + (height - 156) + 'px;overflow-y: auto;position:relative;'"> <el-card :style="'height:' + (height - 156) + 'px;overflow-y: auto;position:relative;'">
<el-table ref="userTable" :data="data" style="width: 100%;" size="medium" :highlight-current-row="true" @row-click="rowClick"> <el-table ref="userTable" :data="data" style="width: 100%;" size="medium" :highlight-current-row="true" @row-click="rowClick">
<el-table-column type="index" width="60" label="序号" align="center"/> <el-table-column type="index" width="60" label="序号" align="center"/>
<el-table-column prop="account" label="用户名" align="center"/> <el-table-column prop="account" label="登录账号" align="center"/>
<el-table-column prop="realName" label="人员名称" align="center"/> <el-table-column prop="realName" label="人员姓名" align="center"/>
<el-table-column prop="sex" label="性别" align="center"> <el-table-column prop="sex" label="性别" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.sex === 'M' ? '男' : '女' }} {{ scope.row.sex === 'M' ? '男' : '女' }}
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" align="center"> <el-table-column label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.statusFlag === 1 ? '正常' : '冻结' }} <el-tag type="success" v-if="scope.row.statusFlag == 1">正常</el-tag>
<el-tag type="danger" v-if="scope.row.statusFlag == 2">冻结</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="orgCode" label="所属单位代码" align="center"/>
<el-table-column label="操作" align="center" width="280"> <el-table-column label="操作" align="center" width="280">
<template v-slot="scope"> <template v-slot="scope">
<!-- 重置 --> <!-- 重置 -->
...@@ -165,13 +165,6 @@ ...@@ -165,13 +165,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-form-item label="机构 :">
<treeselect :normalizer="normalizer" :options="orgList" :show-count="true" z-index="9999"
:appendToBody="true" noResultsText="无." clearValueText="清除" v-model="formData.orgId"
:clearable="true" style="width: 100%" treeNodeFilterProp="name" placeholder="请选择机构"/>
</el-form-item>
</el-row>
</el-card> </el-card>
</el-form> </el-form>
...@@ -370,7 +363,7 @@ export default { ...@@ -370,7 +363,7 @@ export default {
}).then(async () => { }).then(async () => {
const { data: res } = await this.$axios.post('/sysUser/resetPwd', { userId: row.userId }) const { data: res } = await this.$axios.post('/sysUser/resetPwd', { userId: row.userId })
if (res.code === 99200) { if (res.code === 99200) {
this.$message.success(res.message + ',重置后新密码为123456') this.$message.success(res.message + ', 重置后新密码为123456')
this.init() this.init()
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
...@@ -387,6 +380,7 @@ export default { ...@@ -387,6 +380,7 @@ export default {
if (this.formData.userId) { if (this.formData.userId) {
url = '/sysUser/edit' url = '/sysUser/edit'
} }
this.formData.orgId = '1'
const { data: res } = await this.$axios.post(url, this.formData) const { data: res } = await this.$axios.post(url, this.formData)
if (!res.data) return this.$message.error(res.message) if (!res.data) return this.$message.error(res.message)
this.$message.success(res.message) this.$message.success(res.message)
...@@ -436,7 +430,7 @@ export default { ...@@ -436,7 +430,7 @@ export default {
}, },
async grantRole() { async grantRole() {
if (this.grantRoleIdList.length>1) { if (this.grantRoleIdList.length>1) {
this.$message.warning('一个用户只能绑定一种角色') this.$message.warning('用户只能绑定其中一种角色')
this.getUserGrantRole() this.getUserGrantRole()
} else { } else {
const { data: res } = await this.$axios.post('/sysUser/grantRole', {grantRoleIdList: this.grantRoleIdList, userId: this.selectRow.userId }) const { data: res } = await this.$axios.post('/sysUser/grantRole', {grantRoleIdList: this.grantRoleIdList, userId: this.selectRow.userId })
......
...@@ -3,17 +3,10 @@ function resolve (dir) { ...@@ -3,17 +3,10 @@ function resolve (dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
module.exports = { module.exports = {
publicPath: '/', publicPath: './',
devServer: { devServer: {
host: '192.168.3.101', host: '192.168.3.101',
port: 2233, port: 2233,
// proxy: {
// '/store': {
// // /store/update
// target: '',
// changeOrigin: true
// }
// }
}, },
configureWebpack: { configureWebpack: {
resolve: { resolve: {
......
...@@ -3419,10 +3419,10 @@ ...@@ -3419,10 +3419,10 @@
"resolved" "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.634.tgz?cache=0&sync_timestamp=1609814040694&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felectron-to-chromium%2Fdownload%2Felectron-to-chromium-1.3.634.tgz" "resolved" "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.634.tgz?cache=0&sync_timestamp=1609814040694&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felectron-to-chromium%2Fdownload%2Felectron-to-chromium-1.3.634.tgz"
"version" "1.3.634" "version" "1.3.634"
"element-ui@^2.14.1": "element-ui@^2.15.7":
"integrity" "sha1-i1dFxzZsHBpgO7bAIShupxh+KqI=" "integrity" "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA=="
"resolved" "https://registry.npm.taobao.org/element-ui/download/element-ui-2.14.1.tgz?cache=0&sync_timestamp=1605089928506&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felement-ui%2Fdownload%2Felement-ui-2.14.1.tgz" "resolved" "https://registry.npmmirror.com/element-ui/-/element-ui-2.15.9.tgz"
"version" "2.14.1" "version" "2.15.9"
dependencies: dependencies:
"async-validator" "~1.8.1" "async-validator" "~1.8.1"
"babel-helper-vue-jsx-merge-props" "^2.0.0" "babel-helper-vue-jsx-merge-props" "^2.0.0"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论