Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
source-trace-manage
Commits
29a6cea6
Commit
29a6cea6
authored
Apr 13, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
messageBox
parent
7ceb4ee8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
8 deletions
+42
-8
App.vue
src/App.vue
+9
-8
api.ts
src/components/GlobalMount/api.ts
+14
-0
index.vue
src/components/GlobalMount/index.vue
+13
-0
state.ts
src/store/state.ts
+6
-0
No files found.
src/App.vue
View file @
29a6cea6
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
GO_URLS
}
from
'cqk-sy-ui'
;
import
{
GO_URLS
}
from
"cqk-sy-ui"
;
import
{
onMounted
}
from
'vue'
;
import
{
onMounted
}
from
"vue"
;
import
{
$ajax
}
from
'./service'
;
import
{
$ajax
}
from
"./service"
;
import
{
setUrlList
}
from
'./store/mutations'
;
import
{
setUrlList
}
from
"./store/mutations"
;
import
globalMount
from
"@/components/GlobalMount/index.vue"
;
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
const
res
=
await
$ajax
({
const
res
=
await
$ajax
({
type
:
"get"
,
type
:
"get"
,
url
:
GO_URLS
.
config
url
:
GO_URLS
.
config
,
});
});
if
(
res
)
{
if
(
res
)
{
setUrlList
(
res
.
data
.
frontend
)
setUrlList
(
res
.
data
.
frontend
)
;
}
}
})
});
</
script
>
</
script
>
<
template
>
<
template
>
<router-view></router-view>
<router-view></router-view>
<globalMount
/>
</
template
>
</
template
>
src/components/GlobalMount/api.ts
0 → 100644
View file @
29a6cea6
import
{
globalState
}
from
"@/store/state"
;
export
const
showTip
=
(
tip
:
string
,
handleConfirm
:
()
=>
void
,
handleCancel
?:
()
=>
void
)
=>
{
globalState
.
syMessageBoxConfig
=
{
visible
:
true
,
tip
,
handleConfirm
,
handleCancel
,
};
};
src/components/GlobalMount/index.vue
0 → 100644
View file @
29a6cea6
<
template
>
<syMessageBox
v-model:visible=
"state.visible"
:tip=
"state.tip"
:handle-confirm=
"state.handleConfirm"
:handle-cancel=
"state.handleCancel"
></syMessageBox>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
globalState
}
from
"@/store/state"
;
import
{
syMessageBox
}
from
"cqk-sy-ui"
;
const
state
=
globalState
.
syMessageBoxConfig
;
</
script
>
src/store/state.ts
View file @
29a6cea6
...
@@ -9,6 +9,12 @@ export const globalState = reactive({
...
@@ -9,6 +9,12 @@ export const globalState = reactive({
base_id
:
0
,
base_id
:
0
,
base_hash
:
""
,
base_hash
:
""
,
},
},
syMessageBoxConfig
:
{
visible
:
false
,
tip
:
""
,
handleConfirm
:
()
=>
{},
handleCancel
:
(()
=>
{})
as
(()
=>
void
)
|
undefined
,
},
listOfInformation
:
[]
as
any
[],
listOfInformation
:
[]
as
any
[],
page
:
1
,
page
:
1
,
existingEvidenceList
:
[]
as
any
[],
existingEvidenceList
:
[]
as
any
[],
...
...
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