Commit 1e551a4a authored by zhengke's avatar zhengke

修改

parent e36fb4b9
......@@ -13,14 +13,14 @@
<el-form label-width="90px">
<el-form-item :label="searchData.CompData.Name" :required="searchData.CompData.IsRequire"
style="margin-bottom:0">
<el-select disabled style="width:328px;"></el-select>
<el-select v-model="defaultValue" disabled style="width:328px;"></el-select>
</el-form-item>
</el-form>
</div>
</div>
<div class="diy-component-edit" v-if="searchData.isCked">
<el-form label-width="100px">
<el-form-item label="名称">
<el-form-item label="名称" required>
<el-input v-model="searchData.CompData.Name" size="small"></el-input>
</el-form-item>
<el-form-item label="是否多选">
......@@ -40,7 +40,7 @@
props: ["searchData", "index", "dataLeng"],
data() {
return {
defaultValue:''
};
},
created() {},
......
<style>
.imgdiy-search{
background: rgb(242, 242, 242);
}
.imgdiy-search>div{
min-height: 100px;
line-height: 60px;
padding: 24px;
font-size: 28px;
}
</style>
<template>
<div :class="{'active':searchData.isCked}">
<div class="diy-component-options" v-if="searchData.isCked">
......@@ -21,7 +9,7 @@
style="right: -25px; top: 30px;"></el-button>
</div>
<div class="diy-component-preview">
<div class="imgdiy-search">
<div class="diy-search" style="min-height:91px;">
<el-form label-width="90px">
<el-form-item :label="searchData.CompData.Name" style="margin-bottom:0">
<div>
......@@ -35,7 +23,7 @@
</div>
<div class="diy-component-edit" v-if="searchData.isCked">
<el-form label-width="100px">
<el-form-item label="名称">
<el-form-item label="名称" required>
<el-input v-model="searchData.CompData.Name" size="small"></el-input>
</el-form-item>
<el-form-item label="上传文件数量">
......
......@@ -12,14 +12,14 @@
<div class="diy-search">
<el-form label-width="90px">
<el-form-item :label="searchData.CompData.Name" :required="searchData.CompData.IsRequire" style="margin-bottom:0">
<el-input disabled type="textarea" :placeholder="`最多输入${searchData.CompData.WordsLength}个字`"></el-input>
<el-input disabled type="textarea" v-model="defaultValue" :placeholder="`最多输入${searchData.CompData.WordsLength}个字`"></el-input>
</el-form-item>
</el-form>
</div>
</div>
<div class="diy-component-edit" v-if="searchData.isCked">
<el-form label-width="100px">
<el-form-item label="名称">
<el-form-item label="名称" required>
<el-input v-model="searchData.CompData.Name" size="small" :maxlength="10"></el-input>
</el-form-item>
<el-form-item label="字数">
......@@ -38,7 +38,7 @@
props: ["searchData", "index", "dataLeng"],
data() {
return {
defaultValue:''
};
},
created() {},
......
......@@ -12,14 +12,14 @@
<div class="diy-search">
<el-form label-width="90px">
<el-form-item :label="searchData.CompData.Name" :required="searchData.CompData.IsRequire" style="margin-bottom:0">
<el-input disabled :placeholder="`最多输入${searchData.CompData.WordsLength}个字`"></el-input>
<el-input disabled v-model="defaultValue" :placeholder="`最多输入${searchData.CompData.WordsLength}个字`"></el-input>
</el-form-item>
</el-form>
</div>
</div>
<div class="diy-component-edit" v-if="searchData.isCked">
<el-form label-width="100px">
<el-form-item label="名称">
<el-form-item label="名称" required>
<el-input v-model="searchData.CompData.Name" size="small" :maxlength="10"></el-input>
</el-form-item>
<el-form-item label="字数">
......@@ -39,7 +39,7 @@
props: ["searchData", "index", "dataLeng"],
data() {
return {
defaultValue:''
};
},
created() {},
......
<style>
.single_Input {
width: 500px;
height: 60px;
border: 1px solid #DCDFE6;
border-radius: 4px;
margin-left: 20px;
background: #fff;
font-size: 25px;
color: #c0c4d6;
line-height: 60px;
padding-left: 20px;
}
.imgdiy-search{
background: rgb(242, 242, 242);
}
.imgdiy-search>div{
min-height: 100px;
line-height: 60px;
padding: 24px;
font-size: 28px;
}
</style>
<template>
<div :class="{'active':searchData.isCked}">
<div class="diy-component-options" v-if="searchData.isCked">
......@@ -32,10 +9,10 @@
style="right: -25px; top: 30px;"></el-button>
</div>
<div class="diy-component-preview">
<div class="imgdiy-search">
<div class="diy-search" style="min-height:91px;">
<el-form label-width="90px">
<el-form-item :label="searchData.CompData.Name" style="margin-bottom:0">
<div>
<div >
<template v-for="(item,index) in imgNum">
<img :key="index" src="../../../assets/img/default.png" style="width:80px;margin-right:20px;" alt="">
</template>
......@@ -46,7 +23,7 @@
</div>
<div class="diy-component-edit" v-if="searchData.isCked">
<el-form label-width="100px">
<el-form-item label="名称">
<el-form-item label="名称" required>
<el-input v-model="searchData.CompData.Name" size="small"></el-input>
</el-form-item>
<el-form-item label="上传文件数量">
......
......@@ -519,12 +519,18 @@
this.addMsg.FormData.splice(index, 1);
},
SaveData() {
for(let i=0;i<this.addMsg.FormData.length;i++){
if(this.addMsg.FormData[i].CompData.Name==''){
this.Error(`请输入第${i+1}个组件的名称`);
return
}
}
this.apipost("/api/CustomForm/SetCustomForm", this.addMsg, (res) => {
if (res.data.resultCode == 1) {
var tempData = res.data.data;
if (tempData) {
this.queryMsgId = tempData.Id;
this.getCustomFormInfo( this.queryMsgId);
this.getCustomFormInfo(this.queryMsgId);
}
this.Success(res.data.message);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment