提交 574b0f03 authored 作者: lhh's avatar lhh

update

上级 6dfae3f3
...@@ -49,23 +49,23 @@ const remove = function (item: any, index: number) { ...@@ -49,23 +49,23 @@ const remove = function (item: any, index: number) {
<div class="specify" v-if="item.rule.type === 2"> <div class="specify" v-if="item.rule.type === 2">
<div class="specify-item" v-for="(specify, index) in item.rule.rand_value"> <div class="specify-item" v-for="(specify, index) in item.rule.rand_value">
<!-- 字符串 --> <!-- 字符串 -->
<template v-if="item.type === 1"> <template v-if="parseInt(item.type) === 1">
<el-input v-model="specify.value" placeholder="请输入"></el-input> <el-input v-model="specify.value" placeholder="请输入"></el-input>
<el-input v-model="specify.rate" placeholder="请输入随机几率" style="margin-left: 15px"></el-input> <el-input v-model="specify.rate" placeholder="请输入随机几率" style="margin-left: 15px"></el-input>
&nbsp;&nbsp;% &nbsp;&nbsp;%
</template> </template>
<!-- 整数 --> <!-- 整数 -->
<template v-if="item.type === 2"> <template v-if="parseInt(item.type) === 2">
<el-input v-model="specify.min" placeholder="请输入随机整数最小值"></el-input> <el-input v-model="specify.min" placeholder="请输入随机整数最小值"></el-input>
<el-input v-model="specify.max" placeholder="请输入随机整数最大值" style="margin-left: 15px"></el-input> <el-input v-model="specify.max" placeholder="请输入随机整数最大值" style="margin-left: 15px"></el-input>
</template> </template>
<!-- 数字 --> <!-- 数字 -->
<template v-if="item.type === 3"> <template v-if="parseInt(item.type) === 3">
<el-input v-model="specify.min" placeholder="请输入随机数字最小值"></el-input> <el-input v-model="specify.min" placeholder="请输入随机数字最小值"></el-input>
<el-input v-model="specify.max" placeholder="请输入随机数字最大值" style="margin-left: 15px"></el-input> <el-input v-model="specify.max" placeholder="请输入随机数字最大值" style="margin-left: 15px"></el-input>
</template> </template>
<!-- 日期 --> <!-- 日期 -->
<template v-if="item.type === 4"> <template v-if="parseInt(item.type) === 4">
<el-date-picker <el-date-picker
placeholder="请选择随机日期最小值" placeholder="请选择随机日期最小值"
style="width: 200px" style="width: 200px"
...@@ -79,7 +79,7 @@ const remove = function (item: any, index: number) { ...@@ -79,7 +79,7 @@ const remove = function (item: any, index: number) {
v-model="specify.max" v-model="specify.max"
/> />
</template> </template>
<template v-if="item.type === 5"> <template v-if="parseInt(item.type) === 5">
<el-date-picker <el-date-picker
placeholder="请选择随机时间最小值" placeholder="请选择随机时间最小值"
v-model="specify.min" v-model="specify.min"
...@@ -121,7 +121,7 @@ const remove = function (item: any, index: number) { ...@@ -121,7 +121,7 @@ const remove = function (item: any, index: number) {
/></el-icon> --> /></el-icon> -->
</div> </div>
<div v-else> <div v-else>
<template v-if="item.type === 4"> <template v-if="parseInt(item.type) === 4">
<el-date-picker <el-date-picker
placeholder="请选择固定属性值" placeholder="请选择固定属性值"
style="width: 200px" style="width: 200px"
...@@ -129,7 +129,7 @@ const remove = function (item: any, index: number) { ...@@ -129,7 +129,7 @@ const remove = function (item: any, index: number) {
v-model="item.rule.fixed_value" v-model="item.rule.fixed_value"
/> />
</template> </template>
<template v-else-if="item.type === 5"> <template v-else-if="parseInt(item.type) === 5">
<el-date-picker <el-date-picker
placeholder="请选择固定属性值" placeholder="请选择固定属性值"
v-model="item.rule.fixed_value" v-model="item.rule.fixed_value"
......
...@@ -55,7 +55,7 @@ export interface ScheduleEvent { ...@@ -55,7 +55,7 @@ export interface ScheduleEvent {
export interface OtherFields { export interface OtherFields {
id: string id: string
name: string name: string
type: number type: string
format: string format: string
rule: any rule: any
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论