diff --git a/frontend/src/business/components/project/template/CustomFiledComponent.vue b/frontend/src/business/components/project/template/CustomFiledComponent.vue index 6e02fa583c..f29e08a846 100644 --- a/frontend/src/business/components/project/template/CustomFiledComponent.vue +++ b/frontend/src/business/components/project/template/CustomFiledComponent.vue @@ -6,38 +6,38 @@ @change="handleChange" filterable v-model="data[prop]" :placeholder="$t('commons.default')"> + v-for="(item,index) in data.options ? data.options : []" + :key="index" + :label="getTranslateOption(item)" + :value="item.value" + @change="handleChange"> + v-else-if="data.type === 'cascadingSelect'" + v-model="data[prop]" + :options="data.options" + :props="{label: 'text'}" + expand-trigger="hover" + @change="handleChange"> + v-else-if="data.type === 'textarea'" + v-model="data[prop]" + :disabled="disabled" + :placeholder="$t('commons.input_content')" + :rows="2" + class="custom-with" + type="textarea" + @change="handleChange"> + v-else-if="data.type === 'checkbox'" + v-model="data[prop]" + :disabled="disabled"> + v-for="(item,index) in data.options ? data.options : []" + v-else-if="data.type === 'radio'" + :key="index" + v-model="data[prop]" + :disabled="disabled" + :label="item.value" + @change="handleChange"> {{ getTranslateOption(item) }} + v-else-if="data.type === 'int'" + v-model="data[prop]" + :disabled="disabled" + @change="handleChange"/> + v-else-if="data.type === 'float'" + v-model="data[prop]" + :disabled="disabled" + :precision="2" :step="0.1" @change="handleChange"/> + v-else-if="data.type === 'date' || data.type === 'datetime'" + v-model="data[prop]" + :disabled="disabled" + :placeholder="$t('commons.select_date')" + :type="data.type === 'date' ? 'date' : 'datetime'" + :value-format="data.type === 'date' ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm:ss'" + class="custom-with" + @change="handleChange"> + v-for="(item) in memberOptions" + :key="item.id" + :label="item.name + (item.email ? ' (' + item.email + ')' : '')" + :value="item.id"> @@ -106,7 +106,7 @@ + v-else v-model="data[prop]" maxlength="450" show-word-limit/>