提交 fb6b9906 authored 作者: 江 育林's avatar 江 育林

new

上级 634e467c
......@@ -49,7 +49,6 @@ const routes = [
children: [
{
path: "sureSecret",
name: "sureSecret",
meta: {
title: "国家秘密",
},
......@@ -57,7 +56,6 @@ const routes = [
children: [
{
path: "/",
name: "sureSecret",
component: () => import("../views/countrySecret/sure/list.vue"),
meta: {
title: "确定",
......@@ -65,7 +63,6 @@ const routes = [
},
{
path: "increased",
name: "increased",
meta: {
title: "新增",
isShow: true,
......@@ -74,7 +71,6 @@ const routes = [
},
{
path: "edit",
name: "edit",
meta: {
title: "编辑",
isShow: true,
......@@ -86,7 +82,6 @@ const routes = [
// 国家秘密
{
path: "changeSecret",
name: "changeSecret",
meta: {
title: "国家秘密",
},
......@@ -102,7 +97,6 @@ const routes = [
},
{
path: "increased",
name: "increased",
component: () => import("../views/countrySecret/change/increased.vue"),
meta: {
title: "变更",
......@@ -111,7 +105,6 @@ const routes = [
},
{
path: "check",
name: "check",
component: () => import("../views/countrySecret/chakan.vue"),
meta: {
title: "查看",
......@@ -123,7 +116,6 @@ const routes = [
//国家秘密
{
path: "deleteSecret",
name: "deleteSecret",
meta: {
title: "国家秘密",
},
......@@ -139,7 +131,6 @@ const routes = [
},
{
path: "open",
name: "open",
meta: {
title: "公开",
isShow: true,
......@@ -166,7 +157,6 @@ const routes = [
},
{
path: "check",
name: "check",
component: () => import("../views/countrySecret/chakan.vue"),
meta: {
title: "查看",
......@@ -177,7 +167,6 @@ const routes = [
},
{
path: "allMatters",
name: "allMatters",
component: () => import("../components/routerChild.vue"),
meta: {
title: "所有事项",
......@@ -190,7 +179,6 @@ const routes = [
},
{
path: "check",
name: "check",
component: () => import("../views/countrySecret/chakan.vue"),
meta: {
title: "查看",
......@@ -199,7 +187,6 @@ const routes = [
},
{
path: "editWorkSecret",
name: "editWorkSecret",
meta: {
title: "编辑",
isShow: true,
......@@ -208,7 +195,6 @@ const routes = [
},
{
path: "edit",
name: "edit",
meta: {
title: "编辑",
isShow: true,
......@@ -235,7 +221,6 @@ const routes = [
},
{
path: "check1",
name: "check1",
meta: {
title: "查看",
isShow: true,
......@@ -244,7 +229,6 @@ const routes = [
},
{
path: "open",
name: "open",
meta: {
title: "公开",
isShow: true,
......@@ -253,7 +237,6 @@ const routes = [
},
{
path: "decrypting",
name: "decrypting",
meta: {
title: "解除",
isShow: true,
......@@ -262,9 +245,8 @@ const routes = [
},
],
},
{
{
path: 'classifiedPerson',
name: 'classifiedPerson',
component: () => import("../components/routerChild.vue"),
meta: {
title: '定密责任人管理'
......@@ -272,15 +254,13 @@ const routes = [
children: [
{
path: '/',
name:'classifiedPerson',
component: () => import('../views/list/classifiedPerson.vue'),
},
]
},
{
{
path: 'classifiedEmpower',
name: 'classifiedEmpower',
meta: {
title: '定密授权管理'
},
......@@ -288,31 +268,27 @@ const routes = [
children: [
{
path: '/',
name:'classifiedEmpower',
component: () => import('../views/list/classifiedEmpower.vue'),
},
]
},
{
path: 'classifiedSystem',
name: 'classifiedSystem',
component: () => import("../components/routerChild.vue"),
meta: {
title: '定密制度管理'
},
children: [
{
path: '/',
name:'classifiedSystem',
component: () => import('../views/list/classifiedSystem.vue'),
},
]
path: 'classifiedSystem',
component: () => import("../components/routerChild.vue"),
meta: {
title: '定密制度管理'
},
{
children: [
{
path: '/',
component: () => import('../views/list/classifiedSystem.vue'),
},
]
},
{
path: 'classifiedTraining',
name: 'classifiedTraining',
meta: {
title: '定密培训管理'
},
......@@ -320,15 +296,13 @@ const routes = [
children: [
{
path: '/',
name: 'classifiedTraining',
component: () => import('../views/list/classifiedTraining.vue'),
},
]
},
{
path: 'uncertaintyList',
name: 'uncertaintyList',
meta: {
title: '不确定事项管理'
},
......@@ -336,15 +310,13 @@ const routes = [
children: [
{
path: '/',
name: 'uncertaintyList',
component: () => import('../views/list/uncertaintyList.vue'),
},
]
},
{
{
path: 'personal',
name: 'personal',
meta: {
title: "人员配置",
},
......@@ -352,28 +324,25 @@ const routes = [
children: [
{
path: "/",
name: "personal",
component: () => import("../views/countrySecret/personal.vue"),
},
]
},
{
path: 'according',
name: 'according',
meta: {
title: "依据查看",
},
component: () => import("../components/routerChild.vue"),
children: [
{
path: "/",
name: "according",
component: () => import("../views/countrySecret/according.vue"),
},
]
path: 'according',
meta: {
title: "依据查看",
},
component: () => import("../components/routerChild.vue"),
children: [
{
path: "/",
component: () => import("../views/countrySecret/according.vue"),
},
]
},
],
},
{
......@@ -396,12 +365,10 @@ const routes = [
children: [
{
path: "determine",
name: "determine",
component: () => import("../components/routerChild.vue"),
children: [
{
path: "/",
name: "determine",
component: () => import("../views/workSecret/determine/determineList.vue"),
meta: {
title: "确定",
......@@ -418,7 +385,6 @@ const routes = [
},
{
path: "editWorkSecret",
name: "editWorkSecret",
meta: {
title: "编辑",
isShow: true,
......@@ -429,7 +395,6 @@ const routes = [
},
{
path: "decrypt",
name: "decrypt",
component: () => import("../components/routerChild.vue"),
children: [
{
......@@ -442,7 +407,6 @@ const routes = [
},
{
path: "check",
name: "check",
meta: {
title: "查看",
isShow: true,
......@@ -451,7 +415,6 @@ const routes = [
},
{
path: "decrypting",
name: "decrypting",
meta: {
title: "解密",
isShow: true,
......@@ -460,7 +423,6 @@ const routes = [
},
{
path: "open",
name: "open",
meta: {
title: "公开",
isShow: true,
......@@ -523,7 +485,6 @@ const routes = [
{
path: 'parameter',
name: 'parameter',
component: () => import("../components/routerChild.vue"),
children: [
{
......@@ -599,12 +560,10 @@ const routes = [
// },
{
path: 'uncertaintyList',
name: 'uncertaintyList',
component: () => import("../components/routerChild.vue"),
children: [
{
path: '/',
name: 'uncertaintyList',
component: () => import('../views/list/uncertaintyList.vue'),
meta: {
title: '不确定事项管理'
......@@ -614,7 +573,6 @@ const routes = [
},
{
path: 'unitAndPersonnelSet',
name: 'unitAndPersonnelSet',
component: () => import("../components/routerChild.vue"),
children: [
{
......@@ -629,12 +587,10 @@ const routes = [
},
{
path: 'bassisManage',
name: 'bassisManage',
component: () => import("../components/routerChild.vue"),
children: [
{
path: '/',
name: 'bassisManage',
component: () => import('../views/configuration/bassisManage.vue'),
meta: {
title: '依据管理'
......@@ -644,12 +600,10 @@ const routes = [
},
{
path: 'unitBasisConfig',
name: 'unitBasisConfig',
component: () => import("../components/routerChild.vue"),
children: [
{
path: '/',
name: 'bassisManage',
component: () => import('../views/configuration/unitBasisConfig.vue'),
meta: {
title: '单位的依据配置'
......
......@@ -9,12 +9,14 @@
<div class="time">
{{ showMiJi(ruleForm.classification) }}
{{
showQiXian(ruleForm.secrecyTermType, ruleForm.secrecyTermContent)
showQiXian(ruleForm.secrecyTermType, ruleForm.secrecyTermContent)
}}
</div>
<div class="status" :class="getClass()"></div>
</div>
<div class>{{ ruleForm.issueDate }}{{ ruleForm.classifiedExpire }}</div>
<div class>
{{ ruleForm.issueDate }}{{ ruleForm.classifiedExpire }}
</div>
</div>
</div>
......@@ -23,14 +25,18 @@
<el-collapse-item name="1">
<template slot="title">
<div class="edit_baseDetail_title">
<div class="border"></div>基本信息
<div class="border"></div>
基本信息
<div class="title_one_right">
<img
v-show="className.indexOf('1') == -1"
src="../../../assets/images/hide.png"
alt
/>
<img v-show="className.indexOf('1') != -1" src="../../../assets/images/show.png" />
<img
v-show="className.indexOf('1') != -1"
src="../../../assets/images/show.png"
/>
</div>
</div>
</template>
......@@ -57,20 +63,26 @@
<div class="edit_detail" v-if="ruleForm.type == 1">
<div class="titles">增加审批环节:</div>
<div>
<div
v-show="ruleForm.approverName"
>{{ ruleForm.approverName }}({{ ruleForm.approverUnit }})</div>
<div v-show="ruleForm.approverName">
{{ ruleForm.approverName }}({{ ruleForm.approverUnit }})
</div>
<div>{{ ruleForm.approverOpinionContent }}</div>
</div>
</div>
<div class="edit_detail">
<div class="titles">承办人:</div>
<div>{{ ruleForm.undertakerName }}({{ ruleForm.undertakerPhone }})</div>
<div>
{{ ruleForm.undertakerName }}({{ ruleForm.undertakerPhone }})
</div>
</div>
<div class="edit_detail">
<div class="titles">发文机关:</div>
<div v-if="ruleForm.undertakerUnit">{{ ruleForm.undertakerUnit }}</div>
<div v-if="ruleForm.undertakerUnitTwo">{{ ruleForm.undertakerUnitTwo }}</div>
<div v-if="ruleForm.undertakerUnit">
{{ ruleForm.undertakerUnit }}
</div>
<div v-if="ruleForm.undertakerUnitTwo">
{{ ruleForm.undertakerUnitTwo }}
</div>
</div>
<div class="edit_detail">
<div class="titles">定密依据:</div>
......@@ -86,10 +98,10 @@
<div class="titles">保密期限:</div>
<div>
{{
showQiXian(
ruleForm.secrecyTermType,
ruleForm.secrecyTermContent
)
showQiXian(
ruleForm.secrecyTermType,
ruleForm.secrecyTermContent
)
}}
</div>
</div>
......@@ -135,7 +147,9 @@
</div>
<div class="edit_detail" v-if="ruleForm.type == 2">
<div class="titles">项目备案表:</div>
<div style="color: blue; cursor: pointer" @click="toYuLan()">点击预览文件</div>
<div style="color: blue; cursor: pointer" @click="toYuLan()">
点击预览文件
</div>
</div>
<!-- <div class="edit_detail" v-if="ruleForm.type == 2">
<div class="titles">采购项目名称:</div>
......@@ -172,7 +186,8 @@
<el-collapse-item name="2">
<template slot="title">
<div class="edit_baseDetail_title">
<div class="border"></div>事项解密
<div class="border"></div>
事项解密
<div class="btn">
<!-- <el-button
type="primary"
......@@ -190,7 +205,10 @@
src="../../../assets/images/hide.png"
alt
/>
<img v-show="className.indexOf('2') != -1" src="../../../assets/images/show.png" />
<img
v-show="className.indexOf('2') != -1"
src="../../../assets/images/show.png"
/>
</div>
</div>
</div>
......@@ -214,10 +232,10 @@
<div>保密期限:</div>
<div>
{{
showQiXian(
item.beforeSecrecyTermType,
item.beforeSecrecyTermContent
)
showQiXian(
item.beforeSecrecyTermType,
item.beforeSecrecyTermContent
)
}}
</div>
</div>
......@@ -241,10 +259,10 @@
<div>保密期限:</div>
<div>
{{
showQiXian(
item.afterSecrecyTermType,
item.afterSecrecyTermContent
)
showQiXian(
item.afterSecrecyTermType,
item.afterSecrecyTermContent
)
}}
</div>
</div>
......@@ -289,7 +307,12 @@
<div class="right_row">{{ item.decryptTime }}</div>
</div>
<div class="btns">
<el-button type="primary" v-if="item.decryptAuditStatus == 0" @click="updata(item)">编辑</el-button>
<el-button
type="primary"
v-if="item.decryptAuditStatus == 0"
@click="updata(item)"
>编辑</el-button
>
</div>
</div>
</el-collapse-item>
......@@ -316,7 +339,10 @@
label-width="125px"
>
<el-form-item label="选择类型:" prop="decryptType">
<el-radio-group v-model="dialogForm.decryptType" @change="typeChange">
<el-radio-group
v-model="dialogForm.decryptType"
@change="typeChange"
>
<el-radio :label="3">解密</el-radio>
<el-radio :label="2">变更</el-radio>
<el-radio :label="1">维持原定密决定</el-radio>
......@@ -331,26 +357,55 @@
<el-select
v-model="dialogForm.secrecyTermBasisType"
placeholder="请选择依据"
:disabled="dialogForm.basisType!=1"
:disabled="dialogForm.basisType != 1"
@change="jijuChange(dialogForm.secrecyTermBasisType)"
>
<el-option
v-for="item in confClassifiedBasisList"
:key="item.id"
:label="item.catalogueName+'第'+item.serialNo+'条'"
:label="item.catalogueName + '第' + item.serialNo + '条'"
:value="item.id"
class="select_option"
>
<el-tooltip placement="right" effect="light" :enterable="false">
<div slot="content" class="hoverContent" style="text-align:left">
<el-tooltip
placement="right"
effect="light"
:enterable="false"
>
<div
slot="content"
class="hoverContent"
style="text-align: left"
>
<!-- <span>目录:{{item.catalogueName}}</span>
<div>序号:{{item.serialNo}}</div>-->
<div>密级:{{item.classification==2?'秘密':item.classification==3?'机密':''}}</div>
<div>保密期限:{{item.secrecyTermContent}}{{item.secrecyTermType==1?'年':item.secrecyTermType==2?'月':item.secrecyTermType==3?'日':''}}</div>
<div class="basisName">内容:{{item.basisName}}</div>
<div>知悉范围:{{item.range}}</div>
<div>
密级:{{
item.classification == 2
? "秘密"
: item.classification == 3
? "机密"
: ""
}}
</div>
<div>
保密期限:{{ item.secrecyTermContent
}}{{
item.secrecyTermType == 1
? "年"
: item.secrecyTermType == 2
? "月"
: item.secrecyTermType == 3
? "日"
: ""
}}
</div>
<div class="basisName">内容:{{ item.basisName }}</div>
<div>知悉范围:{{ item.range }}</div>
</div>
<div class="iclass-text-ellipsis">
{{ item.catalogueName }}第{{ item.serialNo }}条
</div>
<div class="iclass-text-ellipsis">{{item.catalogueName}}第{{ item.serialNo }}条</div>
</el-tooltip>
</el-option>
</el-select>
......@@ -360,7 +415,7 @@
v-model="dialogForm.secrecyTermBasisContent"
type="textarea"
placeholder="请输入"
:disabled="dialogForm.basisType!=2"
:disabled="dialogForm.basisType != 2"
></el-input>
</el-radio>
</el-radio-group>
......@@ -371,7 +426,7 @@
v-if="dialogForm.decryptType == 2"
class="changeDetailBox"
>
<div :class="dialogForm.basisType==1?'box':''"></div>
<div :class="dialogForm.basisType == 1 ? 'box' : ''"></div>
<div class="changeDetail">
<div class="detail">
<div class="title">变更前</div>
......@@ -385,10 +440,10 @@
<div>保密期限:</div>
<div>
{{
showQiXian(
ruleForm.secrecyTermType,
ruleForm.secrecyTermContent
)
showQiXian(
ruleForm.secrecyTermType,
ruleForm.secrecyTermContent
)
}}
</div>
</div>
......@@ -400,8 +455,8 @@
</div>
<div class="img">
<div
:class="dialogForm.basisType == 1?'biangen2':'biangen1'"
@click="dialogForm.basisType != 1? changeDate():''"
:class="dialogForm.basisType == 1 ? 'biangen2' : 'biangen1'"
@click="dialogForm.basisType != 1 ? changeDate() : ''"
></div>
</div>
<div class="detail">
......@@ -415,10 +470,10 @@
<div>保密期限:</div>
<div>
{{
showQiXian(
dialogForm.afterSecrecyTermType,
dialogForm.afterSecrecyTermContent
)
showQiXian(
dialogForm.afterSecrecyTermType,
dialogForm.afterSecrecyTermContent
)
}}
</div>
</div>
......@@ -456,7 +511,11 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="定密责任人意见:" prop="classifiedPerson" class="classifiedPerson">
<el-form-item
label="定密责任人意见:"
prop="classifiedPerson"
class="classifiedPerson"
>
<el-select
v-model="dialogForm.classifiedPerson"
placeholder="请选择定密责任人"
......@@ -480,14 +539,20 @@
></el-input>
<div class="commonWordsList">
<div
v-for="(item,index) in dmzrrList"
v-for="(item, index) in dmzrrList"
:key="index"
class="minbox"
@click="selectcommonWord(item.manageOptions)"
>{{item.manageOptions}}</div>
>
{{ item.manageOptions }}
</div>
</div>
</el-form-item>
<el-form-item label="建议变更时间:" v-if="dialogForm.decryptType == 2" prop="decryptTime">
<el-form-item
label="建议变更时间:"
v-if="dialogForm.decryptType == 2"
prop="decryptTime"
>
<el-date-picker
v-model="dialogForm.decryptTime"
type="date"
......@@ -497,7 +562,11 @@
value-format="yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item label="建议解密时间:" v-if="dialogForm.decryptType == 3" prop="decryptTime">
<el-form-item
label="建议解密时间:"
v-if="dialogForm.decryptType == 3"
prop="decryptTime"
>
<el-date-picker
v-model="dialogForm.decryptTime"
type="date"
......@@ -532,7 +601,10 @@
label-width="125px"
>
<el-form-item label="密级:" prop="purchaseItemName">
<el-select v-model="formData.classification" placeholder="请选择密级">
<el-select
v-model="formData.classification"
placeholder="请选择密级"
>
<el-option
v-for="item in mainData.classificationList"
:key="item.id"
......@@ -541,35 +613,64 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="保密期限:" prop="purchasingUnit" class="secretTime">
<el-radio v-model="radios" :label="1" @change="changeQixian()">保密期限</el-radio>
<el-radio-group v-model="formData.secrecyTermType" @change="changeSecrecyTermType()">
<el-form-item
label="保密期限:"
prop="purchasingUnit"
class="secretTime"
>
<el-radio v-model="radios" :label="1" @change="changeQixian()"
>保密期限</el-radio
>
<el-radio-group
v-model="formData.secrecyTermType"
@change="changeSecrecyTermType()"
>
<div class="rightRadio">
<el-radio :label="1" :disabled="radios != 1">
<el-input
type="number"
v-model="formData.qixian1"
:disabled="formData.secrecyTermType != '1'"
:onkeyup="formData.qixian1=formData.qixian1.replace(/[^0-9]/g,'')"
></el-input>
:onkeyup="
(formData.qixian1 = formData.qixian1.replace(
/[^0-9]/g,
''
))
"
></el-input
>
</el-radio>
<el-radio :label="2" :disabled="radios != 1">
<el-input
type="number"
v-model="formData.qixian2"
:disabled="formData.secrecyTermType != '2'"
:onkeyup="formData.qixian2=formData.qixian2.replace(/[^0-9]/g,'')"
></el-input>
:onkeyup="
(formData.qixian2 = formData.qixian2.replace(
/[^0-9]/g,
''
))
"
></el-input
>
</el-radio>
<el-radio :label="3" class="inputs" :disabled="radios != 1">
<el-input
type="number"
v-model="formData.qixian3"
:disabled="formData.secrecyTermType != '3'"
:onkeyup="formData.qixian3=formData.qixian3.replace(/[^0-9]/g,'')"
></el-input>
:onkeyup="
(formData.qixian3 = formData.qixian3.replace(
/[^0-9]/g,
''
))
"
></el-input
>
</el-radio>
<el-radio :label="4" class="inputs" :disabled="radios != 1">长期</el-radio>
<el-radio :label="4" class="inputs" :disabled="radios != 1"
>长期</el-radio
>
</div>
<div class="bottomRadio">
<el-radio :label="5">
......@@ -597,7 +698,11 @@
</el-radio-group>
</el-form-item>
<el-form-item label="知悉范围:" prop="projectContent">
<el-input placeholder="请输入" type="textarea" v-model="formData.range"></el-input>
<el-input
placeholder="请输入"
type="textarea"
v-model="formData.range"
></el-input>
</el-form-item>
</el-form>
</div>
......@@ -621,11 +726,11 @@ export default {
// )
//console.log(this.ruleForm.reviewer);
if (value == 1) {
console.log(this.dialogForm.secrecyTermBasisType)
console.log(this.dialogForm.secrecyTermBasisType);
if (!this.dialogForm.secrecyTermBasisType) {
callback('请选择解密依据')
callback("请选择解密依据");
} else {
callback()
callback();
}
} else {
if (!this.dialogForm.secrecyTermBasisContent.trim()) {
......@@ -634,66 +739,66 @@ export default {
// }else{
// callback()
// }
callback('请填写解密理由')
callback("请填写解密理由");
} else {
callback()
callback();
}
}
}
};
return {
dmzrrList: [],
uIndex: 0,
confClassifiedBasisList: [],
className: ['2'],
className: ["2"],
dialogVisible: false,
dialogVisibles: false,
radios: '',
radios: "",
formData: {
secrecyTermType: 1,
classification: '',
range: '',
qixian1: '',
qixian2: '',
qixian3: '',
qixian4: '',
qixian5: '',
classification: "",
range: "",
qixian1: "",
qixian2: "",
qixian3: "",
qixian4: "",
qixian5: "",
},
ruleForm: {
afterSecrecyTermContent: '请选择',
afterSecrecyTermContent: "请选择",
},
dataList: [],
ruled: {},
rulesd: {
afterRange: [
{ required: true, message: '请选择密级', trigger: 'blur' },
{ required: true, message: "请选择密级", trigger: "blur" },
],
afterSecrecyTermContent: [
{ required: true, message: '请选择密级', trigger: 'blur' },
{ required: true, message: "请选择密级", trigger: "blur" },
],
afterClassification: [
{ required: true, message: '请选择密级', trigger: 'blur' },
{ required: true, message: "请选择密级", trigger: "blur" },
],
decryptType: [
{ required: true, message: '请选择类型', trigger: 'blur' },
{ required: true, message: "请选择类型", trigger: "blur" },
],
decryptMethod: [
{ required: true, message: '请选择类型', trigger: 'blur' },
{ required: true, message: "请选择类型", trigger: "blur" },
],
basisType: [
{
required: true,
validator: checkundertakerBasis,
trigger: 'change',
trigger: "change",
},
],
undertaker: [
{ required: true, message: '请选择承办人', trigger: 'blur' },
{ required: true, message: "请选择承办人", trigger: "blur" },
],
classifiedPerson: [
{ required: true, message: '请选择定密责任人', trigger: 'blur' },
{ required: true, message: "请选择定密责任人", trigger: "blur" },
],
decryptTime: [
{ required: true, message: '请选择时间', trigger: 'blur' },
{ required: true, message: "请选择时间", trigger: "blur" },
],
},
mainData: [],
......@@ -708,105 +813,105 @@ export default {
page: 1,
},
dialogForm: {
basisType: '1',
afterClassification: '',
afterRange: '',
afterSecrecyTermContent: '',
basisType: "1",
afterClassification: "",
afterRange: "",
afterSecrecyTermContent: "",
afterSecrecyTermType: 1,
beforeClassification: '',
beforeRange: '',
beforeSecrecyTermContent: '',
beforeClassification: "",
beforeRange: "",
beforeSecrecyTermContent: "",
beforeSecrecyTermType: 1,
classifiedId: '',
classifiedPerson: '',
classifiedPersonOpinion: '',
createTime: '',
classifiedId: "",
classifiedPerson: "",
classifiedPersonOpinion: "",
createTime: "",
decryptAuditStatus: 1,
decryptExecutionStatus: 1,
decryptMethod: 1,
decryptTime: '',
decryptTime: "",
decryptType: 3,
id: '',
secrecyTermBasisContent: '',
secrecyTermBasisType: '',
undertaker: '',
undertakerOpinion: '',
id: "",
secrecyTermBasisContent: "",
secrecyTermBasisType: "",
undertaker: "",
undertakerOpinion: "",
},
dialogForms: {
secrecyTermType: 1,
qixian1: '',
qixian2: '',
qixian3: '',
qixian1: "",
qixian2: "",
qixian3: "",
},
}
};
},
directives: {
'el-select-lazyloading': {
"el-select-lazyloading": {
bind(el, binding) {
let SELECT_DOM = el.querySelector(
'.el-select-dropdown .el-select-dropdown__wrap'
)
".el-select-dropdown .el-select-dropdown__wrap"
);
// console.log(SELECT_DOM);
SELECT_DOM.addEventListener('scroll', function () {
SELECT_DOM.addEventListener("scroll", function () {
let condition =
this.scrollHeight - this.scrollTop <= this.clientHeight + 10
this.scrollHeight - this.scrollTop <= this.clientHeight + 10;
if (condition) {
binding.value()
binding.value();
}
})
});
},
},
},
mounted() {
sessionStorage.setItem('msgInfo', true)
sessionStorage.setItem("msgInfo", true);
},
created() {
//常用语列表
this.$axios.getOption().then((res) => {
console.log('常用语', res)
this.dmzrrList = res.data.data.dmzrrList
})
// console.log("常用语", res);
this.dmzrrList = res.data.data.dmzrrList;
});
let params = {
editUnitId: this.$route.operatorUnit,
secretType: 3,
type: 0,
}
};
this.$axios
.getSelectVal(params)
.then((res) => {
if (res.data.code == 200) {
this.mainData = res.data.data
this.mainData = res.data.data;
} else {
this.$message.error(res.data.data)
this.$message.error(res.data.data);
}
})
.then((res) => {
this.getData()
})
this.getData();
});
},
methods: {
selectcommonWord(val) {
this.dialogForm.classifiedPersonOpinion = val
this.dialogForm.classifiedPersonOpinion = val;
},
jijuChange(val) {
for (let i in this.confClassifiedBasisList) {
if (val == this.confClassifiedBasisList[i].id) {
console.log(this.confClassifiedBasisList[i])
// console.log(this.confClassifiedBasisList[i]);
this.dialogForm.afterClassification =
this.confClassifiedBasisList[i].classification
this.dialogForm.afterRange = this.confClassifiedBasisList[i].range
this.confClassifiedBasisList[i].classification;
this.dialogForm.afterRange = this.confClassifiedBasisList[i].range;
this.dialogForm.afterSecrecyTermType =
this.confClassifiedBasisList[i].secrecyTermType
this.confClassifiedBasisList[i].secrecyTermType;
this.dialogForm.afterSecrecyTermContent =
this.confClassifiedBasisList[i].secrecyTermContent
this.confClassifiedBasisList[i].secrecyTermContent;
}
}
},
bassisTypeChange(value) {
console.log(value)
console.log(value);
if (value == 1) {
this.$set(this.dialogForm, 'secrecyTermBasisContent', '')
this.$set(this.dialogForm, "secrecyTermBasisContent", "");
// this.dialogForm.secrecyTermBasisType = ''
} else {
// this.$set(this.dialogForm, 'secrecyTermBasisType', '')
......@@ -816,29 +921,21 @@ export default {
// console.log(value)
},
getYiju(val) {
// if (val == 1) {
// // this.dialogForm.secrecyTermBasisType = ''
// }
this.confClassifiedBasisList = []
for (let i = 0; i < this.mainData.confClassifiedBasisList.length; i++) {
console.log('11111111', this.dialogForm.afterClassification)
this.confClassifiedBasisList = [];
let arr = [];
if (this.ruleForm.type == 1 || this.ruleForm.type == 2) {
arr = this.mainData.confClassifiedList;
} else {
arr = this.mainData.confClassifiedBasisList;
}
for (let i = 0; i < arr.length; i++) {
if (this.dialogForm.afterClassification) {
if (
this.mainData.confClassifiedBasisList[i].classification ==
this.dialogForm.afterClassification
) {
this.confClassifiedBasisList.push(
this.mainData.confClassifiedBasisList[i]
)
if (arr[i].classification == this.dialogForm.afterClassification) {
this.confClassifiedBasisList.push(arr[i]);
}
} else {
if (
this.mainData.confClassifiedBasisList[i].classification ==
this.ruleForm.classification
) {
this.confClassifiedBasisList.push(
this.mainData.confClassifiedBasisList[i]
)
if (arr[i].classification == this.ruleForm.classification) {
this.confClassifiedBasisList.push(arr[i]);
}
}
}
......@@ -858,14 +955,14 @@ export default {
undertaker: this.dialogForm.undertaker,
unitReviewer: this.ruleForm.unitReviewer,
editUnitId: this.$route.query.operatorUnit,
}
};
this.$axios.getSelectEmployeeThree(data).then((res) => {
if (res.data.code == 200) {
this.ems4 = res.data.data
this.getDetails4()
this.ems4 = res.data.data;
this.getDetails4();
} else {
}
})
});
},
getEmPerson4() {
// console.log(this.dialogForm);
......@@ -881,14 +978,14 @@ export default {
unitReviewer: this.ruleForm.unitReviewer,
editUnitId: this.$route.query.operatorUnit,
type: this.ruleForm.type,
}
};
this.$axios.getSelectEmployeeFour(data).then((res) => {
if (res.data.code == 200) {
this.ems1 = res.data.data
this.getDetails1()
this.ems1 = res.data.data;
this.getDetails1();
} else {
}
})
});
},
getEmPerson5() {
// console.log(this.dialogForm);
......@@ -903,203 +1000,202 @@ export default {
undertaker: this.ruleForm.undertaker,
unitReviewer: this.ruleForm.unitReviewer,
editUnitId: this.$route.query.operatorUnit,
}
};
this.$axios.getSelectEmployeeSix(data).then((res) => {
if (res.data.code == 200) {
this.ems5 = res.data.data
this.getDetails5()
this.ems5 = res.data.data;
this.getDetails5();
} else {
}
})
});
},
searchPeople1(query) {
this.listData.page = 1
this.listData.limit = 8
this.selectVal = query
this.listData.page = 1;
this.listData.limit = 8;
this.selectVal = query;
if (query) {
let num = this.listData.page * this.listData.limit
let em = []
let num = this.listData.page * this.listData.limit;
let em = [];
em = this.ems1.filter((item) => {
if (item.personName.indexOf(query) != -1) {
//这里匹配的是选项的value,也可以改成label
return true
return true;
}
})
});
this.em1 = em.filter((item, index, arr) => {
return index < num
})
return index < num;
});
} else {
this.getDetails1()
this.getDetails1();
}
},
searchPeople4(query) {
this.listData.page = 1
this.listData.limit = 8
this.selectVal = query
this.listData.page = 1;
this.listData.limit = 8;
this.selectVal = query;
if (query) {
let num = this.listData.page * this.listData.limit
let em = []
let num = this.listData.page * this.listData.limit;
let em = [];
em = this.ems4.filter((item) => {
if (item.personName.indexOf(query) != -1) {
//这里匹配的是选项的value,也可以改成label
return true
return true;
}
})
});
this.em4 = em.filter((item, index, arr) => {
return index < num
})
return index < num;
});
} else {
this.getDetails4()
this.getDetails4();
}
},
searchPeople5(query) {
this.listData.page = 1
this.listData.limit = 8
this.selectVal = query
this.listData.page = 1;
this.listData.limit = 8;
this.selectVal = query;
if (query) {
let num = this.listData.page * this.listData.limit
let em = []
let num = this.listData.page * this.listData.limit;
let em = [];
em = this.ems5.filter((item) => {
if (item.personName.indexOf(query) != -1) {
//这里匹配的是选项的value,也可以改成label
return true
return true;
}
})
});
this.em5 = em.filter((item, index, arr) => {
return index < num
})
return index < num;
});
} else {
this.getDetails4()
this.getDetails4();
}
},
handleFocus5() {
// console.log(123211);
this.listData.page = 1
this.listData.limit = 8
this.getDetails5()
this.listData.page = 1;
this.listData.limit = 8;
this.getDetails5();
},
handleFocus4() {
// console.log(123211);
this.listData.page = 1
this.listData.limit = 8
this.getDetails4()
this.listData.page = 1;
this.listData.limit = 8;
this.getDetails4();
},
handleFocus1() {
// console.log(123211);
this.listData.page = 1
this.listData.limit = 8
this.getDetails1()
this.listData.page = 1;
this.listData.limit = 8;
this.getDetails1();
},
lazyloading1() {
this.listData.page++
this.getDetails1()
this.listData.page++;
this.getDetails1();
},
lazyloading4() {
this.listData.page++
this.getDetails4()
this.listData.page++;
this.getDetails4();
},
getDetails1() {
let num = this.listData.page * this.listData.limit
let num = this.listData.page * this.listData.limit;
this.em1 = this.ems1.filter((item, index, arr) => {
return index < num //这里默认allData已经取到了数据,就不把获取allData数据的方法放上来了
})
return index < num; //这里默认allData已经取到了数据,就不把获取allData数据的方法放上来了
});
},
getDetails4() {
let num = this.listData.page * this.listData.limit
let num = this.listData.page * this.listData.limit;
this.em4 = this.ems4.filter((item, index, arr) => {
return index < num //这里默认allData已经取到了数据,就不把获取allData数据的方法放上来了
})
return index < num; //这里默认allData已经取到了数据,就不把获取allData数据的方法放上来了
});
},
getDetails5() {
let num = this.listData.page * this.listData.limit
let num = this.listData.page * this.listData.limit;
this.em5 = this.ems5.filter((item, index, arr) => {
return index < num //这里默认allData已经取到了数据,就不把获取allData数据的方法放上来了
})
return index < num; //这里默认allData已经取到了数据,就不把获取allData数据的方法放上来了
});
},
//打开二次弹框
changeDate() {
console.log(this.ruleForm)
console.log('二次', JSON.parse(JSON.stringify(this.dialogForm)))
console.log("二次", JSON.parse(JSON.stringify(this.dialogForm)));
if (this.dialogForm.afterClassification) {
//变更过
this.formData.classification = this.dialogForm.afterClassification
this.formData.classification = this.dialogForm.afterClassification;
if (this.dialogForm.afterRange) {
this.formData.range = this.dialogForm.afterRange
this.formData.range = this.dialogForm.afterRange;
}
if (!this.dialogForm.afterSecrecyTermType) {
this.radios = 1
this.formData.secrecyTermType = 1
this.radios = 1;
this.formData.secrecyTermType = 1;
} else {
this.formData.secrecyTermType = this.dialogForm.afterSecrecyTermType
this.formData.secrecyTermType = this.dialogForm.afterSecrecyTermType;
if (
this.formData.secrecyTermType == '5' ||
this.formData.secrecyTermType == '6'
this.formData.secrecyTermType == "5" ||
this.formData.secrecyTermType == "6"
) {
this.radios = ''
this.radios = "";
} else {
this.radios = 1
this.radios = 1;
}
if (this.formData.secrecyTermType == 1) {
this.formData.qixian1 = this.dialogForm.afterSecrecyTermContent
this.formData.qixian1 = this.dialogForm.afterSecrecyTermContent;
}
if (this.formData.secrecyTermType == 2) {
this.formData.qixian2 = this.dialogForm.afterSecrecyTermContent
this.formData.qixian2 = this.dialogForm.afterSecrecyTermContent;
}
if (this.formData.secrecyTermType == 3) {
this.formData.qixian3 = this.dialogForm.afterSecrecyTermContent
this.formData.qixian3 = this.dialogForm.afterSecrecyTermContent;
}
if (this.formData.secrecyTermType == 5) {
this.formData.qixian4 = this.dialogForm.afterSecrecyTermContent
this.formData.qixian4 = this.dialogForm.afterSecrecyTermContent;
}
if (this.formData.secrecyTermType == 6) {
this.formData.qixian5 = this.dialogForm.afterSecrecyTermContent
this.formData.qixian5 = this.dialogForm.afterSecrecyTermContent;
}
}
} else {
//未变更过
this.formData.classification = this.ruleForm.classification
this.formData.range = this.ruleForm.range
this.formData.classification = this.ruleForm.classification;
this.formData.range = this.ruleForm.range;
if (this.ruleForm.secrecyTermType == 1) {
this.radios = 1
this.formData.secrecyTermType = 1
this.radios = 1;
this.formData.secrecyTermType = 1;
} else {
console.log('ruleForm.secrecyTermType')
console.log("ruleForm.secrecyTermType");
// this.formData.secrecyTermType = this.ruleForm.secrecyTermType
this.$set(
this.formData,
'secrecyTermType',
"secrecyTermType",
Number(this.ruleForm.secrecyTermType)
)
);
console.log(
this.formData.secrecyTermType,
typeof this.formData.secrecyTermType
)
);
if (
this.ruleForm.secrecyTermType == 5 ||
this.ruleForm.secrecyTermType == 6
) {
this.radios = ''
this.radios = "";
} else {
this.radios = 1
this.radios = 1;
}
// console.log(this.ruleForm.secrecyTermType)
if (this.ruleForm.secrecyTermType == 1) {
this.formData.secrecyTermType = 1
this.formData.qixian1 = this.ruleForm.secrecyTermContent
this.formData.secrecyTermType = 1;
this.formData.qixian1 = this.ruleForm.secrecyTermContent;
}
if (this.ruleForm.secrecyTermType == 2) {
this.formData.secrecyTermType = 2
this.formData.qixian2 = this.ruleForm.secrecyTermContent
this.formData.secrecyTermType = 2;
this.formData.qixian2 = this.ruleForm.secrecyTermContent;
}
if (this.ruleForm.secrecyTermType == 3) {
this.formData.qixian3 = this.ruleForm.secrecyTermContent
this.formData.qixian3 = this.ruleForm.secrecyTermContent;
}
if (this.ruleForm.secrecyTermType == 5) {
this.formData.qixian4 = this.ruleForm.secrecyTermContent
this.formData.qixian4 = this.ruleForm.secrecyTermContent;
}
if (this.ruleForm.secrecyTermType == 6) {
this.formData.qixian5 = this.ruleForm.secrecyTermContent
this.formData.qixian5 = this.ruleForm.secrecyTermContent;
}
}
}
......@@ -1141,119 +1237,117 @@ export default {
// }
// }
this.dialogVisibles = true
this.dialogVisibles = true;
},
changeQixian() {
// if()
if (this.radios) {
this.formData.secrecyTermType = 1
this.formData.secrecyTermType = 1;
}
this.formData.qixian1 = ''
this.formData.qixian2 = ''
this.formData.qixian3 = ''
this.formData.qixian4 = ''
this.formData.qixian5 = ''
this.formData.qixian1 = "";
this.formData.qixian2 = "";
this.formData.qixian3 = "";
this.formData.qixian4 = "";
this.formData.qixian5 = "";
this.$nextTick(() => {
this.$forceUpdate()
})
this.$forceUpdate();
});
},
getClass() {
console.log(this.ruleForm)
if (this.ruleForm.changeStatus == 1) {
return 'ddm'
return "ddm";
}
if (this.ruleForm.changeStatus == 2) {
return 'bmz'
return "bmz";
}
if (this.ruleForm.changeStatus == 3) {
return 'bfjm'
return "bfjm";
}
if (this.ruleForm.changeStatus == 4) {
return 'ggmm'
return "ggmm";
}
if (this.ruleForm.changeStatus == 5) {
return 'ygk'
return "ygk";
}
if (this.ruleForm.changeStatus == 6) {
return 'bgz'
return "bgz";
}
if (this.ruleForm.changeStatus == 7) {
return 'jmz'
return "jmz";
}
if (this.ruleForm.changeStatus == 8) {
return 'gkz'
return "gkz";
}
},
//保密期限切换清空选项数据
changeSecrecyTermType() {
if (
this.formData.secrecyTermType == '5' ||
this.formData.secrecyTermType == '6'
this.formData.secrecyTermType == "5" ||
this.formData.secrecyTermType == "6"
) {
this.radios = ''
}
this.formData.qixian1 = ''
this.formData.qixian2 = ''
this.formData.qixian3 = ''
this.formData.qixian4 = ''
this.formData.qixian5 = ''
this.$forceUpdate()
this.radios = "";
}
this.formData.qixian1 = "";
this.formData.qixian2 = "";
this.formData.qixian3 = "";
this.formData.qixian4 = "";
this.formData.qixian5 = "";
this.$forceUpdate();
},
toYuLan() {
this.$axios.caigouPreview(this.ruleForm).then((res) => {
if (res.data.code == 200) {
window.open(urlConfig.production_https + res.data.data)
window.open(urlConfig.production_https + res.data.data);
}
})
});
},
showUnit(row) {
if (row && this.mainData.newPurchasingUnitList) {
let index = this.mainData.newPurchasingUnitList.findIndex((item) => {
return item.id == row
})
return item.id == row;
});
if (index != -1) {
if (this.mainData.newPurchasingUnitList[index].manageOptions) {
return this.mainData.newPurchasingUnitList[index].manageOptions
return this.mainData.newPurchasingUnitList[index].manageOptions;
}
}
}
},
showJieMi(item) {
if (item == 1) {
return '解密并公开'
return "解密并公开";
}
if (item == 2) {
return '解密后内部使用'
return "解密后内部使用";
}
if (item == 3) {
return '部分解密'
return "部分解密";
}
},
showStatus(item) {
if (item == 1) {
return '待定密'
return "待定密";
}
if (item == 2) {
return '保密中'
return "保密中";
}
if (item == 3) {
return '部分解密'
return "部分解密";
}
if (item == 4) {
return '工作秘密'
return "工作秘密";
}
if (item == 5) {
return '已公开'
return "已公开";
}
},
showChengdu(row) {
if (row && this.mainData.urgencyList) {
let index = this.mainData.urgencyList.findIndex((item) => {
return item.id == row
})
return item.id == row;
});
if (index != -1) {
if (this.mainData.urgencyList[index].manageOptions) {
return this.mainData.urgencyList[index].manageOptions
return this.mainData.urgencyList[index].manageOptions;
}
}
}
......@@ -1261,11 +1355,11 @@ export default {
showQiTaPerson(row) {
if (row && this.mainData.employeeList) {
let index = this.mainData.employeeList.findIndex((item) => {
return item.personId == row
})
return item.personId == row;
});
if (index != -1) {
if (this.mainData.employeeList[index].personName) {
return this.mainData.employeeList[index].personName
return this.mainData.employeeList[index].personName;
}
}
}
......@@ -1274,12 +1368,12 @@ export default {
if (row && this.mainData.specifyClassifiedResponsibleList) {
let index = this.mainData.specifyClassifiedResponsibleList.findIndex(
(item) => {
return item.personId == row
return item.personId == row;
}
)
);
if (this.mainData.specifyClassifiedResponsibleList[index].personName) {
return this.mainData.specifyClassifiedResponsibleList[index]
.personName
.personName;
}
}
},
......@@ -1287,12 +1381,12 @@ export default {
if (row && this.mainData.legalClassifiedResponsibleList) {
let index = this.mainData.legalClassifiedResponsibleList.findIndex(
(item) => {
return item.personId == row
return item.personId == row;
}
)
);
if (this.mainData.legalClassifiedResponsibleList[index].personName) {
return this.mainData.legalClassifiedResponsibleList[index].personName
return this.mainData.legalClassifiedResponsibleList[index].personName;
}
}
},
......@@ -1300,44 +1394,44 @@ export default {
if (row) {
if (content) {
if (row == 1) {
return content + '年'
return content + "年";
}
if (row == 2) {
return content + '月'
return content + "月";
}
if (row == 3) {
return content + '日'
return content + "日";
}
if (row == 4) {
// console.log("row");
return '长期'
return "长期";
}
return content
return content;
}
}
},
showYiJu(row) {
if (row && this.mainData.confClassifiedBasisList) {
let index = this.mainData.confClassifiedBasisList.findIndex((item) => {
return item.id == row
})
return item.id == row;
});
if ((index || index == 0) && index != -1) {
// console.log(this.mainData.confClassifiedBasisList[index].basisName);
if (this.mainData.confClassifiedBasisList[index].basisName) {
return this.mainData.confClassifiedBasisList[index].basisName
return this.mainData.confClassifiedBasisList[index].basisName;
}
} else {
return row
return row;
}
}
},
showMiJi(row) {
if (row && this.mainData.classificationList) {
let index = this.mainData.classificationList.findIndex((item) => {
return item.id == row + ''
})
return item.id == row + "";
});
if (this.mainData.classificationList[index].manageOptions) {
return this.mainData.classificationList[index].manageOptions
return this.mainData.classificationList[index].manageOptions;
}
// console.log("miji", row);
}
......@@ -1345,217 +1439,216 @@ export default {
showTypeName(item) {
if (item == 1) {
return '发文拟稿'
return "发文拟稿";
}
if (item == 2) {
return '涉密采购'
return "涉密采购";
}
if (item == 3) {
return '涉密事项'
return "涉密事项";
}
},
//修改解密
updata(item) {
this.dialogForm = item
this.getEmPerson3()
this.getEmPerson4()
this.dialogForm.beforeClassification = this.ruleForm.classification
this.dialogForm.beforeRange = this.ruleForm.range
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType
this.dialogForm = item;
this.getEmPerson3();
this.getEmPerson4();
this.dialogForm.beforeClassification = this.ruleForm.classification;
this.dialogForm.beforeRange = this.ruleForm.range;
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType;
this.dialogForm.beforeSecrecyTermContent =
this.ruleForm.secrecyTermContent
console.log(
this.dialogForm.beforeSecrecyTermType,
this.dialogForm.beforeSecrecyTermContent
)
this.ruleForm.secrecyTermContent;
if (this.dialogForm.secrecyTermBasisType) {
this.dialogForm.basisType = '1'
console.log(1)
this.dialogForm.basisType = "1";
} else if (this.dialogForm.secrecyTermBasisContent) {
this.dialogForm.basisType = '2'
console.log(2)
this.dialogForm.basisType = "2";
}
this.dialogForm.classifiedId = this.$route.query.id
this.dialogForm.classifiedId = this.$route.query.id;
if (!this.dialogForm.afterSecrecyTermContent) {
this.dialogForm.afterSecrecyTermContent = '请选择'
this.dialogForm.afterSecrecyTermContent = "请选择";
}
this.getYiju(2)
this.dialogVisible = true
this.getYiju(2);
this.dialogVisible = true;
},
//获取数据
getData() {
this.$axios.getRemoveDetail(this.$route.query.id).then((res) => {
if (res.data.code == 200) {
this.ruleForm = res.data.data.confClassifiedAndDetailsVo
this.dataList = res.data.data.confClassifiedDecryptVoList
console.log(
"依据id获取数据",
res.data.data.confClassifiedAndDetailsVo,
this.mainData
);
this.ruleForm = res.data.data.confClassifiedAndDetailsVo;
this.dataList = res.data.data.confClassifiedDecryptVoList;
} else {
this.$message.error(res.data.data)
this.$message.error(res.data.data);
}
})
});
},
//审核操作
sureShen() {
for (let i = 0; i < this.ems1.length; i++) {
if (this.ems1[i].personId == this.dialogForm.undertaker) {
this.dialogForm.undertakerName = this.ems1[i].personName
this.dialogForm.undertakerName = this.ems1[i].personName;
}
if (this.ems1[i].personId == this.dialogForm.classifiedPerson) {
this.dialogForm.classifiedPersonName = this.ems1[i].personName
this.dialogForm.classifiedPersonName = this.ems1[i].personName;
}
}
this.$refs['ruleForm'].validate((valid) => {
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
if (this.dialogForm.decryptType != 2) {
this.dialogForm.afterSecrecyTermContent = ''
this.dialogForm.afterSecrecyTermType = null
this.dialogForm.afterSecrecyTermContent = "";
this.dialogForm.afterSecrecyTermType = null;
}
this.dialogForm.beforeClassification = this.ruleForm.classification
this.dialogForm.beforeRange = this.ruleForm.range
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType
this.dialogForm.beforeClassification = this.ruleForm.classification;
this.dialogForm.beforeRange = this.ruleForm.range;
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType;
this.dialogForm.beforeSecrecyTermContent =
this.ruleForm.secrecyTermContent
this.ruleForm.secrecyTermContent;
this.$axios.decryptAuditPass(this.dialogForm).then((res) => {
if (res.data.code == 200) {
this.$message.success('操作成功!')
this.getData()
this.handleClose()
this.$message.success("操作成功!");
this.getData();
this.handleClose();
} else {
this.$message.error(res.data.data)
this.$message.error(res.data.data);
}
})
});
} else {
this.$message.error('请先填写完表单!')
this.$message.error("请先填写完表单!");
}
})
});
},
//预览操作
yulans() {
for (let i = 0; i < this.ems1.length; i++) {
if (this.ems1[i].personId == this.dialogForm.undertaker) {
this.dialogForm.undertakerName = this.ems1[i].personName
this.dialogForm.undertakerName = this.ems1[i].personName;
}
if (this.ems1[i].personId == this.dialogForm.classifiedPerson) {
this.dialogForm.classifiedPersonName = this.ems1[i].personName
this.dialogForm.classifiedPersonName = this.ems1[i].personName;
}
}
this.$refs['ruleForm'].validate((valid) => {
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
if (this.dialogForm.decryptType != 2) {
this.dialogForm.afterSecrecyTermContent = ''
this.dialogForm.afterSecrecyTermType = null
this.dialogForm.afterSecrecyTermContent = "";
this.dialogForm.afterSecrecyTermType = null;
}
this.dialogForm.beforeClassification = this.ruleForm.classification
this.dialogForm.beforeRange = this.ruleForm.range
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType
this.dialogForm.beforeClassification = this.ruleForm.classification;
this.dialogForm.beforeRange = this.ruleForm.range;
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType;
this.dialogForm.beforeSecrecyTermContent =
this.ruleForm.secrecyTermContent
let data = this.dialogForm
data.documentNumContent = this.ruleForm.documentNumContent
data.issueDate = this.ruleForm.issueDate
data.itemName = this.ruleForm.itemName
data.undertaker = this.ruleForm.undertaker
data.undertakerOpinion = this.ruleForm.undertakerOpinion
this.ruleForm.secrecyTermContent;
let data = this.dialogForm;
data.documentNumContent = this.ruleForm.documentNumContent;
data.issueDate = this.ruleForm.issueDate;
data.itemName = this.ruleForm.itemName;
data.undertaker = this.ruleForm.undertaker;
data.undertakerOpinion = this.ruleForm.undertakerOpinion;
this.$axios.decrypPreview(data).then((res) => {
if (res.data.code == 200) {
window.open(urlConfig.production_https + res.data.data)
window.open(urlConfig.production_https + res.data.data);
} else {
this.$message.error(res.data.data)
this.$message.error(res.data.data);
}
})
});
} else {
this.$message.error('请先填写完表单!')
this.$message.error("请先填写完表单!");
}
})
});
},
//保存解密操作
sureSave() {
for (let i = 0; i < this.ems1.length; i++) {
if (this.ems1[i].personId == this.dialogForm.undertaker) {
this.dialogForm.undertakerName = this.ems1[i].personName
this.dialogForm.undertakerName = this.ems1[i].personName;
}
if (this.ems1[i].personId == this.dialogForm.classifiedPerson) {
this.dialogForm.classifiedPersonName = this.ems1[i].personName
this.dialogForm.classifiedPersonName = this.ems1[i].personName;
}
}
this.$refs['ruleForm'].validate((valid) => {
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
this.dialogForm.beforeClassification = this.ruleForm.classification
this.dialogForm.beforeRange = this.ruleForm.range
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType
this.dialogForm.beforeClassification = this.ruleForm.classification;
this.dialogForm.beforeRange = this.ruleForm.range;
this.dialogForm.beforeSecrecyTermType = this.ruleForm.secrecyTermType;
this.dialogForm.beforeSecrecyTermContent =
this.ruleForm.secrecyTermContent
this.ruleForm.secrecyTermContent;
if (this.dialogForm.decryptType != 2) {
this.dialogForm.afterSecrecyTermContent = ''
this.dialogForm.afterSecrecyTermType = null
this.dialogForm.afterSecrecyTermContent = "";
this.dialogForm.afterSecrecyTermType = null;
}
// console.log(typeof this.dialogForm.decryptTime);
// console.log(this.dialogForm);
this.$axios.newDecryptionOperation(this.dialogForm).then((res) => {
if (res.data.code == 200) {
this.$message.success('操作成功!')
this.getData()
this.handleClose()
this.$message.success("操作成功!");
this.getData();
this.handleClose();
} else {
this.$message.error(res.data.data)
this.$message.error(res.data.data);
}
})
});
} else {
this.$message.error('请先填写完表单!')
this.$message.error("请先填写完表单!");
}
})
});
},
//新增解密操作
insert() {
this.$axios.decryptNew(this.$route.query.id).then((res) => {
if (res.data.code == 200) {
this.dialogForm.classifiedId = this.$route.query.id
this.dialogForm.undertaker = this.ruleForm.undertaker
this.dialogForm.classifiedId = this.$route.query.id;
this.dialogForm.undertaker = this.ruleForm.undertaker;
this.dialogForm.secrecyTermBasisType =
this.ruleForm.classifiedBasisContent
this.ruleForm.classifiedBasisContent;
// this.dialogForm.basisType = Number(this.ruleForm.classifiedBasisType)
// this.dialogForm.basisType = this.ruleForm.classifiedBasisContent
if (this.ruleForm.type == 1) {
if (this.ruleForm.legalClassifiedResponsible) {
this.dialogForm.classifiedPerson =
this.ruleForm.legalClassifiedResponsible
this.ruleForm.legalClassifiedResponsible;
} else {
this.dialogForm.classifiedPerson =
this.ruleForm.specifyClassifiedResponsible
this.ruleForm.specifyClassifiedResponsible;
}
} else {
this.dialogForm.classifiedPerson = this.ruleForm.classifiedReviewer
this.dialogForm.classifiedPerson = this.ruleForm.classifiedReviewer;
}
this.dialogForm.classifiedPersonOpinion =
this.ruleForm.classifiedOpinionContent
this.ruleForm.classifiedOpinionContent;
if (!this.dialogForm.afterSecrecyTermContent) {
this.dialogForm.afterSecrecyTermContent = '请选择'
this.dialogForm.afterSecrecyTermContent = "请选择";
}
this.getEmPerson3()
this.getEmPerson4()
this.getYiju(2)
this.getEmPerson3();
this.getEmPerson4();
this.getYiju(2);
this.dialogVisible = true
this.$forceUpdate()
this.dialogVisible = true;
this.$forceUpdate();
} else {
this.$message.error(res.data.data)
this.$message.error(res.data.data);
}
})
});
},
//处理解密类型
getLeixing(val) {
if (val == 1) {
return '维持原定密决定'
return "维持原定密决定";
}
if (val == 2) {
return '变更'
return "变更";
}
if (val == 3) {
return '解密'
return "解密";
}
},
quxiao() {
this.handleClose(1)
this.handleClose(1);
},
//确定保密期限
surechange() {
......@@ -1569,122 +1662,121 @@ export default {
this.formData.qixian5
) {
if (this.formData.classification) {
this.dialogForm.afterClassification = this.formData.classification
this.getYiju(1)
this.dialogForm.afterClassification = this.formData.classification;
this.getYiju(1);
}
if (this.formData.range) {
this.dialogForm.afterRange = this.formData.range
this.dialogForm.afterRange = this.formData.range;
}
this.dialogForm.afterSecrecyTermType = this.formData.secrecyTermType
this.dialogForm.afterSecrecyTermType = this.formData.secrecyTermType;
if (this.dialogForm.afterSecrecyTermType == 1) {
this.dialogForm.afterSecrecyTermContent = this.formData.qixian1
this.dialogForm.afterSecrecyTermContent = this.formData.qixian1;
}
if (this.dialogForm.afterSecrecyTermType == 2) {
this.dialogForm.afterSecrecyTermContent = this.formData.qixian2
this.dialogForm.afterSecrecyTermContent = this.formData.qixian2;
}
if (this.dialogForm.afterSecrecyTermType == 3) {
this.dialogForm.afterSecrecyTermContent = this.formData.qixian3
this.dialogForm.afterSecrecyTermContent = this.formData.qixian3;
}
if (this.dialogForm.afterSecrecyTermType == 5) {
this.dialogForm.afterSecrecyTermContent = this.formData.qixian4
this.dialogForm.afterSecrecyTermContent = this.formData.qixian4;
}
if (this.dialogForm.afterSecrecyTermType == 6) {
this.dialogForm.afterSecrecyTermContent = this.formData.qixian5
this.dialogForm.afterSecrecyTermContent = this.formData.qixian5;
}
if (!this.dialogForm.afterSecrecyTermContent) {
this.dialogForm.afterSecrecyTermType = ''
this.dialogForm.afterSecrecyTermType = "";
}
this.handleClose(1)
this.handleClose(1);
} else {
this.$message.error('请先填写需要修改的内容!')
this.$message.error("请先填写需要修改的内容!");
}
},
//切换解密类型清空数据
typeChange() {
console.log(123)
console.log(JSON.parse(JSON.stringify(this.dialogForm)))
this.uIndex = this.dialogForm.decryptType
console.log(JSON.parse(JSON.stringify(this.dialogForm)));
this.uIndex = this.dialogForm.decryptType;
this.dialogForm = {
afterClassification: '',
afterRange: '',
afterSecrecyTermContent: '',
afterSecrecyTermType: '',
beforeClassification: '',
beforeRange: '',
beforeSecrecyTermContent: '',
afterClassification: "",
afterRange: "",
afterSecrecyTermContent: "",
afterSecrecyTermType: "",
beforeClassification: "",
beforeRange: "",
beforeSecrecyTermContent: "",
beforeSecrecyTermType: 1,
classifiedId: this.$route.query.id,
classifiedPerson: this.dialogForm.classifiedPerson,
classifiedPersonOpinion: this.dialogForm.classifiedPersonOpinion,
createTime: '',
createTime: "",
decryptAuditStatus: 1,
decryptExecutionStatus: 1,
decryptMethod: 1,
decryptTime: '',
decryptTime: "",
decryptType: this.dialogForm.decryptType,
id: this.dialogForm.id,
secrecyTermBasisContent: '',
secrecyTermBasisType: '',
secrecyTermBasisContent: "",
secrecyTermBasisType: "",
undertaker: this.dialogForm.undertaker,
undertakerOpinion: '',
basisType: '1',
}
undertakerOpinion: "",
basisType: "1",
};
this.$set(
this.dialogForm,
'secrecyTermBasisType',
"secrecyTermBasisType",
this.ruleForm.classifiedBasisContent
)
console.log('dislogForm', JSON.parse(JSON.stringify(this.dialogForm)))
console.log(this.dialogForm)
);
console.log("dislogForm", JSON.parse(JSON.stringify(this.dialogForm)));
console.log(this.dialogForm);
// this.dialogForm.secrecyTermBasisType = this.$set(this.ruleForm,''classifiedBasisContent)
this.$refs.ruleForm.clearValidate()
this.getYiju(1)
this.$refs.ruleForm.clearValidate();
this.getYiju(1);
},
//dialog的关闭方法
handleClose(val) {
if (val != 1) {
this.dialogVisible = false
this.dialogVisible = false;
this.dialogForm = {
afterClassification: '',
afterRange: '',
afterSecrecyTermContent: '',
afterSecrecyTermType: '',
beforeClassification: '',
beforeRange: '',
beforeSecrecyTermContent: '',
afterClassification: "",
afterRange: "",
afterSecrecyTermContent: "",
afterSecrecyTermType: "",
beforeClassification: "",
beforeRange: "",
beforeSecrecyTermContent: "",
beforeSecrecyTermType: 1,
classifiedId: '',
classifiedPerson: '',
classifiedPersonOpinion: '',
createTime: '',
classifiedId: "",
classifiedPerson: "",
classifiedPersonOpinion: "",
createTime: "",
decryptAuditStatus: 1,
decryptExecutionStatus: 1,
decryptMethod: 1,
decryptTime: '',
decryptTime: "",
decryptType: 3,
id: '',
secrecyTermBasisContent: '',
secrecyTermBasisType: '',
undertaker: '',
undertakerOpinion: '',
}
id: "",
secrecyTermBasisContent: "",
secrecyTermBasisType: "",
undertaker: "",
undertakerOpinion: "",
};
}
this.formData = {
secrecyTermType: 1,
classification: '',
range: '',
qixian1: '',
qixian2: '',
qixian3: '',
qixian4: '',
qixian5: '',
}
this.dialogVisibles = false
classification: "",
range: "",
qixian1: "",
qixian2: "",
qixian3: "",
qixian4: "",
qixian5: "",
};
this.dialogVisibles = false;
},
},
}
};
</script>
<style lang="less" scoped>
......@@ -1692,7 +1784,7 @@ export default {
::v-deep input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
}
::v-deep input[type='number'] {
::v-deep input[type="number"] {
line-height: 1;
-moz-appearance: textfield !important;
}
......@@ -1827,7 +1919,7 @@ export default {
.biangen1 {
width: 24px;
height: 24px;
background: url('../../../assets/images/biangen1.png');
background: url("../../../assets/images/biangen1.png");
background-repeat: no-repeat;
cursor: pointer;
// position: absolute;
......@@ -1837,7 +1929,7 @@ export default {
.biangen2 {
width: 24px;
height: 24px;
background: url('../../../assets/images/biangen2.png');
background: url("../../../assets/images/biangen2.png");
background-repeat: no-repeat;
}
}
......@@ -1915,7 +2007,7 @@ export default {
font-size: 28px;
letter-spacing: 1px;
color: #1a1b27;
font-family: 'SourceHanSansCN-Bold';
font-family: "SourceHanSansCN-Bold";
margin-right: 10px;
margin-top: -13px;
}
......@@ -1925,42 +2017,42 @@ export default {
margin-bottom: 5%;
}
.ddm {
background-image: url('../../../assets/public/icon/待定密66_22.png');
background-image: url("../../../assets/public/icon/待定密66_22.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.bmz {
background-image: url('../../../assets/public/icon/保密中66_22.png');
background-image: url("../../../assets/public/icon/保密中66_22.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.bfjm {
background-image: url('../../../assets/public/icon/部分解密80_22.png');
background-image: url("../../../assets/public/icon/部分解密80_22.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.ggmm {
background-image: url('../../../assets/public/icon/工作秘密80_22.png');
background-image: url("../../../assets/public/icon/工作秘密80_22.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.ygk {
background-image: url('../../../assets/public/icon/已公开66_22.png');
background-image: url("../../../assets/public/icon/已公开66_22.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.bgz {
background-image: url('../../../assets/public/icon/biangengzhong.png');
background-image: url("../../../assets/public/icon/biangengzhong.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.jmz {
background-image: url('../../../assets/public/icon/jiemizhong.png');
background-image: url("../../../assets/public/icon/jiemizhong.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.gkz {
background-image: url('../../../assets/public/icon/gongkaizhong.png');
background-image: url("../../../assets/public/icon/gongkaizhong.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
......
......@@ -2042,6 +2042,13 @@
"resolved" "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz"
"version" "2.2.0"
"bindings@^1.5.0":
"integrity" "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ=="
"resolved" "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz"
"version" "1.5.0"
dependencies:
"file-uri-to-path" "1.0.0"
"bluebird@^3.1.1", "bluebird@^3.5.5":
"integrity" "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
"resolved" "https://registry.npmmirror.com/bluebird/-/bluebird-3.7.2.tgz"
......@@ -4003,6 +4010,19 @@
"resolved" "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz"
"version" "1.0.0"
"fsevents@^1.2.7":
"integrity" "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw=="
"resolved" "https://registry.npmmirror.com/fsevents/-/fsevents-1.2.13.tgz"
"version" "1.2.13"
dependencies:
"bindings" "^1.5.0"
"nan" "^2.12.1"
"fsevents@~2.3.2":
"integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="
"resolved" "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.2.tgz"
"version" "2.3.2"
"function-bind@^1.1.1":
"integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"resolved" "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz"
......@@ -5634,6 +5654,11 @@
"object-assign" "^4.0.1"
"thenify-all" "^1.0.0"
"nan@^2.12.1":
"integrity" "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ=="
"resolved" "https://registry.npmmirror.com/nan/-/nan-2.15.0.tgz"
"version" "2.15.0"
"nanomatch@^1.2.9":
"integrity" "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA=="
"resolved" "https://registry.npmmirror.com/nanomatch/-/nanomatch-1.2.13.tgz"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论