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