From bf2a27398b6f38ddc7e2e2bc45ff208a29f5cf92 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Thu, 20 May 2021 17:55:19 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/libs/util.js | 6 +-
src/pages/client/list/index.vue | 36 ++++----
src/pages/quesBank/list/globalQuesBank.vue | 75 ++++++++++++++---
src/pages/quesBank/list/myQuesBank.vue | 97 ++++++++++++++++------
src/pages/quesBank/list/quesBankType.vue | 20 +++--
src/pages/quesBank/list/quesDialog.vue | 11 +--
src/pages/system/list/organization.vue | 5 +-
src/pages/system/list/role.vue | 13 +--
src/pages/system/list/staff.vue | 38 +++++----
src/pages/user/list/index.vue | 74 +++++++++--------
src/plugins/auth/index.js | 2 +-
src/setting.js | 4 +-
src/store/modules/user.js | 1 -
src/styles/common.scss | 22 +++--
14 files changed, 268 insertions(+), 136 deletions(-)
diff --git a/src/libs/util.js b/src/libs/util.js
index 8e0538e..ec9d3bf 100644
--- a/src/libs/util.js
+++ b/src/libs/util.js
@@ -106,15 +106,15 @@ const util = {
},
// 成功提示
successMsg(message) {
- Message.success({message,showClose: true,offset: (document.documentElement.clientHeight - 40) / 2,duration: 1500})
+ Message.success({message,showClose: true,offset: (document.documentElement.clientHeight - 40) / 2,duration: 3000})
},
// 警告提示
warningMsg(message) {
- Message.warning({message,showClose: true,offset: (document.documentElement.clientHeight - 40) / 2,duration: 1500})
+ Message.warning({message,showClose: true,offset: (document.documentElement.clientHeight - 40) / 2,duration: 3000})
},
// 错误提示
errorMsg(message) {
- Message.error({message,showClose: true,offset: (document.documentElement.clientHeight - 40) / 2,duration: 1500})
+ Message.error({message,showClose: true,offset: (document.documentElement.clientHeight - 40) / 2,duration: 3000})
},
// 给超过给定长度的字符串加省略号
ellipsisStr(str) {
diff --git a/src/pages/client/list/index.vue b/src/pages/client/list/index.vue
index c9afbd9..7c577b0 100644
--- a/src/pages/client/list/index.vue
+++ b/src/pages/client/list/index.vue
@@ -20,7 +20,7 @@
-
+
@@ -35,11 +35,11 @@
-
+
- {{scope.$index + (pageNo - 1) * pageSize + 1}}
+ {{scope.$index + (page - 1) * pageSize + 1}}
@@ -57,13 +57,12 @@
查看
编辑
删除
-
+
@@ -81,7 +80,7 @@ export default {
countryList: [{
name:'中国'
}],
- customerData: [],
+ listData: [],
keyword: '',
form: {
countries:'中国',
@@ -91,9 +90,9 @@ export default {
multipleSelection: [],
provinceList: [],
cityList: [],
- pageNo: 1,
+ page: 1,
pageSize: 10,
- totals: 1,
+ total: 1,
ruleIds: [],
searchTimer: null
};
@@ -122,13 +121,17 @@ export default {
cityId: this.form.city,
searchContent: this.keyword
}
- this.$get(`${this.api.queryClient}/${this.pageNo}/${this.pageSize}`,data).then(res => {
- this.customerData = res.data.list.list
- this.totals = res.data.list.totalCount
+ this.$get(`${this.api.queryClient}/${this.page}/${this.pageSize}`,data).then(res => {
+ this.listData = res.data.list.list
+ this.total = res.data.list.totalCount
+ if(!this.listData.length && this.total){
+ this.page--
+ this.getData()
+ }
}).catch(res => {});
},
initData(){
- this.pageNo = 1
+ this.page = 1
this.getData()
},
getProvince(){
@@ -144,7 +147,7 @@ export default {
getCity(){
this.clearprovince()
this.getCityData()
- this.pageNo = 1
+ this.page = 1
this.getData()
},
getCityData(){
@@ -216,8 +219,9 @@ export default {
}
},
handleCurrentChange(val) {
- this.pageNo = val;
- this.getData();
+ this.page = val
+ this.$refs.table.clearSelection()
+ this.getData()
},
}
};
diff --git a/src/pages/quesBank/list/globalQuesBank.vue b/src/pages/quesBank/list/globalQuesBank.vue
index d72afaf..3908041 100644
--- a/src/pages/quesBank/list/globalQuesBank.vue
+++ b/src/pages/quesBank/list/globalQuesBank.vue
@@ -4,14 +4,14 @@
-
-
+
-
-
+
@@ -26,13 +26,17 @@
-
+
-
+
+
+
+
+
-
+
@@ -73,6 +77,16 @@
+ -
+ 选项:
+
+
{{i}}.{{topicForm.options[i]}}
+
+
+ -
+ 正确答案:
+ {{topicForm.answer}}
+
-
答案解析:
{{topicForm.answerAnalysis}}
@@ -123,7 +137,7 @@ export default {
keyword: function(val) {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
- this.getData()
+ this.initData()
},500)
}
},
@@ -137,11 +151,23 @@ export default {
name: this.name
})
.then(res => {
- this.listData = util.removeHtmlTag(res.data.list.list,'questionStem')
+ let list = util.removeHtmlTag(res.data.list.list,'questionStem')
+ list.map(n => {
+ n.questionStem = n.questionStem.replace(/\(\)\(\)\(\)/g,`______`)
+ })
+ this.listData = list
this.total = res.data.list.totalCount
+ if(!this.listData.length && this.total){
+ this.page--
+ this.getData()
+ }
})
.catch(err => {})
},
+ initData(){
+ this.page = 1
+ this.getData()
+ },
getType() {
this.$get(this.api.typesList)
.then(res => {
@@ -151,6 +177,7 @@ export default {
},
handleCurrentChange(val) {
this.page = val
+ this.$refs.table.clearSelection()
this.getData()
},
handleSelectionChange(val) {
@@ -180,7 +207,6 @@ export default {
})
.then(() => {
this.$post(`${this.api.deleteByMeSubjectBySharing}?identification=1&ids=${delList.join()}`).then(res => {
- this.multipleSelection = [];
util.successMsg('取消共享成功')
this.getData()
this.$refs.table.clearSelection()
@@ -205,7 +231,8 @@ export default {
pageNum: 1,
pageSize: 10000,
schoolId: this.clientId,
- source: 1
+ source: 1,
+ keyword: ''
}
this.$post(this.api.listByPage,data).then(res => {
let list = res.data.list.list
@@ -220,6 +247,29 @@ export default {
getDetail(id) {
this.$post(`${this.api.findById}?id=${id}`).then(res => {
let list = res.data.list
+ let typeName = res.data.typeName
+ let options = {}
+
+ if(typeName == '填空题'){
+ let answer = []
+ for(let i in list){
+ if(i.includes('option') && list[i]) answer.push(list[i])
+ }
+ list.answer = answer.join(',')
+ list.questionStem = list.questionStem.replace(/\(\)\(\)\(\)/g,`______`)
+ }else if(typeName == '判断题'){
+ if(list.answer == 'A'){
+ list.answer = '正确'
+ }else{
+ list.answer = '错误'
+ }
+ }else if(typeName != '简答题'){
+ for(let i in list){
+ if(i.includes('option') && list[i]){
+ options[i.replace('option','')] = list[i]
+ }
+ }
+ }
this.topicForm = {
id: list.id,
userId: list.userId,
@@ -229,7 +279,7 @@ export default {
courses: list.courses,
knowledgePoints: list.knowledgePoints,
answer: list.answer,
- questionType: '',
+ questionType: typeName,
questionStem: list.questionStem,
optionA: list.optionA,
optionB: list.optionB,
@@ -237,6 +287,7 @@ export default {
optionD: list.optionD,
optionE: list.optionE,
optionF: list.optionF,
+ options,
aisTrue: false,
bisTrue: false,
cisTrue: false,
@@ -248,7 +299,6 @@ export default {
answerAnalysis: list.answerAnalysis,
videoAudio: list.videoAudio
}
- console.log(this.topicForm,this.quesBankList)
}).catch(err => {})
},
edit(row) {
@@ -285,6 +335,9 @@ export default {
max-width: calc(100% - 80px);
font-size: 16px;
color: rgba(0, 0, 0, 0.65);
+ /deep/img{
+ max-width: 100%;
+ }
}
}
}
diff --git a/src/pages/quesBank/list/myQuesBank.vue b/src/pages/quesBank/list/myQuesBank.vue
index a30fae9..f11eb87 100644
--- a/src/pages/quesBank/list/myQuesBank.vue
+++ b/src/pages/quesBank/list/myQuesBank.vue
@@ -4,7 +4,7 @@
-
-
+
@@ -23,22 +23,20 @@
-
+
{{scope.$index + (page - 1) * pageSize + 1}}
-
+
+
+
+
+
-
+
@@ -47,7 +45,7 @@
{{scope.row.myShare ? '已共享' : '未共享'}}
-
+
查看
修改
@@ -86,6 +84,16 @@
+ -
+ 选项:
+
+
{{i}}.{{topicForm.options[i]}}
+
+
+ -
+ 正确答案:
+ {{topicForm.answer}}
+
-
答案解析:
{{topicForm.answerAnalysis}}
@@ -104,8 +112,8 @@
@@ -155,7 +163,7 @@ export default {
keyword: function(val) {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
- this.getData()
+ this.initData()
},500)
}
},
@@ -169,11 +177,23 @@ export default {
userId: this.userId
})
.then(res => {
- this.listData = util.removeHtmlTag(res.data.list.list,'questionStem')
+ let list = util.removeHtmlTag(res.data.list.list,'questionStem')
+ list.map(n => {
+ n.questionStem = n.questionStem.replace(/\(\)\(\)\(\)/g,`______`)
+ })
+ this.listData = list
this.total = res.data.list.totalCount
+ if(!this.listData.length && this.total){
+ this.page--
+ this.getData()
+ }
})
.catch(err => {})
},
+ initData(){
+ this.page = 1
+ this.getData()
+ },
getType() {
this.$get(this.api.typesList)
.then(res => {
@@ -183,6 +203,7 @@ export default {
},
handleCurrentChange(val) {
this.page = val
+ this.$refs.table.clearSelection()
this.getData()
},
dialogGetData(){
@@ -208,7 +229,8 @@ export default {
pageNum: 1,
pageSize: 10000,
schoolId: this.clientId,
- source: 1
+ source: 1,
+ keyword: ''
}
this.$post(this.api.listByPage,data).then(res => {
let list = res.data.list.list
@@ -223,6 +245,29 @@ export default {
getDetail(id) {
this.$post(`${this.api.findById}?id=${id}`).then(res => {
let list = res.data.list
+ let typeName = res.data.typeName
+ let options = {}
+
+ if(typeName == '填空题'){
+ let answer = []
+ for(let i in list){
+ if(i.includes('option') && list[i]) answer.push(list[i])
+ }
+ list.answer = answer.join(',')
+ list.questionStem = list.questionStem.replace(/\(\)\(\)\(\)/g,`______`)
+ }else if(typeName == '判断题'){
+ if(list.answer == 'A'){
+ list.answer = '正确'
+ }else{
+ list.answer = '错误'
+ }
+ }else if(typeName != '简答题'){
+ for(let i in list){
+ if(i.includes('option') && list[i]){
+ options[i.replace('option','')] = list[i]
+ }
+ }
+ }
this.topicForm = {
id: list.id,
userId: list.userId,
@@ -232,7 +277,7 @@ export default {
courses: list.courses,
knowledgePoints: list.knowledgePoints,
answer: list.answer,
- questionType: '',
+ questionType: typeName,
questionStem: list.questionStem,
optionA: list.optionA,
optionB: list.optionB,
@@ -240,6 +285,7 @@ export default {
optionD: list.optionD,
optionE: list.optionE,
optionF: list.optionF,
+ options,
aisTrue: false,
bisTrue: false,
cisTrue: false,
@@ -251,7 +297,6 @@ export default {
answerAnalysis: list.answerAnalysis,
videoAudio: list.videoAudio
}
- console.log(this.topicForm,this.quesBankList)
}).catch(err => {})
},
show(row) {
@@ -277,7 +322,8 @@ export default {
},
share(row) {
this.$confirm('该题将共享至公共题库,是否确认共享?', '提示', {
- type: 'info'
+ type: 'info',
+ customClass: 'normal'
})
.then(() => {
let data = {
@@ -319,16 +365,15 @@ export default {
})
this.$confirm(`是否确认共享${util.ellipsisStr(newArr[0].questionStem)}等${newArr.length}个选中的题目?`, '提示', {
- type: 'info'
- })
- .then(() => {
+ type: 'info',
+ customClass: 'normal'
+ }).then(() => {
let data = {
userId: this.userId,
ids: shareList,
source: 1
}
this.$post(this.api.batchSave,data).then(res => {
- this.multipleSelection = [];
util.successMsg('此题已成功共享至校企公共题库')
this.getData()
this.$refs.table.clearSelection()
@@ -336,7 +381,7 @@ export default {
this.getData()
})
})
- .catch(() => {});
+ .catch(() => {})
}else{
util.errorMsg('请先选择数据')
}
@@ -353,7 +398,6 @@ export default {
})
.then(() => {
this.$post(`${this.api.deleteByMeSubject}?ids=${delList.join()}`).then(res => {
- this.multipleSelection = [];
util.successMsg('删除成功');
this.getData()
this.$refs.table.clearSelection()
@@ -439,6 +483,9 @@ export default {
max-width: calc(100% - 80px);
font-size: 16px;
color: rgba(0, 0, 0, 0.65);
+ /deep/img{
+ max-width: 100%;
+ }
}
}
}
diff --git a/src/pages/quesBank/list/quesBankType.vue b/src/pages/quesBank/list/quesBankType.vue
index 304371e..3bb6be0 100644
--- a/src/pages/quesBank/list/quesBankType.vue
+++ b/src/pages/quesBank/list/quesBankType.vue
@@ -18,7 +18,7 @@
{{scope.row.typeName}}
-
+
添加
编辑
@@ -38,8 +38,8 @@
@@ -50,8 +50,8 @@
@@ -93,7 +93,7 @@ export default {
keyword: function(val) {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
- this.getData()
+ this.initData()
},500)
}
},
@@ -110,8 +110,16 @@ export default {
.then(res => {
this.listData = res.data.list.list
this.total = res.data.list.totalCount
+ if(!this.listData.length && this.total){
+ this.page--
+ this.getData()
+ }
}).catch(err => {})
},
+ initData(){
+ this.page = 1
+ this.getData()
+ },
handleCurrentChange(val) {
this.page = val
this.getData()
diff --git a/src/pages/quesBank/list/quesDialog.vue b/src/pages/quesBank/list/quesDialog.vue
index e1be55e..0eee0bb 100644
--- a/src/pages/quesBank/list/quesDialog.vue
+++ b/src/pages/quesBank/list/quesDialog.vue
@@ -102,18 +102,18 @@
v-model="fillList[index]"
>
-
-
-
+
+
+
-
+
-
+
{{scope.row.label}}
@@ -87,10 +87,12 @@ export default {
this.$get(this.api.queryStaffPro,data).then(res => {
let firList = res.data.StaffProfessionalArchitectureList
if(firList){
+ let index = 0
firList.map(e => {
e.isParent = true
e.id = e.staffProfessionalArchitectureId
e.label = e.staffProfessionalArchitectureName
+ e.index = ++index
let data = {
staffProfessionalArchitectureId: e.staffProfessionalArchitectureId
}
@@ -98,6 +100,7 @@ export default {
res1.data.staffGradeList.map(e => {
e.id = e.staffGradeId
e.label = e.staffGradeName
+ e.index = ++index
})
e.children = res1.data.staffGradeList
}).catch(res => {})
diff --git a/src/pages/system/list/role.vue b/src/pages/system/list/role.vue
index 1952392..4eb5bdc 100644
--- a/src/pages/system/list/role.vue
+++ b/src/pages/system/list/role.vue
@@ -13,18 +13,18 @@
-
+
-
+
查看
-
+
编辑
删除
-
+
@@ -133,8 +133,9 @@ export default {
this.permissions = []
},
currentChange(val) {
- this.pageNo = val;
- this.getData();
+ this.pageNo = val
+ this.$refs.table.clearSelection()
+ this.getData()
},
getPer(){
if(!this.permissions.length){
diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue
index 1240580..8259dab 100644
--- a/src/pages/system/list/staff.vue
+++ b/src/pages/system/list/staff.vue
@@ -18,7 +18,7 @@
-
+
@@ -38,7 +38,7 @@
-
+
查看
编辑
@@ -47,7 +47,7 @@
@@ -144,7 +144,7 @@
-
+
模板下载
@@ -246,7 +246,7 @@ export default {
listData: [],
importVisible: false,
keyword: '',
- pageNo: 1,
+ page: 1,
pageSize: 10,
total: 0,
managerDepartmentList: [],
@@ -335,25 +335,25 @@ export default {
staffGradeIds: this.twoDepartmentIds,
searchContent: this.keyword,
schoolId: this.clientId,
- pageNum: this.pageNo,
+ pageNum: this.page,
pageSize: this.pageSize
}
- this.$get(`${this.api.queryStaff}/${this.pageNo}/${this.pageSize}`,data).then(res => {
+ this.$get(`${this.api.queryStaff}/${this.page}/${this.pageSize}`,data).then(res => {
this.listData = res.data.staffList.list
this.total = res.data.staffList.totalCount
if(!this.listData.length && this.total){
- this.pageNo--
+ this.page--
this.getData()
}
}).catch(res => {});
},
initData(){
- this.pageNo = 1
+ this.page = 1
this.getData()
},
orgChange(node){
this.twoDepartmentIds = node.map(n => n[1]).toString()
- this.getData()
+ this.initData()
},
getRoles() {
let data = {
@@ -559,11 +559,11 @@ export default {
staffIds: delList.join(',')
}
this.$del(this.api.deleteStaffs,data).then(res => {
- this.multipleSelection = [];
+ this.$refs.table.clearSelection()
util.successMsg('删除成功')
this.getData()
- }).catch(res => {});
- }).catch(() => {});
+ }).catch(res => {})
+ }).catch(() => {})
}else{
util.errorMsg('请先选择数据 !')
}
@@ -574,12 +574,13 @@ export default {
this.uploadFaild = false
},
searchTeacher(){
- this.pageNo = 1;
+ this.page = 1
this.getData()
},
handleCurrentChange(val) {
- this.pageNo = val;
- this.getData();
+ this.page = val
+ this.$refs.table.clearSelection()
+ this.getData()
},
downLoad(){
location.href = this.api.downloadStaffTemp
@@ -620,9 +621,12 @@ export default {
this.uploadList = fileList
this.uploadFaild = false
},
+ closeImport(){
+ this.uploadList = []
+ },
uploadSure(){
this.importVisible = false
- this.pageNo = 1
+ this.page = 1
this.keyword = ''
this.getData()
}
diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue
index 5d41054..bc2c21e 100644
--- a/src/pages/user/list/index.vue
+++ b/src/pages/user/list/index.vue
@@ -18,7 +18,7 @@
-
+
@@ -50,7 +50,7 @@
@@ -154,11 +154,11 @@ export default {
{ required: true, message: '请选择院校名称', trigger: 'change' },
]
},
- userData:[],
+ listData:[],
keyword: '',
- pageNo: 1,
+ page: 1,
pageSize: 10,
- totals: 0,
+ total: 0,
multipleSelection: [],
clientList: [],
isAdd: true,
@@ -200,16 +200,20 @@ export default {
getData() {
let data = {
searchContent: this.keyword,
- current: this.pageNo,
+ current: this.page,
pageSize: this.pageSize
}
- this.$get(`${this.api.queryUser}/${this.pageNo}/${this.pageSize}`,data).then(res => {
- this.userData = res.data.list.list
- this.totals = res.data.list.totalCount
- }).catch(res => {});
+ this.$get(`${this.api.queryUser}/${this.page}/${this.pageSize}`,data).then(res => {
+ this.listData = res.data.list.list
+ this.total = res.data.list.totalCount
+ if(!this.listData.length && this.total){
+ this.page--
+ this.getData()
+ }
+ }).catch(res => {})
},
initData(){
- this.pageNo = 1
+ this.page = 1
this.getData()
},
accountChange(){
@@ -249,8 +253,9 @@ export default {
this.curRow = {}
},
currentChange(val) {
- this.pageNo = val;
- this.getData();
+ this.page = val
+ this.$refs.table.clearSelection()
+ this.getData()
},
adduser(){
this.isDetail = false
@@ -338,34 +343,35 @@ export default {
})
.then(() => {
this.$post(`${this.api.deleteUser}?userIds=${row.id}`).then(res => {
- util.successMsg('删除成功');
+ util.successMsg('删除成功')
this.getData()
- }).catch(res => {});
+ }).catch(res => {})
})
.catch(() => {});
},
resetPassword(row){
this.$confirm(`重置后的密码为:${Setting.initialPassword},确定重置?`, '提示', {
- }).then(() => {
- let data = {
- userId: row.userId,
- password: Setting.initialPassword
+ type: 'info',
+ customClass: 'normal'
+ }).then(() => {
+ let data = {
+ userId: row.userId,
+ password: Setting.initialPassword
+ }
+ this.$post(this.api.userinfoUpdate,data).then(res => {
+ if(res.success){
+ util.successMsg('重置成功')
+ }else{
+ util.errorMsg('重置失败')
}
- this.$post(this.api.userinfoUpdate,data).then(res => {
- if(res.success){
- util.successMsg('重置成功')
- }else{
- util.errorMsg('重置失败')
- }
- }).catch(res => {});
- }).catch(() => {
- });
+ }).catch(res => {})
+ }).catch(() => {})
},
getRowKeys(row) {
- return row.userId;
+ return row.userId
},
handleSelectionChange(val) {
- this.multipleSelection = val;
+ this.multipleSelection = val
},
delAllSelection() {
if(this.multipleSelection.length != ''){
@@ -380,11 +386,11 @@ export default {
.then(() => {
this.$post(`${this.api.deleteUser}?userIds=${delList.join(',')}`).then(res => {
this.$refs.table.clearSelection()
- this.multipleSelection = [];
+ this.multipleSelection = []
util.successMsg('删除成功')
this.getData()
- }).catch(res => {});
- }).catch(() => {});
+ }).catch(res => {})
+ }).catch(() => {})
}else{
util.errorMsg('请先选择数据 !')
}
@@ -435,7 +441,7 @@ export default {
},
uploadSure(){
this.importVisible = false
- this.pageNo = 1
+ this.page = 1
this.keyword = ''
this.getData()
},
diff --git a/src/plugins/auth/index.js b/src/plugins/auth/index.js
index 4424687..409eaef 100644
--- a/src/plugins/auth/index.js
+++ b/src/plugins/auth/index.js
@@ -1,7 +1,7 @@
/**
* @description 鉴权指令
* 当传入的权限当前用户没有时,会移除该组件
- * 用例:text 或者:text
+ * 用例:text 或者:text
* */
import store from '@/store'
import Setting from '@/setting'
diff --git a/src/setting.js b/src/setting.js
index 2389a32..8b50172 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -15,8 +15,8 @@ const Setting = {
// 页面切换时,是否显示模拟的进度条
showProgressBar: true,
// 接口请求地址
- // apiBaseURL: env === 'development' ? 'http://192.168.31.152:8001' : 'http://39.108.250.202:8000',
- apiBaseURL: env === 'development' ? 'http://192.168.31.152:8001' : 'http://39.108.250.202:9000',
+ // apiBaseURL: env === 'development' ? 'http://192.168.31.151:8001' : 'http://39.108.250.202:8000',
+ apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000' : 'http://39.108.250.202:9000',
// 接口请求返回错误时,弹窗的持续时间,单位:秒
modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 9c46f4c..130db89 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -72,7 +72,6 @@ export default {
})
Setting.dynamicRoute && addRoutes(routes)
util.session.set(Setting.usernameKey, user.userName)
- util.session.set(Setting.storeKey, JSON.stringify(state))
util.successMsg('登录成功');
resolve()
}else{
diff --git a/src/styles/common.scss b/src/styles/common.scss
index e8dcf0c..b27d216 100644
--- a/src/styles/common.scss
+++ b/src/styles/common.scss
@@ -284,14 +284,16 @@
color: #ffa900;
}
}
- .el-button--primary{
- color: #606266;
- background: #fff;
- border-color: #DCDFE6;
- &:hover{
- color: $--color-primary;
- border-color: #efbdbb;
- background-color: #fae9e8;
+ &:not(.normal){
+ .el-button--primary{
+ color: #606266;
+ background: #fff;
+ border-color: #DCDFE6;
+ &:hover{
+ color: $--color-primary;
+ border-color: #efbdbb;
+ background-color: #fae9e8;
+ }
}
}
}
@@ -356,6 +358,10 @@
}
}
+.el-tooltip__popper{
+ width: 300px;
+}
+
@media(max-width: 1600px){
.el-table{
.el-switch__label--right.is-active{