2024.12.3提交

main
李劲龙 5 months ago
parent 0acb8e7d93
commit dc911d608a

@ -96,7 +96,7 @@ export function addassetTaskadd(data) {
params, params,
}) })
} }
//电子邮件资产任务审核详情信息 //移动应用程序资产
export function assetTaskapptaskSh(params) { export function assetTaskapptaskSh(params) {
return request({ return request({
url: `/unit/assetTask/apptaskSh`, url: `/unit/assetTask/apptaskSh`,
@ -105,7 +105,7 @@ export function addassetTaskadd(data) {
}) })
} }
//移动应用程序资产 //电子邮件资产任务审核详情信息
export function assetTaskemailtaskSh(params) { export function assetTaskemailtaskSh(params) {
return request({ return request({
url: `/unit/assetTask/emailtaskSh`, url: `/unit/assetTask/emailtaskSh`,
@ -113,3 +113,70 @@ export function addassetTaskadd(data) {
params, params,
}) })
} }
//小程序审核报废
export function assetTaskxcxzc(data) {
return request({
url: `/unit/assetTask/xcxzc`,
method: "post",
data,
})
}
//公众号审核报废
export function assetTaskgzhzc(data) {
return request({
url: `/unit/assetTask/gzhzc`,
method: "post",
data,
})
}
//电子邮件审核报废
export function assetTaskemailzc(data) {
return request({
url: `/unit/assetTask/emailzc`,
method: "post",
data,
})
}
//电子邮件tijiao
export function assetTaskemailjyTj(data) {
return request({
url: `/unit/assetTask/emailjyTj`,
method: "post",
data,
})
}
//移动应用审核报废
export function assetTaskappzc(data) {
return request({
url: `/unit/assetTask/appzc`,
method: "post",
data,
})
}
//移动应用审核报废
export function assetTaskappjyTj(data) {
return request({
url: `/unit/assetTask/appjyTj`,
method: "post",
data,
})
}
//小程序单位端校验提交
export function assetTaskxcxjyTj(data) {
return request({
url: `/unit/assetTask/xcxjyTj`,
method: "post",
data,
})
}
//小程序单位端校验提交
export function assetTaskgzhjyTj(data) {
return request({
url: `/unit/assetTask/gzhjyTj`,
method: "post",
data,
})
}

@ -149,7 +149,7 @@
</el-form-item> </el-form-item>
<el-form-item class="newTask-form-item"> <el-form-item class="newTask-form-item">
<el-button @click="resetForm('ruleForm')"></el-button> <el-button @click="resetForm('ruleForm')"></el-button>
<el-button type="primary" @click="submitForm('ruleForm')"></el-button> <el-button type="primary" @click="submitForm('ruleForm')" :loading="btnloading">发布</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-col> </el-col>
@ -176,6 +176,7 @@ export default {
components: { myPagination, myDialog, danweiList }, components: { myPagination, myDialog, danweiList },
data() { data() {
return { return {
btnloading:false,
formInline: { formInline: {
name: "", name: "",
type: "", type: "",
@ -265,12 +266,15 @@ export default {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.btnloading = true
this.ruleForm.dwmc = this.ruleForm.dwmc.join(",") this.ruleForm.dwmc = this.ruleForm.dwmc.join(",")
this.ruleForm.type = this.ruleForm.type.join(",") this.ruleForm.type = this.ruleForm.type.join(",")
addassetTaskadd(this.ruleForm).then(res => { addassetTaskadd(this.ruleForm).then(res => {
this.resetForm() this.resetForm()
this.getInfo(); this.getInfo();
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.btnloading = false
}) })

@ -226,7 +226,7 @@ export default {
index: 1, index: 1,
formInline: { formInline: {
xtlx:"", xtlx:"",
type:0,
}, },
formInlineTwo: { formInlineTwo: {
dwmc: "", dwmc: "",
@ -285,7 +285,6 @@ export default {
window.addEventListener('resize', this.cancalDebounce); window.addEventListener('resize', this.cancalDebounce);
this.titleInfo() this.titleInfo()
this.assetLcpageList() this.assetLcpageList()
this.handleQuery();
}, },
destroyed() { destroyed() {
@ -355,7 +354,7 @@ export default {
pageType: "look", pageType: "look",
taskId: row.taskId, taskId: row.taskId,
assetId:row.id, assetId:row.id,
type:this.formInline.type, type:this.activeName,
} }
}) })
@ -367,7 +366,7 @@ export default {
pageType: "change", pageType: "change",
taskId: row.taskId, taskId: row.taskId,
assetId:row.id, assetId:row.id,
type:this.formInline.type, type:this.activeName,
} }
}) })
@ -405,7 +404,9 @@ export default {
} }
}); });
}) })
console.log(777,this.listTow); this.activeName = this.chanckListTow[0].lable
this.handleQuery();
}, },
titleInfo() { titleInfo() {
// console.log(this.$route.query); // console.log(this.$route.query);
@ -419,18 +420,18 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.activeName = "0" this.activeName = this.chanckListTow[0].lable
this.xtmcName="系统名称", this.xtmcName="系统名称",
this.pagination = { this.pagination = {
current: 1, current: 1,
size: 10, size: 10,
type:0, type:this.activeName,
} }
if (this.index == 1) { if (this.index == 1) {
this.formInline = { this.formInline = {
xtlx:"", xtlx:"",
type:0, type:this.activeName,
} }
this.getList(); this.getList();
@ -446,6 +447,7 @@ export default {
this.pagination = { this.pagination = {
current: 1, current: 1,
size: 10, size: 10,
type:this.activeName,
} }
if (this.index == 1) { if (this.index == 1) {
this.pagination = { ...this.pagination, ...this.formInline }; this.pagination = { ...this.pagination, ...this.formInline };

@ -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,92 @@
<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'],
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,
status: 4,
type:this.$route.query.type
}
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>

@ -258,23 +258,40 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look'"> <el-row v-if="ruleForm.bfyy">
<el-col :span="24">
<el-form-item label="关停原因">
                <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-button type="danger" @click="newAssets(0)"></el-button> <el-button type="danger" @click="newAssets(0)"></el-button>
<el-button @click="newAssets(1)"></el-button> <el-button @click="newAssets(1)"></el-button>
<el-button type="warning" @click="newAssets(2)"></el-button> <el-button type="warning" @click="newAssets(2)"></el-button>
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button> <el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
</el-row> </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>
</el-form> </el-form>
</div> </div>
</div> </div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.xcxmc' ></butongguo>
</div> </div>
</template> </template>
<script> <script>
import { assetMiniPrograms, miniProgramsInfo, unitAllList } from "@/api/auditPagesApi/index"; import { assetMiniPrograms, miniProgramsInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskminitaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js" 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 { export default {
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_rzzt','gzh_rzlx','email_state'], dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_rzzt','gzh_rzlx','email_state'],
components:{baofei,butongguo},
data() { data() {
return { return {
ruleForm:{ ruleForm:{
@ -359,6 +376,8 @@ export default {
}, },
props:['pageType', 'id'], props:['pageType', 'id'],
mounted(){ mounted(){
console.log(this.$route);
if(this.pageType == 'look') { if(this.pageType == 'look') {
this.getInfo() this.getInfo()
this.disabled = true; this.disabled = true;
@ -400,6 +419,19 @@ export default {
}) })
cb(results); cb(results);
}, },
guanting(ruleForm){
assetTaskxcxzc(ruleForm).then(res=>{
this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
// //
newAssets(type){ newAssets(type){
if (type == 1) { if (type == 1) {
@ -410,16 +442,63 @@ export default {
this.loading = false this.loading = false
return return
} }
this.ruleForm.taskId= this.$route.query.taskId
this.ruleForm.assetId= this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
this.$refs['ruleForm'].validate((valid) => { }
//
if (type == 2) {
this.loading = true
assetTaskxcxzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
})
}
if(type == 3){
this.$refs['ruleForm'].validate((valid) => {
if(valid) { if(valid) {
this.loading = true; this.loading = true;
assetTaskxcxjyTj(this.ruleForm).then(res=>{
this.loading = false; this.loading = false;
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("提交成功");
this.$router.go(-1); 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()
}
if(type == 1){
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc:this.ruleForm.xcxmc,
status: 3,
type:this.$route.query.type
}
assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
}
})
}
}, },
sendBack(){ sendBack(){
this.$router.go(-1); this.$router.go(-1);

@ -235,20 +235,40 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look'"> <el-row v-if="ruleForm.bfyy">
<el-button type="danger" @click="sendBack"></el-button> <el-col :span="24">
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button> <el-form-item label="关停原因">
                <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-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-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> </el-row>
</el-form> </el-form>
</div> </div>
</div> </div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc' ></butongguo>
</div> </div>
</template> </template>
<script> <script>
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index"; import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskofficetaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js" import { assetTaskofficetaskSh, assetTaskgzhzc, assetTasksh,assetTaskgzhjyTj} from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
export default { export default {
components:{baofei,butongguo},
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_lx','gzh_rzzt','gzh_rzlx','gzh_cdlx'], dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_lx','gzh_rzzt','gzh_rzlx','gzh_cdlx'],
data() { data() {
return { return {
@ -375,29 +395,86 @@ export default {
}) })
cb(results); cb(results);
}, },
guanting(ruleForm){
assetTaskgzhzc(ruleForm).then(res=>{
this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
// //
newAssets(){ newAssets(type){
this.$refs['ruleForm'].validate((valid) => { if (type == 1) {
//
this.loading = true
this.$router.go(-1);
this.loading = false
return
}
this.ruleForm.taskId= this.$route.query.taskId
this.ruleForm.assetId= this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
}
//
if (type == 2) {
this.loading = true
assetTaskgzhzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
})
}
if(type == 3){
this.$refs['ruleForm'].validate((valid) => {
if(valid) { if(valid) {
this.loading = true; this.loading = true;
if(this.pageType == 'change') { assetTaskgzhjyTj(this.ruleForm).then(res=>{
assetOfficialAccount('put',this.ruleForm).then(res=>{ this.loading = false;
// console.log(res,"res"); this.$modal.msgSuccess("提交成功");
this.loading = false; this.$router.go(-1);
this.$modal.msgSuccess("修改成功"); })
this.$router.go(-1);
})
} else {
assetOfficialAccount('post',this.ruleForm).then(res=>{
// console.log(res,"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()
}
if(type == 1){
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc:this.ruleForm.gzhmc,
status: 3,
type:this.$route.query.type
}
assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
}
})
}
},
sendBack(){ sendBack(){
this.$router.go(-1); this.$router.go(-1);
}, },

@ -199,20 +199,40 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look'"> <el-row v-if="ruleForm.bfyy">
<el-button type="danger" @click="sendBack"></el-button> <el-col :span="24">
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button> <el-form-item label="关停原因">
                <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-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-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> </el-row>
</el-form> </el-form>
</div> </div>
</div> </div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc' ></butongguo>
</div> </div>
</template> </template>
<script> <script>
import { assetEmail, assetEmailInfo, unitAllList } from "@/api/auditPagesApi/index"; import { assetEmail, assetEmailInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskapptaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js" 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 { export default {
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() { data() {
return { return {
@ -301,7 +321,7 @@ export default {
taskId: this.$route.query.taskId, taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId assetId: this.$route.query.assetId
} }
assetTaskapptaskSh(obj).then(res=>{ assetTaskemailtaskSh(obj).then(res=>{
this.ruleForm = res.data; this.ruleForm = res.data;
}) })
}, },
@ -318,29 +338,86 @@ export default {
}) })
cb(results); cb(results);
}, },
// guanting(ruleForm){
newAssets(){ assetTaskemailzc(ruleForm).then(res=>{
this.$refs['ruleForm'].validate((valid) => { this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
//
newAssets(type){
if (type == 1) {
//
this.loading = true
this.$router.go(-1);
this.loading = false
return
}
this.ruleForm.taskId= this.$route.query.taskId
this.ruleForm.assetId= this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
}
//
if (type == 2) {
this.loading = true
assetTaskemailzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
})
}
if(type == 3){
this.$refs['ruleForm'].validate((valid) => {
if(valid) { if(valid) {
this.loading = true; this.loading = true;
if(this.pageType == 'change') { assetTaskemailjyTj(this.ruleForm).then(res=>{
assetEmail('put',this.ruleForm).then(res=>{ this.loading = false;
// console.log(res,"res"); this.$modal.msgSuccess("提交成功");
this.loading = false; this.$router.go(-1);
this.$modal.msgSuccess("修改成功"); })
this.$router.go(-1);
})
} else {
assetEmail('post',this.ruleForm).then(res=>{
// console.log(res,"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()
}
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);
}
})
}
},
sendBack(){ sendBack(){
this.$router.go(-1); this.$router.go(-1);
}, },

@ -161,20 +161,39 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 30px; text-align: center;" v-if="pageType !== 'look'"> <el-row v-if="ruleForm.bfyy">
<el-button type="danger" @click="sendBack"></el-button> <el-col :span="24">
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button> <el-form-item label="关停原因">
                <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-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-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> </el-row>
</el-form> </el-form>
</div> </div>
</div> </div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.appName' ></butongguo>
</div> </div>
</template> </template>
<script> <script>
import { assetApp, assetAppInfo, unitAllList } from "@/api/auditPagesApi/index"; import { assetApp, assetAppInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskemailtaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js" 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 { export default {
components:{baofei,butongguo},
dicts:['app_icp_state','app_sshy','app_zdhy','app_xzqh','app_aqjgqk'], dicts:['app_icp_state','app_sshy','app_zdhy','app_xzqh','app_aqjgqk'],
data() { data() {
return { return {
@ -263,7 +282,7 @@ export default {
taskId: this.$route.query.taskId, taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId assetId: this.$route.query.assetId
} }
assetTaskemailtaskSh(obj).then(res=>{ assetTaskapptaskSh(obj).then(res=>{
this.ruleForm = res.data; this.ruleForm = res.data;
}) })
}, },
@ -280,29 +299,86 @@ export default {
}) })
cb(results); cb(results);
}, },
guanting(ruleForm){
assetTaskappzc(ruleForm).then(res=>{
this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
// //
newAssets(){ newAssets(type){
this.$refs['ruleForm'].validate((valid) => { if (type == 1) {
//
this.loading = true
this.$router.go(-1);
this.loading = false
return
}
this.ruleForm.taskId= this.$route.query.taskId
this.ruleForm.assetId= this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
}
//
if (type == 2) {
this.loading = true
assetTaskappzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
})
}
if(type == 3){
this.$refs['ruleForm'].validate((valid) => {
if(valid) { if(valid) {
this.loading = true; this.loading = true;
if(this.pageType == 'change') { assetTaskappjyTj(this.ruleForm).then(res=>{
assetApp('put',this.ruleForm).then(res=>{ this.loading = false;
// console.log(res,"res"); this.$modal.msgSuccess("提交成功");
this.loading = false; this.$router.go(-1);
this.$modal.msgSuccess("修改成功"); })
this.$router.go(-1);
})
} else {
assetApp('post',this.ruleForm).then(res=>{
// console.log(res,"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()
}
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);
}
})
}
},
sendBack(){ sendBack(){
this.$router.go(-1); this.$router.go(-1);
}, },

@ -3181,7 +3181,8 @@ export default {
assetId: this.$route.query.assetId, assetId: this.$route.query.assetId,
xtmc:this.ruleForm.xtmc, xtmc:this.ruleForm.xtmc,
btgyy:this.dialogruleForm.btgyy, btgyy:this.dialogruleForm.btgyy,
status: 4 status: 4,
type:this.$route.query.type
} }
assetTasksh(tijioaobj).then(res=>{ assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){ if(res.code == 200){
@ -3213,7 +3214,8 @@ export default {
taskId: this.$route.query.taskId, taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId, assetId: this.$route.query.assetId,
xtmc:this.ruleForm.xtmc, xtmc:this.ruleForm.xtmc,
status: 3 status: 3,
type:this.$route.query.type
} }
tijioaobj.status = 3 tijioaobj.status = 3
assetTasksh(tijioaobj).then(res=>{ assetTasksh(tijioaobj).then(res=>{

@ -1,13 +1,11 @@
<template> <template>
<div>
<webType2DW v-if="$route.query.type==0"></webType2DW> <webType2DW v-if="$route.query.type==0"></webType2DW>
<assetsTypeTwo :pageType="$route.query.pageType" v-if="$route.query.type == 1" /> <assetsTypeTwo :pageType="$route.query.pageType" v-else-if="$route.query.type == 1" />
<assetsTypeThree :pageType="$route.query.pageType" v-if="$route.query.type == 2" /> <assetsTypeThree :pageType="$route.query.pageType" v-else-if="$route.query.type == 2" />
<assetsTypeFour :pageType="$route.query.pageType" v-if="$route.query.type == 3" /> <assetsTypeFour :pageType="$route.query.pageType" v-else-if="$route.query.type == 3" />
<assetsTypeFive :pageType="$route.query.pageType" v-if="$route.query.type == 4" /> <assetsTypeFive :pageType="$route.query.pageType" v-else-if="$route.query.type == 4" />
</div> </template>
</template>
<script> <script>
// web // web

@ -106,7 +106,7 @@
:row-class-name="tableRowClassName"> :row-class-name="tableRowClassName">
<el-table-column type="index" width="50" label="序号" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" />
<!-- <el-table-column label="资产编号" key="id" width="200px" prop="id" align="center" /> --> <!-- <el-table-column label="资产编号" key="id" width="200px" prop="id" align="center" /> -->
<el-table-column label="系统名称" key="xtmc" prop="xtmc" align="center" /> <el-table-column :label="xtmcName" key="xtmc" prop="xtmc" align="center" />
<!-- <el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center"> <!-- <el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx" /> <dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx" />
@ -204,7 +204,6 @@ export default {
return { return {
index: 1, index: 1,
formInline: { formInline: {
type:0,
}, },
formInlineTwo: { formInlineTwo: {
unitName: "", unitName: "",
@ -264,7 +263,6 @@ export default {
window.addEventListener('resize', this.cancalDebounce); window.addEventListener('resize', this.cancalDebounce);
this.titleInfo() this.titleInfo()
this.assetLcpageList() this.assetLcpageList()
this.handleQuery();
}, },
@ -335,7 +333,7 @@ export default {
pageType: "look", pageType: "look",
taskId: row.taskId, taskId: row.taskId,
assetId:row.id, assetId:row.id,
type:this.formInline.type, type:this.activeName,
} }
@ -348,7 +346,7 @@ export default {
pageType: "change", pageType: "change",
taskId: row.taskId, taskId: row.taskId,
assetId:row.id, assetId:row.id,
type:this.formInline.type, type:this.activeName,
} }
}) })
@ -386,7 +384,9 @@ export default {
} }
}); });
}) })
console.log(777,this.listTow); this.activeName = this.chanckListTow[0].lable
this.handleQuery();
@ -395,7 +395,7 @@ export default {
getassetTaskid(this.$route.query.id || this.$route.meta.id).then(res => { getassetTaskid(this.$route.query.id || this.$route.meta.id).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.titleInfoObj = res.data this.titleInfoObj = res.data
this.$set(this.titleInfoObj,'type',"0,1") // this.$set(this.titleInfoObj,'type',"0,1")
this.titleInfoObjtype(this.titleInfoObj.type) this.titleInfoObjtype(this.titleInfoObj.type)
} }
}) })
@ -403,17 +403,18 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.activeName = "0" this.activeName = this.chanckListTow[0].lable
this.pagination = { this.pagination = {
current: 1, current: 1,
size: 10, size: 10,
type:0, type:this.activeName,
} }
if (this.index == 1) { if (this.index == 1) {
this.formInline = { this.formInline = {
type:0, type:this.activeName,
} }
this.getList(); this.getList();
@ -429,6 +430,7 @@ export default {
this.pagination = { this.pagination = {
current: 1, current: 1,
size: 10, size: 10,
type:this.activeName,
} }
if (this.index == 1) { if (this.index == 1) {
this.pagination = { ...this.pagination, ...this.formInline }; this.pagination = { ...this.pagination, ...this.formInline };

Loading…
Cancel
Save