Compare commits

...

11 Commits

@ -5,7 +5,7 @@ VUE_APP_TITLE = 若依管理系统
ENV = 'development' ENV = 'development'
# 若依管理系统/开发环境 # 若依管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.0.119:9015' VUE_APP_BASE_API = 'http://192.168.0.108:9015'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -2669,6 +2669,12 @@
</myUpload> </myUpload>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row style="margin: 10px 0;" v-if="ruleForm.bfyy">
<span class="top-title-box">报废原因</span>
</el-row>
<el-row style="margin: 20px 0;">
<div>{{ ruleForm.bfyy }}</div>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"> <el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;">
<el-button type="danger" @click="newAssets(0)"></el-button> <el-button type="danger" @click="newAssets(0)"></el-button>
<el-button type="primary" @click="newAssets(1)" >通过</el-button> <el-button type="primary" @click="newAssets(1)" >通过</el-button>

@ -5,17 +5,13 @@
<div class="search-title">查询条件</div> <div class="search-title">查询条件</div>
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline"> <el-form :inline="true" :model="formInline" size="small" class="demo-form-inline">
<el-row> <el-row>
<el-col :span="8"> <el-col :span="7">
<el-form-item label="任务名称:"> <el-form-item label="任务名称:">
<el-input v-model="formInline.taskName" placeholder="请输入"></el-input> <el-input v-model="formInline.taskName" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="任务编号:"> <el-col :span="7">
<el-input v-model="formInline.id" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="任务状态:"> <el-form-item label="任务状态:">
<el-select v-model="formInline.taskStatus" placeholder="请选择"> <el-select v-model="formInline.taskStatus" placeholder="请选择">
<el-option label="进行中" value="1"> <el-option label="进行中" value="1">
@ -27,17 +23,25 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col :span="5">
<el-row> <!-- <el-form-item label="任务编号:">
<el-col :span="8"> <el-input v-model="formInline.id" placeholder="请输入"></el-input>
</el-form-item> -->
<el-form-item label="任务完成时间:"> <el-form-item label="任务完成时间:">
<el-date-picker v-model="formInline.time" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" <el-date-picker v-model="formInline.time" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="请选择"> type="datetimerange" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="请选择">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item >
<!-- <el-date-picker v-model="formInline.time" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="请选择">
</el-date-picker> -->
</el-form-item>
</el-col>
<el-col :span="16" style="text-align: right;padding-right: 20px;"> <el-col :span="16" style="text-align: right;padding-right: 20px;">
<el-form-item> <el-form-item>
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button> <el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
@ -63,7 +67,7 @@
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader" <el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader"
: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="taskName" prop="taskName" align="center" /> <el-table-column label="任务名称" key="taskName" prop="taskName" align="center" />
<el-table-column label="任务下发时间" key="taskTime" prop="taskTime" align="center"> <el-table-column label="任务下发时间" key="taskTime" prop="taskTime" align="center">
<!-- <template slot-scope="scope"> <!-- <template slot-scope="scope">
@ -83,9 +87,9 @@
</span> </span>
<span v-if="scope.row.taskStatus == 3" style="color: #16B771;"> <span v-if="scope.row.taskStatus == 3" style="color: #16B771;">
超期完成 超期完成
</span> </span>
<span v-if="scope.row.taskStatus == 4" style="color: #1485EF;"> <span v-if="scope.row.taskStatus == 4" style="color: #1485EF;">
正常完成 审核不通过
</span> </span>
<span v-if="scope.row.taskStatus == 5" style="color: #1485EF;"> <span v-if="scope.row.taskStatus == 5" style="color: #1485EF;">
审核驳回 审核驳回
@ -225,6 +229,9 @@ export default {
addassetTaskadd(this.ruleForm).then(res => { addassetTaskadd(this.ruleForm).then(res => {
this.resetForm() this.resetForm()
this.getInfo(); this.getInfo();
this.$modal.msgSuccess("新增成功");
}) })
setTimeout(() => { setTimeout(() => {
this.ruleForm.dwmc = this.ruleForm.dwmc.split(",") this.ruleForm.dwmc = this.ruleForm.dwmc.split(",")

@ -53,14 +53,14 @@
<el-select v-model="formInline.status" placeholder="请选择"> <el-select v-model="formInline.status" placeholder="请选择">
<el-option label="待核查" value="0"> <el-option label="待核查" value="0">
</el-option> </el-option>
<el-option label="已核查" value="1"> <el-option label="待审核" value="1">
</el-option> </el-option>
<el-option label="审核通过" value="3"> <el-option label="审核通过" value="3">
</el-option> </el-option>
<el-option label="审核不通过" value="4"> <el-option label="审核不通过" value="4">
</el-option> </el-option>
<el-option label="已报废" value="5"> <!-- <el-option label="已报废" value="5">
</el-option> </el-option> -->
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -99,7 +99,7 @@
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader" <el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader"
: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="系统名称" 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" >

@ -62,12 +62,15 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-dialog { ::v-deep .el-dialog {
border-radius: 5px; border-radius: 10px;
.el-dialog__header { .el-dialog__header {
border-bottom: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD;
padding: 10px 20px; padding: 10px 20px;
background: #F2F4F6; background: #F2F4F6;
border-top-left-radius: 10px; /* 上左角圆角 */
border-top-right-radius: 10px; /* 上右角圆角 */
span { span {
// font-family: PingFang-SC, PingFang-SC; // font-family: PingFang-SC, PingFang-SC;

@ -1,25 +1,25 @@
<template> <template>
<div class="L-main" id="L-size-main"> <div class="L-main L-mainTow" id="L-size-main">
<div class="content-search" id="L-header"> <div class="content-search" id="L-header">
<div class="search-title">查询条件</div> <div class="search-title">查询条件</div>
<el-form :inline="true" :model="queryParams" ref="queryForm" size="small" > <el-form :inline="true" :model="queryParams" ref="queryForm" size="small" >
<el-row> <el-row>
<el-col :span="6"> <el-col :span="7">
<el-form-item label="单位名称:" prop="nickName"> <el-form-item label="单位名称:" prop="nickName">
<el-input v-model="queryParams.nickName" placeholder="请输入单位名称" clearable <el-input v-model="queryParams.nickName" placeholder="请输入单位名称" clearable
@keyup.enter.native="handleQuery" /> @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="7">
<el-form-item label="单位类型:" prop="dwlx"> <el-form-item label="单位类型:" prop="dwlx">
<el-select v-model="queryParams.dwlx" placeholder="用户状态" clearable> <el-select v-model="queryParams.dwlx" placeholder="用户状态" clearable>
<el-option v-for="dict in dict.type.dwlx" :key="dict.value" :label="dict.label" :value="dict.value" /> <el-option v-for="dict in dict.type.dwlx" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="7">
<el-form-item label="统一社会信用代码:" class="tyshxydm-class" prop="userName"> <el-form-item label="统一社会信用代码:" class="tyshxydm-class" prop="userName">
<el-input v-model="queryParams.userName" placeholder="请输入统一社会信用代码" clearable <el-input v-model="queryParams.userName" placeholder="请输入统一社会信用代码" clearable
@keyup.enter.native="handleQuery" /> @keyup.enter.native="handleQuery" />
@ -57,7 +57,7 @@
<template slot-scope="scope">{{ scope.row.userName }}</template> <template slot-scope="scope">{{ scope.row.userName }}</template>
</el-table-column> </el-table-column>
<el-table-column label="所属区域" align="center" key="ssqycounty" prop="ssqycounty"> <el-table-column label="所属区域" align="center" key="ssqycounty" prop="ssqycounty">
<template slot-scope="scope">{{ scope.row.ssqycity }}</template> <template slot-scope="scope">{{ getSsqu(scope.row) }}</template>
</el-table-column> </el-table-column>
<el-table-column label="所属行业" align="center" key="sshy" prop="sshy"> <el-table-column label="所属行业" align="center" key="sshy" prop="sshy">
<template slot-scope="scope"> <template slot-scope="scope">
@ -182,6 +182,17 @@ export default {
window.removeEventListener('resize', this.cancalDebounce); window.removeEventListener('resize', this.cancalDebounce);
}, },
methods: { methods: {
getSsqu(row) {
if(row.ssqyprovince && row.ssqycity && row.ssqycounty) {
return row.ssqyprovince + "/" + row.ssqycity + '/' + row.ssqycounty
} else if(row.ssqyprovince && row.ssqycity) {
return row.ssqyprovince + "/" + row.ssqycity
} else if(row.ssqyprovince) {
return row.ssqyprovince
} else {
return
}
},
dakai(val) { dakai(val) {
console.log(val); console.log(val);
@ -274,7 +285,15 @@ export default {
::v-deep .danweiList{ ::v-deep .danweiList{
padding: 0 20px; padding: 0 20px;
} }
::v-deep .content-search{
::v-deep .content-search{
padding-top: 10px; padding-top: 10px;
}
.L-mainTow {
background-color: #ffffff !important;
}
::v-deep .search-title{
border: none !important;
} }
</style> </style>

@ -112,6 +112,8 @@ export default {
box-sizing: border-box; box-sizing: border-box;
.el-dialog__header { .el-dialog__header {
padding-top: 14px; padding-top: 14px;
border-radius:15px;
} }
.el-dialog__body { .el-dialog__body {
margin: 0 20px 20px 20px; margin: 0 20px 20px 20px;

@ -2724,6 +2724,12 @@
</myUpload> </myUpload>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row style="margin: 10px 0;" v-if="ruleForm.bfyy">
<span class="top-title-box">报废原因</span>
</el-row>
<el-row style="margin: 20px 0;">
<div>{{ ruleForm.bfyy }}</div>
</el-row>
</div> </div>
</el-form> </el-form>
</div> </div>

@ -94,7 +94,7 @@
<el-col :span="23"> <el-col :span="23">
<el-input v-model="domain.key" placeholder="请输入关联域名"></el-input> <el-input v-model="domain.key" placeholder="请输入关联域名"></el-input>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addForm('glymList')" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addForm('glymList')" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-left: 5px;font-size: 16px;cursor: pointer;"></i> style="margin-left: 5px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomainOne(domain, 'glymList')" v-else class="el-icon-remove-outline" <i @click="removeDomainOne(domain, 'glymList')" v-else class="el-icon-remove-outline"
@ -134,7 +134,7 @@
<el-col :span="23"> <el-col :span="23">
<el-input v-model="domain.key" placeholder="请输入关联IP"></el-input> <el-input v-model="domain.key" placeholder="请输入关联IP"></el-input>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addForm('glIpList')" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addForm('glIpList')" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-left: 5px;font-size: 16px;cursor: pointer;"></i> style="margin-left: 5px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomainOne(domain, 'glIpList')" v-else class="el-icon-remove-outline" <i @click="removeDomainOne(domain, 'glIpList')" v-else class="el-icon-remove-outline"
@ -598,9 +598,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" style="margin-left: 10px;"> <el-col :span="8" style="margin-left: 10px;">
<el-form-item prop="fgfzrlxfs" :rules="{ <el-form-item prop="fgfzrlxfs" :rules="[
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur'
},
{
required: true, message: '请输入', trigger: 'blur' required: true, message: '请输入', trigger: 'blur'
}"> }
]">
<el-input v-model="ruleForm.fgfzrlxfs" style="width: 100%;" placeholder="请输入联系方式"></el-input> <el-input v-model="ruleForm.fgfzrlxfs" style="width: 100%;" placeholder="请输入联系方式"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -713,7 +720,7 @@
<el-input v-model="domain.qtlxryx" style="width: 100%;" placeholder="请输入邮箱"></el-input> <el-input v-model="domain.qtlxryx" style="width: 100%;" placeholder="请输入邮箱"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="removeDomain(domain, 'otherConcat')" class="el-icon-remove-outline" <i @click="removeDomain(domain, 'otherConcat')" class="el-icon-remove-outline"
style="font-size: 16px;cursor: pointer;"></i> style="font-size: 16px;cursor: pointer;"></i>
</el-col> </el-col>
@ -721,7 +728,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="$route.query.pageType !== 'look'"> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item prop="btn"> <el-form-item prop="btn">
<el-button @click="addOtherConcat('otherConcat')"></el-button> <el-button @click="addOtherConcat('otherConcat')"></el-button>
@ -1216,7 +1223,7 @@
<el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input> <el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addGongyinglian('chepingUnit', 1)" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addGongyinglian('chepingUnit', 1)" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i> style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomain(domain, 'chepingUnit')" v-else class="el-icon-remove-outline" <i @click="removeDomain(domain, 'chepingUnit')" v-else class="el-icon-remove-outline"
@ -1256,7 +1263,7 @@
<el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input> <el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addGongyinglian('yjgysUnit', 2)" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addGongyinglian('yjgysUnit', 2)" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i> style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomain(domain, 'yjgysUnit')" v-else class="el-icon-remove-outline" <i @click="removeDomain(domain, 'yjgysUnit')" v-else class="el-icon-remove-outline"
@ -1296,7 +1303,7 @@
<el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input> <el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addGongyinglian('jfywUnit', 3)" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addGongyinglian('jfywUnit', 3)" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i> style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomain(domain, 'jfywUnit')" v-else class="el-icon-remove-outline" <i @click="removeDomain(domain, 'jfywUnit')" v-else class="el-icon-remove-outline"
@ -1336,7 +1343,7 @@
<el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input> <el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addGongyinglian('xtsjUnit', 4)" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addGongyinglian('xtsjUnit', 4)" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i> style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomain(domain, 'xtsjUnit')" v-else class="el-icon-remove-outline" <i @click="removeDomain(domain, 'xtsjUnit')" v-else class="el-icon-remove-outline"
@ -1364,9 +1371,12 @@
</el-row> </el-row>
<el-row style="display: flex;"> <el-row style="display: flex;">
<el-col :span="12"> <el-col :span="12">
<el-form-item class="daoqitixingren" required :prop="`xtjsUnit[${index}].lxr`" :rules="{ <el-form-item class="daoqitixingren" required :prop="`xtjsUnit[${index}].lxr`" :rules="[
required: true, message: '请输入', trigger: 'blur'
}" :label="'联系人' + (index == 0 ? '' : index)"> {
required: true, message: '请输入', trigger: 'blur'
}
]" :label="'联系人' + (index == 0 ? '' : index)">
<el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input> <el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -1404,7 +1414,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addGongyinglian('xtjsUnit', 5)" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addGongyinglian('xtjsUnit', 5)" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i> style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomain(domain, 'xtjsUnit')" v-else class="el-icon-remove-outline" <i @click="removeDomain(domain, 'xtjsUnit')" v-else class="el-icon-remove-outline"
@ -1432,9 +1442,12 @@
</el-row> </el-row>
<el-row style="display: flex;"> <el-row style="display: flex;">
<el-col :span="12"> <el-col :span="12">
<el-form-item class="daoqitixingren" required :prop="`xtyyUnit[${index}].lxr`" :rules="{ <el-form-item class="daoqitixingren" required :prop="`xtyyUnit[${index}].lxr`" :rules="[
required: true, message: '请输入', trigger: 'blur'
}" :label="'联系人' + (index == 0 ? '' : index)"> {
required: true, message: '请输入', trigger: 'blur'
}
]" :label="'联系人' + (index == 0 ? '' : index)">
<el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input> <el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -1472,7 +1485,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addGongyinglian('xtyyUnit', 7)" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addGongyinglian('xtyyUnit', 7)" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i> style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomain(domain, 'xtyyUnit')" v-else class="el-icon-remove-outline" <i @click="removeDomain(domain, 'xtyyUnit')" v-else class="el-icon-remove-outline"
@ -1512,7 +1525,7 @@
<el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input> <el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="1" style="text-align: center;" v-if="$route.query.pageType !== 'look'"> <el-col :span="1" style="text-align: center;">
<i @click="addGongyinglian('aqfwUnit', 6)" v-if="index == 0" class="el-icon-circle-plus-outline" <i @click="addGongyinglian('aqfwUnit', 6)" v-if="index == 0" class="el-icon-circle-plus-outline"
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i> style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
<i @click="removeDomain(domain, 'aqfwUnit')" v-else class="el-icon-remove-outline" <i @click="removeDomain(domain, 'aqfwUnit')" v-else class="el-icon-remove-outline"
@ -1549,7 +1562,7 @@
<el-row style="display: flex;"> <el-row style="display: flex;">
<el-col :span="8"> <el-col :span="8">
<el-form-item :prop="`fwqxx[${index}].ipType`" :rules="{ <el-form-item :prop="`fwqxx[${index}].ipType`" :rules="{
required: true, message: '请输入', trigger: 'blur' required: true, message: '请输入', trigger: 'change'
}"> }">
<el-select v-model="domain.ipType" placeholder="请选择设备IP"> <el-select v-model="domain.ipType" placeholder="请选择设备IP">
<el-option v-for="dict in dict.type.sb_ip" :key="dict.value" :label="dict.label" <el-option v-for="dict in dict.type.sb_ip" :key="dict.value" :label="dict.label"
@ -1661,7 +1674,7 @@
<el-row style="display: flex;"> <el-row style="display: flex;">
<el-col :span="8"> <el-col :span="8">
<el-form-item :prop="`wlsb[${index}].ipType`" :rules="{ <el-form-item :prop="`wlsb[${index}].ipType`" :rules="{
required: true, message: '请输入', trigger: 'blur' required: true, message: '请输入', trigger: 'change'
}"> }">
<el-select v-model="domain.ipType" placeholder="请选择设备IP"> <el-select v-model="domain.ipType" placeholder="请选择设备IP">
<el-option v-for="dict in dict.type.sb_ip" :key="dict.value" :label="dict.label" <el-option v-for="dict in dict.type.sb_ip" :key="dict.value" :label="dict.label"
@ -1756,7 +1769,7 @@
<el-row style="display: flex;"> <el-row style="display: flex;">
<el-col :span="8"> <el-col :span="8">
<el-form-item :prop="`aqsb[${index}].ipType`" :rules="{ <el-form-item :prop="`aqsb[${index}].ipType`" :rules="{
required: true, message: '请输入', trigger: 'blur' required: true, message: '请输入', trigger: 'change'
}"> }">
<el-select v-model="domain.ipType" placeholder="请选择设备IP"> <el-select v-model="domain.ipType" placeholder="请选择设备IP">
<el-option v-for="dict in dict.type.sb_ip" :key="dict.value" :label="dict.label" <el-option v-for="dict in dict.type.sb_ip" :key="dict.value" :label="dict.label"
@ -2605,6 +2618,12 @@
</myUpload> </myUpload>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row style="margin: 10px 0;" v-if="ruleForm.bfyy">
<span class="top-title-box">报废原因</span>
</el-row>
<el-row style="margin: 20px 0;">
<div>{{ ruleForm.bfyy }}</div>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"> <el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;">
<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>
@ -3035,8 +3054,9 @@ export default {
}, },
// //
newAssets(type) { newAssets(type) {
this.loading = true
if (type == 1) { if (type == 1) {
this.loading = true
// //
this.$router.go(-1); this.$router.go(-1);
this.loading = false this.loading = false
@ -3092,6 +3112,8 @@ export default {
} }
if (type == 2) { if (type == 2) {
this.loading = true
// //
assetTaskzc(this.ruleForm).then(res => { assetTaskzc(this.ruleForm).then(res => {
console.log(res, "res"); console.log(res, "res");
@ -3102,6 +3124,8 @@ export default {
}) })
} }
if (type == 3) { if (type == 3) {
this.loading = true
// //
this.$refs['ruleForm'].validate((valid) => { this.$refs['ruleForm'].validate((valid) => {
if (valid) { if (valid) {

@ -10,11 +10,11 @@
<el-input v-model="formInline.taskName" placeholder="请输入"></el-input> <el-input v-model="formInline.taskName" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <!-- <el-col :span="7">
<el-form-item label="任务编号:"> <el-form-item label="任务编号:">
<el-input v-model="formInline.id" placeholder="请输入"></el-input> <el-input v-model="formInline.id" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="7"> <el-col :span="7">
<el-form-item label="任务状态:"> <el-form-item label="任务状态:">
<el-select v-model="formInline.taskStatus" placeholder="请选择"> <el-select v-model="formInline.taskStatus" placeholder="请选择">
@ -42,7 +42,7 @@
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader" <el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader"
: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="taskName" prop="taskName" align="center" /> <el-table-column label="任务名称" key="taskName" prop="taskName" align="center" />
<el-table-column label="任务下发时间" key="taskTime" prop="taskTime" align="center"> <el-table-column label="任务下发时间" key="taskTime" prop="taskTime" align="center">
<!-- <template slot-scope="scope"> <!-- <template slot-scope="scope">
@ -64,7 +64,7 @@
超期完成 超期完成
</span> </span>
<span v-if="scope.row.taskStatus == 4" style="color: #1485EF;"> <span v-if="scope.row.taskStatus == 4" style="color: #1485EF;">
正常完成 审核不通过
</span> </span>
<span v-if="scope.row.taskStatus == 5" style="color: #1485EF;"> <span v-if="scope.row.taskStatus == 5" style="color: #1485EF;">
审核驳回 审核驳回
@ -308,16 +308,20 @@ export default {
this.$router.push({ this.$router.push({
name: 'mytaskInfo', query: { name: 'mytaskInfo', query: {
pageType: "look", pageType: "look",
id:row.id id:row.id,
dwmc:row.dwmc
} }
}) })
}, },
delInfo(row) { delInfo(row) {
//taskAudit //taskAudit
console.log(row);
this.$router.push({ this.$router.push({
name: 'mytaskInfo', query: { name: 'mytaskInfo', query: {
pageType: "info", pageType: "info",
id:row.id id:row.id,
dwmc:row.dwmc
} }
}) })
}, },

@ -347,7 +347,7 @@ export default {
if (this.index == 1) { if (this.index == 1) {
this.getList(); this.getList();
} else if (this.index == 2) { } else if (this.index == 2) {
this.getListTwo(); this.getListTwo();
} }
}, },
// tab // tab
@ -370,8 +370,8 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
this.pagination.taskId = this.$route.query.id || this.$route.meta.id this.pagination.taskId = this.$route.query.id || this.$route.meta.id
// this.pagination.dwmc = this.$route.query.dwmc || this.$route.meta.dwmc
geassetTaskcHc(this.pagination).then(res => { geassetTaskcHc(this.pagination).then(res => {
this.tableData = res.data.records this.tableData = res.data.records
this.loading = false this.loading = false
this.total = res.data.total this.total = res.data.total
@ -412,3 +412,16 @@ export default {
}, },
} }
</script> </script>
<style lang="scss" scoped>
::v-deep .el-timeline {
padding-left: 0;
font-size: 12px;
}
::v-deep .el-form-item__label {
padding-right: 3px;
}
.look-info {
}
</style>

Loading…
Cancel
Save