|
|
|
@ -94,7 +94,7 @@
|
|
|
|
|
<el-col :span="23">
|
|
|
|
|
<el-input v-model="domain.key" placeholder="请输入关联域名"></el-input>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-left: 5px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<i @click="removeDomainOne(domain, 'glymList')" v-else class="el-icon-remove-outline"
|
|
|
|
@ -134,7 +134,7 @@
|
|
|
|
|
<el-col :span="23">
|
|
|
|
|
<el-input v-model="domain.key" placeholder="请输入关联IP"></el-input>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-left: 5px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<i @click="removeDomainOne(domain, 'glIpList')" v-else class="el-icon-remove-outline"
|
|
|
|
@ -598,9 +598,16 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<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'
|
|
|
|
|
}">
|
|
|
|
|
}
|
|
|
|
|
]">
|
|
|
|
|
<el-input v-model="ruleForm.fgfzrlxfs" style="width: 100%;" placeholder="请输入联系方式"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -713,7 +720,7 @@
|
|
|
|
|
<el-input v-model="domain.qtlxryx" style="width: 100%;" placeholder="请输入邮箱"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
</el-col>
|
|
|
|
@ -721,7 +728,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row v-if="$route.query.pageType !== 'look'">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item prop="btn">
|
|
|
|
|
<el-button @click="addOtherConcat('otherConcat')">添加其他联系人</el-button>
|
|
|
|
@ -1216,7 +1223,7 @@
|
|
|
|
|
<el-input v-model="domain.lxdh" placeholder="请输入联系电话"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<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-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<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-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<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-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<i @click="removeDomain(domain, 'xtsjUnit')" v-else class="el-icon-remove-outline"
|
|
|
|
@ -1364,9 +1371,12 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="display: flex;">
|
|
|
|
|
<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)">
|
|
|
|
|
}
|
|
|
|
|
]" :label="'联系人' + (index == 0 ? '' : index)">
|
|
|
|
|
<el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -1404,7 +1414,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<i @click="removeDomain(domain, 'xtjsUnit')" v-else class="el-icon-remove-outline"
|
|
|
|
@ -1432,9 +1442,12 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="display: flex;">
|
|
|
|
|
<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)">
|
|
|
|
|
}
|
|
|
|
|
]" :label="'联系人' + (index == 0 ? '' : index)">
|
|
|
|
|
<el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -1472,7 +1485,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<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-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
style="margin-top: 10px;font-size: 16px;cursor: pointer;"></i>
|
|
|
|
|
<i @click="removeDomain(domain, 'aqfwUnit')" v-else class="el-icon-remove-outline"
|
|
|
|
@ -1549,7 +1562,7 @@
|
|
|
|
|
<el-row style="display: flex;">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<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-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-col :span="8">
|
|
|
|
|
<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-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-col :span="8">
|
|
|
|
|
<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-option v-for="dict in dict.type.sb_ip" :key="dict.value" :label="dict.label"
|
|
|
|
@ -2605,6 +2618,12 @@
|
|
|
|
|
</myUpload>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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-button type="danger" @click="newAssets(0)">报废</el-button>
|
|
|
|
|
<el-button @click="newAssets(1)">取消</el-button>
|
|
|
|
@ -3035,8 +3054,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增资产确认按钮
|
|
|
|
|
newAssets(type) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
//取消
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false
|
|
|
|
@ -3092,6 +3112,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (type == 2) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
//暂存
|
|
|
|
|
assetTaskzc(this.ruleForm).then(res => {
|
|
|
|
|
console.log(res, "res");
|
|
|
|
@ -3102,6 +3124,8 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type == 3) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
//提交
|
|
|
|
|
this.$refs['ruleForm'].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|