update 资料中心

This commit is contained in:
赵霄
2023-10-31 16:00:44 +08:00
parent b8c3bcd3de
commit e2d09defdb
3 changed files with 19 additions and 8 deletions
@@ -34,7 +34,7 @@
v-has="'profileCenter:addChildren'">
<i class="iconfont icon-wenjian-tianjia" />
</a-button>
<!--编辑根节点不能编辑-->
<!--编辑-->
<a-button class="tree-operate-node-btn"
@click.stop="handleEditTreeNode(record)"
v-has="'profileCenter:editFolder'">
@@ -27,12 +27,18 @@
<!-- :placeholder="$t('pleaseSelect')+$t('standardRegulationLibrary.profileCenter.typeOfOwnership')" />-->
<!--</a-form-item>-->
<!--上传资料-->
<a-form-item :label="$t('standardRegulationLibrary.profileCenter.uploadData')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-upload v-decorator="['fileId', validatorRules.fileId]" return-id :disabled="!!modal.id"/>
<a-form-item :label="$t('standardRegulationLibrary.profileCenter.uploadData')"
:labelCol="labelCol"
:wrapperCol="wrapperCol">
<j-upload v-decorator="['fileId', validatorRules.fileId]" return-id :disabled="!!modal.id" />
</a-form-item>
<!--推送范围-->
<a-form-item :label="$t('standardRegulationLibrary.dynamicMessage.pushRange')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<user-selection v-decorator="['pushRangeIds', validatorRules.pushRangeIds]" :name-str="modal.pushRangeIds_dictText"
<a-form-item :label="$t('standardRegulationLibrary.dynamicMessage.pushRange')"
:labelCol="labelCol"
:wrapperCol="wrapperCol">
<user-selection v-decorator="['pushRangeIds', validatorRules.pushRangeIds]"
:name-str="modal.pushRangeIds_dictText"
type="checkbox"
:placeholder="$t('pleaseSelect')+$t('standardRegulationLibrary.dynamicMessage.pushRange')" />
</a-form-item>
<!--文件说明-->
@@ -79,7 +85,10 @@ export default {
},
// 推送范围
pushRangeIds: {
rules: [{ required: false, message: this.$t('pleaseSelect') + this.$t('standardRegulationLibrary.dynamicMessage.pushRange') }],
rules: [{
required: false,
message: this.$t('pleaseSelect') + this.$t('standardRegulationLibrary.dynamicMessage.pushRange')
}],
validateTrigger: 'change'
},
// 文件说明
@@ -20,11 +20,13 @@
<!--管理权限-->
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('treeRight.administrativePrivileges')">
<user-selection :placeholder="$t('pleaseSelect') + $t('treeRight.administrativePrivileges')"
type="checkbox"
v-decorator="['authManageIds', validatorRules.authManageIds]" />
</a-form-item>
<!--查看权限-->
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('treeRight.checkPermissions')">
<user-selection :placeholder="$t('pleaseSelect') + $t('treeRight.checkPermissions')"
type="checkbox"
v-decorator="['authViewIds', validatorRules.authViewIds]" />
</a-form-item>
<!--文件夹顺序-->
@@ -75,7 +77,7 @@ export default {
validateTrigger: 'change'
},
// 查看权限
authViewIds:{
authViewIds: {
rules: [{ required: false, message: this.$t('pleaseSelect') + this.$t('treeRight.checkPermissions') }],
validateTrigger: 'change'
},
@@ -114,7 +116,7 @@ export default {
let submitFunc
if (this.model.id) {
submitFunc = editProfileCenterTree
} else if (this.peerOrNot){
} else if (this.peerOrNot) {
submitFunc = addProfileCenterTree
} else {
submitFunc = addChildrenFolder