mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-17 14:17:06 +08:00
域名记录可以停用/启用
This commit is contained in:
@@ -88,6 +88,7 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
"ttl": record.Ttl,
|
"ttl": record.Ttl,
|
||||||
"weight": record.Weight,
|
"weight": record.Weight,
|
||||||
"description": record.Description,
|
"description": record.Description,
|
||||||
|
"isOn": record.IsOn,
|
||||||
"routes": routeMaps,
|
"routes": routeMaps,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ func (this *UpdatePopupAction) RunGet(params struct {
|
|||||||
"ttl": record.Ttl,
|
"ttl": record.Ttl,
|
||||||
"weight": record.Weight,
|
"weight": record.Weight,
|
||||||
"description": record.Description,
|
"description": record.Description,
|
||||||
|
"isOn": record.IsOn,
|
||||||
"routeIds": routeIds,
|
"routeIds": routeIds,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,6 +82,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
|||||||
Value string
|
Value string
|
||||||
Ttl int32
|
Ttl int32
|
||||||
Description string
|
Description string
|
||||||
|
IsOn bool
|
||||||
RouteIds []int64
|
RouteIds []int64
|
||||||
|
|
||||||
Must *actions.Must
|
Must *actions.Must
|
||||||
@@ -106,6 +108,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
|||||||
Type: params.Type,
|
Type: params.Type,
|
||||||
Value: params.Value,
|
Value: params.Value,
|
||||||
Ttl: params.Ttl,
|
Ttl: params.Ttl,
|
||||||
|
IsOn: params.IsOn,
|
||||||
NsRouteIds: params.RouteIds,
|
NsRouteIds: params.RouteIds,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
<th>TTL</th>
|
<th>TTL</th>
|
||||||
<th>线路</th>
|
<th>线路</th>
|
||||||
<th>备注</th>
|
<th>备注</th>
|
||||||
|
<th class="two wide">状态</th>
|
||||||
<th class="two op">操作</th>
|
<th class="two op">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -50,6 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>{{record.description}}</td>
|
<td>{{record.description}}</td>
|
||||||
|
<td><label-on :v-is-on="record.isOn"></label-on></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="" @click.prevent="updateRecord(record.id)">修改</a>
|
<a href="" @click.prevent="updateRecord(record.id)">修改</a>
|
||||||
<a href="" @click.prevent="deleteRecord(record.id)">删除</a>
|
<a href="" @click.prevent="deleteRecord(record.id)">删除</a>
|
||||||
|
|||||||
@@ -44,11 +44,22 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>备注</td>
|
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
||||||
<td>
|
|
||||||
<textarea rows="2" name="description" v-model="record.description"></textarea>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
<tbody v-show="moreOptionsVisible">
|
||||||
|
<tr>
|
||||||
|
<td>备注</td>
|
||||||
|
<td>
|
||||||
|
<textarea rows="2" name="description" v-model="record.description"></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>是否启用</td>
|
||||||
|
<td>
|
||||||
|
<checkbox name="isOn" v-model="record.isOn"></checkbox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn></submit-btn>
|
||||||
</form>
|
</form>
|
||||||
Reference in New Issue
Block a user