Commit c4fd31f7 authored by 罗超's avatar 罗超

1

parent 41887c3e
<template> <template>
<div class="page-body document"> <div class="page-body document">
<q-tabs style="margin-bottom:20px;" v-model="tabCheck" @input="tabChange()" narrow-indicator dense align="left" <q-tabs
class="text-primary"> style="margin-bottom: 20px"
v-model="tabCheck"
@input="tabChange()"
narrow-indicator
dense
align="left"
class="text-primary"
>
<q-tab :ripple="false" name="first" label="待审批" /> <q-tab :ripple="false" name="first" label="待审批" />
<q-tab :ripple="false" name="second" label="我审批的" /> <q-tab :ripple="false" name="second" label="我审批的" />
</q-tabs> </q-tabs>
...@@ -9,16 +16,44 @@ ...@@ -9,16 +16,44 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input clearable @change="getList" standout="bg-primary text-white" v-model="msg.Title" label="公文标题" <q-input
@clear="getList" /> clearable
@change="getList"
standout="bg-primary text-white"
v-model="msg.Title"
label="公文标题"
@clear="getList"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input clearable @change="getList" standout="bg-primary text-white" v-model="msg.Number" label="编号" <q-input
@clear="getList" /> clearable
@change="getList"
standout="bg-primary text-white"
v-model="msg.Number"
label="编号"
@clear="getList"
/>
</div> </div>
<q-select @input="getList" filled stack-label option-value="Id" option-label="EmployeeName" use-input <q-select
v-model="msg.UpdateBy" ref="DeptTier" :options="PersionList" label="发布人" :dense="false" @input="getList"
class="col-3 q-pr-lg" emit-value map-options @filter="filterFn" clearable @clear="getList"> filled
stack-label
option-value="Id"
option-label="EmployeeName"
use-input
v-model="msg.UpdateBy"
ref="DeptTier"
:options="PersionList"
label="发布人"
:dense="false"
class="col-3 q-pr-lg"
emit-value
map-options
@filter="filterFn"
clearable
@clear="getList"
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
...@@ -30,38 +65,89 @@ ...@@ -30,38 +65,89 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table" <q-table
separator="none" title="" :data="data" :columns="columns" row-key="name"> :pagination="msg"
<template v-slot:top="props"> :loading="loading"
</template> no-data-label="暂无相关数据"
flat
class="sticky-tow-column-table"
separator="none"
title=""
:data="data"
:columns="columns"
row-key="name"
>
<template v-slot:top="props"> </template>
<template v-slot:body-cell-NoticeStateName="props"> <template v-slot:body-cell-NoticeStateName="props">
<q-td :props="props"> <q-td :props="props">
<div class="row" style="line-height: 30px"> <div class="row" style="line-height: 30px">
<img v-if="props.row.NoticeState==2" src="../../assets/images/dcaogao.png" class="NoticeStateNimg" /> <img
<img v-if="props.row.NoticeState==3" src="../../assets/images/dchehui.png" class="NoticeStateNimg" /> v-if="props.row.NoticeState == 2"
<img v-if="props.row.NoticeState==1" src="../../assets/images/dfabu.png" class="NoticeStateNimg" /> src="../../assets/images/dcaogao.png"
class="NoticeStateNimg"
/>
<img
v-if="props.row.NoticeState == 3"
src="../../assets/images/dchehui.png"
class="NoticeStateNimg"
/>
<img
v-if="props.row.NoticeState == 1"
src="../../assets/images/dfabu.png"
class="NoticeStateNimg"
/>
<span <span
:style="{color:props.row.NoticeState==1?'#02C499':(props.row.NoticeState==2?'#2961FE':'#F72E52')}">{{props.row.NoticeStateName}}</span> :style="{
color:
props.row.NoticeState == 1
? '#02C499'
: props.row.NoticeState == 2
? '#2961FE'
: '#F72E52',
}"
>{{ props.row.NoticeStateName }}</span
>
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-IsTop="props"> <template v-slot:body-cell-IsTop="props">
<q-td :props="props"> <q-td :props="props">
<span v-if="props.row.Is_Top==1"></span> <span v-if="props.row.Is_Top == 1"></span>
<span v-if="props.row.Is_Top==2"></span> <span v-if="props.row.Is_Top == 2"></span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="iconfont icon-xiangqing-" style="font-weight:400;color: #3FC4FF" <q-btn
class="q-mr-xs" label="详情" @click="EditConfig(props.row.Id)" /> flat
<q-btn flat size="xs" icon="iconfont icon-xiangqing-" style="font-weight:400;color: #3FC4FF" size="xs"
class="q-mr-xs" label="审批" @click="showApproval(props.row.Id)" v-if="shenpiId==loginId"/> icon="iconfont icon-xiangqing-"
style="font-weight: 400; color: #3fc4ff"
class="q-mr-xs"
label="详情"
@click="EditConfig(props.row.Id)"
/>
<q-btn
flat
size="xs"
icon="iconfont icon-xiangqing-"
style="font-weight: 400; color: #3fc4ff"
class="q-mr-xs"
label="审批"
@click="showApproval(props.row.Id)"
v-if="shenpiId == loginId"
/>
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.PageIndex" color="primary" :max="pageCount" <q-pagination
:input="true" @input="changePage" /> class="full-width justify-end"
v-model="msg.PageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
</template> </template>
</q-table> </q-table>
</div> </div>
...@@ -70,16 +156,44 @@ ...@@ -70,16 +156,44 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input clearable @change="getMyList" standout="bg-primary text-white" v-model="mymsg.Title" label="公文标题" <q-input
@clear="getMyList" /> clearable
@change="getMyList"
standout="bg-primary text-white"
v-model="mymsg.Title"
label="公文标题"
@clear="getMyList"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input clearable @change="getMyList" standout="bg-primary text-white" v-model="mymsg.Number" label="编号" <q-input
@clear="getMyList" /> clearable
@change="getMyList"
standout="bg-primary text-white"
v-model="mymsg.Number"
label="编号"
@clear="getMyList"
/>
</div> </div>
<q-select @input="getMyList" filled stack-label option-value="Id" option-label="EmployeeName" use-input <q-select
v-model="mymsg.UpdateBy" ref="DeptTier" :options="PersionList" label="发布人" :dense="false" @input="getMyList"
class="col-3 q-pr-lg" emit-value map-options @filter="filterFn" clearable @clear="getMyList"> filled
stack-label
option-value="Id"
option-label="EmployeeName"
use-input
v-model="mymsg.UpdateBy"
ref="DeptTier"
:options="PersionList"
label="发布人"
:dense="false"
class="col-3 q-pr-lg"
emit-value
map-options
@filter="filterFn"
clearable
@clear="getMyList"
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
...@@ -91,65 +205,120 @@ ...@@ -91,65 +205,120 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="mymsg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table" <q-table
separator="none" title="" :data="mydata" :columns="mycolumns" row-key="name"> :pagination="mymsg"
<template v-slot:top="props"> :loading="loading"
</template> no-data-label="暂无相关数据"
flat
class="sticky-tow-column-table"
separator="none"
title=""
:data="mydata"
:columns="mycolumns"
row-key="name"
>
<template v-slot:top="props"> </template>
<template v-slot:body-cell-IsTop="props"> <template v-slot:body-cell-IsTop="props">
<q-td :props="props"> <q-td :props="props">
<span v-if="props.row.Is_Top==1"></span> <span v-if="props.row.Is_Top == 1"></span>
<span v-if="props.row.Is_Top==2"></span> <span v-if="props.row.Is_Top == 2"></span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="iconfont icon-xiangqing-" style="font-weight:400;color: #3FC4FF" <q-btn
class="q-mr-xs" label="详情" @click="EditConfig(props.row.Id)" /> flat
size="xs"
icon="iconfont icon-xiangqing-"
style="font-weight: 400; color: #3fc4ff"
class="q-mr-xs"
label="详情"
@click="EditConfig(props.row.Id)"
/>
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="mymsg.PageIndex" color="primary" :max="mypageCount" <q-pagination
:input="true" @input="myChangePage" /> class="full-width justify-end"
v-model="mymsg.PageIndex"
color="primary"
:max="mypageCount"
:input="true"
@input="myChangePage"
/>
</template> </template>
</q-table> </q-table>
</div> </div>
</template> </template>
<q-dialog v-model="persistent2" maximized full-height seamless position="right"> <q-dialog
<q-card style="margin-top:21px;width:800px" class="no-border-radius classinfo_Dialog"> v-model="persistent2"
<q-img :src="NInfo.BgImage" v-if="NInfo.BgImage" spinner-color="white" style=" width: 100%;height: 76px" /> maximized
full-height
seamless
position="right"
>
<q-card
style="margin-top: 21px; width: 800px"
class="no-border-radius classinfo_Dialog"
>
<q-img
:src="NInfo.BgImage"
v-if="NInfo.BgImage"
spinner-color="white"
style="width: 100%; height: 76px"
/>
<div style="padding: 20px"> <div style="padding: 20px">
<div class="col-12 g row" style="margin-bottom:10px;"> <div class="col-12 g row" style="margin-bottom: 10px">
<div class="col-6"> <div class="col-6">Fr:{{ NInfo.From }}</div>
Fr:{{NInfo.From}} <div class="col-6" style="text-align: right">
</div> 编号:{{ NInfo.Number }}
<div class="col-6 " style="text-align: right">
编号:{{NInfo.Number}}
</div> </div>
</div> </div>
<div class="col-12 row" style="margin-bottom:10px;"> <div class="col-12 row" style="margin-bottom: 10px">
To:<span v-for="(item,index) in NInfo.toList" To:<span v-for="(item, index) in NInfo.toList" :index="index"
:index="index">{{item.DeptName}}{{NInfo.toList.length==index+1?'':'、'}}</span> >{{ item.DeptName
}}{{ NInfo.toList.length == index + 1 ? "" : "、" }}</span
>
</div> </div>
<div class="col-12 row" style="margin-bottom:10px;"> <div class="col-12 row" style="margin-bottom: 10px">
Cc:<span v-for="(item,index) in NInfo.ccList" Cc:<span v-for="(item, index) in NInfo.ccList" :index="index"
:index="index">{{item.EmName}}{{NInfo.ccList.length==index+1?'':'、'}}</span> >{{ item.EmName
}}{{ NInfo.ccList.length == index + 1 ? "" : "、" }}</span
>
</div> </div>
<div class="col-12 row" style="margin-bottom:10px;"> <div class="col-12 row" style="margin-bottom: 10px">
Time:{{NInfo.UpdateTime}} Time:{{ NInfo.UpdateTime }}
</div> </div>
<div class="col-12 row" style="margin-top: 20px;line-height:26px;"> <div class="col-12 row" style="margin-top: 20px; line-height: 26px">
<span v-html="NInfo.Content"></span> <span v-html="NInfo.Content"></span>
</div> </div>
<div class="col-12 row" style="margin-top: 20px" v-if="NInfo.fileList&&NInfo.fileList.length>0"> <div
<div style="margin-top:3px;">附件:</div> class="col-12 row"
style="margin-top: 20px"
v-if="NInfo.fileList && NInfo.fileList.length > 0"
>
<div style="margin-top: 3px">附件:</div>
<template> <template>
<div style="max-width: 350px;margin-left:10px;"> <div style="max-width: 350px; margin-left: 10px">
<div class="noticeFile" v-if="NInfo.fileList.length>0" v-for="(file,fIndex) in NInfo.fileList" <div
:key="fIndex"> class="noticeFile"
<span style="cursor:pointer;"> v-if="NInfo.fileList.length > 0"
<a :href="file.FileUrl" style="color:#2961FE;text-decoration:none;" target="_blank"> v-for="(file, fIndex) in NInfo.fileList"
<i class="iconfont icon-Download" style="margin-right:5px;"></i>{{file.FileName}}</a> :key="fIndex"
>
<span style="cursor: pointer">
<a
:href="file.FileUrl"
style="color: #2961fe; text-decoration: none"
target="_blank"
>
<i
class="iconfont icon-Download"
style="margin-right: 5px"
></i
>{{ file.FileName }}</a
>
</span> </span>
</div> </div>
</div> </div>
...@@ -157,23 +326,53 @@ ...@@ -157,23 +326,53 @@
</div> </div>
</div> </div>
</q-card> </q-card>
<div class="dialog-out-close" @click="persistent2=false" <div
style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;"> class="dialog-out-close"
@click="persistent2 = false"
style="
height: 40px !important;
border-top-left-radius: 4px !important;
border-bottom-left-radius: 4px !important;
"
>
<q-icon name="iconfont icon-jujue1" size="26px" /> <q-icon name="iconfont icon-jujue1" size="26px" />
</div> </div>
</q-dialog> </q-dialog>
<q-dialog v-model="persistent3"> <q-dialog v-model="persistent3" persistent>
<q-card style="margin-top:21px;width:800px" class="q-pa-sm"> <q-card style="margin-top: 21px; width: 800px" class="q-pa-sm">
<q-card-section class="flex"> <q-card-section class="flex">
<div class="text-h6">审批</div> <div class="text-h6">审批</div>
<q-space /> <q-space />
<q-btn icon="close" flat round dense v-close-popup /> <q-btn
icon="close"
flat
round
dense
v-close-popup
@click="resetShenpiForm"
/>
</q-card-section> </q-card-section>
<q-input standout="bg-primary text-white" type="textarea" v-model="approvalMsg.LogContent" label="审核备注" /> <div class="q-gutter-sm row flex items-center">
<div class="text-grey-6">审批结果:</div>
<q-radio v-model="approvalMsg.ReviewStatus" :val="1" label="通过" />
<q-radio v-model="approvalMsg.ReviewStatus" :val="2" label="驳回" />
</div>
<q-input
filled
type="textarea"
v-model="approvalMsg.LogContent"
label="审批备注"
/>
<q-card-actions align="right"> <q-card-actions align="right">
<q-btn flat label="取消" size="sm" color="primary" v-close-popup /> <q-btn
<q-btn label="拒绝" size="sm" color="primary" @click="saveApproval(2)"/> flat
<q-btn label="同意" size="sm" color="primary" @click="saveApproval(1)"/> label="取消"
size="sm"
color="primary"
v-close-popup
@click="resetShenpiForm"
/>
<q-btn label="确认" size="sm" color="primary" @click="saveApproval" />
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
...@@ -181,151 +380,152 @@ ...@@ -181,151 +380,152 @@
</template> </template>
<script> <script>
import{getConten} from '../../api/system/notiveSysSet' import { getConten } from "../../api/system/notiveSysSet";
import { import {
getNoticePageList, getNoticePageList,
GetNoticeInfo, //公告详情 GetNoticeInfo, //公告详情
setReviewNotice,//公告审批 setReviewNotice, //公告审批
getMyApproval,//我审批的公告 getMyApproval, //我审批的公告
} from '../../api/administration/document'; } from "../../api/administration/document";
import { import { queryEmployee } from "../../api/users/user";
queryEmployee import extEditor from "../../components/common/ext-editor";
} from '../../api/users/user' import selectTree from "../../components/common/select-tree";
import extEditor from '../../components/common/ext-editor'
import selectTree from '../../components/common/select-tree'
export default { export default {
meta: { meta: {
title: "行政公告审批" title: "行政公告审批",
}, },
components: { components: {
extEditor, extEditor,
selectTree selectTree,
}, },
name: "document", name: "document",
data() { data() {
return { return {
tabCheck: 'first', tabCheck: "first",
msg: { msg: {
PageIndex: 1, PageIndex: 1,
PageSize: 12, PageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
Title: '', Title: "",
Number: '', Number: "",
NoticeState: 4, NoticeState: 4,
Is_Top: 0, Is_Top: 0,
UpdateBy: "" UpdateBy: "",
}, },
mymsg: { mymsg: {
PageIndex: 1, PageIndex: 1,
PageSize: 12, PageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
Title: '', Title: "",
Number: '', Number: "",
NoticeState: 1, NoticeState: 1,
Is_Top: 0, Is_Top: 0,
UpdateBy: "" UpdateBy: "",
}, },
loading: true, loading: true,
//公告审批column //公告审批column
columns: [{ columns: [
name: 'NoticeStateName', {
label: '状态', name: "NoticeStateName",
align: 'left' label: "状态",
align: "left",
}, },
{ {
name: 'Number', name: "Number",
field: 'Number', field: "Number",
label: '编号', label: "编号",
align: 'left', align: "left",
}, },
{ {
name: 'Title', name: "Title",
label: '标题', label: "标题",
field: 'Title', field: "Title",
align: 'left' align: "left",
}, },
{ {
name: 'ReadNum', name: "ReadNum",
label: '阅读情况', label: "阅读情况",
field: 'ReadNum', field: "ReadNum",
align: 'left' align: "left",
}, },
{ {
name: 'IsTop', name: "IsTop",
label: '是否置顶', label: "是否置顶",
align: 'left' align: "left",
}, },
{ {
name: 'UpdateByName', name: "UpdateByName",
label: '发布人', label: "发布人",
field: 'UpdateByName', field: "UpdateByName",
align: 'left' align: "left",
}, },
{ {
name: 'UpdateTime', name: "UpdateTime",
label: '发布时间', label: "发布时间",
align: 'left', align: "left",
field: 'UpdateTime' field: "UpdateTime",
}, { },
name: 'optioned', {
label: '操作', name: "optioned",
field: 'DeptId' label: "操作",
} field: "DeptId",
},
], ],
//我审批的column //我审批的column
mycolumns: [{ mycolumns: [
name: 'NoticeStateName', {
label: '状态', name: "NoticeStateName",
field:"ReviewStatusStr", label: "状态",
align: 'left' field: "ReviewStatusStr",
align: "left",
}, },
{ {
name: 'Number', name: "Number",
field: 'Number', field: "Number",
label: '编号', label: "编号",
align: 'left', align: "left",
}, },
{ {
name: 'Title', name: "Title",
label: '标题', label: "标题",
field: 'Title', field: "Title",
align: 'left' align: "left",
}, },
{ {
name: 'ReadNum', name: "ReadNum",
label: '阅读情况', label: "阅读情况",
field: 'ReadNum', field: "ReadNum",
align: 'left' align: "left",
}, },
{ {
name: 'IsTop', name: "IsTop",
label: '是否置顶', label: "是否置顶",
align: 'left' align: "left",
}, },
{ {
name: 'UpdateByName', name: "UpdateByName",
label: '发布人', label: "发布人",
field: 'UpdateByName', field: "UpdateByName",
align: 'left' align: "left",
}, },
{ {
name: 'UpdateTime', name: "UpdateTime",
label: '发布时间', label: "发布时间",
align: 'left', align: "left",
field: 'UpdateTime' field: "UpdateTime",
}, },
{ {
name: 'LogContent', name: "LogContent",
label: '审批备注', label: "审批备注",
align: 'left', align: "left",
field: 'LogContent' field: "LogContent",
}, },
{ {
name: 'optioned', name: "optioned",
label: '操作', label: "操作",
field: 'DeptId' field: "DeptId",
} },
], ],
data: [], data: [],
pageCount: 0, pageCount: 0,
...@@ -335,20 +535,20 @@ import{getConten} from '../../api/system/notiveSysSet' ...@@ -335,20 +535,20 @@ import{getConten} from '../../api/system/notiveSysSet'
NInfo: {}, //详情内容 NInfo: {}, //详情内容
persistent2: false, persistent2: false,
persistent3: false, persistent3: false,
approvalMsg:{ approvalMsg: {
NoticeId:0, NoticeId: 0,
ReviewStatus:0, ReviewStatus: 2,
LogContent:"" LogContent: "",
},
mydata:[],
mypageCount:0,
shenpiId:0,//审批人Id
loginId:0,//登录人Id
}
}, },
created(){ mydata: [],
let data=JSON.parse(localStorage.getItem('loginUserInfo')) mypageCount: 0,
this.loginId=data.data.Id shenpiId: 0, //审批人Id
loginId: 0, //登录人Id
};
},
created() {
let data = JSON.parse(localStorage.getItem("loginUserInfo"));
this.loginId = data.data.Id;
}, },
mounted() { mounted() {
this.getList(); this.getList();
...@@ -357,67 +557,73 @@ import{getConten} from '../../api/system/notiveSysSet' ...@@ -357,67 +557,73 @@ import{getConten} from '../../api/system/notiveSysSet'
}, },
methods: { methods: {
tabChange() { tabChange() {
if (this.tabCheck == 'first') { if (this.tabCheck == "first") {
this.getList(); this.getList();
} else if (this.tabCheck == 'second') { } else if (this.tabCheck == "second") {
this.getMyList() this.getMyList();
} }
}, },
getList() { getList() {
this.loading = false; this.loading = false;
getNoticePageList(this.msg).then(res => { getNoticePageList(this.msg)
.then((res) => {
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.loading = false; this.loading = false;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
}).catch(() => {
this.loading = false
}) })
.catch(() => {
this.loading = false;
});
}, },
//筛选员工 //筛选员工
filterFn(val, update) { filterFn(val, update) {
update(() => { update(() => {
if (val === '') { if (val === "") {
this.PersionList = JSON.parse(JSON.stringify(this.AllemployeeList)) this.PersionList = JSON.parse(JSON.stringify(this.AllemployeeList));
} else { } else {
const needle = val.toLowerCase() const needle = val.toLowerCase();
this.PersionList = this.AllemployeeList.filter(v => v.EmployeeName.toLowerCase().indexOf(needle) > -1) this.PersionList = this.AllemployeeList.filter(
(v) => v.EmployeeName.toLowerCase().indexOf(needle) > -1
);
} }
}) });
}, },
//获取员工列表 //获取员工列表
getEmployee() { getEmployee() {
var qMsg = { var qMsg = {
EmployeeName: "" EmployeeName: "",
} };
queryEmployee(qMsg).then(res => { queryEmployee(qMsg).then((res) => {
if (res.Code == 1) { if (res.Code == 1) {
let obj = { let obj = {
EmployeeName: '不限', EmployeeName: "不限",
Id: -1 Id: -1,
} };
res.Data.unshift(obj) res.Data.unshift(obj);
var jsonData = res.Data; var jsonData = res.Data;
if (jsonData && jsonData.length > 0) { if (jsonData && jsonData.length > 0) {
this.AllemployeeList = JSON.parse(JSON.stringify(jsonData)); this.AllemployeeList = JSON.parse(JSON.stringify(jsonData));
this.PersionList = JSON.parse(JSON.stringify(jsonData));; this.PersionList = JSON.parse(JSON.stringify(jsonData));
} }
} }
}) });
}, },
//分页改变 //分页改变
changePage(val) { changePage(val) {
this.msg.PageIndex = val; this.msg.PageIndex = val;
this.getList() this.getList();
}, },
// 获取详情 // 获取详情
getNInfo(id) { getNInfo(id) {
GetNoticeInfo({ GetNoticeInfo({
NoticeId: id NoticeId: id,
}).then(res => { })
.then((res) => {
if (res.Code == 1) { if (res.Code == 1) {
this.NInfo = JSON.parse(JSON.stringify(res.Data)); this.NInfo = JSON.parse(JSON.stringify(res.Data));
} }
}).catch(() => {}) })
.catch(() => {});
}, },
EditConfig(id) { EditConfig(id) {
this.persistent2 = true; this.persistent2 = true;
...@@ -425,68 +631,81 @@ import{getConten} from '../../api/system/notiveSysSet' ...@@ -425,68 +631,81 @@ import{getConten} from '../../api/system/notiveSysSet'
}, },
//显示审批弹窗 //显示审批弹窗
showApproval(id) { showApproval(id) {
this.persistent3 = true this.persistent3 = true;
this.approvalMsg.NoticeId=id this.approvalMsg.NoticeId = id;
}, },
//提交审批结果 //提交审批结果
saveApproval(val){ saveApproval() {
if(val===2&&this.approvalMsg.LogContent==""){ if (
this.$message.error("请填写拒绝原因") this.approvalMsg.ReviewStatus === 2 &&
return this.approvalMsg.LogContent == ""
) {
this.$message.error("请填写驳回原因");
return;
} }
this.approvalMsg.ReviewStatus=val console.log(632, this.approvalMsg);
setReviewNotice(this.approvalMsg).then(res=>{ setReviewNotice(this.approvalMsg).then((res) => {
if(res.Code===1){ if (res.Code === 1) {
this.$message.success("操作成功"); this.$message.success("操作成功");
this.persistent3=false this.persistent3 = false;
this.getList() this.getList();
}else{ this.approvalMsg.ReviewStatus = 2;
this.$message.error(res.Message) this.approvalMsg.LogContent = "";
} else {
this.$message.error(res.Message);
} }
}) });
}, },
getMyList() { getMyList() {
this.loading = false; this.loading = false;
getMyApproval(this.mymsg).then(res => { getMyApproval(this.mymsg)
.then((res) => {
this.mydata = res.Data.PageData; this.mydata = res.Data.PageData;
this.loading = false; this.loading = false;
this.mypageCount = res.Data.PageCount; this.mypageCount = res.Data.PageCount;
}).catch(() => {
this.loading = false
}) })
.catch(() => {
this.loading = false;
});
}, },
//分页改变 //分页改变
myChangePage(val) { myChangePage(val) {
this.mymsg.PageIndex = val; this.mymsg.PageIndex = val;
this.getMyList() this.getMyList();
}, },
//获取审批人 //获取审批人
getshenpiren() { getshenpiren() {
getConten({}).then(res => { getConten({}).then((res) => {
if (res.Code === 1) { if (res.Code === 1) {
this.shenpiId = parseInt(res.Data.Content) this.shenpiId = parseInt(res.Data.Content);
} }
}) });
}, },
} //重置审批表单
} resetShenpiForm() {
this.approvalMsg = {
NoticeId: 0,
ReviewStatus: 2,
LogContent: "",
};
},
},
};
</script> </script>
<style scoped> <style scoped>
.document .NoticeStateNimg { .document .NoticeStateNimg {
width: 30px; width: 30px;
height: 30px; height: 30px;
margin-right: 5px; margin-right: 5px;
} }
.document .q-pr-lg { .document .q-pr-lg {
padding-right: 0; padding-right: 0;
} }
.document .noticeFile { .document .noticeFile {
color: #2961FE; color: #2961fe;
font-size: 13px; font-size: 13px;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment