Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
154d1b72
Commit
154d1b72
authored
Dec 13, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shell开发-调整页面样式,完善功能逻辑
parent
cff04b7d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
164 additions
and
164 deletions
+164
-164
VersionCompare.vue
...elopment/shellDevelopment/shellExecute/VersionCompare.vue
+143
-144
submitModal.vue
...hellDevelopment/shellExecute/handleSubmit/submitModal.vue
+6
-14
tempalte.data.ts
...ellDevelopment/shellExecute/handleSubmit/tempalte.data.ts
+3
-3
shellExecute.vue
...evelopment/shellDevelopment/shellExecute/shellExecute.vue
+8
-2
versionManagementModal.vue
.../shellDevelopment/shellExecute/versionManagementModal.vue
+4
-1
No files found.
src/views/scriptDevelopment/shellDevelopment/shellExecute/VersionCompare.vue
View file @
154d1b72
This diff is collapsed.
Click to expand it.
src/views/scriptDevelopment/shellDevelopment/shellExecute/handleSubmit/submitModal.vue
View file @
154d1b72
...
...
@@ -47,16 +47,6 @@
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
isMove
.
value
=
!!
data
?.
isMove
;
if
(
unref
(
isUpdate
))
{
// 获取行数据的id
rowId
.
value
=
data
.
record
.
businessId
;
// 塞值
setFieldsValue
({
...
data
.
record
,
});
}
});
// onMounted(){}
...
...
@@ -66,11 +56,13 @@
/**确定按钮*/
async
function
handleSubmit
()
{
if
(
textareaValue
.
value
.
trim
()
==
''
)
{
closeModal
();
try
{
setModalProps
({
confirmLoading
:
true
});
await
validate
();
emit
(
'success'
,
textareaValue
.
value
);
}
else
{
createMessage
.
error
(
'请填写内容'
);
closeModal
();
}
finally
{
setModalProps
({
confirmLoading
:
false
});
}
}
</
script
>
src/views/scriptDevelopment/shellDevelopment/shellExecute/handleSubmit/tempalte.data.ts
View file @
154d1b72
...
...
@@ -212,14 +212,14 @@ export const formSchemaTemplate: any = [
},
},
];
export
const
importFormSchema
:
any
[]
=
[
export
const
importFormSchema
:
FormSchema
[]
=
[
{
field
:
'importVersionAlert'
,
label
:
'版本描述'
,
slot
:
'fileMethods'
,
component
:
'InputTextarea'
,
component
:
'InputTextArea'
,
colProps
:
{
lg
:
24
,
md
:
24
},
componentProps
:
{
rows
:
8
,
placeholder
:
'最多255个字符'
,
},
required
:
true
,
...
...
src/views/scriptDevelopment/shellDevelopment/shellExecute/shellExecute.vue
View file @
154d1b72
...
...
@@ -54,7 +54,7 @@
</div>
<OptionsModal
@
register=
"registerModal"
/>
<PreviewModal
@
register=
"registerPreviewModal"
/>
<SubmitModal
@
register=
"registerSubmitModal"
/>
<SubmitModal
@
register=
"registerSubmitModal"
@
success=
"handleSuccess"
/>
<VersionManagementModal
@
register=
"registerVersionManagementModal"
/>
</PageWrapper>
</template>
...
...
@@ -127,6 +127,9 @@
function
handleChange
()
{
createMessage
.
success
(
'格式化成功'
);
}
function
handleSuccess
()
{
createMessage
.
success
(
'提交成功'
);
}
//保存按钮
function
handleSave
()
{
createMessage
.
success
(
'保存成功'
);
...
...
@@ -152,7 +155,10 @@
function
goBack
()
{
// // 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页
// go('/scriptDevelopment/shellDevelopment/index');
router
.
back
();
// router.go(-1);
router
.
push
({
path
:
'/scriptDevelopment/shellDevelopment/index'
,
});
}
//同步滚动
const
handleScroll
=
()
=>
{
...
...
src/views/scriptDevelopment/shellDevelopment/shellExecute/versionManagementModal.vue
View file @
154d1b72
...
...
@@ -31,7 +31,7 @@
icon: 'ant-design:rollback-outlined',
tooltip: '回退版本',
popConfirm: {
title: '是否确认回退版本',
title: '是否确认回退
至该
版本',
confirm: handleVersionRollback,
},
},
...
...
@@ -85,6 +85,9 @@
console
.
log
(
'版本对比'
);
router
.
push
({
path
:
'/scriptDevelopment/shellDevelopment/shellExecute/versionCompare'
,
query
:
{
id
:
id
.
value
,
},
});
}
function
handleVersionRollback
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment