Skip to content

Commit

Permalink
fix: 服务管理-修改,修改服务类型无法生效
Browse files Browse the repository at this point in the history
  • Loading branch information
gy committed Oct 17, 2022
1 parent 9b86e88 commit 3f4da1e
Showing 1 changed file with 10 additions and 56 deletions.
66 changes: 10 additions & 56 deletions packages/ui/src/views/Server/CreateModal.vue
Original file line number Diff line number Diff line change
@@ -1,65 +1,19 @@
<template>
<g-modal-form
:title="isEdit ? '修改服务' : '创建服务'"
:okText="isEdit ? '保存' : '创建'"
visible
:submit="handleSubmit"
@close="handleClose"
>
<validation-provider
v-slot="{ errors }"
name="协议类型"
rules="required"
>
<v-radio-group
label="协议类型"
v-model="form.ServiceType"
row
:error-messages="errors"
>
<v-radio
v-for="item in ProtocolType"
:key="item.value"
:label="item.text"
:value="item.value"
></v-radio>
<g-modal-form :title="isEdit ? '修改服务' : '创建服务'" :okText="isEdit ? '保存' : '创建'" visible :submit="handleSubmit" @close="handleClose">
<validation-provider v-slot="{ errors }" name="协议类型" rules="required">
<v-radio-group label="服务类型" v-model="form.ServiceType" row :error-messages="errors">
<v-radio v-for="item in ProtocolType" :key="item.value" :disabled="isEdit" :label="item.text" :value="item.value"></v-radio>
</v-radio-group>
</validation-provider>
<validation-provider
v-slot="{ errors }"
name="服务名称"
rules="required"
>
<v-text-field
v-model="form.ServiceName"
label="服务名称*"
:error-messages="errors"
required
></v-text-field>
<validation-provider v-slot="{ errors }" name="服务名称" rules="required">
<v-text-field v-model="form.ServiceName" label="服务名称*" :error-messages="errors" required></v-text-field>
</validation-provider>
<validation-provider
v-slot="{ errors }"
name="服务标识"
rules="required"
>
<v-text-field
v-model="form.ServiceTag"
label="服务标识*"
:error-messages="errors"
required
></v-text-field>
<validation-provider v-slot="{ errors }" name="服务标识" rules="required">
<v-text-field v-model="form.ServiceTag" label="服务标识*" :error-messages="errors" required></v-text-field>
</validation-provider>
<validation-provider
v-slot="{ errors }"
name="备注信息"
>
<v-textarea
v-model="form.Description"
label="备注信息"
:error-messages="errors"
></v-textarea>
<validation-provider v-slot="{ errors }" name="备注信息">
<v-textarea v-model="form.Description" label="备注信息" :error-messages="errors"></v-textarea>
</validation-provider>

</g-modal-form>
</template>
<script>
Expand Down

0 comments on commit 3f4da1e

Please sign in to comment.