|
|
@ -69,14 +69,12 @@
|
|
|
|
<el-input v-model="form.name" clearable size="small" placeholder="简要描述"></el-input>
|
|
|
|
<el-input v-model="form.name" clearable size="small" placeholder="简要描述"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="路径" prop="context">
|
|
|
|
<el-form-item label="路径" prop="context">
|
|
|
|
<el-input v-model="form.value" clearable size="small" placeholder="字母数字组合">
|
|
|
|
<el-input v-model="form.context" clearable size="small" placeholder="字母数字组合">
|
|
|
|
<template slot="prepend">:{{form.port}}/</template>
|
|
|
|
<template slot="prepend">:{{form.port}}/</template>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="地址" prop="location">
|
|
|
|
<el-form-item label="地址" prop="location">
|
|
|
|
<el-input v-model="form.value" clearable size="small" placeholder="字母数字组合">
|
|
|
|
<el-input v-model="form.location" clearable size="small" placeholder="路径或URL"></el-input>
|
|
|
|
<template slot="prepend">http://</template>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="备注" prop="bz">
|
|
|
|
<el-form-item label="备注" prop="bz">
|
|
|
|
<el-input type="textarea" v-model="form.bz" clearable size="small"
|
|
|
|
<el-input type="textarea" v-model="form.bz" clearable size="small"
|
|
|
@ -98,6 +96,16 @@
|
|
|
|
width="150px"
|
|
|
|
width="150px"
|
|
|
|
label="名称"
|
|
|
|
label="名称"
|
|
|
|
prop="name">
|
|
|
|
prop="name">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span style="margin-left: 10px">{{ scope.row.name }}</span>
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
|
|
|
placement="top-start"
|
|
|
|
|
|
|
|
width="200"
|
|
|
|
|
|
|
|
trigger="hover"
|
|
|
|
|
|
|
|
:content="scope.row.bz">
|
|
|
|
|
|
|
|
<i slot="reference" class="el-icon-warning-outline"></i>
|
|
|
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
width="150px"
|
|
|
|
width="150px"
|
|
|
@ -179,7 +187,8 @@
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
dialog: false,
|
|
|
|
dialog: false,
|
|
|
|
id: '',
|
|
|
|
id: '',
|
|
|
|
value: '',
|
|
|
|
context: '',
|
|
|
|
|
|
|
|
location: '',
|
|
|
|
name: '',
|
|
|
|
name: '',
|
|
|
|
bz: ''
|
|
|
|
bz: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -218,7 +227,8 @@
|
|
|
|
this.form.port = arg[1].value;
|
|
|
|
this.form.port = arg[1].value;
|
|
|
|
this.form.id = '';
|
|
|
|
this.form.id = '';
|
|
|
|
this.form.name = '';
|
|
|
|
this.form.name = '';
|
|
|
|
this.form.value = '';
|
|
|
|
this.form.context = '';
|
|
|
|
|
|
|
|
this.form.location = '';
|
|
|
|
this.form.bz = '';
|
|
|
|
this.form.bz = '';
|
|
|
|
this.form.dialog = true;
|
|
|
|
this.form.dialog = true;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -228,7 +238,8 @@
|
|
|
|
this.form.serviceId = arg[1].serviceId;
|
|
|
|
this.form.serviceId = arg[1].serviceId;
|
|
|
|
this.form.port = arg[2].value;
|
|
|
|
this.form.port = arg[2].value;
|
|
|
|
this.form.name = arg[1].name;
|
|
|
|
this.form.name = arg[1].name;
|
|
|
|
this.form.value = arg[1].value;
|
|
|
|
this.form.context = arg[1].context;
|
|
|
|
|
|
|
|
this.form.location = arg[1].location;
|
|
|
|
this.form.bz = arg[1].bz;
|
|
|
|
this.form.bz = arg[1].bz;
|
|
|
|
this.form.dialog = true;
|
|
|
|
this.form.dialog = true;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -239,6 +250,7 @@
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.onFind();
|
|
|
|
this.onFind();
|
|
|
|
|
|
|
|
this.nginxReload();
|
|
|
|
this.form.dialog = false;
|
|
|
|
this.form.dialog = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}.bind(this))
|
|
|
|
}.bind(this))
|
|
|
@ -248,6 +260,7 @@
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.onFind();
|
|
|
|
this.onFind();
|
|
|
|
|
|
|
|
this.nginxReload();
|
|
|
|
this.form.dialog = false;
|
|
|
|
this.form.dialog = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}.bind(this))
|
|
|
|
}.bind(this))
|
|
|
@ -263,8 +276,9 @@
|
|
|
|
if (response.errors.length > 0) {
|
|
|
|
if (response.errors.length > 0) {
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
nav.s("删除成功")
|
|
|
|
nav.s("删除成功");
|
|
|
|
this.onFind();
|
|
|
|
this.onFind();
|
|
|
|
|
|
|
|
this.nginxReload();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}.bind(this))
|
|
|
|
}.bind(this))
|
|
|
|
}.bind(this)).catch(function (action) {
|
|
|
|
}.bind(this)).catch(function (action) {
|
|
|
|