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
09816a70
Commit
09816a70
authored
Jul 31, 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
ff9982ea
f0dae9d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
44 deletions
+57
-44
application.vue
src/views/equipment/application.vue
+18
-12
boundManagement.vue
src/views/equipment/boundManagement.vue
+5
-1
income.vue
src/views/equipment/income.vue
+33
-30
index.vue
src/views/sample/sampleType/index.vue
+1
-1
No files found.
src/views/equipment/application.vue
View file @
09816a70
...
@@ -117,18 +117,24 @@ export default {
...
@@ -117,18 +117,24 @@ export default {
},
},
// 提价时要调的接口
// 提价时要调的接口
submitForm
()
{
submitForm
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
this
.
$confirm
(
'是否确认提交?'
,
'提示'
,
{
if
(
valid
)
{
confirmButtonText
:
'确定'
,
addApplication
(
this
.
form
).
then
(
res
=>
{
cancelButtonText
:
'取消'
,
console
.
log
(
'res'
,
res
)
type
:
'warning'
if
(
res
.
code
===
200
)
{
}).
then
(
res
=>
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
this
.
resetFrom
()
if
(
valid
)
{
}
else
if
(
res
.
code
===
null
)
{
addApplication
(
this
.
form
).
then
(
res
=>
{
this
.
$message
.
success
(
res
.
message
)
console
.
log
(
'res'
,
res
)
}
if
(
res
.
code
===
200
)
{
})
this
.
$message
.
success
(
'操作成功'
)
}
this
.
resetFrom
()
}
else
if
(
res
.
code
===
null
)
{
this
.
$message
.
success
(
res
.
message
)
}
})
}
})
})
})
},
},
// 调数据字典查询
// 调数据字典查询
...
...
src/views/equipment/boundManagement.vue
View file @
09816a70
...
@@ -303,7 +303,11 @@ export default {
...
@@ -303,7 +303,11 @@ export default {
form
:
{
form
:
{
pn
:
''
,
pn
:
''
,
lot
:
''
,
lot
:
''
,
plocation
:
''
plocation
:
''
,
phd
:
''
,
psm
:
''
,
pzl
:
''
,
prank
:
''
},
},
defaultProps
:
{
defaultProps
:
{
children
:
'children'
,
children
:
'children'
,
...
...
src/views/equipment/income.vue
View file @
09816a70
...
@@ -54,7 +54,6 @@
...
@@ -54,7 +54,6 @@
<
script
>
<
script
>
import
{
add
,
updatadevice
}
from
'@/api/magnagement'
import
{
add
,
updatadevice
}
from
'@/api/magnagement'
export
default
{
export
default
{
name
:
'Role'
,
name
:
'Role'
,
data
()
{
data
()
{
...
@@ -105,36 +104,40 @@ export default {
...
@@ -105,36 +104,40 @@ export default {
},
},
// 提交时要调的接口
// 提交时要调的接口
submitForm
()
{
submitForm
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
if
(
valid
)
{
confirmButtonText
:
'确定'
,
console
.
log
(
'form'
,
this
.
form
)
cancelButtonText
:
'取消'
,
// 校验通过,提交表单或进行其他操作
type
:
'warning'
if
(
this
.
form
.
businessId
!==
undefined
)
{
}).
then
(()
=>
{
updatadevice
(
this
.
form
).
then
(
res
=>
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
valid
)
{
this
.
open
=
false
console
.
log
(
'form'
,
this
.
form
)
this
.
$message
.
success
(
'操作成功'
)
// 校验通过,提交表单或进行其他操作
this
.
getList
()
if
(
this
.
form
.
businessId
!==
undefined
)
{
this
.
reFrom
()
updatadevice
(
this
.
form
).
then
(
res
=>
{
}
else
if
(
res
.
code
===
null
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
error
(
res
.
message
)
this
.
open
=
false
}
this
.
$message
.
success
(
'操作成功'
)
})
this
.
resetFrom
()
}
else
if
(
res
.
code
===
null
)
{
this
.
$message
.
error
(
res
.
message
)
}
})
}
else
{
add
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
open
=
false
this
.
$message
.
success
(
'操作成功'
)
this
.
resetFrom
()
}
else
if
(
res
.
code
===
null
)
{
this
.
$message
.
error
(
res
.
message
)
}
})
}
}
else
{
}
else
{
add
(
this
.
form
).
then
(
res
=>
{
// 校验失败,显示错误信息或进行其他操作
if
(
res
.
code
===
200
)
{
this
.
open
=
false
this
.
$message
.
success
(
'操作成功'
)
this
.
getList
()
this
.
reFrom
()
}
else
if
(
res
.
code
===
null
)
{
this
.
$message
.
error
(
res
.
message
)
}
})
}
}
}
else
{
})
// 校验失败,显示错误信息或进行其他操作
}
})
})
},
},
// 调数据字典查询
// 调数据字典查询
...
@@ -161,7 +164,7 @@ export default {
...
@@ -161,7 +164,7 @@ export default {
}
}
.button
{
.button
{
margin-top
:
7%
;
margin-top
:
7%
;
margin-left
:
48
%
;
margin-left
:
11
%
;
}
}
}
}
...
...
src/views/sample/sampleType/index.vue
View file @
09816a70
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"操作时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createDate
||
'-'
}}
{{
parseTime
(
scope
.
row
.
createDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
||
'-'
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
>
<
el
-
table
-
column
label
=
"操作"
>
...
...
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