Commit 033e07e4 authored by zhengke's avatar zhengke

修改链接样式

parent 328e3803
...@@ -56,10 +56,9 @@ ...@@ -56,10 +56,9 @@
<div class="Hotel_kong">超定</div> <div class="Hotel_kong">超定</div>
</td> </td>
<td v-for="(subItem,subIndex) in item.subList"> <td v-for="(subItem,subIndex) in item.subList">
<div class="Hotel_kong Com_hoteldiv" :class="{'noKucun':subItem.Status==0,'classHong':subItem.InventoryType==1, <div class="Hotel_kong Com_hoteldiv" :class="getClass(subItem)">
'classWang':subItem.InventoryType==2,'classPing':subItem.InventoryType==3,'classDan':subItem.InventoryType==4,'classTe':subItem.InventoryType==5}">
{{subItem.CostPrice}}</div> {{subItem.CostPrice}}</div>
<div class="Hotel_kong Com_hoteldiv" @click="GotoUrl(item,subIndex)"> <div class="Hotel_kong Com_hoteldiv Hq_duoge" @click="GotoUrl(item,subIndex)">
{{subItem.Inventory}}/{{subItem.UseInventory}}/{{subItem.RemainingInventory}}</div> {{subItem.Inventory}}/{{subItem.UseInventory}}/{{subItem.RemainingInventory}}</div>
<div class="Hotel_kong Com_hoteldiv"> <div class="Hotel_kong Com_hoteldiv">
<span v-if="subItem.UseInventory-subItem.Inventory>0" style="color:red;"> <span v-if="subItem.UseInventory-subItem.Inventory>0" style="color:red;">
...@@ -159,28 +158,30 @@ ...@@ -159,28 +158,30 @@
return weekDay[myDate.getDay()] return weekDay[myDate.getDay()]
}, },
//获取颜色状态 //获取颜色状态
// getClass(status) { getClass(subItem) {
// var classStr = ""; var classStr = "";
// switch (status) { if(subItem.Status==0){
// case 1: classStr='noKucun';
// classStr = "classHong"; }
// break; switch (subItem.InventoryType) {
// case 2: case 1:
// classStr = "classWang"; classStr = "classHong";
// break; break;
// case 3: case 2:
// classStr = "classPing"; classStr = "classWang";
// break; break;
// case 4: case 3:
// classStr = "classDan"; classStr = "classPing";
// break; break;
// case 5: case 4:
// classStr = "classTe"; classStr = "classDan";
// break; break;
// } case 5:
// return classStr; classStr = "classTe";
// }, break;
}
return classStr;
}
}, },
mounted() { mounted() {
this.GetHotelList(); this.GetHotelList();
...@@ -190,6 +191,10 @@ ...@@ -190,6 +191,10 @@
</script> </script>
<style> <style>
.Hq_duoge{
cursor: pointer;
text-decoration: underline;
}
.classHong{ .classHong{
background-color: rgb(255, 55, 55); background-color: rgb(255, 55, 55);
} }
...@@ -214,7 +219,7 @@ ...@@ -214,7 +219,7 @@
min-width: 40px; min-width: 40px;
} }
.noKucun{ .noKucun{
background-color: black; background-color: black!important;
} }
.Hotel_kong{ .Hotel_kong{
width:100%; width:100%;
......
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