小程序资产修改

main
项洋 4 days ago
parent ce25cf985b
commit 8dd1c39bbc

@ -163,16 +163,6 @@
>
</el-row>
</webZCinfo>
<!-- <el-row
style="margin: 10px 0; padding-bottom: 50px; text-align: center"
v-if="(pageType === 'change' || pageType === 'add') && !audit"
> -->
<!-- <el-button type="danger" @click="sendBack"></el-button>
<el-button type="primary" @click="newAssets" :loading="loading"
>提交</el-button
> -->
<!-- </el-row> -->
</template>
<script setup>
import webZCinfo from "./webZCinfo.vue";
@ -223,8 +213,11 @@ const webZCinfoRef = ref();
const liebiaoDialogRef = ref();
const ruleFormRef = ref();
const navigateBack =()=>{
router.go(-1);
}
const sendBack = () => {
router.push({ name: route.query.name, params: queryData.value });
navigateBack();
};
const newAssets = async (typeButtom1) => {
@ -241,7 +234,7 @@ const newAssets = async (typeButtom1) => {
console.log(typeButtom, "typeButtom");
if (typeButtom === 1) {
loading.value = true;
router.go(-1);
navigateBack(); // router.go(-1)
loading.value = false;
return;
}
@ -297,7 +290,7 @@ const newAssets = async (typeButtom1) => {
const res = await assetTaskzc(ruleForm);
console.log(res, "res");
ElMessage.success("修改成功");
router.go(-1);
navigateBack();
} catch (error) {
console.error(error);
ElMessage.error("修改失败");
@ -316,7 +309,7 @@ const newAssets = async (typeButtom1) => {
const res = await assetTaskjyTj(ruleForm);
console.log(res, "res");
ElMessage.success("提交成功");
router.go(-1);
navigateBack();
} catch (error) {
console.error(error);
ElMessage.info("请填写完整");
@ -374,7 +367,7 @@ const newAssets = async (typeButtom1) => {
ElMessage.success("提交成功,待管理员审核通过后完成新增");
}
}
router.push({ name: name.value, params: queryData.value });
navigateBack();
} catch (err) {
console.error(err);
} finally {
@ -407,7 +400,7 @@ const newAssets1 = async (type) => {
if (res.code == 200) {
ElMessage.success("审核成功");
loading.value = false;
router.go(-1);
navigateBack();
}
})
.catch(() => {
@ -452,7 +445,7 @@ const submitReject = () => {
if (res.code == 200) {
ElMessage.success("审核成功");
webZCinfoRef.value.liebiaoDialog.close();
router.go(-1);
navigateBack();
}
} catch (e) {
ElMessage.error("操作失败");
@ -472,7 +465,7 @@ const submitReject = () => {
message: "已关停",
});
loading.value = false;
router.go(-1);
navigateBack();
webZCinfoRef.value.ruleForm.bfyy = "";
} catch (error) {
console.error(error);
@ -493,7 +486,7 @@ const submitReject = () => {
if (res.code == 200) {
ElMessage.success("审核驳回");
webZCinfoRef.value.liebiaoDialog.close();
router.push({ name: name.value, params: queryData.value });
navigateBack();
}
} catch (e) {
ElMessage.error("操作失败");
@ -516,7 +509,7 @@ const btnPass = async () => {
xtmc: ruleForm?.xtmc,
});
ElMessage.success("审核通过");
router.push({ name: name.value, params: queryData.value });
navigateBack();
} catch (err) {
// ElMessage.error("");
} finally {

@ -1,4 +1,3 @@
<!--assetsManage/assets-->
<template>
<el-row
:gutter="20"
@ -29,19 +28,9 @@
/>
</div>
</el-col>
<el-col
:span="20"
:xs="24"
style="height: 100%; flex: 1"
>
<div
class="L-main"
id="L-size-main"
>
<div
class="content-search"
id="L-header"
>
<el-col :span="20" :xs="24" style="height: 100%; flex: 1">
<div class="L-main" id="L-size-main">
<div class="content-search" id="L-header">
<div class="search-title">查询条件</div>
<el-form
:inline="true"
@ -52,10 +41,7 @@
>
<el-row :gutter="30">
<el-col :span="8">
<el-form-item
label="系统名称:"
prop="xtmc"
>
<el-form-item label="系统名称:" prop="xtmc">
<el-input
v-model="formInline.xtmc"
placeholder="请输入系统名称"
@ -63,10 +49,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item
label="系统类型:"
prop="xtlx"
>
<el-form-item label="系统类型:" prop="xtlx">
<el-select
v-model="formInline.xtlx"
placeholder="请选择系统类型"
@ -82,10 +65,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item
label="新增时间:"
prop="time"
>
<el-form-item label="新增时间:" prop="time">
<el-date-picker
v-model="formInline.time"
format="yyyy-MM-dd HH:mm:ss"
@ -101,10 +81,7 @@
</el-row>
<el-row :gutter="30">
<el-col :span="8">
<el-form-item
label="单位名称:"
prop="dwmc"
>
<el-form-item label="单位名称:" prop="dwmc">
<el-input
v-model="formInline.dwmc"
placeholder="请输入单位名称"
@ -112,10 +89,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item
label="系统状态:"
prop="xtzt"
>
<el-form-item label="系统状态:" prop="xtzt">
<el-select
v-model="formInline.xtzt"
placeholder="请选择系统状态"
@ -130,10 +104,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span="8"
style="text-align: right; padding-right: 35px"
>
<el-col :span="8" style="text-align: right; padding-right: 35px">
<el-form-item
style="
display: flex;
@ -142,9 +113,7 @@
"
>
<el-button @click="resetQuery"></el-button>
<el-button
type="primary"
@click="handleQuery"
<el-button type="primary" @click="handleQuery"
>查询</el-button
>
</el-form-item>
@ -155,16 +124,9 @@
<main>
<div class="search-title">
<span class="search-title-span">资产列表</span>
<el-row
:gutter="10"
class="mb8"
>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="info"
plain
icon="Upload"
@click="handleImport"
<el-button type="info" plain icon="Upload" @click="handleImport"
>导入</el-button
>
</el-col>
@ -178,11 +140,7 @@
>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="Plus"
@click="handleAdd"
<el-button type="primary" plain icon="Plus" @click="handleAdd"
>新增资产</el-button
>
</el-col>
@ -216,10 +174,7 @@
align="center"
>
<template #default="scope">
<dict-tag
:options="zc_xtlx"
:value="scope.row.xtlx"
/>
<dict-tag :options="zc_xtlx" :value="scope.row.xtlx" />
</template>
</el-table-column>
<el-table-column
@ -242,34 +197,22 @@
align="center"
>
<template #default="scope">
<span
v-if="scope.row.xtzt == 1"
style="color: #16b771"
<span v-if="scope.row.xtzt == 1" style="color: #16b771"
>已安装</span
>
<span
v-if="scope.row.xtzt == 2"
style="color: #f58a0c"
<span v-if="scope.row.xtzt == 2" style="color: #f58a0c"
>测试中</span
>
<span
v-if="scope.row.xtzt == 3"
style="color: #1485ef"
<span v-if="scope.row.xtzt == 3" style="color: #1485ef"
>使用中</span
>
<span
v-if="scope.row.xtzt == 4"
style="color: #29a07a"
<span v-if="scope.row.xtzt == 4" style="color: #29a07a"
>维护中</span
>
<span
v-if="scope.row.xtzt == 5"
style="color: #f50c0c"
<span v-if="scope.row.xtzt == 5" style="color: #f50c0c"
>关停</span
>
<span
v-if="scope.row.xtzt == 6"
style="color: #f50c0c"
<span v-if="scope.row.xtzt == 6" style="color: #f50c0c"
>备用</span
>
</template>
@ -409,9 +352,7 @@
</el-upload>
<template #footer>
<div class="dialog-footer">
<el-button
type="primary"
@click="submitFileForm"
<el-button type="primary" @click="submitFileForm"
> </el-button
>
<el-button @click="upload.open = false"> </el-button>
@ -423,7 +364,14 @@
</el-row>
</template>
<script setup>
import { ref, reactive, onMounted, onUnmounted, getCurrentInstance } from "vue";
import {
ref,
reactive,
onMounted,
onUnmounted,
getCurrentInstance,
onActivated,
} from "vue";
import { useRouter } from "vue-router";
import myPagination from "@/views/components/Pagination/index.vue";
import { getToken } from "@/utils/auth";
@ -656,12 +604,12 @@ const cancalDebounce = () => {
};
onMounted(() => {
if (Object.keys(router.currentRoute.value.params).length !== 0) {
Object.assign(formInline, router.currentRoute.value.params);
} else {
// if (Object.keys(router.currentRoute.value.params).length !== 0) {
// Object.assign(formInline, router.currentRoute.value.params);
// } else {
formInline.current = 1;
formInline.size = 20;
}
// }s
getList();
getDeptTree();
cancalDebounce();

@ -0,0 +1,80 @@
<template>
<div>
<my-dialog title="提示" ref="liebiaoDialog" @close="importClose" class="taskDialogBox" width="40%">
<el-row>
<el-col :span="21">
<el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="eldialogruleForm" label-width="100px">
<el-form-item label="关停原因:" prop="bfyy">
<el-input v-model="dialogruleForm.bfyy" placeholder="请输入关停原因"></el-input>
</el-form-item>
<el-form-item class="newTask-form-item">
<el-button @click="resetForm('eldialogruleForm')"></el-button>
<el-button type="primary" @click="submitForm('eldialogruleForm')"></el-button>
</el-form-item>
</el-form>
</el-col>
<el-col :span="6"></el-col>
</el-row>
</my-dialog>
</div>
</template>
<script>
import myDialog from "@/views/components/myDialog/index.vue"
export default {
components:{
myDialog
},
name: 'baofei',
data () {
return {
dialogruleForm:{
bfyy:""
},
dialogruleFormrules:{
bfyy: [
{ required: true, message: '请输入', trigger: 'blur' },
],
},
}
},
created () { },
mounted () { },
props:['ruleForm', 'assetTaskzc'],
methods: {
importClose(){},
resetForm() {
this.dialogruleForm = {
bfyy:""
}
this.$refs.liebiaoDialog.close()
},
open(){
this.$refs.liebiaoDialog.open()
},
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.ruleForm.isbf = 2
this.ruleForm.bfyy = this.dialogruleForm.bfyy
this.$emit("assetTaskzc",this.ruleForm)
} else {
console.log('error submit!!');
return false;
}
});
},
},
computed: {}
}
</script>
<style scoped lang='scss'>
</style>

@ -0,0 +1,94 @@
<template>
<div>
<my-dialog title="提示" ref="liebiaoDialog" @close="importClose" class="taskDialogBox" width="40%">
<el-row>
<el-col :span="21">
<el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="dialogruleForm" label-width="100px">
<el-form-item label="不通过原因:" prop="btgyy">
<el-input v-model="dialogruleForm.btgyy" placeholder="请输入不通过原因"></el-input>
</el-form-item>
<el-form-item class="newTask-form-item">
<el-button @click="resetForm('dialogruleForm')"></el-button>
<el-button type="primary" @click="submitForm('dialogruleForm')"></el-button>
</el-form-item>
</el-form>
</el-col>
<el-col :span="6"></el-col>
</el-row>
</my-dialog>
</div>
</template>
<script>
import myDialog from "@/views/components/myDialog/index.vue"
import { assetTasksh } from "@/api/renwuApi/index.js"
export default {
components:{
myDialog
},
name: 'baofei',
data () {
return {
dialogruleForm:{
btgyy:""
},
dialogruleFormrules:{
btgyy: [
{ required: true, message: '请输入', trigger: 'blur' },
],
},
}
},
created () { },
mounted () { },
props:['chuandemingcheng', 'assetTaskzc',"dataname","ruleForm"],
methods: {
importClose(){},
resetForm() {
this.dialogruleForm = {
btgyy:""
}
this.$refs.liebiaoDialog.close()
},
open(){
this.$refs.liebiaoDialog.open()
},
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc:this.chuandemingcheng,
btgyy:this.dialogruleForm.btgyy,
dwmc:this.$route.query.zcdwmc,
status: 4,
type:this.$route.query.type
}
tijioaobj[this.dataname] = this.ruleForm
assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
}
})
} else {
console.log('error submit!!');
return false;
}
});
},
},
computed: {}
}
</script>
<style scoped lang='scss'>
</style>

