zs 1 jaar geleden
bovenliggende
commit
56c12a109d
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      src/views/core/car/index.vue

+ 3 - 3
src/views/core/car/index.vue

@@ -120,7 +120,7 @@ const driveList: Ref<any> = ref([]);
 const searchOther = async () => {
   let res: IQueryResult;
   // 是否使用
-  res = await dictDataStore.query({ code: 'isUse', is_use: '0' });
+  res = await dictDataStore.query({ code: 'carType', is_use: '0' });
   if ($checkRes(res)) statusList.value = res.data;
   // 店铺信息
   res = await shopStore.query({ is_use: '0' });
@@ -211,8 +211,8 @@ let fields: Ref<any[]> = ref([
 // 操作
 let opera: Ref<any[]> = ref([
   { label: '修改', method: 'edit' },
-  { label: '禁用', method: 'changeUse', type: 'warning', confirm: true, display: (i) => i.status === '0' },
-  { label: '使用', method: 'changeUse', type: 'success', confirm: true, display: (i) => i.status === '1' },
+  { label: '下架', method: 'changeUse', type: 'warning', confirm: true, display: (i) => i.status === '0' },
+  { label: '上架', method: 'changeUse', type: 'success', confirm: true, display: (i) => i.status === '1' },
   { label: '删除', method: 'del', confirm: true, type: 'danger' }
 ]);
 // 转化字典表