fix(接口定义): 修复接口定义自定义字段输入框,输入长字符保存报错的缺陷
--bug=1016921 --user=王孝刚 【接口测试】接口定义,自定义字段-输入框,填写超长字符,保存报错 https://www.tapd.cn/55049933/s/1252127
This commit is contained in:
parent
38239176c2
commit
25a8eee0d9
|
@ -8,36 +8,36 @@
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) in data.options ? data.options : []"
|
v-for="(item,index) in data.options ? data.options : []"
|
||||||
:key="index"
|
:key="index"
|
||||||
@change="handleChange"
|
|
||||||
:label="getTranslateOption(item)"
|
:label="getTranslateOption(item)"
|
||||||
:value="item.value">
|
:value="item.value"
|
||||||
|
@change="handleChange">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-else-if="data.type === 'cascadingSelect'"
|
v-else-if="data.type === 'cascadingSelect'"
|
||||||
expand-trigger="hover"
|
v-model="data[prop]"
|
||||||
@change="handleChange"
|
|
||||||
:props="{label: 'text'}"
|
|
||||||
:options="data.options"
|
:options="data.options"
|
||||||
v-model="data[prop]">
|
:props="{label: 'text'}"
|
||||||
|
expand-trigger="hover"
|
||||||
|
@change="handleChange">
|
||||||
</el-cascader>
|
</el-cascader>
|
||||||
|
|
||||||
<el-input
|
<el-input
|
||||||
v-else-if="data.type === 'textarea'"
|
v-else-if="data.type === 'textarea'"
|
||||||
type="textarea"
|
v-model="data[prop]"
|
||||||
@change="handleChange"
|
|
||||||
:rows="2"
|
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:placeholder="$t('commons.input_content')"
|
:placeholder="$t('commons.input_content')"
|
||||||
|
:rows="2"
|
||||||
class="custom-with"
|
class="custom-with"
|
||||||
v-model="data[prop]">
|
type="textarea"
|
||||||
|
@change="handleChange">
|
||||||
</el-input>
|
</el-input>
|
||||||
|
|
||||||
<el-checkbox-group
|
<el-checkbox-group
|
||||||
v-else-if="data.type === 'checkbox'"
|
v-else-if="data.type === 'checkbox'"
|
||||||
:disabled="disabled"
|
v-model="data[prop]"
|
||||||
v-model="data[prop]">
|
:disabled="disabled">
|
||||||
<el-checkbox v-for="(item, index) in data.options ? data.options : []"
|
<el-checkbox v-for="(item, index) in data.options ? data.options : []"
|
||||||
:key="index"
|
:key="index"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
|
@ -47,13 +47,13 @@
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
|
||||||
<el-radio
|
<el-radio
|
||||||
|
v-for="(item,index) in data.options ? data.options : []"
|
||||||
v-else-if="data.type === 'radio'"
|
v-else-if="data.type === 'radio'"
|
||||||
|
:key="index"
|
||||||
v-model="data[prop]"
|
v-model="data[prop]"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-for="(item,index) in data.options ? data.options : []"
|
:label="item.value"
|
||||||
:key="index"
|
@change="handleChange">
|
||||||
@change="handleChange"
|
|
||||||
:label="item.value">
|
|
||||||
{{ getTranslateOption(item) }}
|
{{ getTranslateOption(item) }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
|
|
||||||
|
@ -65,19 +65,19 @@
|
||||||
|
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-else-if="data.type === 'float'"
|
v-else-if="data.type === 'float'"
|
||||||
|
v-model="data[prop]"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@change="handleChange"
|
:precision="2" :step="0.1" @change="handleChange"/>
|
||||||
v-model="data[prop]" :precision="2" :step="0.1"/>
|
|
||||||
|
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
class="custom-with"
|
|
||||||
@change="handleChange"
|
|
||||||
v-else-if="data.type === 'date' || data.type === 'datetime'"
|
v-else-if="data.type === 'date' || data.type === 'datetime'"
|
||||||
:value-format="data.type === 'date' ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm:ss'"
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="data[prop]"
|
v-model="data[prop]"
|
||||||
|
:disabled="disabled"
|
||||||
|
:placeholder="$t('commons.select_date')"
|
||||||
:type="data.type === 'date' ? 'date' : 'datetime'"
|
:type="data.type === 'date' ? 'date' : 'datetime'"
|
||||||
:placeholder="$t('commons.select_date')">
|
:value-format="data.type === 'date' ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm:ss'"
|
||||||
|
class="custom-with"
|
||||||
|
@change="handleChange">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
|
||||||
<el-select v-else-if="data.type === 'member' || data.type === 'multipleMember'"
|
<el-select v-else-if="data.type === 'member' || data.type === 'multipleMember'"
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
<el-input class="custom-with"
|
<el-input class="custom-with"
|
||||||
@input="handleChange"
|
@input="handleChange"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-else v-model="data[prop]" maxlength="500" show-word-limit/>
|
v-else v-model="data[prop]" maxlength="450" show-word-limit/>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue