diff --git a/src/store/modules/operation/recommend/recommendProduct.js b/src/store/modules/operation/recommend/recommendProduct.js
index 283ed14..b055c8a 100644
--- a/src/store/modules/operation/recommend/recommendProduct.js
+++ b/src/store/modules/operation/recommend/recommendProduct.js
@@ -10,7 +10,7 @@ const state = () => ({
init: false,
status: [
{ label: '推荐', value: 1 },
- { label: '不推荐', value: 2 },
+ { label: '不推荐', value: 0 },
],
},
});
diff --git a/src/views/operation/limit/index.vue b/src/views/operation/limit/index.vue
index b02fc8a..47e0a2b 100644
--- a/src/views/operation/limit/index.vue
+++ b/src/views/operation/limit/index.vue
@@ -192,18 +192,10 @@
slots: {
default: ({ row }) => (
-
handleUpdateTime(row)}
- >
+ handleUpdateTime(row)}>
设置时段
- handleUpdateProduct(row)}
- >
+ handleUpdateProduct(row)}>
设置商品
handleCreate(row)}>
@@ -211,7 +203,7 @@
handleRemove([row])}
>
删除
diff --git a/src/views/operation/limit/time.vue b/src/views/operation/limit/time.vue
index 94ca165..a657c0c 100644
--- a/src/views/operation/limit/time.vue
+++ b/src/views/operation/limit/time.vue
@@ -23,7 +23,8 @@
import ElButton from '@/components/extra/ElButton.vue';
import ElInput from '@/components/extra/ElInput.vue';
import ElSwitch from '@/components/extra/ElSwitch.vue';
- import { ElTimePicker } from 'element-plus';
+ import { ElTimePicker } from 'element-plus/es/components/time-picker/index';
+ import 'element-plus/es/components/time-picker/style/css';
const route = useRoute();
const router = useRouter();
const store = useStore();
@@ -153,14 +154,14 @@
default: ({ row }) => (
handleUpdate(row)}
>
{row.edit ? '保存' : '编辑'}
handleRemove([row])}
>
diff --git a/src/views/operation/recommend/index.vue b/src/views/operation/recommend/index.vue
index e0526eb..4a2268a 100644
--- a/src/views/operation/recommend/index.vue
+++ b/src/views/operation/recommend/index.vue
@@ -14,8 +14,8 @@
>
-
-
+
+
@@ -45,7 +45,7 @@
/* 列表查询 */
const state = reactive({
condition: {
- name: null,
+ productName: null,
isEnable: null,
},
});
@@ -58,7 +58,7 @@
);
const handleReset = () => {
state.condition = {
- name: null,
+ productName: null,
isEnable: null,
};
};