From adf7c9495ac348644079592059ea4c4d95b84b99 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 21 八月 2024 14:05:38 +0800 Subject: [PATCH] 测试完成 --- src/components/Regular/index.vue | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index 1ef193c..4a3c1f6 100644 --- a/src/components/Regular/index.vue +++ b/src/components/Regular/index.vue @@ -1,7 +1,7 @@ <template> <div> <div class="topicxq" v-for="item in TargetoptionList"> - <el-form :rules="rules" :model="item"> + <el-form :inline="true" :rules="rules" :model="item"> <el-row :gutter="10"> <el-col :span="12" ><el-form-item prop="targetvalue" label="閫夐」鍚嶇О"> @@ -21,7 +21,7 @@ </el-radio-group> </el-form-item></el-col > - <el-col :span="12" v-if="intent" + <!-- <el-col :span="12" v-if="intent" ><el-form-item label="閫夐」鑺傜偣"> <el-input type="text" @@ -30,7 +30,7 @@ show-word-limit > </el-input> </el-form-item - ></el-col> + ></el-col> --> </el-row> <el-row :gutter="10" v-if="!intent"> <el-col :span="20" @@ -175,7 +175,8 @@ <el-row :gutter="10"> <el-col :span="16" v-if="intent"> - <el-form-item label="璇煶鏂囦欢"> + <div></div> + <!-- <el-form-item label="璇煶鏂囦欢"> <el-upload class="upload-demo" style="display: flex" @@ -186,12 +187,12 @@ > <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button> </el-upload> - </el-form-item></el-col - > - <el-col :span="intent ? 8 : 22"> + </el-form-item> --> + </el-col> + <el-col :offset="12" :span="intent ? 8 : 22"> <div style="text-align: right; padding-right: 10px"> <el-button - v-if="controlsc" + v-if="controlsc || addoption" @click="$emit('addoption', item)" type="success" icon="el-icon-circle-plus-outline" @@ -270,6 +271,10 @@ type: Boolean, default: true, }, + addoption: { + type: Boolean, + default: false, + }, intent: { type: Boolean, default: true, -- Gitblit v1.9.3