Commit a88d2aa1 authored by shangtx's avatar shangtx

fix: websocket消息和服务小类编辑校验

parent 6f1f844c
...@@ -46,12 +46,12 @@ export default class SocketService { ...@@ -46,12 +46,12 @@ export default class SocketService {
static onmessage(e) { static onmessage(e) {
console.info('from server', e)
const { data } = e const { data } = e
if (data == 1) { if (data == '1' || data == '2') {
const message = data == '1' ? '用户已支付,请派单' : '用户已支付'
notification.open({ notification.open({
message: '消息提醒', message: '消息提醒',
description: '用户已支付,请派单', description: message,
key: 'orderNotification', key: 'orderNotification',
btn: h => { btn: h => {
return h( return h(
......
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
<a-form-item :label="`服务大类: ${categoryName}`"> </a-form-item> <a-form-item :label="`服务大类: ${categoryName}`"> </a-form-item>
<a-col :span="11"> <a-col :span="11">
<a-form-item label="名称"> <a-form-item label="名称">
<a-input v-decorator="['serviceName']" /> <a-input v-decorator="['serviceName', {rules: [{required: true, message: '请填写名称'}]}]" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="11" :offset="1"> <a-col :span="11" :offset="1">
<a-form-item label="次级标题"> <a-form-item label="次级标题">
<a-input v-decorator="['description']" /> <a-input v-decorator="['description', {rules: [{required: true, message: '请填写标题'}]}]" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
......
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