From ad1efa14457d8fa8445dafd6c3a29260201a5f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Mon, 2 Dec 2024 09:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/views/auditPages/components/webType1.vue | 3268 ++++++++++++++++ .../auditPages/taskManagement/audit copy.vue | 1721 +++++---- src/views/auditPages/taskManagement/audit.vue | 3275 +---------------- src/views/auditPages/taskManagement/index.vue | 53 +- src/views/auditPages/taskManagement/info.vue | 32 +- 6 files changed, 4459 insertions(+), 3894 deletions(-) create mode 100644 src/views/auditPages/components/webType1.vue diff --git a/.env.development b/.env.development index 9a569a1..49a25d4 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 太仓资产管理系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.0.109:9115' -# VUE_APP_BASE_API = 'http://39.101.188.84:9115' +# VUE_APP_BASE_API = 'http://192.168.0.109:9115' +VUE_APP_BASE_API = 'http://39.101.188.84:9115' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/auditPages/components/webType1.vue b/src/views/auditPages/components/webType1.vue new file mode 100644 index 0000000..078b6ac --- /dev/null +++ b/src/views/auditPages/components/webType1.vue @@ -0,0 +1,3268 @@ + + diff --git a/src/views/auditPages/taskManagement/audit copy.vue b/src/views/auditPages/taskManagement/audit copy.vue index 921a001..078b6ac 100644 --- a/src/views/auditPages/taskManagement/audit copy.vue +++ b/src/views/auditPages/taskManagement/audit copy.vue @@ -1,12 +1,13 @@ @@ -2390,235 +2750,297 @@ 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 myDialog from "@/views/components/myDialog/index.vue" export default { 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' + 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' ], - components: { - myUpload + components:{ + myUpload, + myDialog }, data() { return { - accept: ['xls', 'xlsx', 'doc', 'docx', 'pdf', 'rar', 'zip', 'pcap', 'txt'], - acceptTwo: ['jpg', 'jpeg', 'png'], - isMore: false, - select: "http", - options: pcas, - radio: "", + dialogruleForm:{ + btgyy:"" + }, + dialogruleFormrules:{ + btgyy: [ + { required: true, message: '请输入', trigger: 'blur' }, + ], + }, + shaojunbuyao:false, + accept:['xls','xlsx','doc','docx','pdf','rar','zip','pcap','txt'], + acceptTwo:['jpg','jpeg','png'], + isMore:false, + select:"http", + options: pcas , + radio:"", loading: true, - props: { - value: 'value', - label: "value", - checkStrictly: true, + props:{ + value:'value', + label:"value", + checkStrictly:true, }, - ruleForm: { + ruleForm:{ // 新监管业务形态 - xjgywxt: { - remark: "", + xjgywxt:{ + remark:"", }, // 关联域名--多个 - glymList: [{ - key: "" + glymList:[{ + key:"" }], // 关联IP - glIpList: [{ - key: "", + glIpList:[{ + key:"", }], // 提交使用供应链信息列表 - gylxxList: [], + gylxxList:[], // 基础网络 - jcwlList: [], - + jcwlList:[], + // 其他联系人 - otherConcat: [], - type: [] - }, - // 地理位置 - dlwz: [], - // 系统特征 - xttz: [], - // 防篡改 - xtfhqkFcg: [], - // 防泄漏 - xtfhqkFxl: [], - // 防中断 - xtfhqkFzd: [], - // 防勒索 - xtfhqkFls: [], - // 测评单位 - chepingUnit: [ - { - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: 1 - } - ], - // 硬件供应商单位 - yjgysUnit: [ - { - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: 2 - } - ], - // 机房运维单位 - jfywUnit: [ - { - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: 3 - } - ], - // 系统设计单位 - xtsjUnit: [ - { - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: 4 - } - ], - // 系统建设单位 - xtjsUnit: [ - { - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: 5 - } - ], - // 系统运营单位 - xtyyUnit: [ - { - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: 7 - } - ], - // 安全服务单位 - aqfwUnit: [ - { - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: 6 - } - ], - // 服务器 - fwqxx: [ + otherConcat:[], + type:[], + // 测评单位 + chepingUnit:[ + { + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:1 + } + ], + // 硬件供应商单位 + yjgysUnit:[ + { + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:2 + } + ], + // 机房运维单位 + jfywUnit:[ + { + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:3 + } + ], + // 系统设计单位 + xtsjUnit:[ + { + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:4 + } + ], + // 系统建设单位 + xtjsUnit:[ + { + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:5 + } + ], + // 系统运营单位 + xtyyUnit:[ + { + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:7 + } + ], + // 安全服务单位 + aqfwUnit:[ + { + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:6 + } + ], + // 服务器 + fwqxx:[ { - sblx: "", - pp: "", - ipType: "", - sbIP: "", - czxx: "", - czxxbb: "", - yjxh: "", - yjxlh: "", - yjbbxx: "", - yjyt: "", - yjbswz: "", + sblx:"", + pp:"", + ipType:"", + sbIP:"", + czxx:"", + czxxbb:"", + yjxh:"", + yjxlh:"", + yjbbxx:"", + yjyt:"", + yjbswz:"", type: 1, } ], // 网络设备 - wlsb: [ + wlsb:[ { - sblx: "", - pp: "", - ipType: "", - sbIP: "", - czxx: "", - czxxbb: "", - yjxh: "", - yjxlh: "", - yjbbxx: "", - yjyt: "", - yjbswz: "", + sblx:"", + pp:"", + ipType:"", + sbIP:"", + czxx:"", + czxxbb:"", + yjxh:"", + yjxlh:"", + yjbbxx:"", + yjyt:"", + yjbswz:"", type: 2, } ], // 安全设备 - aqsb: [ + aqsb:[ { - sblx: "", - pp: "", - ipType: "", - sbIP: "", - czxx: "", - czxxbb: "", - yjxh: "", - yjxlh: "", - yjbbxx: "", - yjyt: "", - yjbswz: "", + sblx:"", + pp:"", + ipType:"", + sbIP:"", + czxx:"", + czxxbb:"", + yjxh:"", + yjxlh:"", + yjbbxx:"", + yjyt:"", + yjbswz:"", type: 3, } ], - rules: {}, - disabled: false, - loading: false, + }, + // 地理位置 + dlwz:[], + // 系统特征 + xttz:[], + // 防篡改 + xtfhqkFcg:[], + // 防泄漏 + xtfhqkFxl:[], + // 防中断 + xtfhqkFzd:[], + // 防勒索 + xtfhqkFls:[], + + rules:{}, + disabled:false, + loading:false, } }, - mounted() { + mounted(){ + let obj = { taskId: this.$route.query.taskId, assetId: this.$route.query.assetId } if (this.$route.query.pageType == 'look') { - + this.getInfo(obj) this.disabled = true; this.isMore = true; + + this.$nextTick(()=>{ + const inputElements = document.querySelectorAll('.el-input__inner'); + const textareaInputElements = document.querySelectorAll('.el-textarea__inner'); + inputElements.forEach((input) => { + input.placeholder = ''; + }); + textareaInputElements.forEach((input) => { + input.placeholder = ''; + }); + }) } else if (this.$route.query.pageType == 'change') { + this.disabled = true; this.getInfo(obj) - this.disabled = false; this.isMore = true; } }, - methods: { + methods:{ + importClose(){}, + // 关闭新增弹窗 + resetForm() { + this.dialogruleForm = { + btgyy:"" + } + this.$refs.liebiaoDialog.close() + + }, // 获取详情 - getInfo(id) { - assetTasktaskSh(id).then(res => { + 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.ruleForm.fwwz) { + let arr = this.ruleForm.fwwz.split("-") + this.select = arr[0] + this.ruleForm.fwwz = arr[1] + } this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : []; - this.chepingUnit = (this.ruleForm.gylxxList.filter((item) => item.type == 1) == [] ? this.ruleForm.gylxxList.filter((item) => item.type == 1) : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 1 }]) - this.yjgysUnit = (this.ruleForm.gylxxList.filter((item) => item.type == 2) == [] ? this.ruleForm.gylxxList.filter((item) => item.type == 2) : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 2 }]) - this.jfywUnit = (this.ruleForm.gylxxList.filter((item) => item.type == 3) == [] ? this.ruleForm.gylxxList.filter((item) => item.type == 3) : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 3 }]) - this.xtsjUnit = (this.ruleForm.gylxxList.filter((item) => item.type == 4) == [] ? this.ruleForm.gylxxList.filter((item) => item.type == 4) : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 4 }]) - this.xtjsUnit = (this.ruleForm.gylxxList.filter((item) => item.type == 5) == [] ? this.ruleForm.gylxxList.filter((item) => item.type == 5) : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 5 }]) - this.xtyyUnit = (this.ruleForm.gylxxList.filter((item) => item.type == 7) == [] ? this.ruleForm.gylxxList.filter((item) => item.type == 7) : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 7 }]) - this.aqfwUnit = (this.ruleForm.gylxxList.filter((item) => item.type == 6) == [] ? this.ruleForm.gylxxList.filter((item) => item.type == 6) : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 6 }]) - this.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.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.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 }]) + 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.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(',') - this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(',') - this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') - this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') + // 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) { @@ -2628,51 +3050,54 @@ export default { } else if (this.ruleForm.sheng) { this.dlwz = [this.ruleForm.sheng] } + this.loading = false + }) + }, - changeRadio(id) { + changeRadio(id){ this.ruleForm.xjgywxt = { remark: id, }; }, // 供应链Form新增 - addGongyinglian(type, id) { - this[type].push({ - name: "", - tyshxydm: "", - lxr: "", - lxdh: "", - type: id, + addGongyinglian(type,id){ + this.ruleForm[type].push({ + name:"", + tyshxydm:"", + lxr:"", + lxdh:"", + type:id, remark: Date.now() }); }, // 服务器Form新增 - addServer(type, id) { + addServer(type,id){ this[type].push({ - sblx: "", - pp: "", - ipType: "", - sbIP: "", - czxx: "", - czxxbb: "", - yjxh: "", - yjxlh: "", - yjbbxx: "", - yjyt: "", - yjbswz: "", - type: id, + sblx:"", + pp:"", + ipType:"", + sbIP:"", + czxx:"", + czxxbb:"", + yjxh:"", + yjxlh:"", + yjbbxx:"", + yjyt:"", + yjbswz:"", + type:id, key: Date.now() }); }, // 新增form - addForm(type) { + addForm(type){ this.ruleForm[type].push({ key: '', value: Date.now() }); }, // 新增其他联系人 - addOtherConcat(type) { + addOtherConcat(type){ this.ruleForm[type].push({ qtlxrxm: '', qtlxrlxfs: '', @@ -2681,31 +3106,31 @@ export default { }); }, // 删除增加的form - removeDomain(item, type) { - var index = this.ruleForm[type].indexOf(item) + removeDomain(item,type) { + var index =this.ruleForm[type].indexOf(item) if (index !== -1) { this.ruleForm[type].splice(index, 1) } }, // 删除增加的form - removeDomainOne(item, type) { + removeDomainOne(item,type) { var index = this.ruleForm[type].indexOf(item) if (index !== -1) { this.ruleForm[type].splice(index, 1) } }, // 是否部署云平台--选否 - yunpingtaiChange(id) { - if (id == 2) { + yunpingtaiChange(id){ + if(id == 2) { this.ruleForm.yfwsmc = ""; this.ruleForm.wzfwxy = ""; } }, // 系统部署方式-选3或4 或不为3/4 - xtbsfsChange(id) { - if (id == 3) { + xtbsfsChange(id){ + if(id == 3) { this.ruleForm.yfws = ""; - } else if (id == 4) { + } else if(id == 4) { this.ruleForm.tgdw = ""; } else { this.ruleForm.yfws = ""; @@ -2714,7 +3139,7 @@ export default { }, // ICP备案--是否备案选否 sfbaICPChange(id) { - if (id == 2) { + if(id == 2) { this.ruleForm.ipcBayxx = ""; this.ruleForm.ipcBawzmc = ""; this.ruleForm.ipcBawzsy = ""; @@ -2728,8 +3153,8 @@ export default { } }, // 公安机关备案信息--是否备案选否 - sfbaGajgChange(id) { - if (id == 2) { + sfbaGajgChange(id){ + if(id == 2) { this.ruleForm.gajgBajg = ""; this.ruleForm.gajgBah = ""; this.ruleForm.gajgBarq = ""; @@ -2737,7 +3162,7 @@ export default { }, // 等保信息选否 sfdbxtChange(id) { - if (id == 2) { + if(id == 2) { this.ruleForm.dbxxDbcpbah = ""; this.ruleForm.dbxxDbdj = ""; this.ruleForm.dbxxZgbm = ""; @@ -2748,21 +3173,56 @@ export default { this.ruleForm.dbxxCpdf = ""; } }, - // 新增资产确认按钮 - newAssets(type) { - let tijioaobj = { + submitForm(formName) { + this.$refs[formName].validate((valid) => { + if (valid) { + let tijioaobj = { taskId: this.$route.query.taskId, assetId: this.$route.query.assetId, + xtmc:this.ruleForm.xtmc, + btgyy:this.dialogruleForm.btgyy, status: 4 } + assetTasksh(tijioaobj).then(res=>{ + if(res.code == 200){ + this.$modal.msgSuccess("审核成功"); + this.loading = false + this.$router.go(-1); + } + }) + + } else { + console.log('error submit!!'); + return false; + } + }); + + }, + // 新增资产确认按钮 + newAssets(type) { + + + //不通过 if (type == 0) { - tijioaobj.status = 4 + this.$refs.liebiaoDialog.open() } if (type == 1) { - + this.loading = true; + let tijioaobj = { + taskId: this.$route.query.taskId, + assetId: this.$route.query.assetId, + xtmc:this.ruleForm.xtmc, + status: 3 + } tijioaobj.status = 3 - + assetTasksh(tijioaobj).then(res=>{ + if(res.code == 200){ + this.$modal.msgSuccess("审核成功"); + this.loading = false + this.$router.go(-1); + } + }) // this.ruleForm.xttz = this.xttz.join(','); // this.ruleForm.xtfhqkFcg = this.xtfhqkFcg.join(','); @@ -2793,13 +3253,16 @@ export default { // }) // } } - assetTasksh(tijioaobj).then(res=>{ - if(res.code == 200){ - this.$modal.msgSuccess("审核成功"); - this.$router.go(-1); - } - }) + }, }, + beforeRouteEnter(to,from,next){ + if(to.query.pageType == 'change') { + to.meta.title = '审核资产' + } else if(to.query.pageType == 'look') { + to.meta.title = '查看资产' + } + next(); + }, } diff --git a/src/views/auditPages/taskManagement/audit.vue b/src/views/auditPages/taskManagement/audit.vue index 078b6ac..0265a48 100644 --- a/src/views/auditPages/taskManagement/audit.vue +++ b/src/views/auditPages/taskManagement/audit.vue @@ -1,3268 +1,25 @@ + - + diff --git a/src/views/auditPages/taskManagement/index.vue b/src/views/auditPages/taskManagement/index.vue index 30a1b0b..f931a8f 100644 --- a/src/views/auditPages/taskManagement/index.vue +++ b/src/views/auditPages/taskManagement/index.vue @@ -125,6 +125,15 @@ + + + web资产 + 小程序资产 + 公众号资产 + 电子邮件资产 + 移动应用程序资产 + + @@ -188,10 +197,11 @@ export default { taskName: "", dwmc: [], taskDeadline: "", + hczclx:[] }, rules: { taskName: [ - { required: true, message: '请输入', trigger: 'blur' }, + { required: true, message: '请输入', trigger: 'change' }, ], dwmc: [ { required: true, message: '请选择', trigger: 'change' } @@ -199,8 +209,34 @@ export default { taskDeadline: [ { required: true, message: '请选择日期', trigger: 'change' } ], + hczclx:[ + { required: true, message: '请选择', trigger: 'change' } + ] }, - tabclicklist: [] + tabclicklist: [], + + chanckList:[ + { + lable:"0", + conent:"web资产" + }, + { + lable:"1", + conent:"小程序资产" + }, + { + lable:"2", + conent:"公众号资产" + }, + { + lable:"3", + conent:"电子邮件资产" + }, + { + lable:"4", + conent:"移动应用程序资产" + }, + ] } }, mounted() { @@ -218,11 +254,15 @@ export default { dwmc: [], taskName: "", taskDeadline: "", + hczclx:[] + } this.$refs.taskDialog.close() this.tabclicklist = [] }, submitForm(formName) { + console.log(this.ruleForm); + this.$refs[formName].validate((valid) => { if (valid) { this.ruleForm.dwmc = this.ruleForm.dwmc.join(",") @@ -281,7 +321,10 @@ export default { }, //打开列表 addliebiao() { - this.$refs.liebiaoDialog.open() + console.log(this.ruleForm.hczclx); + + if(this.ruleForm.hczclx.length >0){ + this.$refs.liebiaoDialog.open() setTimeout(() => { this.$refs.danweiList.getList() @@ -291,6 +334,10 @@ export default { this.$refs.danweiList.dakai(this.tabclicklist) }, 100); } + }else{ + this.$message('请先选择核查资产类型'); + } + }, liebiaoClose() { diff --git a/src/views/auditPages/taskManagement/info.vue b/src/views/auditPages/taskManagement/info.vue index a8fe459..e1c33bb 100644 --- a/src/views/auditPages/taskManagement/info.vue +++ b/src/views/auditPages/taskManagement/info.vue @@ -96,6 +96,10 @@
+ + + + @@ -216,6 +220,7 @@ export default { components: { myPagination,myDialog }, data() { return { + activeName:0, index: 1, formInline: { xtlx:"" @@ -238,7 +243,29 @@ export default { tabHeader: undefined, timeLineData: [], titleInfoObj: {}, - chakanyuanyin:"" + chakanyuanyin:"", + chanckList:[ + { + lable:"0", + conent:"web资产" + }, + { + lable:"1", + conent:"小程序资产" + }, + { + lable:"2", + conent:"公众号资产" + }, + { + lable:"3", + conent:"电子邮件资产" + }, + { + lable:"4", + conent:"移动应用程序资产" + }, + ] } }, mounted() { @@ -253,6 +280,9 @@ export default { }, methods: { + handleClick(tab, event) { + console.log(tab.name); + }, //返回图片 returnidimg(iswenzi){ // let obj = {