Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue_django_test
Overview
Overview
Details
Activity
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
周田
vue_django_test
Commits
3bd79555
Commit
3bd79555
authored
Sep 14, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod
parent
e2e17022
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
21 deletions
+34
-21
CollapseTable.vue
frontend/src/components/protocol/CollapseTable.vue
+21
-21
.yarn-integrity
node_modules/.yarn-integrity
+13
-0
xdc.sqlite
xdc.sqlite
+0
-0
No files found.
frontend/src/components/protocol/CollapseTable.vue
View file @
3bd79555
...
@@ -285,27 +285,27 @@ const downloadFile = () => {
...
@@ -285,27 +285,27 @@ const downloadFile = () => {
};
};
// 删除协议的某个版本
// 删除协议的某个版本
const
deleteProtocol
=
()
=>
{
//
const deleteProtocol = () => {
console
.
log
(
currentVersion
.
value
,
props
.
name
);
//
console.log(currentVersion.value, props.name);
axios
.
post
(
'/api/protocol_vesrion_manage/delete_protocol_vesrion/'
,
//
axios.post('/api/protocol_vesrion_manage/delete_protocol_vesrion/',
{
//
{
version
:
currentVersion
.
value
,
//
version: currentVersion.value,
protocol_name
:
props
.
name
,
//
protocol_name: props.name,
})
//
})
.
then
(()
=>
{
//
.then(() => {
ElMessage
({
//
ElMessage({
type
:
'success'
,
//
type: 'success',
message
:
'删除成功'
,
//
message: '删除成功',
})
//
})
options
.
value
=
options
.
value
.
filter
((
item
)
=>
item
.
value
!==
currentVersion
.
value
)
//
options.value = options.value.filter((item) => item.value !== currentVersion.value)
currentVersion
.
value
=
options
.
value
[
0
].
value
//
currentVersion.value = options.value[0].value
changeProtocolVersion
()
//
changeProtocolVersion()
})
//
})
.
catch
((
err
)
=>
{
//
.catch((err) => {
console
.
log
(
err
);
//
console.log(err);
ElMessage
.
error
(
'删除失败'
)
//
ElMessage.error('删除失败')
})
//
})
}
//
}
// 新增协议指令
// 新增协议指令
const
addCmdData
=
reactive
({
const
addCmdData
=
reactive
({
...
...
node_modules/.yarn-integrity
0 → 100644
View file @
3bd79555
{
"systemParams": "linux-x64-93",
"modulesFolders": [
"node_modules"
],
"flags": [],
"linkedModules": [],
"topLevelPatterns": [],
"lockfileEntries": {},
"files": [],
"artifacts": {}
}
\ No newline at end of file
xdc.sqlite
View file @
3bd79555
No preview for this file type
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