Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
574b0f03
提交
574b0f03
authored
3月 26, 2024
作者:
lhh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
6dfae3f3
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
OtherFields.vue
src/modules/connect/components/OtherFields.vue
+7
-7
types.ts
src/modules/connect/types.ts
+1
-1
没有找到文件。
src/modules/connect/components/OtherFields.vue
浏览文件 @
574b0f03
...
...
@@ -49,23 +49,23 @@ const remove = function (item: any, index: number) {
<div
class=
"specify"
v-if=
"item.rule.type === 2"
>
<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.rate"
placeholder=
"请输入随机几率"
style=
"margin-left: 15px"
></el-input>
%
</
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.max"
placeholder=
"请输入随机整数最大值"
style=
"margin-left: 15px"
></el-input>
</
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.max"
placeholder=
"请输入随机数字最大值"
style=
"margin-left: 15px"
></el-input>
</
template
>
<!-- 日期 -->
<
template
v-if=
"
item.type
=== 4"
>
<
template
v-if=
"
parseInt(item.type)
=== 4"
>
<el-date-picker
placeholder=
"请选择随机日期最小值"
style=
"width: 200px"
...
...
@@ -79,7 +79,7 @@ const remove = function (item: any, index: number) {
v-model=
"specify.max"
/>
</
template
>
<
template
v-if=
"
item.type
=== 5"
>
<
template
v-if=
"
parseInt(item.type)
=== 5"
>
<el-date-picker
placeholder=
"请选择随机时间最小值"
v-model=
"specify.min"
...
...
@@ -121,7 +121,7 @@ const remove = function (item: any, index: number) {
/></el-icon> -->
</div>
<div
v-else
>
<
template
v-if=
"
item.type
=== 4"
>
<
template
v-if=
"
parseInt(item.type)
=== 4"
>
<el-date-picker
placeholder=
"请选择固定属性值"
style=
"width: 200px"
...
...
@@ -129,7 +129,7 @@ const remove = function (item: any, index: number) {
v-model=
"item.rule.fixed_value"
/>
</
template
>
<
template
v-else-if=
"
item.type
=== 5"
>
<
template
v-else-if=
"
parseInt(item.type)
=== 5"
>
<el-date-picker
placeholder=
"请选择固定属性值"
v-model=
"item.rule.fixed_value"
...
...
src/modules/connect/types.ts
浏览文件 @
574b0f03
...
...
@@ -55,7 +55,7 @@ export interface ScheduleEvent {
export
interface
OtherFields
{
id
:
string
name
:
string
type
:
number
type
:
string
format
:
string
rule
:
any
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论