|
|
|
@ -0,0 +1,422 @@
|
|
|
|
|
<!-- IP资产新增页面 -->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="L-assets-info">
|
|
|
|
|
<div class="assets-info-top">
|
|
|
|
|
<el-row style="margin: 10px 0;">
|
|
|
|
|
<span class="top-title-box">基本信息</span>
|
|
|
|
|
</el-row>
|
|
|
|
|
<div class="assets-info-box">
|
|
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="170px" class="demo-ruleForm"
|
|
|
|
|
label-position="right" :disabled="disabled">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="所属单位" prop="ssdw">
|
|
|
|
|
<!-- <el-input v-model="ruleForm.ssdw" placeholder="请输入单位名称"></el-input> -->
|
|
|
|
|
<el-autocomplete v-model="ruleForm.ssdw" :fetch-suggestions="querySearchAsync" placeholder="请输入所属单位"
|
|
|
|
|
disabled></el-autocomplete>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="移动应用名称" prop="appName">
|
|
|
|
|
<el-input v-model="ruleForm.appName" placeholder="请输入移动应用名称"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="包名" prop="pack">
|
|
|
|
|
<el-input v-model="ruleForm.pack" style="width: 100%;" placeholder="请输入包名"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="icp备案状态" prop="icpState">
|
|
|
|
|
<el-select v-model="ruleForm.icpState" placeholder="请选择icp备案状态">
|
|
|
|
|
<el-option v-for="dict in dict.type.app_icp_state" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="icp备案号" prop="icpbah">
|
|
|
|
|
<el-input v-model="ruleForm.icpbah" placeholder="请输入icp备案号"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item prop="tyshxydm" class="daoqitixingren" label="统一社会信用代码" required :rules="[
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
pattern: /^[a-zA-Z0-9]{18}$/,
|
|
|
|
|
message: '请输入正确格式的18位统一社会信用代码',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}
|
|
|
|
|
]">
|
|
|
|
|
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="文件名" prop="wjm">
|
|
|
|
|
<el-input v-model="ruleForm.wjm" placeholder="请输入文件名"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="所属行业" prop="sshy">
|
|
|
|
|
<el-select v-model="ruleForm.sshy" placeholder="请选择所属行业">
|
|
|
|
|
<el-option v-for="dict in dict.type.app_sshy" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="重点行业" prop="zdhy">
|
|
|
|
|
<el-select v-model="ruleForm.zdhy" placeholder="请选择重点行业">
|
|
|
|
|
<el-option v-for="dict in dict.type.app_zdhy" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="行政区划" prop="xzqh">
|
|
|
|
|
<el-select v-model="ruleForm.xzqh" placeholder="请选择行政区划">
|
|
|
|
|
<el-option v-for="dict in dict.type.app_xzqh" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="安全加固情况" prop="aqjgqk">
|
|
|
|
|
<el-select v-model="ruleForm.aqjgqk" placeholder="请选择安全加固情况">
|
|
|
|
|
<el-option v-for="dict in dict.type.app_aqjgqk" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="版本信息" prop="bbxx">
|
|
|
|
|
<el-input v-model="ruleForm.bbxx" style="width: 100%;" placeholder="请输入版本信息"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="版本信息(版本号)" prop="bbh">
|
|
|
|
|
<el-input v-model="ruleForm.bbh" style="width: 100%;" placeholder="请输入版本信息(版本号)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="版本信息(MD5)" prop="bbxxMd5">
|
|
|
|
|
<el-input v-model="ruleForm.bbxxMd5" style="width: 100%;" placeholder="请输入版本信息(MD5)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="版本信息(上架平台)" prop="bbxxSjpt">
|
|
|
|
|
<el-input v-model="ruleForm.bbxxSjpt" style="width: 100%;" placeholder="请输入版本信息(上架平台)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="文件大小" prop="wjdx">
|
|
|
|
|
<el-input v-model="ruleForm.wjdx" style="width: 100%;" placeholder="请输入文件大小"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="移动应用系统状态" required>
|
|
|
|
|
<el-select v-model="ruleForm.appState" prop="appState" placeholder="请选择移动应用系统状态">
|
|
|
|
|
<el-option v-for="dict in dict.type.gzh_state" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="简介" prop="jj">
|
|
|
|
|
<el-input type="textarea" resize="none" placeholder="请输入简介" :rows="5" v-model="ruleForm.jj"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 10px 0;" v-if="ruleForm.bfyy">
|
|
|
|
|
<span class="top-title-box">关停原因</span>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<div>{{ ruleForm.bfyy }}</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"
|
|
|
|
|
v-if="pageType !== 'look' && $route.name == 'mytaskAuditInfo'">
|
|
|
|
|
<el-button type="danger" @click="newAssets(0)">关停</el-button>
|
|
|
|
|
<el-button @click="newAssets(1)">取消</el-button>
|
|
|
|
|
<el-button type="warning" @click="newAssets(2)">暂存</el-button>
|
|
|
|
|
<el-button type="success" @click="newAssets(3)" :loading="loading">提交</el-button>
|
|
|
|
|
<!-- <el-button type="primary" @click="sendBack" class="fanhuipiaofu">返回</el-button> -->
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType == 'look'">
|
|
|
|
|
<el-button type="primary" @click="sendBack" class="fanhuipiaofu">返回</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"
|
|
|
|
|
v-if="pageType !== 'look' && $route.name == 'taskAuditInfo'">
|
|
|
|
|
<el-button type="danger" @click="JGnewAssets(0)">不通过</el-button>
|
|
|
|
|
<el-button type="primary" @click="JGnewAssets(1)">通过</el-button>
|
|
|
|
|
<!-- <el-button type="primary" @click="sendBack" class="fanhuipiaofu">返回</el-button> -->
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
|
|
|
|
|
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.appName' :ruleForm="this.ruleForm" dataname="assetAppCpPo"></butongguo>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { assetApp, assetAppInfo, unitAllList } from "@/api/auditPagesApi/index";
|
|
|
|
|
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() {
|
|
|
|
|
return {
|
|
|
|
|
ruleForm: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
ssdw: [
|
|
|
|
|
{ required: true, message: "所属单位不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
appName: [
|
|
|
|
|
{ required: true, message: "移动应用名称不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
pack: [
|
|
|
|
|
{ required: true, message: "包名不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
icpState: [
|
|
|
|
|
{ required: true, message: "icp备案状态不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
icpbah: [
|
|
|
|
|
{ required: true, message: "icp备案号不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
wjm: [
|
|
|
|
|
{ required: true, message: "文件名不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
sshy: [
|
|
|
|
|
{ required: true, message: "所属行业不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
zdhy: [
|
|
|
|
|
{ required: true, message: "重点行业不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
xzqh: [
|
|
|
|
|
{ required: true, message: "行政区划不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
aqjgqk: [
|
|
|
|
|
{ required: true, message: "安全加固情况不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
bbxx: [
|
|
|
|
|
{ required: true, message: "版本信息不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
bbh: [
|
|
|
|
|
{ required: true, message: "版本信息(版本号)不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
bbxxMd5: [
|
|
|
|
|
{ required: true, message: "版本信息(MD5)不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
bbxxSjpt: [
|
|
|
|
|
{ required: true, message: "版本信息(上架平台)不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
wjdx: [
|
|
|
|
|
{ required: true, message: "文件大小不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
jj: [
|
|
|
|
|
{ required: true, message: "简介不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
appState: [
|
|
|
|
|
{ required: true, message: "移动应用系统状态不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
loading: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
props: ['pageType', 'id'],
|
|
|
|
|
mounted() {
|
|
|
|
|
if (this.pageType == 'look') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = 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.pageType == 'change') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
// if (this.$route.query.taskInfo == 'taskInfo') {
|
|
|
|
|
// this.disabled = true;
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
getInfo(id) {
|
|
|
|
|
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);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 单位名称模糊查询
|
|
|
|
|
querySearchAsync(queryString, cb) {
|
|
|
|
|
let results = [];
|
|
|
|
|
unitAllList({ nickName: queryString }).then(res => {
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
results.push({
|
|
|
|
|
value: item.nickName,
|
|
|
|
|
id: item.id,
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
cb(results);
|
|
|
|
|
},
|
|
|
|
|
guanting(ruleForm) {
|
|
|
|
|
assetTaskappzc(ruleForm).then(res => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已关停'
|
|
|
|
|
});
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.ruleForm.bfyy = ""
|
|
|
|
|
this.$refs.baofei.resetForm()
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 新增资产确认按钮
|
|
|
|
|
newAssets(type) {
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
//取消
|
|
|
|
|
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.ruleForm.taskId = this.$route.query.taskId
|
|
|
|
|
this.ruleForm.assetId = this.$route.query.assetId
|
|
|
|
|
|
|
|
|
|
if (type == 0) {
|
|
|
|
|
this.$refs.baofei.open()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//暂存
|
|
|
|
|
if (type == 2) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
assetTaskappzc(this.ruleForm).then(res => {
|
|
|
|
|
console.log(res, "res");
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type == 3) {
|
|
|
|
|
|
|
|
|
|
this.$refs['ruleForm'].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
assetTaskappjyTj(this.ruleForm).then(res => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$modal.msgSuccess("提交成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
JGnewAssets(type) {
|
|
|
|
|
|
|
|
|
|
this.ruleForm.taskId = this.$route.query.taskId
|
|
|
|
|
this.ruleForm.assetId = this.$route.query.assetId
|
|
|
|
|
if (type == 0) {
|
|
|
|
|
|
|
|
|
|
this.$refs['ruleForm'].validate((valid) => {
|
|
|
|
|
|
|
|
|
|
this.$refs.butongguo.open()
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
this.$refs['ruleForm'].validate((valid) => {
|
|
|
|
|
|
|
|
|
|
let tijioaobj = {
|
|
|
|
|
taskId: this.$route.query.taskId,
|
|
|
|
|
assetId: this.$route.query.assetId,
|
|
|
|
|
xtmc: this.ruleForm.appName,
|
|
|
|
|
status: 3,
|
|
|
|
|
type: this.$route.query.type,
|
|
|
|
|
assetAppCpPo: this.ruleForm
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
assetTasksh(tijioaobj).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$modal.msgSuccess("审核成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|