Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
胡宝山
template_vue
Commits
2aaf90aa
Commit
2aaf90aa
authored
Jul 29, 2023
by
kzy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'project1' of
http://gitlab.91isoft.com:90/yangshuo/template_vue
into project1
parents
0d7c920f
0368f80a
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
116 additions
and
136 deletions
+116
-136
BaseTableArguments.js
src/components/Table/AllTableArguments/BaseTableArguments.js
+0
-2
index.vue
src/components/Table/BaseTable/index.vue
+9
-16
basicInfo.vue
src/views/equipment/basicInfo.vue
+2
-2
draw.vue
src/views/equipment/draw.vue
+7
-17
index.vue
src/views/processManagement/basicProcessManagement/index.vue
+1
-0
draw.vue
src/views/processManagement/draw.vue
+3
-13
index.vue
src/views/processManagement/inventoryRecord/index.vue
+92
-80
index.vue
src/views/sample/basicInformation/index.vue
+2
-6
No files found.
src/components/Table/AllTableArguments/BaseTableArguments.js
View file @
2aaf90aa
...
...
@@ -107,8 +107,6 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList,
if
(
queryParams
instanceof
queryParamsType
)
{
this
.
queryParams
=
queryParamsType
}
this
.
nIndex
=
nIndex
this
.
columnData
=
columnData
this
.
processList
=
processList
}
src/components/Table/BaseTable/index.vue
View file @
2aaf90aa
...
...
@@ -12,7 +12,7 @@
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
:index=
"
allTableArguments.
nIndex"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
:index=
"nIndex"
/>
<!-- TODO: 选择框是否开启,selectable控制是否单行禁用 -->
<el-table-column
v-if=
"allTableArguments.columObj.selection"
type=
"selection"
:selectable=
"allTableArguments.columObj.selectable"
width=
"50px"
/>
...
...
@@ -30,7 +30,7 @@
:index=
"columIndex"
show-overflow-tooltip
>
<template
v-slot
=
"
{row,$index}">
<template
slot-scope
=
"
{row,$index}">
<!-- 默认展示 -->
<span
v-if=
"column.text && column.editRow !== $index"
>
{{
row
[
column
.
prop
]
||
'-'
}}
</span>
...
...
@@ -60,9 +60,9 @@
<!-- 操作按钮 -->
<span
v-if=
"column.isOperation"
class=
"processListBtns"
>
<span
v-for=
"(operations, index) in column.operation"
:key=
"index"
>
<el-button
v-if=
" operations.clickType === '1' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDetail">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '2' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleUpdate">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '3' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDelete">
{{
operations
.
label
}}
</el-button>
<el-button
v-if=
" operations.clickType === '1' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDetail
(row,$index)
">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '2' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleUpdate
(row,$index)
">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '3' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDelete
(row,$index)
">
{{
operations
.
label
}}
</el-button>
</span>
</span>
</
template
>
...
...
@@ -76,7 +76,7 @@
<
script
>
import
{
BaseTableArgumentsTest
}
from
'@/components/Table/AllTableArguments/BaseTableArguments'
import
{
BaseTableArgumentsTest
}
from
'@/components/Table/AllTableArguments/BaseTableArguments'
export
default
{
name
:
'BaseTable'
,
...
...
@@ -93,16 +93,10 @@ export default {
}
}
},
allNamed
:
{
type
:
Object
,
nIndex
:
{
type
:
Function
,
default
:
()
=>
{
return
{
listName
:
String
,
label
:
{
SerialNumberNamed
:
String
}
}
return
Function
}
}
},
...
...
@@ -131,7 +125,6 @@ export default {
/* TODO: 这里是控制内容列表的样式 */
.processListBtns
{
.el-button
{
margin
:
0
12px
;
}
}
...
...
src/views/equipment/basicInfo.vue
View file @
2aaf90aa
...
...
@@ -86,9 +86,9 @@
{{
scope
.
row
.
prank
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作员"
prop=
"create
By
"
>
<el-table-column
label=
"操作员"
prop=
"create
Name
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
create
By
||
'-'
}}
{{
scope
.
row
.
create
Name
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
...
...
src/views/equipment/draw.vue
View file @
2aaf90aa
...
...
@@ -12,9 +12,9 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"phd"
prop=
"phd"
>
<el-form-item
label=
"phd"
prop=
"phd
Str
"
>
<el-input
v-model=
"queryParams.phd"
v-model=
"queryParams.phd
Str
"
placeholder=
"请输入phd"
clearable
size=
"small"
...
...
@@ -22,9 +22,9 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"prank"
prop=
"prank"
>
<el-form-item
label=
"prank"
prop=
"prank
Str
"
>
<el-input
v-model=
"queryParams.prank"
v-model=
"queryParams.prank
Str
"
placeholder=
"请输入prank"
clearable
size=
"small"
...
...
@@ -67,25 +67,15 @@
{{
scope
.
row
.
pissb
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"pstatus"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pstatus
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"ptype"
prop=
"ptype"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ptype
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pstatus === '0'"
style=
"color: red"
>
未完成
</span>
<span
v-else
style=
"color: green"
>
已完成
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作员"
prop=
"create
By
"
>
<el-table-column
label=
"操作员"
prop=
"create
Name
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
create
By
||
'-'
}}
{{
scope
.
row
.
create
Name
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
...
...
@@ -100,7 +90,7 @@
type=
"text"
style=
"color: #49cec9"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
>
处理
</el-button>
<el-button
size=
"mini"
type=
"text"
...
...
src/views/processManagement/basicProcessManagement/index.vue
View file @
2aaf90aa
...
...
@@ -698,6 +698,7 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
/* TODO: 专门用来解决input 的边框问题 */
.aboutSingleDetails
{
.el-form-item
{
.el-input
>>>
.el-input__inner
{
...
...
src/views/processManagement/draw.vue
View file @
2aaf90aa
...
...
@@ -67,25 +67,15 @@
{{
scope
.
row
.
pissb
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"pstatus"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pstatus
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"ptype"
prop=
"ptype"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ptype
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pstatus === '0'"
style=
"color: red"
>
未完成
</span>
<span
v-else
style=
"color: green"
>
已完成
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作员"
prop=
"create
By
"
>
<el-table-column
label=
"操作员"
prop=
"create
Name
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
create
By
||
'-'
}}
{{
scope
.
row
.
create
Name
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
...
...
@@ -100,7 +90,7 @@
type=
"text"
style=
"color: #49cec9"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
>
处理
</el-button>
<el-button
size=
"mini"
type=
"text"
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
2aaf90aa
This diff is collapsed.
Click to expand it.
src/views/sample/basicInformation/index.vue
View file @
2aaf90aa
...
...
@@ -89,7 +89,7 @@
</el-table-column>
<el-table-column
label=
"操作日期"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
parseTime
(
scope
.
row
.
createDate
,
'{y
}
/{m
}
/{d
}
'
)
||
'-'
}}
{{
parseTime
(
scope
.
row
.
createDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
||
'-'
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
>
...
...
@@ -226,7 +226,6 @@ export default {
}
)
}
else
{
add
(
this
.
form
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
if
(
res
.
code
===
200
)
{
this
.
open
=
false
this
.
$message
.
success
(
'操作成功'
)
...
...
@@ -239,7 +238,6 @@ export default {
}
}
else
{
// 校验失败,显示错误信息或进行其他操作
console
.
log
(
'22222'
)
}
}
)
}
,
...
...
@@ -248,7 +246,6 @@ export default {
this
.
reFrom
()
}
,
handleDelete
(
row
)
{
console
.
log
(
'row'
,
row
)
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -266,10 +263,9 @@ export default {
}
,
// 编辑
handleUpdate
(
row
)
{
console
.
log
(
'row'
,
row
)
this
.
title
=
'编辑基础信息表单'
const
id
=
row
.
businessId
getDetailById
(
id
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
form
=
res
.
data
this
.
open
=
true
}
)
...
...
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