更改数据

xuhongjie^2
李劲龙 1 month ago
parent f6aa17792b
commit dfa214f8cb

@ -23,7 +23,7 @@ export default {
/*
!!process.env.VUE_APP_BASE_API 开头的为公司环境
assetsManagement 除了assetsAuth.vue,其他文件切换 上传文件 公司环境正式环境
assetsManagement 除了 assetsAuth.vue, 其他文件切换 上传文件 公司环境正式环境
myUpload 切换正式环境,公司环境
vue.config.js 切换公司环境,正式环境
.env.production 切换公司环境,正式环境

@ -196,4 +196,21 @@ export function assetTaskdwHcBl(data) {
method: "post",
data,
})
}
export function assetTaskzcTj(data) {
return request({
url: `/unit/assetTask/zcTj`,
method: "post",
data,
})
}
export function assetTaskhistory(params) {
return request({
url: `/unit/assetTask/history`,
method: "get",
params,
})
}

@ -64,6 +64,12 @@ export default {
const route = sidebarRouters.filter(item => item.path == '')
const twoActiveRoute = route[0].children.filter(item => item.path == "taskInfo")
this.levelList = [activeRoute[0].children[0],twoActiveRoute[0],matched[0]]
}else if(matched[0].path == "/taskAuditInfolishichakan") {
// ------
const activeRoute = sidebarRouters.filter(item => item.path == '/' && item.children[0].path == 'task')
const route = sidebarRouters.filter(item => item.path == '')
const twoActiveRoute = route[0].children.filter(item => item.path == "taskInfo")
this.levelList = [activeRoute[0].children[0],twoActiveRoute[0],matched[0]]
} else if(matched[0].path == "/mytaskAuditInfo") {
// ------
const activeRoute = sidebarRouters.filter(item => item.path == '/' && item.children[0].path == 'myTask')

@ -94,6 +94,11 @@ export const constantRoutes = [
component: () => import('@/views/auditPages/taskManagement/audit'),
name: 'taskAuditInfo',
meta: { title: '资产审核', icon: 'user', activeMenu: "/task" }
},{
path: 'taskAuditInfolishichakan',
component: () => import('@/views/auditPages/taskManagement/audit'),
name: 'taskAuditInfolishichakan',
meta: { title: '资产提交记录', icon: 'user', activeMenu: "/task" }
},{
path: 'mytaskInfo',
component: () => import('@/views/unitPages/myTask/info'),

@ -56,7 +56,7 @@ service.interceptors.request.use(config => {
const s_url = sessionObj.url; // 请求地址
const s_data = sessionObj.data; // 请求数据
const s_time = sessionObj.time; // 请求时间
const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交
const interval = 100; // 间隔时间(ms),小于此时间视为重复提交
if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
const message = '数据正在处理,请勿重复提交';
console.warn(`[${s_url}]: ` + message)

@ -245,8 +245,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.getDeptTree();

@ -1,4 +1,4 @@
<!-- 资产管理 -- web系统 -->
<!--assetsManage/assets-->
<template>
<el-row :gutter="20" style="height: 100%;background-color: #F2F4F6;display: flex;">
<!--部门数据-->
@ -239,7 +239,7 @@ export default {
dwmc:"",
xtzt:"",
current:1,
size:10,
size:20,
},
total:0,
tableData:[],
@ -264,9 +264,13 @@ export default {
}
},
mounted(){
// console.log(this.$route.params,"params");
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
console.log(this.$route.params,"params");
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.getDeptTree();
@ -296,6 +300,8 @@ export default {
//
getList(){
this.loading = true;
console.log(this.formInline);
assetUnit('get',this.formInline).then(res=>{
this.loading = false;
this.total = res.data.total;
@ -312,6 +318,7 @@ export default {
//
handleQuery(){
this.formInline.current = 1;
this.formInline.size = 20
if(this.formInline.time) {
this.formInline.startTime = this.formInline.time[0]
this.formInline.endTime = this.formInline.time[1]

@ -271,8 +271,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.getDeptTree();

@ -122,6 +122,11 @@
<!-- <el-table-column label="单位名称" key="dwmc" prop="dwmc" align="center">
</el-table-column> -->
<el-table-column label="新增时间" key="createTime" prop="createTime" align="center" />
<el-table-column label="平台类型" key="ptlx" prop="ptlx" align="center">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_ptlx_type" :value="scope.row.ptlx"/>
</template>
</el-table-column>
<el-table-column label="公众号状态" key="status" prop="status" class-name="table-status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.gzhzt == 1" style="color: #16B771;">
@ -215,7 +220,7 @@ import myPagination from "@/views/components/Pagination/index.vue"
import { getToken } from "@/utils/auth";
import { assetOfficialAccountList, deleteAssetOfficialAccount, schema } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
dicts: ['zc_xtzt','zc_xtlx','sys_ptlx_type'],
components:{myPagination},
data() {
return {
@ -257,8 +262,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.getDeptTree();

@ -256,8 +256,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.getDeptTree();

@ -1,4 +1,4 @@
<!-- taskAuditInfo -->
<template>
<webType1 v-if="$route.query.type==0"></webType1>
<assetsTypeTwo :pageType="$route.query.pageType" v-else-if="$route.query.type == 1" />

@ -1,5 +1,7 @@
<template>
<div class="L-task-info">
<div class="info-left" id="L-size-main">
<div class="content-info" id="L-header">
<div class="info-title">任务详情</div>
@ -125,7 +127,7 @@
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :row-class-name="tableRowClassName">
<el-table-column type="index" width="50" label="序号" align="center" />
<!-- <el-table-column label="资产编号" key="id" width="200px" prop="id" align="center" /> -->
<el-table-column :label="xtmcName" key="xtmc" prop="xtmc" align="center" />
<el-table-column :label="xtmcName" prop="xtmc" align="center" />
<!-- <el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<template slot-scope="scope" >
<div v-if='scope.row.xtlx'>
@ -136,7 +138,7 @@
</el-table-column> -->
<el-table-column label="核查单位" prop="zcdwmc" align="center" />
<el-table-column label="单位核查时间" prop="updateTime" align="center" />
<el-table-column label="审核状态" key="status" width="200px" prop="status" class-name="table-status"
<el-table-column label="审核状态" key="status" width="120px" prop="status" class-name="table-status"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.status == 0" style="color: #e6a230;">
@ -177,6 +179,11 @@
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" style="color: #1485EF;">查看原因</span>
</div>
<div style="display: flex;align-items: center;cursor: pointer;margin-left: 5px;"
@click="looklishi(scope.row)" v-if="scope.row.status != 0">
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" style="color: #1485EF;">提交记录</span>
</div>
</div>
</template>
</el-table-column>
@ -265,11 +272,44 @@
</el-descriptions-item>
</el-descriptions>
</my-dialog>
<my-dialog title="资产提交记录" ref="zichantijiaojil" @close="importClose" class="taskDialogBox" width="40%">
<el-table v-loading="loading" :data="tableDatajilu" :height="tabHeader" :row-class-name="tableRowClassName">
<el-table-column :label="xtmcName" prop="xtmc" align="center" />
<el-table-column label="提交时间" prop="updateTime" align="center" />
<el-table-column label="提交状态" width="120px" prop="status" class-name="table-status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.status == 1 || scope.row.status == 3" style="color: #E6A23C;">
核查提交
</span>
<span v-if="scope.row.status == 4" style="color: #F56C6C;">
审核驳回后提交
</span>
<span v-if="scope.row.status == 5" style="color: #F56C6C;">
资产关停
</span>
</template>
</el-table-column>
<el-table-column label="操作" prop="userId" class-name="table-operation" align="center">
<template slot-scope="scope">
<div style="display: flex;align-items: center;justify-content: center;">
<div style="display: flex;align-items: center;cursor: pointer;" @click="tjiaojilchakan(scope.row)">
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" style="color: #1485EF;">查看</span>
</div>
</div>
</template>
</el-table-column>
</el-table>
</my-dialog>
</div>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
import { getassetTaskid, geassetTaskcHc, assetTaskdwHc, assetLcpage, assetTaskdwHcBl } from "@/api/renwuApi/index.js"
import { getassetTaskid, geassetTaskcHc, assetTaskdwHc, assetLcpage, assetTaskdwHcBl, assetTaskzcTj } from "@/api/renwuApi/index.js"
import myDialog from "@/views/components/myDialog/index.vue"
import * as echarts from 'echarts';
@ -296,6 +336,7 @@ export default {
tableDataTwo: [
],
tableDatajilu: [],
loading: false,
tabHeader: undefined,
timeLineData: [],
@ -339,7 +380,8 @@ export default {
{ value: 0, name: '进行中', taskStatus: "1" },
{ value: 0, name: '正常完成', taskStatus: "2" },
{ value: 0, name: '超期完成', taskStatus: "3" },
]
],
lookassetId:""
}
},
mounted() {
@ -357,19 +399,49 @@ export default {
if (JSON.parse(localStorage.getItem('ismypaginationTow')).isfanhuiTow) {
this.formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
this.titleInfo()
} else {
localStorage.removeItem("ismypaginationTow")
}
}
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);
},
methods: {
tjiaojilchakan(row) {
console.log(row);
this.$router.push({
name: 'taskAuditInfolishichakan', query: {
pageType: "look",
taskId: this.$route.query.id,
assetId: row.id,
lookassetId:this.lookassetId,
type: this.activeName,
pageType:this.$route.query.info,
istijiaoshow: true
}
})
},
looklishi(row) {
console.log(row);
this.lookassetId = row.id
let obj = {
"assetId": row.id-0,
"taskId": row.taskId-0,
"type": this.activeName-0
}
assetTaskzcTj(obj).then(res=>{
this.tableDatajilu = res.data
this.$refs.zichantijiaojil.open()
})
},
sendBack() {
if (localStorage.getItem('ismypagination')) {
let formInline = JSON.parse(localStorage.getItem('ismypagination'))
@ -516,6 +588,12 @@ export default {
this.xtmcName = listname[0].xtmcName
}
if (this.$route.query.istijiaoshow) {
this.looklishi({
taskId:this.$route.query.id,
id:this.$route.query.lookassetId
})
}
this.handleQuery();
},
@ -539,7 +617,7 @@ export default {
size: 10,
type: this.activeName,
}
if (this.index == 1) {
this.formInline = {
type: this.activeName,
@ -562,7 +640,7 @@ export default {
size: 10,
type: this.activeName,
}
if (this.index == 1) {
this.pagination = { ...this.pagination, ...this.formInline };
@ -604,7 +682,7 @@ export default {
this.loading = true
this.pagination.taskId = this.$route.query.id || this.$route.meta.id
this.pagination.type = this.activeName
geassetTaskcHc(this.pagination).then(res => {
this.tableData = res.data.records
this.total = res.data.total

@ -1,4 +1,4 @@
<!-- 新增单位 -->
<!-- unitAuth -->
<template>
<div class="L-assets-info">
<div class="assets-info-top">
@ -473,7 +473,7 @@
<div v-for="(domain, index) in ruleForm.jcxxList" :key="domain.key" :prop="'jcxxList.' + index + '.value'">
<el-row style="display: flex;">
<el-col :span="8">
<el-form-item class="daoqitixingren" required :label="'时间' + (index == 0 ? '' : index)">
<el-form-item class="daoqitixingren" :label="'时间' + (index == 0 ? '' : index)">
<el-date-picker
v-model="domain.sj"
type="date"

File diff suppressed because it is too large Load Diff

@ -274,6 +274,7 @@
</template>
<script>
import { assetMiniPrograms, miniProgramsInfo, unitAllList } from "@/api/auditPagesApi/index";
import equalToPassword from '@/views/components/assetsType/mainx.js'
export default {
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_rzzt','gzh_rzlx','email_state'],
data() {
@ -283,7 +284,9 @@ export default {
},
rules:{
ssdw:[
{ required: true, message: "所属单位不能为空", trigger: "blur" }
{ required: true, message: "所属单位不能为空", trigger: "blur" },
{ required: true, validator: equalToPassword, trigger: "change" }
],
xcxmc:[
{ required: true, message: "小程序名称不能为空", trigger: "blur" }

@ -356,6 +356,8 @@
</template>
<script>
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index";
import equalToPassword from '@/views/components/assetsType/mainx.js'
export default {
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'gzh_state', 'gzh_lx', 'gzh_rzzt', 'gzh_rzlx', 'gzh_cdlx', 'sys_ptlx_type'],
data() {
@ -372,7 +374,9 @@ export default {
},
rules: {
ssdw: [
{ required: true, message: "所属单位不能为空", trigger: "blur" }
{ required: true, message: "所属单位不能为空", trigger: "blur" },
{ required: true, validator: equalToPassword, trigger: "change" }
],
// gzhmc:[
// { required: true, message: "", trigger: "blur" }

@ -214,6 +214,8 @@
</template>
<script>
import { assetEmail, assetEmailInfo, unitAllList } from "@/api/auditPagesApi/index";
import equalToPassword from '@/views/components/assetsType/mainx.js'
export default {
dicts:['app_xzqh','app_sshy','app_zdhy','email_jslx','email_state','email_hasorno'],
data() {
@ -223,7 +225,9 @@ export default {
},
rules:{
ssdw:[
{ required: true, message: "所属单位不能为空", trigger: "blur" }
{ required: true, message: "所属单位不能为空", trigger: "blur" },
{ required: true, validator: equalToPassword, trigger: "change" }
],
dzyxhz:[
{ required: true, message: "电子邮箱后缀不能为空", trigger: "blur" }

@ -190,6 +190,8 @@
</template>
<script>
import { assetApp, assetAppInfo, unitAllList } from "@/api/auditPagesApi/index";
import equalToPassword from '@/views/components/assetsType/mainx.js'
export default {
dicts:['app_icp_state','app_sshy','app_zdhy','app_xzqh','app_aqjgqk','gzh_state'],
data() {
@ -199,7 +201,9 @@ export default {
},
rules:{
ssdw:[
{ required: true, message: "所属单位不能为空", trigger: "blur" }
{ required: true, message: "所属单位不能为空", trigger: "blur" },
{ required: true, validator: equalToPassword, trigger: "change" }
],
appName:[
{ required: true, message: "移动应用名称不能为空", trigger: "blur" }

@ -0,0 +1,24 @@
import { unitAllList } from "@/api/auditPagesApi/index";
const equalToPassword = (rule, value, callback) => {
console.log("出发出发");
console.log(rule);
console.log(value);
unitAllList({ nickName: value }).then(res => {
if (res.data.length != 1) {
callback(new Error("请输入正确的单位名称"));
} else {
if (value == res.data[0].nickName) {
callback();
} else {
callback(new Error("请输入正确的单位名称"));
}
}
})
};
export default equalToPassword

@ -2638,11 +2638,11 @@
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
<el-form-item label="数据量单位" required :prop="`sjzcSjldw`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
<el-select v-model="ruleForm.sjzcSjldw" placeholder="请选择数据量单位">
<el-option v-for="dict in dict.type.sjzc_sjldw" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
@ -2681,6 +2681,16 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row style="display: flex;">
<el-col :span="24">
@ -2772,7 +2782,7 @@ export default {
'zc_yhgm','zc_xtbsfs','zc_hlwkfyt','fgfw','wlxz','ywlx','hlqk','fwdx',
'fwfw','dbxx_dbdj','dbxx_zjps','sf_cpszsdj','sjzc_gxsx','sjzc_kfsx','sjzc_sjly',
'sjzc_gxzq','sjzc_sjfjfl','fwq_czxt','wlw_fwdx','wlw_wlhlqk','wlw_fwfw','dwlx','sb_ip',
'xtfhqk_fcg','xtfhqk_fxl','xtfhqk_fzd','xtfhqk_fls', 'database_type'
'xtfhqk_fcg','xtfhqk_fxl','xtfhqk_fzd','xtfhqk_fls', 'database_type',"sjzc_sjldw"
],
components:{
myUpload,

@ -18,7 +18,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="小程序名称" prop="xcxmc">
<el-input v-model="ruleForm.xcxmc" placeholder="请输入小程序名称" ></el-input>
<el-input v-model="ruleForm.xcxmc" placeholder="请输入小程序名称"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -251,13 +251,14 @@
</template>
<script>
import { assetMiniPrograms, miniProgramsInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskminitaskSh, assetTaskxcxzc, assetTasksh, assetTaskxcxjyTj } from "@/api/renwuApi/index.js"
import { assetTaskminitaskSh, assetTaskxcxzc, assetTasksh, assetTaskxcxjyTj, assetTaskhistory } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import myMixin from '@/views/components/renwuType/minxfanhui.js';
export default {
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'gzh_state', 'gzh_rzzt', 'gzh_rzlx', 'email_state'],
components: { baofei, butongguo },
mixins: [myMixin],
data() {
return {
ruleForm: {
@ -365,27 +366,37 @@ export default {
// }
},
methods: {
sendBack() {
if (localStorage.getItem('ismypaginationTow')) {
let formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
formInline.isfanhuiTow = true
localStorage.setItem("ismypaginationTow", JSON.stringify(formInline))
}
this.$router.go(-1);
},
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
if (this.$route.query.istijiaoshow) {
let obj = {
id: this.$route.query.assetId,
type: this.$route.query.type
}
assetTaskhistory(obj).then(res => {
this.ruleForm = res.data.assetMiniProgramsHistory;
console.log(111);
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
} else {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskminitaskSh(obj).then(res => {
this.ruleForm = res.data;
console.log(111);
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
}
assetTaskminitaskSh(obj).then(res => {
this.ruleForm = res.data;
console.log(111);
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
},
//
querySearchAsync(queryString, cb) {
@ -474,7 +485,7 @@ export default {
xtmc: this.ruleForm.xcxmc,
status: 3,
type: this.$route.query.type,
assetMiniProgramsCpPo:this.ruleForm
assetMiniProgramsCpPo: this.ruleForm
}
assetTasksh(tijioaobj).then(res => {
if (res.code == 200) {

@ -365,11 +365,14 @@
</template>
<script>
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskofficetaskSh, assetTaskgzhzc, assetTasksh, assetTaskgzhjyTj } from "@/api/renwuApi/index.js"
import { assetTaskofficetaskSh, assetTaskgzhzc, assetTasksh, assetTaskgzhjyTj ,assetTaskhistory} from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import myMixin from '@/views/components/renwuType/minxfanhui.js';
export default {
mixins: [myMixin],
components: { baofei, butongguo },
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'gzh_state', 'gzh_lx', 'gzh_rzzt', 'gzh_rzlx', 'gzh_cdlx', 'sys_ptlx_type'],
@ -499,29 +502,40 @@ export default {
// key: Date.now()
});
},
sendBack() {
if (localStorage.getItem('ismypaginationTow')) {
let formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
formInline.isfanhuiTow = true
localStorage.setItem("ismypaginationTow", JSON.stringify(formInline))
}
this.$router.go(-1);
},
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskofficetaskSh(obj).then(res => {
this.ruleForm = res.data;
if (!this.ruleForm.ptlx) {
this.ruleForm.ptlx = '1'
if (this.$route.query.istijiaoshow) {
let obj = {
id: this.$route.query.assetId,
type: this.$route.query.type
}
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
assetTaskhistory(obj).then(res => {
this.ruleForm = res.data.assetOfficialAccountHistory;
console.log(111);
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
} else {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskofficetaskSh(obj).then(res => {
this.ruleForm = res.data;
if (!this.ruleForm.ptlx) {
this.ruleForm.ptlx = '1'
}
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
}
}, 100);
})
},
//
querySearchAsync(queryString, cb) {
@ -608,7 +622,7 @@ export default {
xtmc: this.ruleForm.gzhmc,
status: 3,
type: this.$route.query.type,
assetOfficialAccountCpPo:this.ruleForm
assetOfficialAccountCpPo: this.ruleForm
}
assetTasksh(tijioaobj).then(res => {

@ -18,7 +18,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="电子邮箱后缀" prop="dzyxhz">
<el-input v-model="ruleForm.dzyxhz" placeholder="请输入电子邮箱后缀" ></el-input>
<el-input v-model="ruleForm.dzyxhz" placeholder="请输入电子邮箱后缀"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -195,12 +195,14 @@
</template>
<script>
import { assetEmail, assetEmailInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskemailtaskSh, assetTaskemailzc, assetTasksh, assetTaskemailjyTj } from "@/api/renwuApi/index.js"
import { assetTaskemailtaskSh, assetTaskemailzc, assetTasksh, assetTaskemailjyTj ,assetTaskhistory} from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import myMixin from '@/views/components/renwuType/minxfanhui.js';
export default {
components: { baofei, butongguo },
mixins: [myMixin],
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'email_jslx', 'email_state', 'email_hasorno'],
data() {
@ -288,26 +290,36 @@ export default {
// }
},
methods: {
sendBack() {
if (localStorage.getItem('ismypaginationTow')) {
let formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
formInline.isfanhuiTow = true
localStorage.setItem("ismypaginationTow", JSON.stringify(formInline))
}
this.$router.go(-1);
},
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
if (this.$route.query.istijiaoshow) {
let obj = {
id: this.$route.query.assetId,
type: this.$route.query.type
}
assetTaskhistory(obj).then(res => {
this.ruleForm = res.data.assetEmailHistory;
console.log(111);
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
} else {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskemailtaskSh(obj).then(res => {
this.ruleForm = res.data;
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
}
assetTaskemailtaskSh(obj).then(res => {
this.ruleForm = res.data;
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
},
//
querySearchAsync(queryString, cb) {
@ -386,7 +398,7 @@ export default {
}
if (type == 1) {
this.$refs['ruleForm'].validate((valid) => {
let tijioaobj = {

@ -18,7 +18,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="移动应用名称" prop="appName">
<el-input v-model="ruleForm.appName" placeholder="请输入移动应用名称" ></el-input>
<el-input v-model="ruleForm.appName" placeholder="请输入移动应用名称"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -183,11 +183,14 @@
</template>
<script>
import { assetApp, assetAppInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskapptaskSh, assetTaskappzc, assetTasksh, assetTaskappjyTj } from "@/api/renwuApi/index.js"
import { assetTaskapptaskSh, assetTaskappzc, assetTasksh, assetTaskappjyTj,assetTaskhistory } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import myMixin from '@/views/components/renwuType/minxfanhui.js';
export default {
components: { baofei, butongguo },
mixins: [myMixin],
dicts: ['app_icp_state', 'app_sshy', 'app_zdhy', 'app_xzqh', 'app_aqjgqk', 'gzh_state'],
data() {
@ -278,26 +281,36 @@ export default {
// }
},
methods: {
sendBack() {
if (localStorage.getItem('ismypaginationTow')) {
let formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
formInline.isfanhuiTow = true
localStorage.setItem("ismypaginationTow", JSON.stringify(formInline))
}
this.$router.go(-1);
},
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
if (this.$route.query.istijiaoshow) {
let obj = {
id: this.$route.query.assetId,
type: this.$route.query.type
}
assetTaskhistory(obj).then(res => {
this.ruleForm = res.data.assetAppHistory;
console.log(111);
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
} else {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskapptaskSh(obj).then(res => {
this.ruleForm = res.data;
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
}
assetTaskapptaskSh(obj).then(res => {
this.ruleForm = res.data;
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
}, 100);
})
},
//
querySearchAsync(queryString, cb) {

@ -0,0 +1,35 @@
// src/mixins/myMixin.js
export default {
data() {
return {
}
},
created() {
},
methods: {
sendBack() {
if (localStorage.getItem('ismypaginationTow')) {
let formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
formInline.isfanhuiTow = true
localStorage.setItem("ismypaginationTow", JSON.stringify(formInline))
}
console.log();
if (this.$route.query.istijiaoshow) {
this.$router.push({
name: 'TaskInfo', query: {
pageType: "look",
id: this.$route.query.taskId,
assetId: this.$route.query.lookassetId,
lookassetId: this.$route.query.lookassetId,
pageType: this.$route.query.info,
istijiaoshow: true
}
})
} else {
this.$router.go(-1);
}
},
}
};

@ -2403,7 +2403,7 @@
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required>
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择数据量单位">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>

@ -21,7 +21,7 @@
<el-form-item label="单位名称" required :rules="{
required: true, message: '请输入', trigger: 'blur'
}" prop="dwmc" disabled>
<el-input v-model="ruleForm.dwmc" ></el-input>
<el-input v-model="ruleForm.dwmc" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
@ -2642,11 +2642,11 @@
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
<el-form-item label="数据量单位" required :prop="`sjzcSjldw`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
<el-select v-model="ruleForm.sjzcSjldw" placeholder="请选择数据量单位">
<el-option v-for="dict in dict.type.sjzc_sjldw" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
@ -2685,6 +2685,16 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row style="display: flex;">
<el-col :span="24">
@ -2773,17 +2783,20 @@
import pcas from "@/utils/pca-code.json"
import myUpload from "@/views/components/myUpload/index.vue";
import { assetUnitData, assetInfo } from "@/api/auditPagesApi/index";
import { assetTasktaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js"
import { assetTasktaskSh, geassetTaskcHc, assetTasksh,assetTaskhistory } from "@/api/renwuApi/index.js"
import myDialog from "@/views/components/myDialog/index.vue"
import myMixin from '@/views/components/renwuType/minxfanhui.js';
export default {
mixins: [myMixin],
name: "AssetsAuth",
dicts: [
'is_no', 'zc_xtlx', 'zc_xtzyx', 'zc_xtzt', 'zc_zxzt', 'zc_c_i_a',
'zc_yhgm', 'zc_xtbsfs', 'zc_hlwkfyt', 'fgfw', 'wlxz', 'ywlx', 'hlqk', 'fwdx',
'fwfw', 'dbxx_dbdj', 'dbxx_zjps', 'sf_cpszsdj', 'sjzc_gxsx', 'sjzc_kfsx', 'sjzc_sjly',
'sjzc_gxzq', 'sjzc_sjfjfl', 'fwq_czxt', 'wlw_fwdx', 'wlw_wlhlqk', 'wlw_fwfw', 'dwlx', 'sb_ip',
'xtfhqk_fcg', 'xtfhqk_fxl', 'xtfhqk_fzd', 'xtfhqk_fls', 'database_type'
'xtfhqk_fcg', 'xtfhqk_fxl', 'xtfhqk_fzd', 'xtfhqk_fls', 'database_type',"sjzc_sjldw"
],
components: {
myUpload,
@ -3039,14 +3052,7 @@ export default {
}
},
methods: {
sendBack() {
if (localStorage.getItem('ismypaginationTow')) {
let formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
formInline.isfanhuiTow = true
localStorage.setItem("ismypaginationTow", JSON.stringify(formInline))
}
this.$router.go(-1);
},
importClose() { },
//
resetForm() {
@ -3058,70 +3064,157 @@ export default {
},
//
getInfo(obj) {
this.loading = true;
assetTasktaskSh(obj).then(res => {
this.ruleForm = res.data;
if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}
this.$set(this.ruleForm.xjgywxt, 'remark', "")
if (this.$route.query.istijiaoshow) {
this.loading = true;
let obj = {
id: this.$route.query.assetId,
type: this.$route.query.type
}
assetTaskhistory(obj).then(res => {
this.ruleForm = res.data.assetCurrentHistory;
if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}
this.$set(this.ruleForm.xjgywxt, 'remark', "")
}
if (this.ruleForm.fwwz) {
let arr = this.ruleForm.fwwz.split("-")
this.select = arr[0]
this.ruleForm.fwwz = arr[1]
}
if (this.ruleForm.glymList.length == 0) {
this.ruleForm.glymList.push({ key: "" })
}
if (this.ruleForm.fwwz) {
let arr = this.ruleForm.fwwz.split("-")
this.select = arr[0]
this.ruleForm.fwwz = arr[1]
if (this.ruleForm.glIpList.length == 0) {
this.ruleForm.glIpList.push({ key: "" })
}
this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : [];
this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : [];
let chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1)
let yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2)
let jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3)
let xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4)
let xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5)
let xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7)
let aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6)
let chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1)
let yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2)
let jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3)
let xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4)
let xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5)
let xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7)
let aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6)
this.$set(this.ruleForm, 'chepingUnit', chepingUnit.length > 0 ? chepingUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 1 }])
this.$set(this.ruleForm, 'yjgysUnit', yjgysUnit.length > 0 ? yjgysUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 2 }])
this.$set(this.ruleForm, 'jfywUnit', jfywUnit.length > 0 ? jfywUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 3 }])
this.$set(this.ruleForm, 'xtsjUnit', xtsjUnit.length > 0 ? xtsjUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 4 }])
this.$set(this.ruleForm, 'xtjsUnit', xtjsUnit.length > 0 ? xtjsUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 5 }])
this.$set(this.ruleForm, 'xtyyUnit', xtyyUnit.length > 0 ? xtyyUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 7 }])
this.$set(this.ruleForm, 'aqfwUnit', aqfwUnit.length > 0 ? aqfwUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 6 }])
this.$set(this.ruleForm, 'chepingUnit', chepingUnit.length > 0 ? chepingUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 1 }])
this.$set(this.ruleForm, 'yjgysUnit', yjgysUnit.length > 0 ? yjgysUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 2 }])
this.$set(this.ruleForm, 'jfywUnit', jfywUnit.length > 0 ? jfywUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 3 }])
this.$set(this.ruleForm, 'xtsjUnit', xtsjUnit.length > 0 ? xtsjUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 4 }])
this.$set(this.ruleForm, 'xtjsUnit', xtjsUnit.length > 0 ? xtjsUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 5 }])
this.$set(this.ruleForm, 'xtyyUnit', xtyyUnit.length > 0 ? xtyyUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 7 }])
this.$set(this.ruleForm, 'aqfwUnit', aqfwUnit.length > 0 ? aqfwUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 6 }])
let fwqxx = this.ruleForm.jcwlList.filter((item) => item.type == 1)
let wlsb = this.ruleForm.jcwlList.filter((item) => item.type == 2)
let aqsb = this.ruleForm.jcwlList.filter((item) => item.type == 3)
let fwqxx = this.ruleForm.jcwlList.filter((item) => item.type == 1)
let wlsb = this.ruleForm.jcwlList.filter((item) => item.type == 2)
let aqsb = this.ruleForm.jcwlList.filter((item) => item.type == 3)
// this.ruleForm.fwqxx = (this.ruleForm.jcwlList.filter((item) => item.type == 1) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 1) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
// this.ruleForm.fwqxx = (this.ruleForm.jcwlList.filter((item) => item.type == 1) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 1) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
this.$set(this.ruleForm, 'fwqxx', fwqxx.length > 0 ? fwqxx : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
this.$set(this.ruleForm, 'fwqxx', fwqxx.length > 0 ? fwqxx : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
this.$set(this.ruleForm, 'wlsb', wlsb.length > 0 ? wlsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
this.$set(this.ruleForm, 'wlsb', wlsb.length > 0 ? wlsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
this.$set(this.ruleForm, 'aqsb', aqsb.length > 0 ? aqsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
this.$set(this.ruleForm, 'aqsb', aqsb.length > 0 ? aqsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
// this.ruleForm.wlsb = (this.ruleForm.jcwlList.filter((item) => item.type == 2) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 2) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
// this.ruleForm.wlsb = (this.ruleForm.jcwlList.filter((item) => item.type == 2) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 2) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
// this.ruleForm.aqsb = (this.ruleForm.jcwlList.filter((item) => item.type == 3) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 3) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
// this.ruleForm.aqsb = (this.ruleForm.jcwlList.filter((item) => item.type == 3) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 3) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
this.ruleForm.xtfhqkFcg ? this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi, this.ruleForm.qu]
} else if (this.ruleForm.sheng && this.ruleForm.shi) {
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi]
} else if (this.ruleForm.sheng) {
this.dlwz = [this.ruleForm.sheng]
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi, this.ruleForm.qu]
} else if (this.ruleForm.sheng && this.ruleForm.shi) {
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi]
} else if (this.ruleForm.sheng) {
this.dlwz = [this.ruleForm.sheng]
}
this.loading = false
})
} else {
this.loading = true;
assetTasktaskSh(obj).then(res => {
this.ruleForm = res.data;
if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}
this.$set(this.ruleForm.xjgywxt, 'remark', "")
}
if (this.ruleForm.fwwz) {
let arr = this.ruleForm.fwwz.split("-")
this.select = arr[0]
this.ruleForm.fwwz = arr[1]
}
if (this.ruleForm.glymList.length == 0) {
this.ruleForm.glymList.push({ key: "" })
}
this.loading = false
if (this.ruleForm.glIpList.length == 0) {
this.ruleForm.glIpList.push({ key: "" })
}
this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : [];
let chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1)
let yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2)
let jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3)
let xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4)
let xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5)
let xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7)
let aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6)
this.$set(this.ruleForm, 'chepingUnit', chepingUnit.length > 0 ? chepingUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 1 }])
this.$set(this.ruleForm, 'yjgysUnit', yjgysUnit.length > 0 ? yjgysUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 2 }])
this.$set(this.ruleForm, 'jfywUnit', jfywUnit.length > 0 ? jfywUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 3 }])
this.$set(this.ruleForm, 'xtsjUnit', xtsjUnit.length > 0 ? xtsjUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 4 }])
this.$set(this.ruleForm, 'xtjsUnit', xtjsUnit.length > 0 ? xtjsUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 5 }])
this.$set(this.ruleForm, 'xtyyUnit', xtyyUnit.length > 0 ? xtyyUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 7 }])
this.$set(this.ruleForm, 'aqfwUnit', aqfwUnit.length > 0 ? aqfwUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 6 }])
let fwqxx = this.ruleForm.jcwlList.filter((item) => item.type == 1)
let wlsb = this.ruleForm.jcwlList.filter((item) => item.type == 2)
let aqsb = this.ruleForm.jcwlList.filter((item) => item.type == 3)
// this.ruleForm.fwqxx = (this.ruleForm.jcwlList.filter((item) => item.type == 1) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 1) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
this.$set(this.ruleForm, 'fwqxx', fwqxx.length > 0 ? fwqxx : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
this.$set(this.ruleForm, 'wlsb', wlsb.length > 0 ? wlsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
this.$set(this.ruleForm, 'aqsb', aqsb.length > 0 ? aqsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
// this.ruleForm.wlsb = (this.ruleForm.jcwlList.filter((item) => item.type == 2) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 2) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
// this.ruleForm.aqsb = (this.ruleForm.jcwlList.filter((item) => item.type == 3) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 3) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
this.ruleForm.xtfhqkFcg ? this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') : [];
this.ruleForm.xtfhqkFcg ? this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi, this.ruleForm.qu]
} else if (this.ruleForm.sheng && this.ruleForm.shi) {
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi]
} else if (this.ruleForm.sheng) {
this.dlwz = [this.ruleForm.sheng]
}
this.loading = false
})
}
})
},
changeRadio(id) {
@ -3251,7 +3344,9 @@ export default {
xtmc: this.ruleForm.xtmc,
btgyy: this.dialogruleForm.btgyy,
status: 4,
type: this.$route.query.type
type: this.$route.query.type,
assetCurrentCpPo: this.ruleForm
}
assetTasksh(tijioaobj).then(res => {
if (res.code == 200) {
@ -3274,7 +3369,21 @@ export default {
//
if (type == 0) {
this.$refs.liebiaoDialog.open()
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.$refs.liebiaoDialog.open()
} else {
this.loading = false
this.$message({
type: 'info',
message: '请填写完整'
});
return false;
}
});
}
if (type == 1) {
@ -3289,7 +3398,7 @@ export default {
dwmc: this.$route.query.zcdwmc,
status: 3,
type: this.$route.query.type,
assetCurrentCpPo:this.ruleForm
assetCurrentCpPo: this.ruleForm
}
tijioaobj.status = 3
assetTasksh(tijioaobj).then(res => {

@ -13,15 +13,15 @@
<el-col :span="12">
<el-form-item label="系统名称" required :rules="{
required: true, message: '请输入', trigger: 'blur'
}" prop="xtmc">
<el-input v-model="ruleForm.xtmc" disabled></el-input>
}" prop="xtmc" >
<el-input v-model="ruleForm.xtmc" :disabled='true'></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="单位名称" required :rules="{
required: true, message: '请输入', trigger: 'blur'
}" prop="dwmc" disabled>
<el-input v-model="ruleForm.dwmc" disabled></el-input>
}" prop="dwmc" >
<el-input v-model="ruleForm.dwmc" :disabled='true'></el-input>
</el-form-item>
</el-col>
</el-row>
@ -2642,11 +2642,11 @@
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
<el-form-item label="数据量单位" required :prop="`sjzcSjldw`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
<el-select v-model="ruleForm.sjzcSjldw" placeholder="请选择数据量单位">
<el-option v-for="dict in dict.type.sjzc_sjldw" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
@ -2685,6 +2685,16 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row style="display: flex;">
<el-col :span="24">
@ -2777,8 +2787,10 @@ import myUpload from "@/views/components/myUpload/index.vue";
import { assetUnitData, assetInfo } from "@/api/auditPagesApi/index";
import { assetTasktaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js"
import { assetTaskzc, assetTaskjyTj } from "@/api/renwuApi/index.js"
import myMixin from '@/views/components/renwuType/minxfanhui.js';
export default {
mixins: [myMixin],
name: "AssetsAuth",
dicts: [
@ -2786,7 +2798,7 @@ export default {
'zc_yhgm', 'zc_xtbsfs', 'zc_hlwkfyt', 'fgfw', 'wlxz', 'ywlx', 'hlqk', 'fwdx',
'fwfw', 'dbxx_dbdj', 'dbxx_zjps', 'sf_cpszsdj', 'sjzc_gxsx', 'sjzc_kfsx', 'sjzc_sjly',
'sjzc_gxzq', 'sjzc_sjfjfl', 'fwq_czxt', 'wlw_fwdx', 'wlw_wlhlqk', 'wlw_fwfw', 'dwlx', 'sb_ip',
'xtfhqk_fcg', 'xtfhqk_fxl', 'xtfhqk_fzd', 'xtfhqk_fls', 'database_type'
'xtfhqk_fcg', 'xtfhqk_fxl', 'xtfhqk_fzd', 'xtfhqk_fls', 'database_type',"sjzc_sjldw"
],
components: {
myUpload, myDialog
@ -3042,14 +3054,7 @@ export default {
}
},
methods: {
sendBack() {
if (localStorage.getItem('ismypaginationTow')) {
let formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
formInline.isfanhuiTow = true
localStorage.setItem("ismypaginationTow", JSON.stringify(formInline))
}
this.$router.go(-1);
},
importClose() { },
//
resetForm() {
@ -3097,6 +3102,12 @@ export default {
this.select = arr[0]
this.ruleForm.fwwz = arr[1]
}
if (this.ruleForm.glymList.length == 0) {
this.ruleForm.glymList.push({ key: "" })
}
if (this.ruleForm.glIpList.length == 0) {
this.ruleForm.glIpList.push({ key: "" })
}
this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : [];
let chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1)

@ -458,8 +458,12 @@ export default {
// });
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.queryParams = this.$route.params;
}else{
this.queryParams = this.$route.params;
this.queryParams.current = 1
this.queryParams.size = 20
}
this.getList();
this.getDeptTree();

@ -124,8 +124,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.cancalDebounce();

@ -142,8 +142,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.cancalDebounce();

@ -152,8 +152,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.cancalDebounce();

@ -158,8 +158,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.cancalDebounce();

@ -157,8 +157,11 @@ export default {
}
},
mounted(){
if(this.$route.params) {
if( Object.keys(this.$route.params).length != 0) {
this.formInline = this.$route.params;
}else{
this.formInline.current = 1
this.formInline.size = 20
}
this.getList();
this.cancalDebounce();

@ -2614,11 +2614,11 @@
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
<el-form-item label="数据量单位" required :prop="`sjzcSjldw`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
<el-select v-model="ruleForm.sjzcSjldw" placeholder="请选择数据量单位">
<el-option v-for="dict in dict.type.sjzc_sjldw" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
@ -2657,6 +2657,16 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px;">
<el-form-item label="是否涉密数据" required :prop="`sjzcSmsj`" :rules="{
required: true, message: '请输入', trigger: 'blur'
}">
<el-select v-model="ruleForm.sjzcSmsj" placeholder="请选择是否涉密数据">
<el-option v-for="dict in dict.type.is_no" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row style="display: flex;">
<el-col :span="24">
@ -2744,7 +2754,7 @@ export default {
'zc_yhgm', 'zc_xtbsfs', 'zc_hlwkfyt', 'fgfw', 'wlxz', 'ywlx', 'hlqk', 'fwdx',
'fwfw', 'dbxx_dbdj', 'dbxx_zjps', 'sf_cpszsdj', 'sjzc_gxsx', 'sjzc_kfsx', 'sjzc_sjly',
'sjzc_gxzq', 'sjzc_sjfjfl', 'fwq_czxt', 'wlw_fwdx', 'wlw_wlhlqk', 'wlw_fwfw', 'dwlx', 'sb_ip',
'xtfhqk_fcg', 'xtfhqk_fxl', 'xtfhqk_fzd', 'xtfhqk_fls', 'database_type'
'xtfhqk_fcg', 'xtfhqk_fxl', 'xtfhqk_fzd', 'xtfhqk_fls', 'database_type',"sjzc_sjldw"
],
components: {
myUpload,myDialog

@ -469,22 +469,23 @@
</el-col>
</el-row>
</el-row>
<!-- 检查信息 -->
<!-- 检查信息
:rules="[
{
required: true,
message: '请选择时间',
trigger: ['change']
}
]"-->
<el-row style="margin: 10px 0;">
<span class="top-title-box">检查信息</span>
</el-row>
<div v-for="(domain, index) in ruleForm.jcxxList" :key="domain.key" :prop="'jcxxList.' + index + '.value'">
<el-row style="display: flex;">
<el-col :span="8">
<el-form-item class="daoqitixingren" required :label="'时间' + (index == 0 ? '' : index)"
<el-form-item class="daoqitixingren" :label="'时间' + (index == 0 ? '' : index)"
:prop="`jcxxList[${index}].sj`"
:rules="[
{
required: true,
message: '请选择时间',
trigger: ['change']
}
]"
>
<el-date-picker
v-model="domain.sj"
@ -574,7 +575,7 @@
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;">
<el-button type="danger" @click="cancel" :disabled="false" v-if="isDisabled"></el-button>
<el-button type="warning" @click="editUnit" v-if="!isDisabled" :disabled="isDisabled"></el-button>
<el-button type="warning" @click="editUnit" v-if="!isDisabled && nickName != 'admin'" :disabled="isDisabled"></el-button>
<el-button type="primary" @click="newUnit" :disabled="false" v-if="isDisabled"></el-button>
</el-row>
</el-form>
@ -585,10 +586,13 @@
<script>
import pcas from "@/utils/pca-code.json"
import { unitOwnInfo, unitEditOwn } from "@/api/auditPagesApi/index";
import { mapGetters } from 'vuex'
import { MessageBox } from 'element-ui'
export default {
dicts:['zc_xtzyx', 'is_no', 'sshy', 'dwlx', 'dwjs', 'dwzsxz', 'dbxx_dbdj'],
data() {
const validateTyshxydm = (rule, value, callback) => {
const pattern = /^[a-zA-Z0-9]{18}$/;
if (!pattern.test(value)) {
@ -723,9 +727,31 @@ export default {
loading:false,
}
},
computed: {
// visitedViews() {
// return this.$store.state.tagsView.visitedViews
// },
// routes() {
// return this.$store.state.permission.routes
// },
// theme() {
// return this.$store.state.settings.theme;
// }
...mapGetters([
'nickName'
]),
},
mounted(){
this.getInfo()
console.log(this.nickName);
if(this.nickName == "admin"){
this.disabled = true;
}else{
this.getInfo()
this.disabled = true;
}
// this.$nextTick(()=>{
// const inputElements = document.querySelectorAll('.el-input__inner');
// const textareaInputElements = document.querySelectorAll('.el-textarea__inner');

Loading…
Cancel
Save