增加只读功能
This commit is contained in:
parent
e88ea664c5
commit
26770c9f6f
@ -147,7 +147,7 @@
|
|||||||
</awsui-form>
|
</awsui-form>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<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>
|
<awsui-button @click="clearSystemDlg">取消</awsui-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -193,6 +193,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
isDisabled:false,
|
||||||
dis: false,
|
dis: false,
|
||||||
headerHeight1: '60px',
|
headerHeight1: '60px',
|
||||||
headerHeight2: '10px',
|
headerHeight2: '10px',
|
||||||
@ -259,6 +260,7 @@
|
|||||||
isLeaf: 'leaf'
|
isLeaf: 'leaf'
|
||||||
},
|
},
|
||||||
createMethodLoading: false,
|
createMethodLoading: false,
|
||||||
|
systemMethodLoading:true,
|
||||||
havingWritePerm: false,
|
havingWritePerm: false,
|
||||||
havingRemovePerm: false,
|
havingRemovePerm: false,
|
||||||
havingVersionManagePerm: false,
|
havingVersionManagePerm: false,
|
||||||
@ -624,7 +626,6 @@
|
|||||||
|
|
||||||
that.$refs[formName].validate((valid) => {
|
that.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
const checkdata = {
|
const checkdata = {
|
||||||
url:'jd',
|
url:'jd',
|
||||||
data:{
|
data:{
|
||||||
@ -635,8 +636,9 @@
|
|||||||
};
|
};
|
||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(checkdata).then(function (ro) {
|
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 nodeData = that.$refs.tree.getCurrentNode();
|
||||||
const parentId = nodeData.id;
|
const parentId = nodeData.id;
|
||||||
const wsId = that.$store.getters.getWsIdFn;
|
const wsId = that.$store.getters.getWsIdFn;
|
||||||
@ -656,7 +658,6 @@
|
|||||||
};
|
};
|
||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
|
|
||||||
if (ro.result == 'ok') {
|
if (ro.result == 'ok') {
|
||||||
that.ModelsetUpDialog.systemForm.uuid=ro.data.id;
|
that.ModelsetUpDialog.systemForm.uuid=ro.data.id;
|
||||||
that.ModelsetUpDialog.systemForm.parentId=parentId;
|
that.ModelsetUpDialog.systemForm.parentId=parentId;
|
||||||
@ -673,8 +674,8 @@
|
|||||||
};
|
};
|
||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
|
|
||||||
if (ro.result == 'ok') {
|
if (ro.result == 'ok') {
|
||||||
|
that.isDisabled = false;
|
||||||
that.ModelsetUpDialog.dialogVisible = false;
|
that.ModelsetUpDialog.dialogVisible = false;
|
||||||
that.openRepositoryList(that.ModelsetUpDialog.systemForm.parentId);
|
that.openRepositoryList(that.ModelsetUpDialog.systemForm.parentId);
|
||||||
// 返回id
|
// 返回id
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user