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
f79ba104
Commit
f79ba104
authored
Jun 14, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5405e261
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
16 deletions
+30
-16
package-lock.json
package-lock.json
+3
-3
package.json
package.json
+1
-1
hooks.ts
src/components/Table/hooks.ts
+1
-1
index.vue
...tion/CollectionManagement/components/AlbumTable/index.vue
+2
-2
index.vue
...on/CollectionManagement/components/PictureTable/index.vue
+1
-1
PassListTable.vue
src/views/Collection/PassList/PassListTable.vue
+1
-1
index.vue
src/views/Collection/PassMaker/DialogOfSelectAlbum/index.vue
+17
-3
TransferRecordList.vue
src/views/Collection/TransferRecord/TransferRecordList.vue
+1
-1
index.vue
...TransferRecords/components/TransferRecordsTable/index.vue
+1
-1
PassListTable.vue
src/views/pass/PassList/PassListTable.vue
+1
-1
TransferRecordList.vue
src/views/pass/TransferRecord/TransferRecordList.vue
+1
-1
No files found.
package-lock.json
View file @
f79ba104
...
...
@@ -827,9 +827,9 @@
}
},
"cqk-sy-ui"
:
{
"version"
:
"1.2.3
3
"
,
"resolved"
:
"https://registry.npmjs.org/cqk-sy-ui/-/cqk-sy-ui-1.2.3
3
.tgz"
,
"integrity"
:
"sha512-
E5DfevhB4BRf8/Ths7UOm1yxYDZGsVT+H/qMwLao0w2QnKTpogYCy2OHH42NP2ZnDZ81U2cZQHQ8s4XOlQBSZQ
=="
,
"version"
:
"1.2.3
4
"
,
"resolved"
:
"https://registry.npmjs.org/cqk-sy-ui/-/cqk-sy-ui-1.2.3
4
.tgz"
,
"integrity"
:
"sha512-
sml3m2NSYHMUbm/xUoDaJZsbwhmTe/brXJGq+5PW7SSZVN8zyYg9dZUauYEoG7u9Kjf3aIWPbDg53y5RH5/6YA
=="
,
"requires"
:
{
"axios"
:
"^0.26.1"
,
"crypto-js"
:
"^4.1.1"
,
...
...
package.json
View file @
f79ba104
...
...
@@ -10,7 +10,7 @@
"dependencies"
:
{
"
axios
"
:
"^0.26.1"
,
"
comlink
"
:
"^4.3.1"
,
"
cqk-sy-ui
"
:
"^1.2.3
3
"
,
"
cqk-sy-ui
"
:
"^1.2.3
4
"
,
"
crypto-js
"
:
"^4.1.1"
,
"
element-plus
"
:
"^2.1.9"
,
"
js-md5
"
:
"^0.7.3"
,
...
...
src/components/Table/hooks.ts
View file @
f79ba104
...
...
@@ -40,7 +40,7 @@ export function useTableData({
tableState
.
page
=
1
;
}
tableState
.
loading
=
true
;
fetchData
({
return
fetchData
({
page
:
tableState
.
page
,
page_size
:
tableState
.
page_size
,
}).
then
((
ret
)
=>
{
...
...
src/views/Collection/CollectionManagement/components/AlbumTable/index.vue
View file @
f79ba104
...
...
@@ -24,7 +24,7 @@
<span
v-if=
"props.pass_status === 3"
@
click=
"__reIssue(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
></span>
</div>
...
...
@@ -52,7 +52,7 @@
<span
v-if=
"props.transfer_status === 3"
@
click=
"__reTransfer(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
>
</span>
...
...
src/views/Collection/CollectionManagement/components/PictureTable/index.vue
View file @
f79ba104
...
...
@@ -26,7 +26,7 @@
<span
v-if=
"props.status === 3"
@
click=
"reIssue(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
></span>
</div>
...
...
src/views/Collection/PassList/PassListTable.vue
View file @
f79ba104
...
...
@@ -46,7 +46,7 @@
<span
v-if=
"props.status === 3"
@
click=
"reIssue(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
></span>
</div>
...
...
src/views/Collection/PassMaker/DialogOfSelectAlbum/index.vue
View file @
f79ba104
...
...
@@ -54,7 +54,10 @@
}
"
>
</AlbumList>
<div
v-if=
"tableData.length === 0"
class=
"text-center"
>
<div
v-if=
"tableData.length === 0 && debouncedSearchInput === ''"
class=
"text-center"
>
<div
class=
"tip"
style=
"margin-top: 125px"
>
您还未创建专辑,先去创建吧~
</div>
...
...
@@ -67,6 +70,14 @@
>
去创建
</syButton
>
</div>
<div
v-if=
"tableData.length === 0 && debouncedSearchInput !== ''"
>
<Empty
v-show=
"!loading && tableData.length === 0"
class=
"absolute top-1/3 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
>
没有找到匹配结果,尝试其他关键词搜索
</Empty>
</div>
</syScrollBar>
</div>
</syCommonDialog>
...
...
@@ -81,6 +92,7 @@ import { useTableData } from "@/components/Table/hooks";
import
{
debounce
}
from
"lodash"
;
import
{
$ajax
}
from
"@/service"
;
import
{
URLS
}
from
"@/service/URL"
;
import
Empty
from
"@/components/Empty/index.vue"
;
defineProps
<
{
visible
:
boolean
;
...
...
@@ -89,6 +101,7 @@ const emit = defineEmits(["update:visible", "select"]);
const
elScrollBarRef
=
ref
<
InstanceType
<
typeof
AlbumList
>>
();
const
searchInput
=
ref
(
""
);
const
debouncedSearchInput
=
ref
(
""
);
const
{
tableData
,
fetchNextPage
,
refetch
,
loading
}
=
useTableData
({
async
fetchData
({
page
,
page_size
}:
{
page
:
number
;
page_size
:
number
})
{
...
...
@@ -109,8 +122,9 @@ const { tableData, fetchNextPage, refetch, loading } = useTableData({
},
});
const
debouncedSearch
=
debounce
((
newSearch
)
=>
{
refetch
();
const
debouncedSearch
=
debounce
(
async
(
newSearch
)
=>
{
await
refetch
();
debouncedSearchInput
.
value
=
newSearch
;
},
1000
);
watch
(
searchInput
,
(
newSearch
)
=>
{
...
...
src/views/Collection/TransferRecord/TransferRecordList.vue
View file @
f79ba104
...
...
@@ -43,7 +43,7 @@
<span
v-if=
"props.status === 3"
@
click=
"reIssue(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
></span>
</div>
...
...
src/views/Collection/TransferRecords/components/TransferRecordsTable/index.vue
View file @
f79ba104
...
...
@@ -46,7 +46,7 @@
<span
v-if=
"props.status === 3"
@
click=
"__reTransfer(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
></span>
</div>
...
...
src/views/pass/PassList/PassListTable.vue
View file @
f79ba104
...
...
@@ -46,7 +46,7 @@
<span
v-if=
"props.status === 3"
@
click=
"reIssue(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
></span>
</div>
...
...
src/views/pass/TransferRecord/TransferRecordList.vue
View file @
f79ba104
...
...
@@ -43,7 +43,7 @@
<span
v-if=
"props.status === 3"
@
click=
"reIssue(props)"
class=
"iconfont2 icon-re"
class=
"iconfont2 icon-re
cursor-pointer
"
style=
"color: rgb(103, 169, 255); margin-left: 3px"
></span>
</div>
...
...
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