Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
integrate-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
integrate-admin
Commits
9b961483
提交
9b961483
authored
11月 23, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
d424b2cb
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
10 行删除
+7
-10
newField.vue
src/views/manage/components/fieldConfiguration/newField.vue
+4
-5
fieldConfiguration.vue
src/views/manage/fieldConfiguration.vue
+1
-2
platformProducts.vue
src/views/manage/platformProducts.vue
+2
-3
没有找到文件。
src/views/manage/components/fieldConfiguration/newField.vue
浏览文件 @
9b961483
...
@@ -114,9 +114,6 @@ import { ElMessage, ElMessageBox } from 'element-plus';
...
@@ -114,9 +114,6 @@ import { ElMessage, ElMessageBox } from 'element-plus';
import
{
addCommonConfig
,
putCommonConfig
}
from
'@/services/api/systemApi/fieldConfiguration/commonConfig'
import
{
addCommonConfig
,
putCommonConfig
}
from
'@/services/api/systemApi/fieldConfiguration/commonConfig'
const
props
=
defineProps
({
const
props
=
defineProps
({
platformProductRelationId
:
{
type
:
Number
,
},
currentPage
:
{
currentPage
:
{
type
:
Number
,
type
:
Number
,
},
},
...
@@ -169,11 +166,13 @@ watch(() => fieidForm.value, () => {
...
@@ -169,11 +166,13 @@ watch(() => fieidForm.value, () => {
const
onConfirm
=
()
=>
{
const
onConfirm
=
()
=>
{
fieidRef
.
value
?.
validate
((
valid
:
boolean
,
fields
:
any
)
=>
{
fieidRef
.
value
?.
validate
((
valid
:
boolean
,
fields
:
any
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
platformProductRelationId
=
sessionStorage
.
getItem
(
'platformProductRelationId'
)
if
(
fieldTitle
.
value
===
'新增字段'
)
{
if
(
fieldTitle
.
value
===
'新增字段'
)
{
fieidForm
.
value
=
{
...{
platformProductRelationId
},
...
fieidForm
.
value
}
addCommonConfig
(
fieidForm
.
value
).
then
((
res
:
any
)
=>
{
addCommonConfig
(
fieidForm
.
value
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
clear
()
clear
()
emits
(
'initCommonConfig'
,
p
rops
.
p
latformProductRelationId
,
props
.
currentPage
,
props
.
pageSize
)
emits
(
'initCommonConfig'
,
platformProductRelationId
,
props
.
currentPage
,
props
.
pageSize
)
ElMessage
({
type
:
'success'
,
message
:
'添加成功'
})
ElMessage
({
type
:
'success'
,
message
:
'添加成功'
})
}
}
})
})
...
@@ -181,7 +180,7 @@ const onConfirm = () => {
...
@@ -181,7 +180,7 @@ const onConfirm = () => {
putCommonConfig
(
fieidForm
.
value
).
then
((
res
:
any
)
=>
{
putCommonConfig
(
fieidForm
.
value
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
clear
()
clear
()
emits
(
'initCommonConfig'
,
p
rops
.
p
latformProductRelationId
,
props
.
currentPage
,
props
.
pageSize
)
emits
(
'initCommonConfig'
,
platformProductRelationId
,
props
.
currentPage
,
props
.
pageSize
)
ElMessage
({
type
:
'success'
,
message
:
'更新成功'
})
ElMessage
({
type
:
'success'
,
message
:
'更新成功'
})
}
}
})
})
...
...
src/views/manage/fieldConfiguration.vue
浏览文件 @
9b961483
...
@@ -28,8 +28,7 @@
...
@@ -28,8 +28,7 @@
layout=
"->, total, sizes, prev, pager, next, jumper"
:total=
"total"
hide-on-single-page
layout=
"->, total, sizes, prev, pager, next, jumper"
:total=
"total"
hide-on-single-page
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
style=
"margin-top: 20px;"
/>
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
style=
"margin-top: 20px;"
/>
</div>
</div>
<new-field
ref=
"newFieldRef"
@
initCommonConfig=
"initCommonConfig"
:kingdeeCommonConfigId=
"kingdeeCommonConfigId"
<new-field
ref=
"newFieldRef"
@
initCommonConfig=
"initCommonConfig"
:currentPage=
"currentPage"
:pageSize=
"pageSize"
/>
:currentPage=
"currentPage"
:pageSize=
"pageSize"
/>
<config-map
ref=
"configMapRef"
:kingdeeCommonConfigId=
"kingdeeCommonConfigId"
/>
<config-map
ref=
"configMapRef"
:kingdeeCommonConfigId=
"kingdeeCommonConfigId"
/>
</template>
</template>
...
...
src/views/manage/platformProducts.vue
浏览文件 @
9b961483
...
@@ -110,7 +110,6 @@ const selectBeforeProducts = () => {
...
@@ -110,7 +110,6 @@ const selectBeforeProducts = () => {
// 选择场景
// 选择场景
const
selectScene
=
(
id
:
string
)
=>
{
const
selectScene
=
(
id
:
string
)
=>
{
console
.
log
(
'选择场景'
,
id
);
sessionStorage
.
setItem
(
'platformProductRelationId'
,
id
)
sessionStorage
.
setItem
(
'platformProductRelationId'
,
id
)
router
.
push
({
path
:
'/manage/fieldConfiguration'
});
//调用router.push()
router
.
push
({
path
:
'/manage/fieldConfiguration'
});
//调用router.push()
}
}
...
@@ -150,8 +149,8 @@ const onConfirm = () => {
...
@@ -150,8 +149,8 @@ const onConfirm = () => {
productAfterCode
:
productAfterCode
.
value
,
productAfterCode
:
productAfterCode
.
value
,
productBeforeCode
:
productBeforeCode
.
value
productBeforeCode
:
productBeforeCode
.
value
}
}
local
Storage
.
setItem
(
'productAfterCode'
,
productAfterCode
.
value
)
// session
Storage.setItem('productAfterCode', productAfterCode.value)
local
Storage
.
setItem
(
'productBeforeCode'
,
productBeforeCode
.
value
)
// session
Storage.setItem('productBeforeCode', productBeforeCode.value)
createPlatformProduct
(
data
).
then
((
res
:
any
)
=>
{
createPlatformProduct
(
data
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
init
()
init
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论