Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
whp-xl
Project
Project
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
lizhichao
whp-xl
Commits
6b40b073
Commit
6b40b073
authored
Jun 23, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑预案重置审核状态
parent
660fc07c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
16 deletions
+13
-16
PlansMg.vue
dcit-hcsystem-hcsystem-master/src/views/Plans/PlansMg.vue
+2
-2
PlansMgCheck.vue
...hcsystem-hcsystem-master/src/views/Plans/PlansMgCheck.vue
+6
-14
PlansMgEdit.vue
...-hcsystem-hcsystem-master/src/views/Plans/PlansMgEdit.vue
+5
-0
No files found.
dcit-hcsystem-hcsystem-master/src/views/Plans/PlansMg.vue
View file @
6b40b073
...
...
@@ -51,7 +51,7 @@
<el-table-column
prop=
"checkStatus"
label=
"审核状态"
>
<
template
slot-scope=
"scope"
>
<font
v-if=
"scope.row.isReported != 0"
>
——
--
</font>
<font
v-else-if=
"scope.row.checkStatus == 0 && scope.row.isReported == 0"
class=
"colorP"
>
<i
class=
"iconfont iconshenhe"
></i>
待审核
...
...
@@ -86,7 +86,7 @@
<!-- <el-table-column prop="createTime" label="创建时间"></el-table-column> -->
<el-table-column
label=
"操作"
width=
"220"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"editFun(scope.row)"
size=
"small"
v-if=
"
qyvisble
"
>
<el-button
@
click=
"editFun(scope.row)"
size=
"small"
v-if=
"
scope.row.checkStatus != 1
"
>
<i
class=
"el-icon-edit-outline"
></i>
编辑
</el-button>
<el-button
type=
"primary"
plain
@
click=
"editFun(scope.row)"
size=
"small"
v-if=
"!qyvisble"
>
...
...
dcit-hcsystem-hcsystem-master/src/views/Plans/PlansMgCheck.vue
View file @
6b40b073
...
...
@@ -23,10 +23,7 @@
<el-form-item
label=
"预案等级:"
>
<font>
{{
editForm
.
planLevel
+
'级'
}}
</font>
</el-form-item>
<el-form-item
label=
"是否上报:"
>
<font>
{{
editForm
.
isReported
==
0
?
'已上报'
:
'未上报'
}}
</font>
</el-form-item>
<el-form-item
label=
"预案源文件:"
>
<el-form-item
label=
"预案源文件"
>
<span
class=
"dbtn sd qiCr"
@
click=
"checkFile(editForm.sourceFile)"
...
...
@@ -38,10 +35,14 @@
</el-form-item>
<el-form-item
label=
"审核预案"
prop=
"checkStatus"
>
<el-radio-group
v-model=
"editForm.checkStatus"
>
<el-radio
label=
"0"
>
待审核
</el-radio>
<el-radio
label=
"1"
>
通过
</el-radio>
<el-radio
label=
"2"
>
未通过
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"审核意见"
>
<el-input
type=
"textarea"
v-model=
"editForm.remarks"
></el-input>
</el-form-item>
</el-form>
</div>
</el-col>
...
...
@@ -88,14 +89,10 @@ export default class PlansMgEdit extends Vue {
fileOriginalName
:
String
;
};
@
Provide
()
enterpriseId
:
String
=
""
;
@
Provide
()
editorA
:
any
;
@
Provide
()
qyvisble
:
boolean
=
true
;
@
Provide
()
rules
:
any
=
{
planLevel
:
[{
required
:
true
,
trigger
:
"blur"
,
message
:
"该项为必填项!"
}],
planTitle
:
[{
required
:
true
,
trigger
:
"blur"
,
message
:
"该项为必填项!"
}],
planType
:
[{
required
:
true
,
trigger
:
"blur"
,
message
:
"该项为必填项!"
}],
checkStatus
:
[{
required
:
true
,
trigger
:
"blur"
,
message
:
"该项为必填项!"
}],
// checkStatus: [{ required: true, trigger: "blur", message: "该项为必填项!" }],
};
@
Watch
(
"sourceFile"
)
change
(
val
:
any
)
{
if
(
val
.
length
>
0
)
{
...
...
@@ -115,13 +112,8 @@ export default class PlansMgEdit extends Vue {
//取消事件要在父级取消是所以用到 $emit
confirmFun
(
formName
:
string
)
{
let
that
=
this
;
that
.
editForm
.
planContents
=
that
.
editorA
.
getHTML
();
that
.
editForm
.
enterpriseId
=
that
.
enterpriseId
;
(
that
as
any
).
$refs
[
formName
].
validate
((
valid
:
boolean
)
=>
{
if
(
that
.
editorA
.
getText
()
==
false
&&
that
.
editForm
.
sourceFile
==
""
)
{
that
.
$message
.
error
(
"没有预案内容!"
);
return
;
}
if
(
valid
)
{
METHOD
.
axiosPost
(
that
,
...
...
dcit-hcsystem-hcsystem-master/src/views/Plans/PlansMgEdit.vue
View file @
6b40b073
...
...
@@ -53,6 +53,9 @@
<a
v-for=
"(i,ind) in fileList"
:key=
"ind"
:href=
"i.url"
target=
"_blank"
>
{{
i
.
name
}}
</a>
<i
class=
"btn el-icon-delete"
@
click=
"deleteList"
></i>
</div>
-->
</el-form-item>
<el-form-item
label=
"审核意见"
>
<font>
{{
editForm
.
remarks
}}
</font>
</el-form-item>
</el-form>
</div>
</el-col>
...
...
@@ -144,6 +147,7 @@ export default class PlansMgEdit extends Vue {
planLevel
:
String
;
planTitle
:
String
;
fileOriginalName
:
String
;
checkStatus
:
String
;
};
@
Provide
()
enterpriseId
:
String
=
""
;
@
Provide
()
editorA
:
any
;
...
...
@@ -174,6 +178,7 @@ export default class PlansMgEdit extends Vue {
let
that
=
this
;
that
.
editForm
.
planContents
=
that
.
editorA
.
getHTML
();
that
.
editForm
.
enterpriseId
=
that
.
enterpriseId
;
that
.
editForm
.
checkStatus
=
""
;
(
that
as
any
).
$refs
[
formName
].
validate
((
valid
:
boolean
)
=>
{
if
(
that
.
editorA
.
getText
()
==
false
&&
(
that
.
editForm
.
sourceFile
==
""
||
that
.
editForm
.
sourceFile
==
undefined
))
{
that
.
$message
.
error
(
"没有预案内容!"
);
...
...
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