Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jisu_gongdan_phone
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
zhanglongbao
jisu_gongdan_phone
Commits
f513f085
Commit
f513f085
authored
Sep 13, 2024
by
zhanglongbao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e801990f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
10 deletions
+35
-10
.gitignore
.gitignore
+3
-0
index.vue
src/components/name/index.vue
+4
-2
index.vue
src/view/work_order/index.vue
+28
-8
No files found.
.gitignore
View file @
f513f085
...
...
@@ -11,6 +11,9 @@ node_modules
dist
dist-ssr
*.local
tsconfig.node.tsbuildinfo
vite.config.d.ts
vite.config.js
# Editor directories and files
.vscode/*
...
...
src/components/name/index.vue
View file @
f513f085
...
...
@@ -7,10 +7,12 @@ import { computed } from "vue";
import
DdComp
from
"./dd.vue"
;
interface
Props
{
name
:
string
;
name
?
:
string
;
length
?:
number
;
}
const
props
=
defineProps
<
Props
>
();
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
name
:
"--"
,
});
const
renderCom
=
computed
(()
=>
DdComp
);
...
...
src/view/work_order/index.vue
View file @
f513f085
...
...
@@ -49,24 +49,43 @@
<div
class=
"item"
>
<span
class=
"label"
>
工单编号
</span>
<span
class=
"value"
style=
"color: var(--blue)"
>
<span
style=
"color: var(--blue)"
>
{{
it
.
order_number
||
"--"
}}
</span>
</div>
<div
class=
"item"
>
<div
class=
"item"
v-if=
"it?.customer_id?.link_user_name"
>
<span
class=
"label"
>
客户名称
</span>
<span
class=
"value"
>
{{
it
?.
customer_id
?.
link_user_name
||
"--"
}}
<span>
<nameComp
:name=
"it?.customer_id?.link_user_name"
/>
</span>
</div>
<div
class=
"item"
>
<div
class=
"item"
v-if=
"it.priority"
>
<span
class=
"label"
>
优先级
</span>
<span
class=
"value"
:style=
"
{ color: getPriority(it.priority)?.color }">
<span
:style=
"
{ color: getPriority(it.priority)?.color }">
{{
getPriority
(
it
.
priority
)?.
label
}}
</span>
</div>
<div
class=
"item"
v-if=
"it?.fuze_user?.nickname"
>
<span
class=
"label"
>
负责人
</span>
<span>
<nameComp
:name=
"it?.fuze_user?.nickname"
/>
</span>
</div>
<div
class=
"item"
v-if=
"it?.xietong_user?.users?.length"
>
<span
class=
"label"
>
协同人
</span>
<div>
<template
v-if=
"it?.xietong_user?.users"
v-for=
"(user, index) in it.xietong_user.users ||
[]"
>
<nameComp
:name=
"user.nickname"
/>
<template
v-if=
"index + 1 != it.xietong_user.users.length"
>
、
</
template
>
</template>
</div>
</div>
<div
class=
"controls"
>
<
template
v-if=
"[1, 2].includes(+it.approve_status)"
>
...
...
@@ -335,6 +354,7 @@ init();
.label {
width: 80px;
flex-shrink: 0;
}
}
...
...
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