|
|
@ -1,5 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<v-container fluid class="textColor--text"> |
|
|
|
<v-container fluid class="textColor--text"> |
|
|
|
|
|
|
|
<v-form v-model="valid"> |
|
|
|
<template v-if="formDetails"> |
|
|
|
<template v-if="formDetails"> |
|
|
|
<div class="title d-flex align-center justify-center mb-4"> |
|
|
|
<div class="title d-flex align-center justify-center mb-4"> |
|
|
|
<div :style="{ background : plugin.title === 'SES' ? '#242f3e' : '' }" |
|
|
|
<div :style="{ background : plugin.title === 'SES' ? '#242f3e' : '' }" |
|
|
@ -32,7 +33,8 @@ |
|
|
|
<form-input :input-details="item" v-model="set[item.key]"></form-input> |
|
|
|
<form-input :input-details="item" v-model="set[item.key]"></form-input> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td v-if="j"> |
|
|
|
<td v-if="j"> |
|
|
|
<x-icon small iconClass="pointer" color="error" @click="settings.splice(j,1)">mdi-delete-outline</x-icon> |
|
|
|
<x-icon small iconClass="pointer" color="error" @click="settings.splice(j,1)">mdi-delete-outline |
|
|
|
|
|
|
|
</x-icon> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
@ -51,7 +53,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-grid" v-else> |
|
|
|
<div class="form-grid" v-else> |
|
|
|
<template v-for="(item,i) in formDetails.items"> |
|
|
|
<template v-for="(item,i) in formDetails.items"> |
|
|
|
<div :key="i" class="text-right"> |
|
|
|
<div :key="i" class="text-right form-input-label"> |
|
|
|
<label class="caption ">{{ item.label }} <span v-if="item.required" class="red--text">*</span></label> |
|
|
|
<label class="caption ">{{ item.label }} <span v-if="item.required" class="red--text">*</span></label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div :key="i"> |
|
|
|
<div :key="i"> |
|
|
@ -62,16 +64,17 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-flex mb-4 mt-7 justify-center"> |
|
|
|
<div class="d-flex mb-4 mt-7 justify-center"> |
|
|
|
|
|
|
|
|
|
|
|
<v-btn small |
|
|
|
<v-btn small |
|
|
|
:outlined="action.key !== 'save'" |
|
|
|
:outlined="action.key !== 'save'" |
|
|
|
v-for="action in formDetails.actions" @click="doAction(action)" |
|
|
|
v-for="action in formDetails.actions" @click="doAction(action)" |
|
|
|
:key="action.key" |
|
|
|
:key="action.key" |
|
|
|
:color="action.key === 'save' ? 'primary' : '' " |
|
|
|
:color="action.key === 'save' ? 'primary' : '' " |
|
|
|
|
|
|
|
:disabled="action.key === 'save' && !valid" |
|
|
|
>{{ action.label }} |
|
|
|
>{{ action.label }} |
|
|
|
</v-btn> |
|
|
|
</v-btn> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
</v-form> |
|
|
|
</v-container> |
|
|
|
</v-container> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -87,7 +90,8 @@ export default { |
|
|
|
formDetails: null, |
|
|
|
formDetails: null, |
|
|
|
settings: null, |
|
|
|
settings: null, |
|
|
|
pluginId: null, |
|
|
|
pluginId: null, |
|
|
|
title: null |
|
|
|
title: null, |
|
|
|
|
|
|
|
valid: null |
|
|
|
}), |
|
|
|
}), |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
simpleAnim() { |
|
|
|
simpleAnim() { |
|
|
@ -201,42 +205,48 @@ export default { |
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
|
|
|
|
::v-deep { |
|
|
|
::v-deep { |
|
|
|
input, |
|
|
|
//input, |
|
|
|
select, |
|
|
|
//select, |
|
|
|
textarea { |
|
|
|
//textarea { |
|
|
|
border: 1px solid #7f828b33; |
|
|
|
// border: 1px solid #7f828b33; |
|
|
|
padding: 1px 5px; |
|
|
|
// padding: 1px 5px; |
|
|
|
font-size: .8rem; |
|
|
|
// font-size: .8rem; |
|
|
|
border-radius: 4px; |
|
|
|
// border-radius: 4px; |
|
|
|
|
|
|
|
// |
|
|
|
&:focus { |
|
|
|
// &:focus { |
|
|
|
border: 1px solid var(--v-primary-base); |
|
|
|
// border: 1px solid var(--v-primary-base); |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
// |
|
|
|
&:hover:not(:focus) { |
|
|
|
// &:hover:not(:focus) { |
|
|
|
box-shadow: 0 0 2px dimgrey; |
|
|
|
// box-shadow: 0 0 2px dimgrey; |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
//} |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// |
|
|
|
input, textarea { |
|
|
|
//input, textarea { |
|
|
|
min-width: 300px; |
|
|
|
// min-width: 300px; |
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.form-grid { |
|
|
|
.form-grid { |
|
|
|
display: grid; |
|
|
|
display: grid; |
|
|
|
grid-template-columns:auto auto; |
|
|
|
grid-template-columns:auto auto; |
|
|
|
column-gap: 10px; |
|
|
|
column-gap: 10px; |
|
|
|
row-gap: 20px |
|
|
|
row-gap: 20px; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.form-table { |
|
|
|
.form-table { |
|
|
|
border: none; |
|
|
|
border: none; |
|
|
|
|
|
|
|
min-width: 400px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tbody tr:nth-of-type(odd) { |
|
|
|
tbody tr:nth-of-type(odd) { |
|
|
|
background-color: transparent; |
|
|
|
background-color: transparent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.form-input-label{ |
|
|
|
|
|
|
|
padding-bottom: 16px; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|