[update] 增加企业标准新增的条件
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = {
|
||||
collection: '收藏',
|
||||
cancelCollection: '取消收藏',
|
||||
templateExport: '企业标准模板',
|
||||
pleaseSelectLeastOneNode: '请先选择二级及以下体系',
|
||||
pleaseSelectLeastOneNode: '请先选择企业标准下体系',
|
||||
authorizationDepart: '授权部门',
|
||||
authorizationUser: '授权人员',
|
||||
maturityDate: '授权到期日期',
|
||||
|
||||
@@ -326,8 +326,9 @@ export default {
|
||||
},
|
||||
// 配置标准
|
||||
handleAllocationStandard () {
|
||||
console.log(this.currentTreeNode)
|
||||
// 没选择左侧树节点,需要提示“请先选择二级及以下体系”
|
||||
if (!this.currentTreeNode || this.currentTreeNode.length === 0) {
|
||||
if (!this.currentTreeNode || this.currentTreeNode.length === 0 || this.currentTreeNode.includes('myCollect')) {
|
||||
this.$message.warn(this.$t('enterpriseStandardLibrary.standard.pleaseSelectLeastOneNode'))
|
||||
return
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
<a-spin :spinning="confirmLoading" style="width: 100%;height:100%">
|
||||
<div class="custom-drawer-style-scroll">
|
||||
<add-form ref="addForm"
|
||||
:defaultValue="{year_number: new Date().getFullYear()}"
|
||||
:disabledFieldList="['replaced_stand_num', 'referenced_standard']"
|
||||
:get-form-func="getFormFunc"
|
||||
:get-document-info-func="getDocumentInfoFunc"
|
||||
@submitFormData="submitFormData" />
|
||||
|
||||
Reference in New Issue
Block a user