@ -183,6 +183,7 @@ import {
unitEdit,
assetAudit,
lookInfo,
miniProgramsUnitEdit
} from "@/api/auditPagesApi/index";
import { ref } from "vue";
@ -204,11 +205,10 @@ const type = ref(route.query.type);
let loading = ref(false);
const xcxZCinfoRef = ref();
const liebiaoDialogRef = ref();
const ruleFormRef = ref();
const sendBack = () => {
router.push({ name: route.query.name, params: queryData.value });
router.go(-1);
};
const newAssets = async (typeButtom1) => {
@ -221,7 +221,7 @@ const newAssets = async (typeButtom1) => {
}
console.log(typeButtom, "typeButtom");
if (!Object.is(typeButtom, undefined)) {
if (!Object.is(typeButtom,'')) {
console.log(typeButtom, "typeButtom");
if (typeButtom === 1) {
loading.value = true;
@ -236,8 +236,8 @@ const newAssets = async (typeButtom1) => {
//
if (typeButtom === 0) {
console.log(typeButtom, "typeButtom");
baofeiRef.value?.open();
xcxZCinfoRef.value.liebiaoDialog?.open();
return;
}
//
@ -274,12 +274,13 @@ const newAssets = async (typeButtom1) => {
}
}
} else {
console.log(typeButtom, "typeButtom");
try {
await xcxZCinfoRef.value.ruleFormRef.validate();
console.log(typeButtom, "typeButtom");
loading.value = true;
if (pageType.value === "change") {
await unitEdit(ruleForm);
await miniProgramsUnitEdit(ruleForm);
ElMessage.success("提交成功,待管理员审核通过后完成修改");
} else {
ruleForm.xzType = 1;
@ -287,10 +288,11 @@ const newAssets = async (typeButtom1) => {
if (pageType.value === "add" && name.value == "XcxZC") {
ElMessage.success("新增成功");
} else if (pageType.value === "add") {
console.log(typeButtom, "typeButtom");
ElMessage.success("提交成功,待管理员审核通过后完成新增");
}
}
router.push({ name: name.value, params: queryData.value });
router.go(-1);
} catch (err) {
console.error(err);
} finally {
@ -341,10 +343,9 @@ const btnReject = () => {
xcxZCinfoRef.value.butongguoRef.open();
};
const submitReject = () => {
//
xcxZCinfoRef.value.dialogruleFormRef?.validate(async (valid) => {
if (valid) {
const submitReject = (formData) => {
console.log("submitReject called in parent", formData);
// name使
if (name.value === "TaskManagement-info") {
// 使assetTasksh
@ -352,7 +353,7 @@ const submitReject = () => {
taskId: route.query.taskId,
assetId: route.query.assetId,
xtmc: xcxZCinfoRef.value.ruleForm.xcxmc,
btgyy: xcxZCinfoRef.value.dialogruleForm.auditYy,
btgyy: formData.auditYy,
status: 4,
type: route.query.type,
assetMiniProgramsCpPo: xcxZCinfoRef.value.ruleForm,
@ -360,58 +361,69 @@ const submitReject = () => {
try {
loading.value = true;
const res = await assetTasksh(tijioaobj);
assetTasksh(tijioaobj).then(res => {
if (res.code == 200) {
ElMessage.success("审核成功");
xcxZCinfoRef.value.butongguoRef.close();
xcxZCinfoRef.value.liebiaoDialog?.close();
router.go(-1);
}
} catch (e) {
}).catch(e => {
ElMessage.error("操作失败");
} finally {
}).finally(() => {
loading.value = false;
});
} catch (e) {
loading.value = false;
ElMessage.error("操作失败");
}
} else if (name.value === "Mytask-info") {
xcxZCinfoRef.value.ruleForm.bfyy = xcxZCinfoRef.value.dialogruleForm?.auditYy;
xcxZCinfoRef.value.ruleForm.bfyy = formData.auditYy;
loading.value = true;
try {
const res = await assetTaskxcxzc(xcxZCinfoRef.value.ruleForm);
assetTaskxcxzc(xcxZCinfoRef.value.ruleForm).then(res => {
console.log(res, "res");
ElMessage({
type: "info",
message: "已关停",
});
xcxZCinfoRef.value.liebiaoDialog?.close();
router.go(-1);
xcxZCinfoRef.value.ruleForm.bfyy = "";
} catch (error) {
}).catch(error => {
console.error(error);
ElMessage.error("操作失败");
} finally {
}).finally(() => {
loading.value = false;
});
} catch (error) {
console.error(error);
loading.value = false;
ElMessage.error("操作失败");
}
} else {
// 使assetAudit
let tijioaobj = {
auditState: "3",
auditYy: xcxZCinfoRef.value.dialogruleForm.auditYy,
auditYy: formData.auditYy,
currentId: Number(id.value),
xzType: 1,
};
try {
const res = await assetAudit(tijioaobj);
assetAudit(tijioaobj).then(res => {
if (res.code == 200) {
ElMessage.success("审核驳回");
xcxZCinfoRef.value.butongguoRef.close();
xcxZCinfoRef.value.liebiaoDialog?.close();
router.push({ name: name.value, params: queryData.value });
}
}).catch(e => {
ElMessage.error("操作失败");
});
} catch (e) {
ElMessage.error("操作失败");
}
}
}
});
};
const btnPass = async () => {

@ -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.pageTypetow,
istijiaoshow: true
}
})
} else {
this.$router.go(-1);
}
},
}
};

@ -21,9 +21,8 @@
<!-- <el-input v-model="ruleForm.ssdw" placeholder="请输入所属单位"></el-input> -->
<el-autocomplete
v-model="ruleForm.ssdw"
:fetch-suggestions="querySearchAsync"
placeholder="请输入所属单位"
disabled
:disabled="name == 'XcxZC' && pageType == 'change'"
></el-autocomplete>
</el-form-item>
</el-col>
@ -32,6 +31,7 @@
<el-input
v-model="ruleForm.xcxmc"
placeholder="请输入小程序名称"
:disabled="name == 'XcxZC' && pageType == 'change'"
></el-input>
</el-form-item>
</el-col>
@ -90,7 +90,7 @@
placeholder="请选择小程序状态"
>
<el-option
v-for="dict in dict.type.gzh_state"
v-for="dict in gzh_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -116,7 +116,7 @@
placeholder="请选择小程序包状态"
>
<el-option
v-for="dict in dict.type.email_state"
v-for="dict in email_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -133,7 +133,7 @@
placeholder="请选择认证状态"
>
<el-option
v-for="dict in dict.type.gzh_rzzt"
v-for="dict in gzh_rzzt"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -146,8 +146,8 @@
<el-date-picker
v-model="ruleForm.rzsj"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
placeholder="选择日期"
>
</el-date-picker>
@ -159,7 +159,7 @@
<el-form-item label="认证类型" prop="rzlx">
<el-select v-model="ruleForm.rzlx" placeholder="请选择认证类型">
<el-option
v-for="dict in dict.type.gzh_rzlx"
v-for="dict in gzh_rzlx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -223,7 +223,7 @@
<el-form-item label="所属行业" prop="sshy">
<el-select v-model="ruleForm.sshy" placeholder="请选择所属行业">
<el-option
v-for="dict in dict.type.app_sshy"
v-for="dict in app_sshy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -237,7 +237,7 @@
<el-form-item label="重点行业" prop="zdhy">
<el-select v-model="ruleForm.zdhy" placeholder="请选择重点行业">
<el-option
v-for="dict in dict.type.app_zdhy"
v-for="dict in app_zdhy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -249,7 +249,7 @@
<el-form-item label="行政区划" prop="xzqh">
<el-select v-model="ruleForm.xzqh" placeholder="请选择行政区划">
<el-option
v-for="dict in dict.type.app_xzqh"
v-for="dict in app_xzqh"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -364,22 +364,60 @@
</el-form-item>
</el-row>
</el-form>
<slot></slot>
</div>
</div>
<baofei ref="baofeiRef" :ruleForm="ruleForm" @assetTaskzc="guanting"></baofei>
<!-- <baofei
ref="baofeiRef"
:ruleForm="ruleForm"
@assetTaskzc="guanting"
></baofei>
<butongguo
ref="butongguoRef"
:chuandemingcheng="ruleForm.xcxmc"
:ruleForm="ruleForm"
dataname="assetMiniProgramsCpPo"
></butongguo>
></butongguo> -->
<my-dialog
title="提示"
ref="liebiaoDialog"
class="taskDialogBox"
width="40%"
>
<el-row>
<el-col :span="21">
<el-form
:model="dialogruleForm"
:rules="dialogruleFormrules"
ref="dialogruleFormRef"
label-width="100px"
>
<el-form-item
:label="name === 'Mytask-info' ? '关停原因:' : '不通过原因:'"
prop="auditYy"
>
<el-input
v-model="dialogruleForm.auditYy"
:placeholder="
name === 'Mytask-info' ? '请输入关停原因' : '请输入不通过原因'
"
></el-input>
</el-form-item>
<el-form-item class="newTask-form-item">
<el-button @click="resetForm('dialogruleForm')"></el-button>
<el-button type="primary" @click="submitDialog"
>确定</el-button>
</el-form-item>
</el-form>
</el-col>
<el-col :span="6"></el-col>
</el-row>
</my-dialog>
</div>
</template>
<script setup>
import { ref, reactive, onMounted, computed, nextTick, defineProps } from "vue";
import { ref, reactive, onMounted, computed, nextTick, defineProps, defineEmits } from "vue";
import { useRoute, useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import { useDict } from "@/utils/dict";
@ -387,6 +425,7 @@ import {
assetMiniPrograms,
miniProgramsInfo,
unitAllList,
miniProgramsLookInfo,
} from "@/api/auditPagesApi/index";
import {
assetTaskminitaskSh,
@ -395,14 +434,15 @@ import {
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";
import baofei from "@/views/assetsManage2/xcxZC-info/baofei.vue";
import butongguo from "@/views/assetsManage2/xcxZC-info/butongguo.vue";
import myMixin from "@/views/assetsManage2/xcxZC-info/minxfanhui.js";
import useUserStore from "@/store/modules/user";
import myDialog from "@/views/components/myDialog/index.vue";
const userStore = useUserStore();
// props
const props = defineProps({
pageType: { type: String, default: '' },
pageType: { type: String, default: "" },
id: [String, Number],
audit: { type: Boolean, default: false },
isModdle: { type: Boolean, default: false },
@ -412,15 +452,18 @@ const props = defineProps({
assetId: { type: String },
type: { type: String },
});
const dialogruleForm = reactive({
auditYy: "",
});
//
const route = useRoute();
const router = useRouter();
// ref
const ruleFormRef = ref(null);
const baofeiRef = ref(null);
const liebiaoDialog = ref(null);
const butongguoRef = ref(null);
const dialogruleFormRef = ref(null);
//
const {
@ -441,20 +484,6 @@ const {
"email_state"
);
//
const dict = {
type: {
app_xzqh,
app_sshy,
app_zdhy,
gzh_state,
gzh_rzzt,
gzh_rzlx,
email_state,
}
};
//
const ruleForm = reactive({});
//
@ -467,24 +496,12 @@ const assetId = ref(props.assetId);
//
const rules = reactive({
ssdw: [
{ required: true, message: "所属单位不能为空", trigger: "change" },
],
xcxmc: [
{ required: true, message: "小程序名称不能为空", trigger: "change" },
],
appId: [
{ required: true, message: "APPID不能为空", trigger: "change" },
],
rzzt: [
{ required: true, message: "认证主体不能为空", trigger: "change" },
],
state: [
{ required: true, message: "小程序状态不能为空", trigger: "change" },
],
ysId: [
{ required: true, message: "账号原始ID不能为空", trigger: "change" },
],
ssdw: [{ required: true, message: "所属单位不能为空", trigger: "change" }],
xcxmc: [{ required: true, message: "小程序名称不能为空", trigger: "change" }],
appId: [{ required: true, message: "APPID不能为空", trigger: "change" }],
rzzt: [{ required: true, message: "认证主体不能为空", trigger: "change" }],
state: [{ required: true, message: "小程序状态不能为空", trigger: "change" }],
ysId: [{ required: true, message: "账号原始ID不能为空", trigger: "change" }],
packState: [
{
required: true,
@ -492,36 +509,18 @@ const rules = reactive({
trigger: "change",
},
],
rzState: [
{ required: true, message: "认证状态不能为空", trigger: "change" },
],
rzsj: [
{ required: true, message: "认证时间不能为空", trigger: "change" },
],
rzlx: [
{ required: true, message: "认证类型不能为空", trigger: "change" },
],
rzState: [{ required: true, message: "认证状态不能为空", trigger: "change" }],
rzsj: [{ required: true, message: "认证时间不能为空", trigger: "change" }],
rzlx: [{ required: true, message: "认证类型不能为空", trigger: "change" }],
icpState: [
{ required: true, message: "icp备案状态不能为空", trigger: "change" },
],
ymbmd: [
{ required: true, message: "域名白名单不能为空", trigger: "change" },
],
fwlm: [
{ required: true, message: "服务类目不能为空", trigger: "change" },
],
sshy: [
{ required: true, message: "所属行业不能为空", trigger: "change" },
],
zdhy: [
{ required: true, message: "重点行业不能为空", trigger: "change" },
],
xzqh: [
{ required: true, message: "行政区划不能为空", trigger: "change" },
],
xtzrr: [
{ required: true, message: "系统责任人不能为空", trigger: "change" },
],
ymbmd: [{ required: true, message: "域名白名单不能为空", trigger: "change" }],
fwlm: [{ required: true, message: "服务类目不能为空", trigger: "change" }],
sshy: [{ required: true, message: "所属行业不能为空", trigger: "change" }],
zdhy: [{ required: true, message: "重点行业不能为空", trigger: "change" }],
xzqh: [{ required: true, message: "行政区划不能为空", trigger: "change" }],
xtzrr: [{ required: true, message: "系统责任人不能为空", trigger: "change" }],
xtzrryx: [
{
required: true,
@ -555,62 +554,128 @@ const rules = reactive({
trigger: "change",
},
],
xtjj: [
{ required: true, message: "系统简介不能为空", trigger: "change" },
],
xtjj: [{ required: true, message: "系统简介不能为空", trigger: "change" }],
});
const dialogruleFormrules = reactive({
auditYy: [{ required: true, message: "请输入", trigger: "blur" }],
});
const emit = defineEmits(['submit-reject']);
//
onMounted(() => {
console.log(route);
if (taskId.value && taskId.value != "") {
if (route.query.istijiaoshow) {
let obj = {
id: route.query.assetId,
type: route.query.type,
};
assetTaskhistory(obj).then((res) => {
Object.assign(ruleForm, res.data.assetMiniProgramsHistory);
if (props.taskId && props.taskId !== '') {
const obj = {
taskId: props.taskId,
assetId: props.assetId,
console.log(111);
setTimeout(() => {
ruleFormRef.value.clearValidate();
}, 100);
});
} else {
let obj = {
taskId: route.query.taskId,
assetId: route.query.assetId,
};
assetTaskminitaskSh(obj).then((res) => {
Object.assign(ruleForm, res.data);
if (pageType.value === "look") {
getInfo(obj);
disabled.value = true;
nextTick(() => {
clearPlaceholders();
console.log(111);
setTimeout(() => {
ruleFormRef.value.clearValidate();
}, 100);
});
} else if (pageType.value === "change") {
getInfo(obj);
disabled.value = false;
}
if (route.query.pageType == "look") {
disabled.value = true;
}
} else {
if (props.isModdle) {
if (pageType.value === "look") {
getInfo(id.value);
if (pageType.value == "look") {
getInfoTwo(id.value);
disabled.value = true;
nextTick(() => {
clearPlaceholders();
const inputElements = document.querySelectorAll(".el-input__inner");
const textareaInputElements = document.querySelectorAll(
".el-textarea__inner"
);
inputElements.forEach((input) => {
input.placeholder = "";
});
} else if (pageType.value === "change") {
getInfo(id.value);
textareaInputElements.forEach((input) => {
input.placeholder = "";
});
});
} else if (pageType.value == "change") {
getInfoTwo(id.value);
disabled.value = false;
}
if (props.audit) {
disabled.value = true;
}
} else {
if (pageType.value === "look") {
getInfo(route.query.id);
if (pageType.value == "look") {
getInfo(id.value);
disabled.value = true;
nextTick(() => {
clearPlaceholders();
const inputElements = document.querySelectorAll(".el-input__inner");
const textareaInputElements = document.querySelectorAll(
".el-textarea__inner"
);
inputElements.forEach((input) => {
input.placeholder = "";
});
} else if (pageType.value === "change") {
getInfo(route.query.id);
textareaInputElements.forEach((input) => {
input.placeholder = "";
});
});
} else if (pageType.value == "change") {
getInfo(id.value);
disabled.value = false;
}
if (props.audit) {
disabled.value = true;
}
}
// if (pageType.value == "add") {
// ruleForm.ssdw = userStore.nickName;
// }
}
});
// submitDialog
const submitDialog = () => {
console.log("submitDialog called", dialogruleFormRef.value);
if (!dialogruleFormRef.value) {
console.error("dialogruleFormRef is null");
emit('submit-reject', dialogruleForm); //
return;
}
dialogruleFormRef.value.validate((valid) => {
console.log("validation result:", valid);
if (valid) {
emit('submit-reject', dialogruleForm); //
} else {
console.error("Form validation failed");
}
});
};
const getInfoTwo = async (id) => {
const res = await miniProgramsLookInfo(id);
Object.assign(ruleForm, res.data);
setTimeout(() => {
ruleFormRef.value.clearValidate();
}, 100);
};
//
const clearPlaceholders = () => {
const inputElements = document.querySelectorAll(".el-input__inner");
@ -627,62 +692,34 @@ const clearPlaceholders = () => {
//
const getInfo = async (id) => {
if (route.query.istijiaoshow) {
let obj = {
id: route.query.assetId,
type: route.query.type,
};
try {
const res = await assetTaskhistory(obj);
Object.assign(ruleForm, res.data.assetMiniProgramsHistory);
console.log("获取历史资产信息成功");
setTimeout(() => {
ruleFormRef.value?.clearValidate();
}, 100);
} catch (error) {
console.error("获取历史资产信息失败:", error);
ElMessage.error("获取历史资产信息失败");
}
} else {
let obj = {
taskId: route.query.taskId || (id?.taskId),
assetId: route.query.assetId || (id?.assetId),
};
try {
loading.value = true;
const res = await assetTaskminitaskSh(obj);
miniProgramsInfo(id).then((res) => {
Object.assign(ruleForm, res.data);
console.log("获取资产信息成功");
setTimeout(() => {
ruleFormRef.value?.clearValidate();
ruleFormRef.value.clearValidate();
}, 100);
} catch (error) {
console.error("获取资产信息失败:", error);
ElMessage.error("获取资产信息失败");
} finally {
loading.value = false;
}
}
});
};
//
const querySearchAsync = async (queryString, cb) => {
let results = [];
try {
const res = await unitAllList({ nickName: queryString });
res.data.forEach((item) => {
results.push({
value: item.nickName,
id: item.id,
});
});
cb(results);
} catch (error) {
console.error("单位查询失败:", error);
cb([]);
}
// const querySearchAsync = async (queryString, cb) => {
// let results = [];
// try {
// const res = await unitAllList({ nickName: queryString });
// res.data.forEach((item) => {
// results.push({
// value: item.nickName,
// id: item.id,
// });
// });
// cb(results);
// } catch (error) {
// console.error(":", error);
// cb([]);
// }
// };
const resetForm = () => {
dialogruleForm.auditYy = "";
liebiaoDialog.value?.close();
};
//
@ -816,7 +853,7 @@ defineExpose({
newAssets,
JGnewAssets,
ruleForm,
ruleFormRef
ruleFormRef,
liebiaoDialog,
});
</script>

@ -314,7 +314,7 @@ function handleExport() {
const handleAdd = () => {
proxy.setActiveMenu("/myAssets2/myOfficialAccount");
router.push({
path: "/assetsManage2/xcxZC-info",
path: "/assetsManage2/xcxZC-info2",
query: {
pageType: "add",
type: 1,
@ -326,7 +326,7 @@ const goInfo = (row, id) => {
if (id === 1) {
proxy.setActiveMenu("/myAssets2/myOfficialAccount2");
router.push({
path: "/assetsManage2/xcxZC-info",
path: "/assetsManage2/xcxZC-info2",
query: {
name: "MyGzhzc",
pageType: "look",
@ -337,7 +337,7 @@ const goInfo = (row, id) => {
} else if (id === 2) {
proxy.setActiveMenu("/myAssets2/myOfficialAccount2");
router.push({
path: "/assetsManage2/xcxZC-info",
path: "/assetsManage2/xcxZC-info2",
query: {
name: "MyGzhzc",
pageType: "change",

@ -1,18 +1,9 @@
<template>
<div class="L-task-info">
<div
class="info-left info-left-two"
id="L-size-main"
>
<div
class="content-info content-info-two"
id="L-header"
>
<div class="info-left info-left-two" id="L-size-main">
<div class="content-info content-info-two" id="L-header">
<div class="info-title">任务详情</div>
<el-button
type="primary"
@click="sendBack"
class="fanhuipiaofu"
<el-button type="primary" @click="sendBack" class="fanhuipiaofu"
>返回</el-button
>
<div class="teshu-top-info">
@ -42,10 +33,7 @@
</div>
</div>
<main class="renwuxiangqing">
<div
class="info-cut-off-rule-my"
id="L-tab"
>
<div class="info-cut-off-rule-my" id="L-tab">
<div class="info-title">资产信息</div>
</div>
<div class="info-bottom-box">
@ -58,10 +46,7 @@
>
<el-row>
<el-col :span="7">
<el-form-item
label="系统名称:"
style="width: 95%"
>
<el-form-item label="系统名称:" style="width: 95%">
<el-input
v-model="formInline.xtmc"
placeholder="请输入"
@ -69,42 +54,19 @@
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item
label="审核状态:"
style="width: 95%"
>
<el-select
v-model="formInline.status"
placeholder="请选择"
>
<el-option
label="未核查"
value="0"
></el-option>
<el-option
label="已核查"
value="1"
></el-option>
<el-option
label="审核通过"
value="3"
></el-option>
<el-option
label="审核不通过"
value="4"
></el-option>
<el-option
label="已关停"
value="5"
></el-option>
<el-form-item label="审核状态:" style="width: 95%">
<el-select v-model="formInline.status" placeholder="请选择">
<el-option label="未核查" value="0"></el-option>
<el-option label="已核查" value="1"></el-option>
<el-option label="审核通过" value="3"></el-option>
<el-option label="审核不通过" value="4"></el-option>
<el-option label="已关停" value="5"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item>
<el-button
type="primary"
@click="handleQuery"
<el-button type="primary" @click="handleQuery"
>查询</el-button
>
<el-button @click="resetQuery"></el-button>
@ -130,9 +92,7 @@
</el-col>
<el-col :span="4">
<el-form-item>
<el-button
type="primary"
@click="handleQuery"
<el-button type="primary" @click="handleQuery"
>查询</el-button
>
<el-button @click="resetQuery"></el-button>
@ -141,10 +101,7 @@
</el-row>
</el-form>
<section v-if="index === 1">
<el-tabs
v-model="activeName"
@tab-click="handleClick"
>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
v-for="item in chanckListTow"
:key="item.lable"
@ -166,16 +123,8 @@
label="序号"
align="center"
/>
<el-table-column
:label="xtmcName"
prop="xtmc"
align="center"
/>
<el-table-column
label="核查单位"
prop="zcdwmc"
align="center"
/>
<el-table-column :label="xtmcName" prop="xtmc" align="center" />
<el-table-column label="核查单位" prop="zcdwmc" align="center" />
<el-table-column
label="单位核查时间"
prop="updateTime"
@ -189,29 +138,19 @@
align="center"
>
<template #default="scope">
<span
v-if="scope.row.status == 0"
style="color: #e6a23c"
<span v-if="scope.row.status == 0" style="color: #e6a23c"
>未核查</span
>
<span
v-if="scope.row.status == 1"
style="color: #67c23a"
<span v-if="scope.row.status == 1" style="color: #67c23a"
>已核查</span
>
<span
v-if="scope.row.status == 3"
style="color: #67c23a"
<span v-if="scope.row.status == 3" style="color: #67c23a"
>审核通过</span
>
<span
v-if="scope.row.status == 4"
style="color: #f56c6c"
<span v-if="scope.row.status == 4" style="color: #f56c6c"
>审核不通过</span
>
<span
v-if="scope.row.status == 5"
style="color: #f56c6c"
<span v-if="scope.row.status == 5" style="color: #f56c6c"
>已关停</span
>
</template>
@ -248,11 +187,7 @@
alt=""
style="width: 20px; margin-right: 5px"
/>
<span
class="look-info"
style="color: #1485ef"
>查看</span
>
<span class="look-info" style="color: #1485ef">查看</span>
</div>
<div
v-if="
@ -275,11 +210,7 @@
alt=""
style="width: 15px; margin-right: 5px"
/>
<span
class="del-info"
style="color: #1485ef"
>核查</span
>
<span class="del-info" style="color: #1485ef">核查</span>
</div>
<div
style="
@ -296,9 +227,7 @@
alt=""
style="width: 20px; margin-right: 5px"
/>
<span
class="look-info"
style="color: #1485ef"
<span class="look-info" style="color: #1485ef"
>查看原因</span
>
</div>
@ -330,11 +259,7 @@
:key="index"
>
<div class="left-box">
<img
class="main-img"
:src="returnidimg(item.assetName)"
alt=""
/>
<img class="main-img" :src="returnidimg(item.assetName)" alt="" />
<img
class="icon-jt"
v-if="index + 1 != timeLineData.length"
@ -417,7 +342,9 @@ function sendBack() {
function handleClick(tab) {
activeName.value = tab.props.name;
// activeName xtmcName
const current = chanckListTow.value.find(item => item.lable === activeName.value);
const current = chanckListTow.value.find(
(item) => item.lable === activeName.value
);
xtmcName.value = current ? current.xtmcName : "系统名称";
localStorage.setItem("activeName", activeName.value);
handleQuery();
@ -466,27 +393,31 @@ function importClose() {}
const liebiaoDialog = ref();
function goInfo(type, row) {
const PathName = ref(["WebZC", "XcxZC", "GzhZC", "DzyjZC", "YdyyxtZC"]);
console.log(PathName.value[activeName.value]);
if (type == 1) {
console.log(PathName.value[activeName.value] + "-info");
router.push({
name: "WebZC-info",
name: `${PathName.value[activeName.value]}-info`,
query: {
pageType: "look",
taskId: row.taskId,
assetId: row.id,
type: activeName.value,
name:"Mytask-info"
name: "Mytask-info",
},
});
}
if (type == 2) {
console.log(PathName.value[activeName.value] + "-info");
router.push({
name: "WebZC-info",
name: `${PathName.value[activeName.value]}-info`,
query: {
pageType: "change",
taskId: row.taskId,
assetId: row.id,
type: activeName.value,
name:"Mytask-info"
name: "Mytask-info",
},
});
}
@ -535,7 +466,7 @@ function titleInfoObjtype(type = "0,1") {
if (listname.length) {
xtmcName.value = listname[0].xtmcName;
}
console.log('titleInfoObjtype:', {
console.log("titleInfoObjtype:", {
activeName: activeName.value,
xtmcName: xtmcName.value,
chanckListTow: chanckListTow.value,

@ -1,12 +1,6 @@
<template>
<div
class="L-main"
id="L-size-main"
>
<div
class="content-search"
id="L-header"
>
<div class="L-main" id="L-size-main">
<div class="content-search" id="L-header">
<div class="search-title">查询条件</div>
<el-form
:inline="true"
@ -31,39 +25,18 @@
</el-col> -->
<el-col :span="7">
<el-form-item label="任务状态:">
<el-select
v-model="formInline.taskStatus"
placeholder="请选择"
>
<el-option
label="已关闭"
value="0"
>
</el-option>
<el-option
label="进行中"
value="1"
>
</el-option>
<el-option
label="正常完成"
value="2"
>
</el-option>
<el-option
label="超期完成"
value="3"
>
</el-option>
<el-select v-model="formInline.taskStatus" placeholder="请选择">
<el-option label="已关闭" value="0"> </el-option>
<el-option label="进行中" value="1"> </el-option>
<el-option label="正常完成" value="2"> </el-option>
<el-option label="超期完成" value="3"> </el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item class="unit-form">
<el-button @click="resetQuery('queryFrom')"></el-button>
<el-button
type="primary"
@click="handleQuery('queryFrom')"
<el-button type="primary" @click="handleQuery('queryFrom')"
>查询</el-button
>
</el-form-item>
@ -119,40 +92,22 @@
align="center"
>
<template #default="scope">
<span
v-if="scope.row.taskStatus == 0"
style="color: #f56c6c"
>
<span v-if="scope.row.taskStatus == 0" style="color: #f56c6c">
已关闭
</span>
<span
v-if="scope.row.taskStatus == 1"
style="color: #e6a23c"
>
<span v-if="scope.row.taskStatus == 1" style="color: #e6a23c">
进行中
</span>
<span
v-if="scope.row.taskStatus == 2"
style="color: #67c23a"
>
<span v-if="scope.row.taskStatus == 2" style="color: #67c23a">
正常完成
</span>
<span
v-if="scope.row.taskStatus == 3"
style="color: #67c23a"
>
<span v-if="scope.row.taskStatus == 3" style="color: #67c23a">
超期完成
</span>
<span
v-if="scope.row.taskStatus == 4"
style="color: #f56c6c"
>
<span v-if="scope.row.taskStatus == 4" style="color: #f56c6c">
审核不通过
</span>
<span
v-if="scope.row.taskStatus == 5"
style="color: #f56c6c"
>
<span v-if="scope.row.taskStatus == 5" style="color: #f56c6c">
审核驳回
</span>
</template>
@ -202,9 +157,7 @@
alt=""
style="width: 15px; margin-right: 5px"
/>
<span
class="del-info"
style="color: #1485ef; cursor: pointer"
<span class="del-info" style="color: #1485ef; cursor: pointer"
>开始核查</span
>
</div>

@ -1,13 +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-left" id="L-size-main">
<div class="content-info" id="L-header">
<div class="info-title">任务详情</div>
<el-button
type="primary"
@ -43,10 +37,7 @@
</div>
</div>
</div>
<div
class="info-cut-off-rule"
id="L-tab"
>
<div class="info-cut-off-rule" id="L-tab">
<div
class="left-tab"
:class="index == 1 ? 'active-tab' : ''"
@ -54,10 +45,7 @@
>
资产核查信息
</div>
<div
:class="index == 2 ? 'active-tab' : ''"
@click="activeTab(2)"
>
<div :class="index == 2 ? 'active-tab' : ''" @click="activeTab(2)">
单位完成情况
</div>
</div>
@ -96,55 +84,22 @@
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item
label="审核状态:"
style="width: 95%"
>
<el-select
v-model="formInline.status"
placeholder="请选择"
>
<el-option
label="待核查"
value="0"
>
</el-option>
<el-option
label="待审核"
value="1"
>
</el-option>
<el-option
label="审核通过"
value="3"
>
</el-option>
<el-option
label="审核不通过"
value="4"
>
</el-option>
<el-option
label="已关停"
value="5"
>
</el-option>
<el-form-item label="审核状态:" style="width: 95%">
<el-select v-model="formInline.status" placeholder="请选择">
<el-option label="待核查" value="0"> </el-option>
<el-option label="待审核" value="1"> </el-option>
<el-option label="审核通过" value="3"> </el-option>
<el-option label="审核不通过" value="4"> </el-option>
<el-option label="已关停" value="5"> </el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item>
<el-button
size="default"
type="primary"
@click="handleQuery()"
<el-button size="default" type="primary" @click="handleQuery()"
>查询</el-button
>
<el-button
size="default"
@click="resetQuery()"
>重置</el-button
>
<el-button size="default" @click="resetQuery()"></el-button>
</el-form-item>
</el-col>
</el-row>
@ -174,54 +129,29 @@
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item
label="完成状态:"
style="width: 95%"
>
<el-form-item label="完成状态:" style="width: 95%">
<el-select
v-model="formInlineTwo.taskStatus"
placeholder="请选择"
>
<el-option
label="进行中"
value="1"
>
</el-option>
<el-option
label="正常完成"
value="2"
>
</el-option>
<el-option
label="超期完成"
value="3"
>
</el-option>
<el-option label="进行中" value="1"> </el-option>
<el-option label="正常完成" value="2"> </el-option>
<el-option label="超期完成" value="3"> </el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<el-button
size="default"
type="primary"
@click="handleQuery()"
<el-button size="default" type="primary" @click="handleQuery()"
>查询</el-button
>
<el-button
size="default"
@click="resetQuery()"
>重置</el-button
>
<el-button size="default" @click="resetQuery()"></el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<section v-if="index == 1">
<el-tabs
v-model="activeName"
@tab-click="handleClick"
>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
:label="item.conent"
:name="item.lable"
@ -243,11 +173,7 @@
align="center"
/>
<!-- <el-table-column label="资产编号" key="id" width="200px" prop="id" align="center" /> -->
<el-table-column
:label="xtmcName"
prop="xtmc"
align="center"
/>
<el-table-column :label="xtmcName" prop="xtmc" align="center" />
<!-- <el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<template #default="scope" >
<div v-if='scope.row.xtlx'>
@ -255,11 +181,7 @@
</div>
</template>
</el-table-column> -->
<el-table-column
label="核查单位"
prop="zcdwmc"
align="center"
/>
<el-table-column label="核查单位" prop="zcdwmc" align="center" />
<el-table-column
label="单位核查时间"
prop="updateTime"
@ -274,34 +196,19 @@
align="center"
>
<template #default="scope">
<span
v-if="scope.row.status == 0"
style="color: #e6a230"
>
<span v-if="scope.row.status == 0" style="color: #e6a230">
待核查
</span>
<span
v-if="scope.row.status == 1"
style="color: #e6a23c"
>
<span v-if="scope.row.status == 1" style="color: #e6a23c">
待审核
</span>
<span
v-if="scope.row.status == 3"
style="color: #67c23a"
>
<span v-if="scope.row.status == 3" style="color: #67c23a">
审核通过
</span>
<span
v-if="scope.row.status == 4"
style="color: #f56c6c"
>
<span v-if="scope.row.status == 4" style="color: #f56c6c">
审核不通过
</span>
<span
v-if="scope.row.status == 5"
style="color: #f56c6c"
>
<span v-if="scope.row.status == 5" style="color: #f56c6c">
已关停
</span>
</template>
@ -334,11 +241,7 @@
alt=""
style="width: 20px; margin-right: 5px"
/>
<span
class="look-info"
style="color: #1485ef"
>查看</span
>
<span class="look-info" style="color: #1485ef">查看</span>
</div>
<div
style="
@ -359,11 +262,7 @@
alt=""
style="width: 15px; margin-right: 5px"
/>
<span
class="look-info"
style="color: #1485ef"
>审核</span
>
<span class="look-info" style="color: #1485ef">审核</span>
</div>
<!-- scope.row.status == 4 -->
<div
@ -381,9 +280,7 @@
alt=""
style="width: 20px; margin-right: 5px"
/>
<span
class="look-info"
style="color: #1485ef"
<span class="look-info" style="color: #1485ef"
>查看原因</span
>
</div>
@ -402,9 +299,7 @@
alt=""
style="width: 20px; margin-right: 5px"
/>
<span
class="look-info"
style="color: #1485ef"
<span class="look-info" style="color: #1485ef"
>提交记录</span
>
</div>
@ -413,19 +308,13 @@
</el-table-column>
</el-table>
</section>
<section
v-if="index == 2"
class="shuangchongbox"
>
<section v-if="index == 2" class="shuangchongbox">
<div
class="shuangchongboxleftbox"
:class="isshow ? '' : 'shuangchongboxleftboxShow'"
>
<div style="margin-bottom: 10px">
<el-button
size="default"
type="primary"
@click="daochu()"
<el-button size="default" type="primary" @click="daochu()"
>导出</el-button
>
</div>
@ -458,40 +347,22 @@
align="center"
>
<template #default="scope">
<span
v-if="scope.row.taskStatus == 0"
style="color: #f56c6c"
>
<span v-if="scope.row.taskStatus == 0" style="color: #f56c6c">
已关闭
</span>
<span
v-if="scope.row.taskStatus == 1"
style="color: #e6a23c"
>
<span v-if="scope.row.taskStatus == 1" style="color: #e6a23c">
进行中
</span>
<span
v-if="scope.row.taskStatus == 2"
style="color: #67c23a"
>
<span v-if="scope.row.taskStatus == 2" style="color: #67c23a">
正常完成
</span>
<span
v-if="scope.row.taskStatus == 3"
style="color: #67c23a"
>
<span v-if="scope.row.taskStatus == 3" style="color: #67c23a">
超期完成
</span>
<span
v-if="scope.row.taskStatus == 4"
style="color: #f56c6c"
>
<span v-if="scope.row.taskStatus == 4" style="color: #f56c6c">
审核不通过
</span>
<span
v-if="scope.row.taskStatus == 5"
style="color: #f56c6c"
>
<span v-if="scope.row.taskStatus == 5" style="color: #f56c6c">
审核驳回
</span>
</template>
@ -546,10 +417,7 @@
</el-table-column>
</el-table>
</div>
<div
class="shouqiwenzi"
@click="shouqiisis"
>
<div class="shouqiwenzi" @click="shouqiisis">
{{ isshow ? "收起" : "展开" }}>>
</div>
<div
@ -578,16 +446,9 @@
>
<div class="info-title">任务流程节点</div>
<div class="timeline">
<div
class="timeline-items"
v-for="(item, index) in timeLineData"
>
<div class="timeline-items" v-for="(item, index) in timeLineData">
<div class="left-box">
<img
class="main-img"
:src="returnidimg(item.assetName)"
alt=""
/>
<img class="main-img" :src="returnidimg(item.assetName)" alt="" />
<!-- <img class="main-img" v-if="item.status == 2" src="" alt="">
<img class="main-img" v-if="item.status == 3" src="" alt="">
<img class="main-img" v-if="item.status == 4" src="" alt=""> -->
@ -632,16 +493,8 @@
: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="xtmcName" prop="xtmc" align="center" />
<el-table-column label="提交时间" prop="updateTime" align="center" />
<el-table-column
label="提交状态"
width="120px"
@ -656,16 +509,10 @@
>
核查提交
</span>
<span
v-if="scope.row.status == 4"
style="color: #f56c6c"
>
<span v-if="scope.row.status == 4" style="color: #f56c6c">
审核驳回后提交
</span>
<span
v-if="scope.row.status == 5"
style="color: #f56c6c"
>
<span v-if="scope.row.status == 5" style="color: #f56c6c">
资产关停
</span>
</template>
@ -693,11 +540,7 @@
alt=""
style="width: 20px; margin-right: 5px"
/>
<span
class="look-info"
style="color: #1485ef"
>查看</span
>
<span class="look-info" style="color: #1485ef">查看</span>
</div>
</div>
</template>
@ -847,10 +690,11 @@ const assetLcpageList = () => {
const importClose = () => {};
const goInfo = (type, row) => {
const PathName = ref(["webZC", "xcxZC", "gzhZC", "dzyjZC", "ydyyxtZC"]);
if (type === 1) {
proxy.setActiveMenu("/taskManagement");
router.push({
path: "/webZC-add",
path: `/${PathName.value[activeName.value]}-add`,
query: {
pageType: "look",
name: "TaskManagement-info",
@ -862,7 +706,7 @@ const goInfo = (type, row) => {
} else if (type == 2) {
proxy.setActiveMenu("/taskManagement");
router.push({
path: "/webZC-add",
path: `/${PathName.value[activeName.value]}-add`,
query: {
pageType: "change",
name: "TaskManagement-info",
@ -907,7 +751,6 @@ const titleInfoObjtype = (type = "0,1") => {
activeName.value = chanckListTow.value[0].lable;
const listname = chanckListTow.value.find(
(item) => item.lable == activeName.value
);

Loading…
Cancel
Save