Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
bf2f1af3
Commit
bf2f1af3
authored
Nov 22, 2021
by
叶富雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置页面
parent
f700d769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
269 additions
and
0 deletions
+269
-0
src/views/dswtz/dnaxx/addDnaxx.vue
+137
-0
src/views/dswtz/hmxx/addHmxx.vue
+132
-0
No files found.
src/views/dswtz/dnaxx/addDnaxx.vue
View file @
bf2f1af3
<
template
>
<div>
<form-compontent
:formField=
"propFormField"
:formLabelAligns=
"formLabelAlign"
@
submit=
"submit"
:propTitle=
"title"
@
handleRemove=
"handleRemove"
pageBs=
"addsqfbzl"
ref=
"formCompontent"
>
</form-compontent>
</div>
</
template
>
<
script
>
import
formCompontent
from
"@c/form.vue"
;
import
{
updateRyxx
}
from
"@/api/dswtzxx.js"
;
import
{
insertDna
,
selectDnaList
}
from
"@/api/dswtz/dnaxx.js"
;
export
default
{
name
:
"addryxx"
,
components
:
{
formCompontent
,
},
data
()
{
return
{
title
:
"新增人员信息"
,
propFormField
:
[
{
title
:
""
,
id
:
1
,
objStr
:
""
,
index
:
0
,
data
:
[
{
name
:
"姓名:"
,
id
:
"xm"
,
type
:
"text"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
name
:
"公民身份号码:"
,
id
:
"gmsfhm"
,
type
:
"dates"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
name
:
"DNA编号:"
,
id
:
"rydnabh"
,
type
:
"dates"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
name
:
"样本类型:"
,
id
:
"yblxdm"
,
type
:
"codeTree"
,
codeTree
:
"CODE_YTHCJ_DNAYBLX"
,
codeOptions
:
[],
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
],
},
],
formLabelAlign
:
{},
type
:
""
,
xxzjbh
:
""
,
result
:
""
,
removeFileXxzjbh
:
[],
};
},
methods
:
{
submit
(
params
)
{
params
.
append
(
'rybh'
,
this
.
rybh
)
insertDna
(
params
)
},
handleRemove
(
val
)
{
console
.
log
(
val
);
this
.
removeFileXxzjbh
.
push
(
val
.
xxzjbh
);
},
getshuju
()
{
let
loading
=
this
.
$loading
({
lock
:
true
,
text
:
"正在加载..."
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
var
self
=
this
;
let
params
=
new
FormData
();
params
.
append
(
"rybh"
,
this
.
rybh
);
selectDnaList
(
params
).
then
((
res
)
=>
{
var
result
=
res
.
data
.
rows
;
this
.
result
=
result
;
self
.
propFormField
.
forEach
((
fieldItem
)
=>
{
if
(
fieldItem
.
data
&&
fieldItem
.
data
.
length
>
0
)
{
fieldItem
.
data
.
forEach
((
i
)
=>
{
this
.
$set
(
this
.
formLabelAlign
,
i
.
id
,
result
[
i
.
id
]);
});
}
this
.
$forceUpdate
();
});
self
.
$set
(
self
.
formLabelAlign
,
"editing"
,
true
);
self
.
$forceUpdate
();
setTimeout
(()
=>
{
loading
.
close
();
},
500
);
});
},
},
created
()
{
if
(
this
.
$route
.
query
.
rybh
)
{
this
.
title
=
"DNA信息管理"
;
this
.
rybh
=
this
.
$route
.
query
.
rybh
;
this
.
getshuju
();
}
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/dswtz/hmxx/addHmxx.vue
View file @
bf2f1af3
<
template
>
<div>
<form-compontent
:formField=
"propFormField"
:formLabelAligns=
"formLabelAlign"
@
submit=
"submit"
:propTitle=
"title"
@
handleRemove=
"handleRemove"
pageBs=
"addsqfbzl"
ref=
"formCompontent"
>
</form-compontent>
</div>
</
template
>
<
script
>
import
formCompontent
from
"@c/form.vue"
;
import
{
updateHm
}
from
"@/api/dswtz/hmxx.js"
;
import
{
selectDnaList
}
from
"@/api/dswtz/dnaxx.js"
;
export
default
{
name
:
"addryxx"
,
components
:
{
formCompontent
,
},
data
()
{
return
{
title
:
"新增虹膜信息"
,
propFormField
:
[
{
title
:
""
,
id
:
1
,
objStr
:
""
,
index
:
0
,
data
:
[
{
name
:
"姓名:"
,
id
:
"xm"
,
type
:
"text"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
name
:
"公民身份号码:"
,
id
:
"gmsfhm"
,
type
:
"text"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
name
:
"左虹膜:"
,
id
:
"hmsjLeft"
,
type
:
"file"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"22"
,
},
{
name
:
"右虹膜:"
,
id
:
"hmsjRight"
,
type
:
"file"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"22"
,
},
],
},
],
formLabelAlign
:
{},
type
:
""
,
xxzjbh
:
""
,
result
:
""
,
removeFileXxzjbh
:
[],
};
},
methods
:
{
submit
(
params
)
{
params
.
append
(
'rybh'
,
this
.
rybh
)
updateHm
(
params
)
},
handleRemove
(
val
)
{
console
.
log
(
val
);
this
.
removeFileXxzjbh
.
push
(
val
.
xxzjbh
);
},
getshuju
()
{
let
loading
=
this
.
$loading
({
lock
:
true
,
text
:
"正在加载..."
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
var
self
=
this
;
let
params
=
new
FormData
();
params
.
append
(
"rybh"
,
this
.
rybh
);
selectDnaList
(
params
).
then
((
res
)
=>
{
var
result
=
res
.
data
.
rows
;
this
.
result
=
result
;
self
.
propFormField
.
forEach
((
fieldItem
)
=>
{
if
(
fieldItem
.
data
&&
fieldItem
.
data
.
length
>
0
)
{
fieldItem
.
data
.
forEach
((
i
)
=>
{
this
.
$set
(
this
.
formLabelAlign
,
i
.
id
,
result
[
i
.
id
]);
});
}
this
.
$forceUpdate
();
});
self
.
$set
(
self
.
formLabelAlign
,
"editing"
,
true
);
self
.
$forceUpdate
();
setTimeout
(()
=>
{
loading
.
close
();
},
500
);
});
},
},
created
()
{
if
(
this
.
$route
.
query
.
rybh
)
{
this
.
title
=
"虹膜信息管理"
;
this
.
rybh
=
this
.
$route
.
query
.
rybh
;
this
.
getshuju
();
}
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
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