فهرست منبع

✨ 电脑管理:添加位置搜索输入框

xinyan 6 ماه پیش
والد
کامیت
03398247eb

+ 5 - 2
src/views/computer-information/components/InfoCard.vue

@@ -25,6 +25,7 @@ const showDialog = ref(false);
 
 const searchComputer = ref('');
 const searchNumber = ref<string[]>([]);
+const searchStation = ref('');
 
 const computerInfo = ref([]);
 const shopOptions = ref([]);
@@ -40,6 +41,7 @@ async function fetchCardData() {
 		limit: tableOptions.value.limit,
     computerNumber: searchComputer.value,
     shop: searchNumber.value.join(','),
+    station: searchStation.value,
   };
 	await useTableData(api.getCardData, query, tableOptions);
 }
@@ -129,12 +131,13 @@ onMounted(() => {
             filterable
             multiple
             placeholder="店铺编号"
-            style="width: 200px"
+            style="width: 200px;padding-right: 10px;"
             @change="fetchCardData"
         >
           <el-option v-for="item in numberOptions" :key="item" :label="item" :value="item" />
         </el-select>
-			</div>
+        <el-input v-model="searchStation" clearable placeholder="位置" style="width: 200px" @change="fetchCardData"></el-input>
+      </div>
 			<span>
 				<el-button :icon="Plus" bg text type="primary" @click="addComputer">添 加</el-button>
 			</span>

+ 1 - 1
src/views/shop-information/components/ShopDetail.vue

@@ -155,7 +155,7 @@ async function fetchOperator() {
         </el-image>
         <div class="text-lg">
           <div class="font-semibold">
-            平台编号:
+            店铺编号:
             <span class="font-medium italic ml-1.5" style="color: #64748b"> 
             {{ shopOverview[0]?.platformNumber ? shopOverview[0]?.platformNumber : '--' }} 
           </span>