|
@@ -99,10 +99,12 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</template>
|
|
</template>
|
|
<!-- 最终节点审 核时 -->
|
|
<!-- 最终节点审 核时 -->
|
|
- <a-form-model-item v-if="(isShowOrg || (type == 'knowledgeManageList' && !this.$route.query.show)) && (knowledgeForm.type == 1 || !knowledgeForm.type)" prop="actualApproverName">
|
|
|
|
|
|
+ <!-- <a-form-model-item v-if="(isShowOrg || (type == 'knowledgeManageList' && !this.$route.query.show)) && (knowledgeForm.type == 1 || !knowledgeForm.type)" prop="actualApproverName"> -->
|
|
|
|
+ <!-- <a-form-model-item v-if="!$route.query.isLook && (knowledgeForm.type == 1 || !knowledgeForm.type)" prop="actualApproverName"> -->
|
|
|
|
+ <a-form-model-item v-if="(knowledgeForm.type == 1 || !knowledgeForm.type)" prop="actualApproverName">
|
|
<span slot="label">  权限</span>
|
|
<span slot="label">  权限</span>
|
|
<div @click="handleAuthClickshow">
|
|
<div @click="handleAuthClickshow">
|
|
- <a-select v-model="authName" :showArrow="false" :open="false" placeholder="请选择组织部门、职系、职称等授予知识访问权限"></a-select>
|
|
|
|
|
|
+ <a-select :disabled="!isAuth" v-model="authName" :showArrow="false" :open="false" placeholder="请选择组织部门、职系、职称等授予知识访问权限"></a-select>
|
|
</div>
|
|
</div>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-row :gutter="24" type="flex" justify="end" style="margin-top: 20px;padding-right:12px;">
|
|
<a-row :gutter="24" type="flex" justify="end" style="margin-top: 20px;padding-right:12px;">
|
|
@@ -116,7 +118,7 @@
|
|
</div>
|
|
</div>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<!-- 知识管理 查看 -->
|
|
<!-- 知识管理 查看 -->
|
|
- <a-form-model-item v-if="type == 'knowledgeManageList' && !!pkId && this.$route.query.show" label="访问权限:" prop="accessAuthority" style="margin: 20px 0;">
|
|
|
|
|
|
+ <a-form-model-item v-if="type == 'knowledgeManageList' && !!pkId && $route.query.show" label="访问权限:" prop="accessAuthority" style="margin: 20px 0;">
|
|
<a-input disabled v-model="accessAuthority" />
|
|
<a-input disabled v-model="accessAuthority" />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-form-model>
|
|
</a-form-model>
|
|
@@ -263,7 +265,8 @@ export default {
|
|
// 职等
|
|
// 职等
|
|
gradesInfo: {},
|
|
gradesInfo: {},
|
|
widthVar: 800,
|
|
widthVar: 800,
|
|
- organizationIdsInfo: {}
|
|
|
|
|
|
+ organizationIdsInfo: {},
|
|
|
|
+ isAuth: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -330,6 +333,10 @@ export default {
|
|
// }
|
|
// }
|
|
// 待最终节点审批
|
|
// 待最终节点审批
|
|
this.isShowOrg = res.data.approvalStatus == 3 ? true : false
|
|
this.isShowOrg = res.data.approvalStatus == 3 ? true : false
|
|
|
|
+ this.isAuth = this.isShowOrg
|
|
|
|
+ if(this.$route.query.isEdit) {
|
|
|
|
+ this.isAuth = true
|
|
|
|
+ }
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
this.pkId = ''
|
|
this.pkId = ''
|
|
@@ -337,6 +344,7 @@ export default {
|
|
this.knowledgeForm.createBy = this.$store.state.appSetting.user.userId
|
|
this.knowledgeForm.createBy = this.$store.state.appSetting.user.userId
|
|
this.knowledgeForm.author = this.$store.state.appSetting.user.fullName
|
|
this.knowledgeForm.author = this.$store.state.appSetting.user.fullName
|
|
this.getFindAllNodes()
|
|
this.getFindAllNodes()
|
|
|
|
+ this.isAuth = true
|
|
}
|
|
}
|
|
this.init()
|
|
this.init()
|
|
var token = Vue.ls.get(ACCESS_TOKEN);
|
|
var token = Vue.ls.get(ACCESS_TOKEN);
|
|
@@ -357,6 +365,8 @@ export default {
|
|
document.querySelector('.ant-cascader-menus').scrollLeft = 20480
|
|
document.querySelector('.ant-cascader-menus').scrollLeft = 20480
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ document.getElementsByClassName('ant-form-item-control-wrapper')[7].style.width = '70%'
|
|
|
|
+ document.getElementsByClassName('ant-form-item-control-wrapper')[8].style.width = '70%'
|
|
/*setInterval(() => {
|
|
/*setInterval(() => {
|
|
document.querySelectorAll('.ant-cascader-menu-item').forEach(el => {
|
|
document.querySelectorAll('.ant-cascader-menu-item').forEach(el => {
|
|
el.onclick = function() {
|
|
el.onclick = function() {
|
|
@@ -371,8 +381,10 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleAuthClickshow() {
|
|
handleAuthClickshow() {
|
|
- this.organizationIdsInfo = this.knowledgeForm.organizationIds
|
|
|
|
- this.showAuditFlag = true
|
|
|
|
|
|
+ if(this.isAuth) {
|
|
|
|
+ this.organizationIdsInfo = this.knowledgeForm.organizationIds
|
|
|
|
+ this.showAuditFlag = true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
goBack(){
|
|
goBack(){
|
|
localStorage.setItem("cancle",true)
|
|
localStorage.setItem("cancle",true)
|