增加只读功能

This commit is contained in:
zhal 2022-07-14 10:19:39 +08:00
parent e88ea664c5
commit 26770c9f6f

View File

@ -147,7 +147,7 @@
</awsui-form>
</div>
<span slot="footer" class="dialog-footer">
<awsui-button class="button-general-color" type="primary" @click="createSystemSave('systemForm')">确定</awsui-button>
<awsui-button class="button-general-color" type="primary" @click="createSystemSave('systemForm')" :disabled="isDisabled">确定</awsui-button>
<awsui-button @click="clearSystemDlg">取消</awsui-button>
</span>
</el-dialog>
@ -193,6 +193,7 @@
}
};
return {
isDisabled:false,
dis: false,
headerHeight1: '60px',
headerHeight2: '10px',
@ -259,6 +260,7 @@
isLeaf: 'leaf'
},
createMethodLoading: false,
systemMethodLoading:true,
havingWritePerm: false,
havingRemovePerm: false,
havingVersionManagePerm: false,
@ -624,7 +626,6 @@
that.$refs[formName].validate((valid) => {
if (valid) {
const checkdata = {
url:'jd',
data:{
@ -635,8 +636,9 @@
};
//
awsuiAxios.post(checkdata).then(function (ro) {
if (ro.data.result == 'ok') {
if (ro.data.result == 'ok') {
that.isDisabled = true;
const nodeData = that.$refs.tree.getCurrentNode();
const parentId = nodeData.id;
const wsId = that.$store.getters.getWsIdFn;
@ -656,7 +658,6 @@
};
//
awsuiAxios.post(data).then(function (ro) {
if (ro.result == 'ok') {
that.ModelsetUpDialog.systemForm.uuid=ro.data.id;
that.ModelsetUpDialog.systemForm.parentId=parentId;
@ -673,8 +674,8 @@
};
//
awsuiAxios.post(data).then(function (ro) {
if (ro.result == 'ok') {
that.isDisabled = false;
that.ModelsetUpDialog.dialogVisible = false;
that.openRepositoryList(that.ModelsetUpDialog.systemForm.parentId);
// id