更改格式化

main
李劲龙 2 weeks ago
parent 65b1a03417
commit 4d7e030567

@ -441,7 +441,7 @@ export default {
assetId: row.id,
type: this.activeName,
zcdwmc: row.zcdwmc,
taskInfo:'taskInfo'
taskInfo: 'taskInfo'
}
})
}
@ -457,7 +457,7 @@ export default {
taskstatus(id) {
if (id) {
let obj = {
0:"已关闭",
0: "已关闭",
1: "进行中",
2: "正常完成", 3: "超期完成", 4: "正常完成", 5: "审核驳回"
}
@ -596,13 +596,13 @@ export default {
if (res.code == 200) {
let datalsit = res.data
this.echartsdata.forEach(res => {
datalsit.forEach(datares=>{
if(res.taskStatus == datares.taskStatus){
datalsit.forEach(datares => {
if (res.taskStatus == datares.taskStatus) {
res.value = datares.count
}
})
})
})
// this.echartsdata = this.echartsdata.filter(item => item.value != "");
}

@ -6,17 +6,14 @@
<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-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-autocomplete v-model="ruleForm.ssdw" :fetch-suggestions="querySearchAsync" placeholder="请输入所属单位"
disabled></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="12">
@ -27,83 +24,67 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="APPID" prop="appId">
<el-form-item label="APPID" prop="appId">
<el-input v-model="ruleForm.appId" style="width: 100%;" placeholder="请输入APPID"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="认证主体" prop="rzzt">
<el-form-item label="认证主体" prop="rzzt">
<el-input v-model="ruleForm.rzzt" style="width: 100%;" placeholder="请输入认证主体"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" >
<el-form-item class="daoqitixingren" prop="tyshxydm" :rules="[
{
required: true,
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'blur'
},
{ required: true, message: '统一社会信用代码不能为空', trigger: 'change'},
]" label="统一社会信用代码" required>
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
<el-col :span="12">
<el-form-item class="daoqitixingren" prop="tyshxydm" :rules="[
{
required: true,
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'blur'
},
{ required: true, message: '统一社会信用代码不能为空', trigger: 'change' },
]" label="统一社会信用代码" required>
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="小程序状态" prop="state">
<el-form-item label="小程序状态" prop="state">
<el-select v-model="ruleForm.state" placeholder="请选择小程序状态">
<el-option
v-for="dict in dict.type.gzh_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<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="12">
<el-form-item label="账号原始ID" prop="ysId">
<el-form-item label="账号原始ID" prop="ysId">
<el-input v-model="ruleForm.ysId" style="width: 100%;" placeholder="请输入账号原始ID"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="小程序包状态" prop="packState">
<el-form-item label="小程序包状态" prop="packState">
<el-select v-model="ruleForm.packState" placeholder="请选择小程序包状态">
<el-option
v-for="dict in dict.type.email_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<el-option v-for="dict in dict.type.email_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="认证状态" prop="rzState">
<el-form-item label="认证状态" prop="rzState">
<el-select v-model="ruleForm.rzState" placeholder="请选择认证状态">
<el-option
v-for="dict in dict.type.gzh_rzzt"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<el-option v-for="dict in dict.type.gzh_rzzt" :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="rzsj">
<el-date-picker
v-model="ruleForm.rzsj"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
<el-form-item label="认证时间" prop="rzsj">
<el-date-picker v-model="ruleForm.rzsj" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
@ -111,189 +92,167 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="认证类型" prop="rzlx">
<el-form-item label="认证类型" prop="rzlx">
<el-select v-model="ruleForm.rzlx" placeholder="请选择认证类型">
<el-option
v-for="dict in dict.type.gzh_rzlx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<el-option v-for="dict in dict.type.gzh_rzlx" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="icp备案状态" prop="icpState">
<el-form-item label="icp备案状态" prop="icpState">
<el-input v-model="ruleForm.icpState" style="width: 100%;" placeholder="请输入icp备案状态"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="域名白名单" prop="ymbmd">
<el-form-item label="域名白名单" prop="ymbmd">
<el-input v-model="ruleForm.ymbmd" style="width: 100%;" placeholder="请输入域名白名单"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="服务类目" prop="fwlm">
<el-form-item label="服务类目" prop="fwlm">
<el-input v-model="ruleForm.fwlm" style="width: 100%;" placeholder="请输入服务类目"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="hydzyx"
label="行业电子邮箱" required
:rules="[
{
type: 'email',
required: true,
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]"
>
<el-input v-model="ruleForm.hydzyx" style="width: 100%;" placeholder="请输入行业电子邮箱"></el-input>
</el-form-item>
<el-form-item prop="hydzyx" label="行业电子邮箱" required :rules="[
{
type: 'email',
required: true,
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]">
<el-input v-model="ruleForm.hydzyx" style="width: 100%;" placeholder="请输入行业电子邮箱"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所属行业" prop="sshy">
<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-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-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-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-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-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="xtzrr">
<el-form-item label="系统责任人" prop="xtzrr">
<el-input v-model="ruleForm.xtzrr" style="width: 100%;" placeholder="请输入系统责任人"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="xtzrrdh"
label="系统责任人电话" required
:rules="[
{
required: true,
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'change'
}
]"
>
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
<el-form-item prop="xtzrrdh" label="系统责任人电话" required :rules="[
{
required: true,
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'change'
}
]">
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="xtzrryx"
label="系统责任人邮箱" required
:rules="[
{
required: true,
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]"
>
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
<el-form-item prop="xtzrryx" label="系统责任人邮箱" required :rules="[
{
required: true,
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]">
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统责任人地址" prop="xtzrrdz">
<el-form-item label="系统责任人地址" prop="xtzrrdz">
<el-input v-model="ruleForm.xtzrrdz" style="width: 100%;" placeholder="请输入系统责任人地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="引入插件APPID" prop="yycjAppid">
<el-form-item label="引入插件APPID" prop="yycjAppid">
<el-input v-model="ruleForm.yycjAppid" style="width: 100%;" placeholder="请输入引入插件APPID"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="引用插件(开发者)" prop="yycjKfz">
<el-form-item label="引用插件(开发者)" prop="yycjKfz">
<el-input v-model="ruleForm.yycjKfz" style="width: 100%;" placeholder="请输入引用插件(开发者)"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="系统简介" prop="xtjj">
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5" v-model="ruleForm.xtjj"></el-input>
<el-form-item label="系统简介" prop="xtjj">
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5"
v-model="ruleForm.xtjj"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="ruleForm.bfyy">
<el-col :span="24">
<el-form-item label="关停原因">
                <div>{{ruleForm.bfyy}}</div>
              </el-form-item>
                <div>{{ ruleForm.bfyy }}</div>
              </el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look' &&$route.name == 'mytaskAuditInfo'" >
<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="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
<el-button @click="newAssets(1)"></el-button>
<el-button type="warning" @click="newAssets(2)"></el-button>
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
</el-row>
</el-form>
<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-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-row>
</div>
</div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.xcxmc' ></butongguo>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.xcxmc'></butongguo>
</div>
</template>
<script>
import { assetMiniPrograms, miniProgramsInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskminitaskSh, assetTaskxcxzc, assetTasksh,assetTaskxcxjyTj } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import { assetTaskminitaskSh, assetTaskxcxzc, assetTasksh, assetTaskxcxjyTj } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
export default {
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_rzzt','gzh_rzlx','email_state'],
components:{baofei,butongguo},
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'gzh_state', 'gzh_rzzt', 'gzh_rzlx', 'email_state'],
components: { baofei, butongguo },
data() {
return {
ruleForm:{
ruleForm: {
},
rules: {
ssdw: [
@ -308,7 +267,7 @@ export default {
rzzt: [
{ required: true, message: "认证主体不能为空", trigger: "change" }
],
state: [
{ required: true, message: "小程序状态不能为空", trigger: "change" }
],
@ -336,7 +295,7 @@ export default {
fwlm: [
{ required: true, message: "服务类目不能为空", trigger: "change" }
],
sshy: [
{ required: true, message: "所属行业不能为空", trigger: "change" }
],
@ -349,7 +308,7 @@ export default {
xtzrr: [
{ required: true, message: "系统责任人不能为空", trigger: "change" }
],
xtzrryx: [
{ required: true, message: "系统责任人邮箱不能为空", trigger: "change" },
{ type: 'email', message: "请输入正确的邮箱地址", trigger: ["change", "change"] }
@ -368,18 +327,18 @@ export default {
]
},
loading:false,
disabled:false,
loading: false,
disabled: false,
}
},
props:['pageType', 'id'],
mounted(){
props: ['pageType', 'id'],
mounted() {
console.log(this.$route);
if(this.pageType == 'look') {
if (this.pageType == 'look') {
this.getInfo()
this.disabled = true;
this.$nextTick(()=>{
this.$nextTick(() => {
const inputElements = document.querySelectorAll('.el-input__inner');
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
inputElements.forEach((input) => {
@ -389,33 +348,33 @@ export default {
input.placeholder = '';
});
})
} else if(this.pageType == 'change') {
} else if (this.pageType == 'change') {
this.getInfo()
this.disabled = false;
}
if(this.$route.query.taskInfo == 'taskInfo'){
if (this.$route.query.taskInfo == 'taskInfo') {
this.disabled = true;
}
},
methods:{
getInfo(id){
methods: {
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskminitaskSh(obj).then(res=>{
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()
this.$refs.ruleForm.clearValidate()
}, 100);
})
},
//
querySearchAsync(queryString, cb){
querySearchAsync(queryString, cb) {
let results = [];
unitAllList({nickName: queryString}).then(res => {
unitAllList({ nickName: queryString }).then(res => {
res.data.forEach(item => {
results.push({
value: item.nickName,
@ -425,88 +384,88 @@ export default {
})
cb(results);
},
guanting(ruleForm){
assetTaskxcxzc(ruleForm).then(res=>{
guanting(ruleForm) {
assetTaskxcxzc(ruleForm).then(res => {
this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
//
newAssets(type){
newAssets(type) {
if (type == 1) {
//
this.loading = true
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
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
this.$refs.baofei.open()
}
//
if (type == 2) {
this.loading = true
this.loading = true
assetTaskxcxzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
})
}
if(type == 3){
if (type == 3) {
this.$refs['ruleForm'].validate((valid) => {
if(valid) {
this.loading = true;
assetTaskxcxjyTj(this.ruleForm).then(res=>{
this.loading = false;
this.$modal.msgSuccess("提交成功");
this.$router.go(-1);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.loading = true;
assetTaskxcxjyTj(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.butongguo.open()
JGnewAssets(type) {
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.butongguo.open()
}
if(type == 1){
if (type == 1) {
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc:this.ruleForm.xcxmc,
xtmc: this.ruleForm.xcxmc,
status: 3,
type:this.$route.query.type
type: this.$route.query.type
}
assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){
assetTasksh(tijioaobj).then(res => {
if (res.code == 200) {
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
}
})
}
},
sendBack(){
sendBack() {
this.$router.go(-1);
},
},

@ -278,16 +278,16 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="xtzrrdh" label="系统责任人电话" required >
<el-form-item prop="xtzrrdh" label="系统责任人电话" required>
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统责任人邮箱" required prop="xtzrryx" >
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
<el-form-item label="系统责任人邮箱" required prop="xtzrryx">
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统责任人地址" required prop="xtzrrdz">
@ -320,12 +320,12 @@
</el-row>
</el-form>
<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-row>
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-row>
</div>
</div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
@ -362,7 +362,7 @@ export default {
],
tyshxydm: [
{ required: true, message: "统一社会信用代码不能为空", trigger: "change" },
{required: true, pattern: /^[a-zA-Z0-9]{18}$/, message: "请输入正确格式的18位统一社会信用代码", trigger: "blur" }
{ required: true, pattern: /^[a-zA-Z0-9]{18}$/, message: "请输入正确格式的18位统一社会信用代码", trigger: "blur" }
],
gzhzt: [
{ required: true, message: "公众号状态不能为空", trigger: "change" }
@ -396,11 +396,11 @@ export default {
],
xtzrrdh: [
{ required: true, message: "系统责任人电话不能为空", trigger: "change" },
{required: true, pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" }
{ required: true, pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" }
],
xtzrryx: [
{ required: true, message: "系统责任人邮箱不能为空", trigger: "change" },
{ required: true,type: 'email', message: "请输入正确的邮箱地址", trigger: ['blur', 'change'] }
{ required: true, type: 'email', message: "请输入正确的邮箱地址", trigger: ['blur', 'change'] }
],
xtzrrdz: [
{ required: true, message: "系统责任人地址不能为空", trigger: "change" }
@ -442,7 +442,7 @@ export default {
this.getInfo(this.id)
this.disabled = false;
}
if(this.$route.query.taskInfo == 'taskInfo'){
if (this.$route.query.taskInfo == 'taskInfo') {
this.disabled = true;
}
},

@ -6,17 +6,14 @@
<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-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-autocomplete v-model="ruleForm.ssdw" :fetch-suggestions="querySearchAsync" placeholder="请输入所属单位"
disabled></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="12">
@ -27,81 +24,61 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="建设类型" prop="jslx">
<el-form-item label="建设类型" prop="jslx">
<el-select v-model="ruleForm.jslx" placeholder="请选择建设类型">
<el-option
v-for="dict in dict.type.email_jslx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<el-option v-for="dict in dict.type.email_jslx" :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="yjxtgys">
<el-form-item label="邮件系统供应商" prop="yjxtgys">
<el-input v-model="ruleForm.yjxtgys" style="width: 100%;" placeholder="请输入邮件系统供应商"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="密码算法" prop="mmsf">
<el-form-item label="密码算法" prop="mmsf">
<el-input v-model="ruleForm.mmsf" placeholder="请输入密码算法"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="邮件系统状态" prop="yjxtzc">
<el-form-item label="邮件系统状态" prop="yjxtzc">
<el-select v-model="ruleForm.yjxtzc" placeholder="请选择邮件系统状态">
<el-option
v-for="dict in dict.type.email_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<el-option v-for="dict in dict.type.email_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="安全防护系统" prop="aqfhxt">
<el-form-item label="安全防护系统" prop="aqfhxt">
<el-select v-model="ruleForm.aqfhxt" placeholder="请选择安全防护系统">
<el-option
v-for="dict in dict.type.email_hasorno"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<el-option v-for="dict in dict.type.email_hasorno" :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="aqbfhj">
<el-form-item label="安全备份环境" prop="aqbfhj">
<el-select v-model="ruleForm.aqbfhj" placeholder="请选择安全备份环境">
<el-option
v-for="dict in dict.type.email_hasorno"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
<el-option v-for="dict in dict.type.email_hasorno" :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="szzscs">
<el-form-item label="数字证书厂商" prop="szzscs">
<el-input v-model="ruleForm.szzscs" style="width: 100%;" placeholder="请输入数字证书厂商"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上线时间" prop="sxsj">
<el-date-picker
v-model="ruleForm.sxsj"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
<el-form-item label="上线时间" prop="sxsj">
<el-date-picker v-model="ruleForm.sxsj" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
@ -109,135 +86,119 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="所属行业" prop="sshy">
<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-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-col :span="12">
<el-form-item label="重点行业" prop="zdhy">
<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-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-row>
<el-row>
<el-col :span="12">
<el-form-item label="行政区划" prop="xzqh">
<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-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-col :span="12">
<el-form-item label="系统责任人" prop="xtzrr">
<el-form-item label="系统责任人" prop="xtzrr">
<el-input v-model="ruleForm.xtzrr" style="width: 100%;" placeholder="请输入系统责任人"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="xtzrrdh"
label="系统责任人电话" required
:rules="[
{
required: true,
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'change'
}
]"
>
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
<el-form-item prop="xtzrrdh" label="系统责任人电话" required :rules="[
{
required: true,
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'change'
}
]">
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="xtzrryx"
label="系统责任人邮箱" required
:rules="[
{
required: true,
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]"
>
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
<el-form-item prop="xtzrryx" label="系统责任人邮箱" required :rules="[
{
required: true,
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]">
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统责任人地址" prop="xtzrrdz">
<el-form-item label="系统责任人地址" prop="xtzrrdz">
<el-input v-model="ruleForm.xtzrrdz" style="width: 100%;" placeholder="请输入系统责任人地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="简介" prop="jj">
<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 v-if="ruleForm.bfyy">
<el-row v-if="ruleForm.bfyy">
<el-col :span="24">
<el-form-item label="关停原因">
                <div>{{ruleForm.bfyy}}</div>
              </el-form-item>
                <div>{{ ruleForm.bfyy }}</div>
              </el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look' &&$route.name == 'mytaskAuditInfo'" >
<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="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
<el-button @click="newAssets(1)"></el-button>
<el-button type="warning" @click="newAssets(2)"></el-button>
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
</el-row>
</el-form>
<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-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-row>
</div>
</div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc' ></butongguo>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc'></butongguo>
</div>
</template>
<script>
import { assetEmail, assetEmailInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskemailtaskSh, assetTaskemailzc, assetTasksh,assetTaskemailjyTj } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import { assetTaskemailtaskSh, assetTaskemailzc, assetTasksh, assetTaskemailjyTj } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
export default {
components:{baofei,butongguo},
components: { baofei, butongguo },
dicts:['app_xzqh','app_sshy','app_zdhy','email_jslx','email_state','email_hasorno'],
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'email_jslx', 'email_state', 'email_hasorno'],
data() {
return {
ruleForm:{
ruleForm: {
},
rules: {
@ -283,7 +244,7 @@ export default {
xtzrr: [
{ required: true, message: "系统责任人不能为空", trigger: "change" }
],
xtzrrdz: [
{ required: true, message: "系统责任人地址不能为空", trigger: "change" }
],
@ -292,16 +253,16 @@ export default {
]
},
loading:false,
disabled:false,
loading: false,
disabled: false,
}
},
props:['pageType', 'id'],
mounted(){
if(this.pageType == 'look') {
props: ['pageType', 'id'],
mounted() {
if (this.pageType == 'look') {
this.getInfo(this.id)
this.disabled = true;
this.$nextTick(()=>{
this.$nextTick(() => {
const inputElements = document.querySelectorAll('.el-input__inner');
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
inputElements.forEach((input) => {
@ -311,32 +272,32 @@ export default {
input.placeholder = '';
});
})
} else if(this.pageType == 'change') {
} else if (this.pageType == 'change') {
this.getInfo(this.id)
this.disabled = false;
}
if(this.$route.query.taskInfo == 'taskInfo'){
if (this.$route.query.taskInfo == 'taskInfo') {
this.disabled = true;
}
},
methods:{
getInfo(id){
methods: {
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskemailtaskSh(obj).then(res=>{
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskemailtaskSh(obj).then(res => {
this.ruleForm = res.data;
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
this.$refs.ruleForm.clearValidate()
}, 100);
})
},
//
querySearchAsync(queryString, cb){
querySearchAsync(queryString, cb) {
let results = [];
unitAllList({nickName: queryString}).then(res => {
unitAllList({ nickName: queryString }).then(res => {
res.data.forEach(item => {
results.push({
value: item.nickName,
@ -346,87 +307,87 @@ export default {
})
cb(results);
},
guanting(ruleForm){
assetTaskemailzc(ruleForm).then(res=>{
guanting(ruleForm) {
assetTaskemailzc(ruleForm).then(res => {
this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
//
newAssets(type){
//
newAssets(type) {
if (type == 1) {
//
this.loading = true
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
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
this.$refs.baofei.open()
}
//
if (type == 2) {
this.loading = true
assetTaskemailzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
this.loading = true
assetTaskemailzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
})
}
if(type == 3){
if (type == 3) {
this.$refs['ruleForm'].validate((valid) => {
if(valid) {
this.loading = true;
assetTaskemailjyTj(this.ruleForm).then(res=>{
this.loading = false;
this.$modal.msgSuccess("提交成功");
this.$router.go(-1);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.loading = true;
assetTaskemailjyTj(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.butongguo.open()
JGnewAssets(type) {
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.butongguo.open()
}
if(type == 1){
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc:this.ruleForm.dzyxhz,
status: 3,
type:this.$route.query.type
}
assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
if (type == 1) {
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc: this.ruleForm.dzyxhz,
status: 3,
type: this.$route.query.type
}
})
}
},
sendBack(){
assetTasksh(tijioaobj).then(res => {
if (res.code == 200) {
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
}
})
}
},
sendBack() {
this.$router.go(-1);
},
},

@ -6,150 +6,124 @@
<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-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-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-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-form-item label="移动应用名称" prop="appName">
<el-input v-model="ruleForm.appName" placeholder="请输入移动应用名称" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="包名" prop="pack">
<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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-form-item label="文件大小" prop="wjdx">
<el-input v-model="ruleForm.wjdx" style="width: 100%;" placeholder="请输入文件大小"></el-input>
</el-form-item>
</el-col>
@ -158,19 +132,15 @@
<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-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-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>
@ -178,41 +148,43 @@
<el-row v-if="ruleForm.bfyy">
<el-col :span="24">
<el-form-item label="关停原因">
                <div>{{ruleForm.bfyy}}</div>
              </el-form-item>
                <div>{{ ruleForm.bfyy }}</div>
              </el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look' &&$route.name == 'mytaskAuditInfo'" >
<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="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
<el-button @click="newAssets(1)"></el-button>
<el-button type="warning" @click="newAssets(2)"></el-button>
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
</el-row>
</el-form>
<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-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-row>
</div>
</div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.appName' ></butongguo>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.appName'></butongguo>
</div>
</template>
<script>
import { assetApp, assetAppInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskapptaskSh, assetTaskappzc, assetTasksh ,assetTaskappjyTj} from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import { assetTaskapptaskSh, assetTaskappzc, assetTasksh, assetTaskappjyTj } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
export default {
components:{baofei,butongguo},
components: { baofei, butongguo },
dicts:['app_icp_state','app_sshy','app_zdhy','app_xzqh','app_aqjgqk','gzh_state'],
dicts: ['app_icp_state', 'app_sshy', 'app_zdhy', 'app_xzqh', 'app_aqjgqk', 'gzh_state'],
data() {
return {
ruleForm:{
ruleForm: {
},
rules: {
@ -231,7 +203,7 @@ export default {
icpbah: [
{ required: true, message: "icp备案号不能为空", trigger: "change" }
],
wjm: [
{ required: true, message: "文件名不能为空", trigger: "change" }
],
@ -265,21 +237,21 @@ export default {
jj: [
{ required: true, message: "简介不能为空", trigger: "change" }
],
appState:[
appState: [
{ required: true, message: "移动应用系统状态不能为空", trigger: "change" }
],
},
loading:false,
disabled:false,
loading: false,
disabled: false,
}
},
props:['pageType', 'id'],
mounted(){
if(this.pageType == 'look') {
props: ['pageType', 'id'],
mounted() {
if (this.pageType == 'look') {
this.getInfo(this.id)
this.disabled = true;
this.$nextTick(()=>{
this.$nextTick(() => {
const inputElements = document.querySelectorAll('.el-input__inner');
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
inputElements.forEach((input) => {
@ -289,32 +261,32 @@ export default {
input.placeholder = '';
});
})
} else if(this.pageType == 'change') {
} else if (this.pageType == 'change') {
this.getInfo(this.id)
this.disabled = false;
}
if(this.$route.query.taskInfo == 'taskInfo'){
if (this.$route.query.taskInfo == 'taskInfo') {
this.disabled = true;
}
},
methods:{
getInfo(id){
methods: {
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskapptaskSh(obj).then(res=>{
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskapptaskSh(obj).then(res => {
this.ruleForm = res.data;
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
this.$refs.ruleForm.clearValidate()
}, 100);
})
},
//
querySearchAsync(queryString, cb){
querySearchAsync(queryString, cb) {
let results = [];
unitAllList({nickName: queryString}).then(res => {
unitAllList({ nickName: queryString }).then(res => {
res.data.forEach(item => {
results.push({
value: item.nickName,
@ -324,87 +296,87 @@ export default {
})
cb(results);
},
guanting(ruleForm){
assetTaskappzc(ruleForm).then(res=>{
guanting(ruleForm) {
assetTaskappzc(ruleForm).then(res => {
this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
//
newAssets(type){
newAssets(type) {
if (type == 1) {
//
this.loading = true
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
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
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
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){
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);
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.butongguo.open()
JGnewAssets(type) {
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.butongguo.open()
}
if(type == 1){
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc:this.ruleForm.appName,
status: 3,
type:this.$route.query.type
}
assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
if (type == 1) {
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc: this.ruleForm.appName,
status: 3,
type: this.$route.query.type
}
})
}
},
sendBack(){
assetTasksh(tijioaobj).then(res => {
if (res.code == 200) {
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
}
})
}
},
sendBack() {
this.$router.go(-1);
},
},

Loading…
Cancel
Save