fix:建模属性relation与awsorg类型属性的只读问题
This commit is contained in:
parent
e7770cff5b
commit
915080c4a2
@ -81,7 +81,6 @@
|
|||||||
v-model="scope.row.readonly"
|
v-model="scope.row.readonly"
|
||||||
active-color="#4E7FF9"
|
active-color="#4E7FF9"
|
||||||
inactive-color="#E2E2E2"
|
inactive-color="#E2E2E2"
|
||||||
:disabled="scope.row.type == 'relation' || scope.row.type == 'awsorg'"
|
|
||||||
@change="handleChangeReadonlyAndValid(scope.row.id, scope.row.title, scope.row.readonly,scope.row.isRequired, scope.row.isValid)">
|
@change="handleChangeReadonlyAndValid(scope.row.id, scope.row.title, scope.row.readonly,scope.row.isRequired, scope.row.isValid)">
|
||||||
</awsui-switch>
|
</awsui-switch>
|
||||||
</template>
|
</template>
|
||||||
@ -394,8 +393,8 @@
|
|||||||
<awsui-form-item label="">
|
<awsui-form-item label="">
|
||||||
<div
|
<div
|
||||||
class="div-button-small"
|
class="div-button-small"
|
||||||
:style="{'border-right': '0px','cursor':readOnlyCursor ? 'not-allowed':'', 'background-color': attrForm.readonly ? '#eef5fe' : '', 'color': attrForm.readonly ? '#4E7FF9' : ''}"
|
:style="{'border-right': '0px', 'background-color': attrForm.readonly ? '#eef5fe' : '', 'color': attrForm.readonly ? '#4E7FF9' : ''}"
|
||||||
@click="(!readOnlyCursor) && changeReadOnly()"
|
@click="changeReadOnly()"
|
||||||
>
|
>
|
||||||
|
|
||||||
<span>只读</span>
|
<span>只读</span>
|
||||||
@ -907,11 +906,10 @@
|
|||||||
let type = form.type;
|
let type = form.type;
|
||||||
if(arr.includes(type)){
|
if(arr.includes(type)){
|
||||||
this.readOnlyCursor = true;
|
this.readOnlyCursor = true;
|
||||||
form.readonly = false;
|
|
||||||
}else{
|
}else{
|
||||||
this.readOnlyCursor = false;
|
this.readOnlyCursor = false;
|
||||||
form.readonly = row.readonly;
|
|
||||||
}
|
}
|
||||||
|
form.readonly = row.readonly;
|
||||||
form.value = row.value;
|
form.value = row.value;
|
||||||
form.desc = row.desc
|
form.desc = row.desc
|
||||||
form.isValid = row.isValid;
|
form.isValid = row.isValid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user