Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
5869a91a
提交
5869a91a
authored
2月 15, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
58a1d243
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
FormDialog.vue
src/modules/trip/template/components/FormDialog.vue
+2
-2
ViewDialog.vue
src/modules/trip/template/components/ViewDialog.vue
+1
-1
Index.vue
src/modules/trip/template/views/Index.vue
+2
-2
dictionary.ts
src/utils/dictionary.ts
+1
-1
没有找到文件。
src/modules/trip/template/components/FormDialog.vue
浏览文件 @
5869a91a
...
@@ -32,7 +32,7 @@ watchEffect(() => {
...
@@ -32,7 +32,7 @@ watchEffect(() => {
const
rules
=
ref
<
FormRules
>
({
const
rules
=
ref
<
FormRules
>
({
name
:
[{
required
:
true
,
message
:
'请输入模板名称'
}],
name
:
[{
required
:
true
,
message
:
'请输入模板名称'
}],
type
:
[{
required
:
true
,
message
:
'请选择
模板
类型'
}],
type
:
[{
required
:
true
,
message
:
'请选择
旅程
类型'
}],
score
:
[{
required
:
true
,
message
:
'请输入不超过100的整数数值'
}]
score
:
[{
required
:
true
,
message
:
'请输入不超过100的整数数值'
}]
})
})
...
@@ -66,7 +66,7 @@ function handleUpdate() {
...
@@ -66,7 +66,7 @@ function handleUpdate() {
<el-form-item
label=
"模板名称"
prop=
"name"
>
<el-form-item
label=
"模板名称"
prop=
"name"
>
<el-input
v-model=
"form.name"
placeholder=
"请输入"
/>
<el-input
v-model=
"form.name"
placeholder=
"请输入"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
模板
类型"
prop=
"type"
>
<el-form-item
label=
"
旅程
类型"
prop=
"type"
>
<el-select
v-model=
"form.type"
style=
"width: 100%"
>
<el-select
v-model=
"form.type"
style=
"width: 100%"
>
<el-option
v-for=
"item in tripTemplateTypeList"
:key=
"item.value"
v-bind=
"item"
></el-option>
<el-option
v-for=
"item in tripTemplateTypeList"
:key=
"item.value"
v-bind=
"item"
></el-option>
</el-select>
</el-select>
...
...
src/modules/trip/template/components/ViewDialog.vue
浏览文件 @
5869a91a
...
@@ -13,7 +13,7 @@ const statusList = useMapStore().getMapValuesByKey('system_status')
...
@@ -13,7 +13,7 @@ const statusList = useMapStore().getMapValuesByKey('system_status')
<el-form
ref=
"formRef"
label-suffix=
":"
>
<el-form
ref=
"formRef"
label-suffix=
":"
>
<el-row
justify=
"space-between"
>
<el-row
justify=
"space-between"
>
<el-form-item
label=
"模板名称"
prop=
"name"
>
{{
data
.
name
}}
</el-form-item>
<el-form-item
label=
"模板名称"
prop=
"name"
>
{{
data
.
name
}}
</el-form-item>
<el-form-item
label=
"
模板
类型"
prop=
"type"
>
<el-form-item
label=
"
旅程
类型"
prop=
"type"
>
{{
getNameByValue
(
data
.
type
,
tripTemplateTypeList
)
}}
{{
getNameByValue
(
data
.
type
,
tripTemplateTypeList
)
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"旅程分值"
prop=
"score"
>
{{
data
.
score
}}
</el-form-item>
<el-form-item
label=
"旅程分值"
prop=
"score"
>
{{
data
.
score
}}
</el-form-item>
...
...
src/modules/trip/template/views/Index.vue
浏览文件 @
5869a91a
...
@@ -23,7 +23,7 @@ const listOptions = computed(() => {
...
@@ -23,7 +23,7 @@ const listOptions = computed(() => {
},
},
filters
:
[
filters
:
[
{
type
:
'input'
,
prop
:
'name'
,
placeholder
:
'请输入旅程模板名称'
},
{
type
:
'input'
,
prop
:
'name'
,
placeholder
:
'请输入旅程模板名称'
},
{
type
:
'select'
,
prop
:
'type'
,
placeholder
:
'请选择旅程
模板
类型'
,
options
:
tripTemplateTypeList
},
{
type
:
'select'
,
prop
:
'type'
,
placeholder
:
'请选择旅程类型'
,
options
:
tripTemplateTypeList
},
{
type
:
'select'
,
prop
:
'status'
,
placeholder
:
'请选择旅程模板状态'
,
options
:
statusList
}
{
type
:
'select'
,
prop
:
'status'
,
placeholder
:
'请选择旅程模板状态'
,
options
:
statusList
}
],
],
columns
:
[
columns
:
[
...
@@ -31,7 +31,7 @@ const listOptions = computed(() => {
...
@@ -31,7 +31,7 @@ const listOptions = computed(() => {
{
label
:
'模板名称'
,
prop
:
'name'
},
{
label
:
'模板名称'
,
prop
:
'name'
},
{
label
:
'所属实验'
,
prop
:
'experiment.name'
},
{
label
:
'所属实验'
,
prop
:
'experiment.name'
},
{
{
label
:
'
模板
类型'
,
label
:
'
旅程
类型'
,
prop
:
'type'
,
prop
:
'type'
,
computed
({
row
}:
{
row
:
TripTemplate
})
{
computed
({
row
}:
{
row
:
TripTemplate
})
{
return
getNameByValue
(
row
.
type
,
tripTemplateTypeList
)
return
getNameByValue
(
row
.
type
,
tripTemplateTypeList
)
...
...
src/utils/dictionary.ts
浏览文件 @
5869a91a
...
@@ -7,7 +7,7 @@ export function getNameByValue(value: string | number, list: Dictionary[]) {
...
@@ -7,7 +7,7 @@ export function getNameByValue(value: string | number, list: Dictionary[]) {
return
list
.
find
(
item
=>
item
.
value
===
value
)?.
label
||
value
return
list
.
find
(
item
=>
item
.
value
===
value
)?.
label
||
value
}
}
// 旅程
模板
类型
// 旅程类型
export
const
tripTemplateTypeList
=
[
export
const
tripTemplateTypeList
=
[
{
label
:
'自由旅程'
,
value
:
'1'
},
{
label
:
'自由旅程'
,
value
:
'1'
},
{
label
:
'固定旅程'
,
value
:
'2'
}
{
label
:
'固定旅程'
,
value
:
'2'
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论