|
@@ -142,11 +142,12 @@
|
|
getArticalInfo({articalId}).then(res => {
|
|
getArticalInfo({articalId}).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.info = res.data.info;
|
|
this.info = res.data.info;
|
|
- for (let i in this.userDepartments) {
|
|
|
|
- if (this.userDepartments[i].departmentId == this.info.departmentId) {
|
|
|
|
- this.isLeader = this.userDepartments[i].isLeader;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ this.isLeader=res.data.isLeader
|
|
|
|
+ // for (let i in this.userDepartments) {
|
|
|
|
+ // if (this.userDepartments[i].departmentId == this.info.departmentId) {
|
|
|
|
+ // this.isLeader = this.userDepartments[i].isLeader;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
if( this.isLeader < 2){
|
|
if( this.isLeader < 2){
|
|
let query= {articalId: articalId }
|
|
let query= {articalId: articalId }
|
|
this.$router.push( {path: '/file-info', query})
|
|
this.$router.push( {path: '/file-info', query})
|
|
@@ -171,7 +172,9 @@
|
|
confirmButtonText: "回到我的文件",
|
|
confirmButtonText: "回到我的文件",
|
|
beforeClose: (action, instance, done) => {
|
|
beforeClose: (action, instance, done) => {
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
- that.$router.push({path:'/my-file'});
|
|
|
|
|
|
+ that.$router.back()
|
|
|
|
+ // push({path:'/my-file'});
|
|
|
|
+
|
|
done();
|
|
done();
|
|
}else{
|
|
}else{
|
|
done();
|
|
done();
|