commit
This commit is contained in:
+4
-4
@@ -191,7 +191,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userInfoModifyTimeInLocalStorage === null) {
|
if (userInfoModifyTimeInLocalStorage === null && webLoginType === 'idm') {
|
||||||
this.$store.dispatch('syncStorageData')
|
this.$store.dispatch('syncStorageData')
|
||||||
|
|
||||||
const currentPage = this.$route.name
|
const currentPage = this.$route.name
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
});
|
});
|
||||||
this.messageForLogin && this.messageForLogin.close()
|
this.messageForLogin && this.messageForLogin.close()
|
||||||
this.messageForLogin = this.$message({
|
this.messageForLogin = this.$message({
|
||||||
message: `用户已退出,${this.currentMinute}秒后将跳转到登录页面`,
|
message: `用户已退出,${this.currentMinute}秒后将跳转到登录1页面`,
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -221,9 +221,9 @@
|
|||||||
}
|
}
|
||||||
this.currentMinute--
|
this.currentMinute--
|
||||||
this.messageForLogin.message = `用户已退出,${this.currentMinute}秒后将跳转到登录页面`
|
this.messageForLogin.message = `用户已退出,${this.currentMinute}秒后将跳转到登录页面`
|
||||||
}, 1000)
|
}, 0)
|
||||||
|
|
||||||
} else if (userInfoModifyTime !== userInfoModifyTimeInLocalStorage) {
|
} else if (userInfoModifyTime !== userInfoModifyTimeInLocalStorage && webLoginType === 'idm') {
|
||||||
this.$store.dispatch('syncStorageData')
|
this.$store.dispatch('syncStorageData')
|
||||||
|
|
||||||
console.log('用户信息已更改,同步数据')
|
console.log('用户信息已更改,同步数据')
|
||||||
|
|||||||
@@ -3,11 +3,26 @@
|
|||||||
<div id="mechanism-manage" :class="{ 'tree-close': sideClose }" class="v-class">
|
<div id="mechanism-manage" :class="{ 'tree-close': sideClose }" class="v-class">
|
||||||
<div class="tree-content" :class="{ 'tree-closed': sideClose }">
|
<div class="tree-content" :class="{ 'tree-closed': sideClose }">
|
||||||
<div class="tree">
|
<div class="tree">
|
||||||
|
<!-- @keyup.enter.native="searchPeople"-->
|
||||||
<el-input
|
<el-input
|
||||||
class="filter-tree-input"
|
class="filter-tree-input"
|
||||||
placeholder="输入关键字进行过滤"
|
placeholder="输入关键字进行过滤"
|
||||||
v-model="filterText">
|
v-model="filterText">
|
||||||
</el-input>
|
</el-input>
|
||||||
|
<!-- <el-tree-->
|
||||||
|
<!-- node-key="id"-->
|
||||||
|
<!-- :data="treeData"-->
|
||||||
|
<!-- :props="defaultProps"-->
|
||||||
|
<!-- :default-checked-keys="nodeList"-->
|
||||||
|
<!-- :current-node-key="nodeKeyId"-->
|
||||||
|
<!-- highlight-current-->
|
||||||
|
<!-- check-strictly-->
|
||||||
|
<!-- :expand-on-click-node="false"-->
|
||||||
|
<!-- ref="tree"-->
|
||||||
|
<!-- :load="loadNode"-->
|
||||||
|
<!-- @node-click="handleNodeClick"-->
|
||||||
|
<!-- lazy>-->
|
||||||
|
<!-- </el-tree>-->
|
||||||
<el-tree
|
<el-tree
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
@@ -15,6 +30,7 @@
|
|||||||
node-key="id"
|
node-key="id"
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
highlight-current
|
highlight-current
|
||||||
|
default-expand-all
|
||||||
ref="tree"
|
ref="tree"
|
||||||
:expand-on-click-node="false"
|
:expand-on-click-node="false"
|
||||||
@node-click="handleNodeClick">
|
@node-click="handleNodeClick">
|
||||||
@@ -274,7 +290,6 @@ export default {
|
|||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.$message.success('配置岗位成功')
|
this.$message.success('配置岗位成功')
|
||||||
|
|
||||||
this.modalPost = false
|
this.modalPost = false
|
||||||
this.getData()
|
this.getData()
|
||||||
}
|
}
|
||||||
@@ -350,6 +365,41 @@ export default {
|
|||||||
this.id = data.id
|
this.id = data.id
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
|
// searchPeople(){
|
||||||
|
// console.log(this.filterText);
|
||||||
|
// },
|
||||||
|
// loadNode(node, resolve) {
|
||||||
|
// if (node.level === 0) {
|
||||||
|
// return resolve(this.treeData);
|
||||||
|
// }
|
||||||
|
// this.getChildren(node, resolve)
|
||||||
|
// },
|
||||||
|
// getChildren (node, resolve) {
|
||||||
|
// this.id = node.key
|
||||||
|
// this.getData()
|
||||||
|
// this.$http.get('SarInstitution/institution/getNext', {
|
||||||
|
// institutionId: node.key
|
||||||
|
// }, {}, res => {
|
||||||
|
// let people = [];
|
||||||
|
// res.forEach(item => {
|
||||||
|
// if(item.disabled === true){
|
||||||
|
// people.push(item)
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// resolve(people)
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
// getTree() {
|
||||||
|
// this.$http.get('SarInstitution/institution/getFirstInstitution', {}, {
|
||||||
|
// _this: this,
|
||||||
|
// loading: 'treeLoading'
|
||||||
|
// }, res => {
|
||||||
|
// this.treeData = res
|
||||||
|
// this.nodeKeyId = this.treeData[0].id
|
||||||
|
// this.treeLoading = false
|
||||||
|
// }, e => {
|
||||||
|
// })
|
||||||
|
// },
|
||||||
getTree() {
|
getTree() {
|
||||||
this.$http.get('SarInstitution/institution', {}, {
|
this.$http.get('SarInstitution/institution', {}, {
|
||||||
_this: this,
|
_this: this,
|
||||||
@@ -378,7 +428,6 @@ export default {
|
|||||||
_this: this,
|
_this: this,
|
||||||
loading: 'Loading'
|
loading: 'Loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
console.log(res.data)
|
|
||||||
res.data.records.forEach((item) => {
|
res.data.records.forEach((item) => {
|
||||||
let NameList = ''
|
let NameList = ''
|
||||||
item.positions.forEach((items) => {
|
item.positions.forEach((items) => {
|
||||||
|
|||||||
@@ -124,8 +124,8 @@
|
|||||||
:key="fileIndex"
|
:key="fileIndex"
|
||||||
>
|
>
|
||||||
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a>
|
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="'0a0d0d1956ab6ca62a8efd6a1ff536ad'"/>
|
<i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="'9882f477aad895ec56a7464f3e9c0b11'"/>
|
||||||
<i title="下载带水印" @click="downloadFileByWater(file.id, file.fileSuffix)" class="icon-download2" v-btn-permission="'bfed56ba55181d154bfb4cd1cfbca806'"/>
|
<i title="下载带水印" @click="downloadFileByWater(file.id, file.fileSuffix)" class="icon-download2" v-btn-permission="'9bab2662fbd9d0507b39be813371a597'"/>
|
||||||
<span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>
|
<span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>
|
||||||
</p>
|
</p>
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
this.addDate()
|
// this.addDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击查看
|
// 点击查看
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
this.addDate()
|
// this.addDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击查看
|
// 点击查看
|
||||||
|
|||||||
Reference in New Issue
Block a user