文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 4e0202bc by 李严凡

releaseTask1

parent 69150fc5
......@@ -52,7 +52,7 @@
<!-- 创建文本模板-->
</el-col>
<el-col span="2" offset="2">
<el-button type="primary" plain @click.prevent="removeDomain(domain)">删除分片</el-button>
<el-button type="primary" plain @click.prevent="removeDomain(1,domain)">删除分片</el-button>
</el-col>
</el-row>
</el-collapse-item>
......@@ -99,7 +99,7 @@
</el-input>
</el-col>
<el-col span="2" offset="2">
<el-button type="primary" plain @click.prevent="removeDomain(domain)">删除分片</el-button>
<el-button type="primary" plain @click.prevent="removeDomain(2,domain)">删除分片</el-button>
</el-col>
</el-row>
</el-collapse-item>
......@@ -145,7 +145,7 @@
</el-input>
</el-col>
<el-col span="2" offset="2">
<el-button type="primary" plain @click.prevent="removeDomain(domain)">删除分片</el-button>
<el-button type="primary" plain @click.prevent="removeDomain(3,domain)">删除分片</el-button>
</el-col>
</el-row>
</el-collapse-item>
......@@ -400,10 +400,24 @@
resetForm(formName) {
this.$refs[formName].resetFields();
},
removeDomain(item) {
var index = this.dynamicValidateForm.domains.indexOf(item)
if (index !== -1) {
this.dynamicValidateForm.domains.splice(index, 1)
removeDomain(n,item) {
if(n == 1){
var index = this.dynamicValidateForm.domains.indexOf(item)
if (index !== -1) {
this.dynamicValidateForm.domains.splice(index, 1)
}
}
else if(n == 2){
var index = this.dynamicValidateForm.pictureDomains.indexOf(item)
if (index !== -1) {
this.dynamicValidateForm.pictureDomains.splice(index, 1)
}
}
else if(n == 3){
var index = this.dynamicValidateForm.layerDoamins.indexOf(item)
if (index !== -1) {
this.dynamicValidateForm.layerDoamins.splice(index, 1)
}
}
},
addDomain(ptype) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment