chenwei
wangmingchuan 12 months ago
parent 2e7483df5c
commit 99d91c7fc5
  1. 26007
      package-lock.json
  2. 2
      package.json
  3. 9
      src/views/goods/category/modules/AddForm.vue
  4. 10
      src/views/goods/category/modules/EditForm.vue
  5. 9
      src/views/store/Setting.vue

26007
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -3,7 +3,7 @@
"version": "3.0.0",
"private": true,
"scripts": {
"serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"serve": "vue-cli-service serve",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"lint": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint",

@ -33,6 +33,15 @@
<a-radio :value="1">加入</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item label="是否热门" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="是否热门">
<a-radio-group v-decorator="['is_hot', { initialValue: 0, rules: [{ required: true }] }]">
<a-radio :value="0"></a-radio>
<a-radio :value="1"></a-radio>
</a-radio-group>
</a-form-item>
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="用户端是否展示">
<a-radio-group v-decorator="['status', { initialValue: 1, rules: [{ required: true }] }]">
<a-radio :value="1">显示</a-radio>

@ -36,6 +36,14 @@
<a-radio :value="1">加入</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item label="是否热门" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="是否热门">
<a-radio-group v-decorator="['is_hot', { initialValue: 0, rules: [{ required: true }] }]">
<a-radio :value="0"></a-radio>
<a-radio :value="1"></a-radio>
</a-radio-group>
</a-form-item>
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="用户端是否展示">
<a-radio-group v-decorator="['status', { initialValue: 1, rules: [{ required: true }] }]">
<a-radio :value="1">显示</a-radio>
@ -111,7 +119,7 @@ export default {
const { record, form: { setFieldsValue } } = this
//
this.$nextTick(() => {
setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort','is_paihang']))
setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort','is_paihang','is_hot']))
})
},

@ -8,6 +8,13 @@
v-decorator="['store_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"
/>
</a-form-item>
<a-form-item label="联系方式" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input
v-decorator="['phone', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"
/>
</a-form-item>
<a-form-item label="商城简介" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-textarea v-decorator="['describe']" />
</a-form-item>
@ -78,7 +85,7 @@ export default {
const { record, form: { setFieldsValue } } = this
//
this.$nextTick(() => {
setFieldsValue(pick(record, ['store_name', 'describe', 'logo_image_id']))
setFieldsValue(pick(record, ['store_name', 'describe', 'logo_image_id','phone']))
})
},

Loading…
Cancel
Save