123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265 |
- <template>
- <div class="main-data dialog-canteen-area" @click.stop="preventDefault" @mouseleave="leaveFun">
- <div class="dialog-title">
- <img
- src="@/assets/images/main/cont_title_bg.png"
- />
- <div class="title">绿智食堂</div>
- </div>
- <div class="dialog-cont">
- <div class="dialog-left">
- <div class="dialog-list">
- <div class="dialog-item wid100">
- <div class="content-title">
- <span class="title">食堂概览</span>
- </div>
- <!-- <div class="choose-area">
- <el-select v-model="canteen" @visible-change="selectOP" @change="getCanteenScoreData" placeholder="请选择">
- <el-option
- v-for="item in canteens"
- :key="item"
- :label="item"
- :value="item"
- >
- </el-option>
- </el-select>
- </div> -->
- <div class="data-list">
- <div v-for="(item, index) in dataList" :key="index" :class="'data-item ' + (index===0 || index===4 ? 'wid80' : 'wid130')">
- <div class="data-fir">
- <img src="@/assets/images/service_new/img_1.png" class="icon" />
- <div class="name">{{item.name}}</div>
- </div>
- <div class="data-snd">
- <div class="num">{{item.data}}</div>
- <div class="unit">{{item.unit}}</div>
- </div>
- </div>
- </div>
- <div class="data-chart">
- <bar-chart
- :chart-data="peopleBarData"
- :x-axis="peopleBarAxis"
- :yAxis="peopleBarYAxis"
- y-color="#FFF"
- l-color="#FFF"
- width="515px"
- height="180px"
- />
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <div class="dialog-item wid100">
- <div class="content-title">
- <span class="title">食堂服务满意度
- </span>
- </div>
- <div class="content">
- <div class="choose-area">
- <el-select v-model="canteen" @visible-change="selectOP" @change="getCanteenScoreData" placeholder="请选择">
- <el-option
- v-for="item in canteens"
- :key="item"
- :label="item"
- :value="item"
- >
- </el-option>
- </el-select>
- </div>
- <div style="height:20px;"></div>
- <bar-chart
- :chart-data="canteenScoreBarData"
- :x-axis="canteenScoreBarAxis"
- :y-axis="canteenScoreBarYaxis"
- y-color="#FFF"
- l-color="#FFF"
- width="515px"
- height="180px"
- />
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <div class="dialog-item">
- <div class="content-title">
- <span class="title">各食堂满意度排名
- <el-tooltip class="item" effect="dark" content="分数相同按照食堂名称首字母排序" placement="top-start">
- <img src="@/assets/images/main/tips.png" class="tips" />
- </el-tooltip>
- </span>
- </div>
- <div class="content">
- <bar-chart
- :chart-data="canteenDegreeBarData"
- :x-axis="canteenDegreeBarAxis"
- :y-axis="canteenDegreeBarYaxis"
- y-color="#FFF"
- l-color="#FFF"
- width="220px"
- height="240px"
- />
- </div>
- </div>
- <div class="dialog-item">
- <div class="content-title">
- <span class="title">食堂服务人员情况
- <el-tooltip class="item" effect="dark" content="人数相同按照食堂名称首字母排序" placement="top-start">
- <img src="@/assets/images/main/tips.png" class="tips" />
- </el-tooltip>
- </span>
- </div>
- <div class="content">
- <bar-chart
- :chart-data="canteenTotalRankBarData"
- :x-axis="canteenTotalRankBarAxis"
- :y-axis="canteenTotalRankBarYaxis"
- :grid="barGrid" :legend="barLegend"
- y-color="#FFF"
- l-color="#FFF"
- width="220px"
- height="240px"
- />
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <div class="dialog-item wid100">
- <div class="content-title">
- <span class="title">资质证件</span>
- </div>
- <div class="content">
- <div class="choose-area">
- <el-select v-model="canteen" @visible-change="selectOP" @change="getQualificationData" placeholder="请选择">
- <el-option
- v-for="item in canteens"
- :key="item"
- :label="item"
- :value="item"
- >
- </el-option>
- </el-select>
- </div>
- <div class="card-cont">
- <div class="card-list">
- <img src="@/assets/images/service_new/img_7.png" />
- <div class="card-info">
- <div class="name">{{healthNum.name}}</div>
- <div class="value">
- <div>{{healthNum.value}}</div>
- <div class="unit">个</div>
- </div>
- </div>
- </div>
- <div class="card-list">
- <img src="@/assets/images/service_new/img_8.png" />
- <div class="card-info">
- <div class="name">{{licenceNum.name}}</div>
- <div class="value">
- <div>{{licenceNum.value}}</div>
- <div class="unit">个</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <div class="dialog-item">
- <div class="content-title">
- <span class="title">菜品信息</span>
- </div>
- <div class="content">
- <div class="food-cont">
- <!-- <div class="food-list" @click="foodsClick(1)">
- <div class="value">
- <div>{{dailyMenu.value}}</div>
- <div class="unit">道</div>
- </div>
- <div class="name">{{dailyMenu.name}}</div>
- </div> -->
- <div class="food-list" @click="foodsClick(0)">
- <div class="value">
- <div>{{weeklyCuisine.value}}</div>
- <div class="unit">道</div>
- </div>
- <div class="name">{{weeklyCuisine.name}}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="dialog-item">
- <div class="content-title">
- <span class="title">其他数据信息</span>
- </div>
- <div class="content">
- <div class="other-cont">
- <div class="other-list">
- <div class="value">
- <div>{{foodVoting.value}}</div>
- <div class="unit">人</div>
- </div>
- <div class="name">{{foodVoting.name}}</div>
- </div>
- <div class="other-list">
- <div class="value">
- <div>{{clearPlate.value}}</div>
- <div class="unit">人</div>
- </div>
- <div class="name">{{clearPlate.name}}</div>
- </div>
- <div class="other-list">
- <div class="value">
- <div>{{culinaryExchange.value}}</div>
- <div class="unit">条</div>
- </div>
- <div class="name">{{culinaryExchange.name}}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="dialog-right">
- <div class="dialog-list">
- <div class="dialog-item wid100">
- <div class="content-title">
- <span class="title">食堂安全管理</span>
- </div>
- <div class="data-list">
- <div class="data-item">
- <div class="data-fir">
- <img src="@/assets/images/service_new/img_1.png" class="icon" />
- <div class="name">{{sample.name}}</div>
- </div>
- <div class="data-snd">
- <div class="num">{{sample.value}}</div>
- <div class="unit">个</div>
- </div>
- </div>
- <div class="data-item">
- <div class="data-fir">
- <img src="@/assets/images/service_new/img_1.png" class="icon" />
- <div class="name">{{positive.name}}</div>
- </div>
- <div class="data-snd">
- <div class="num">{{positive.value}}</div>
- <div class="unit">个</div>
- </div>
- </div>
- <div class="data-item">
- <div class="data-fir">
- <img src="@/assets/images/service_new/img_1.png" class="icon" />
- <div class="name">{{negative.name}}</div>
- </div>
- <div class="data-snd">
- <div class="num">{{negative.value}}</div>
- <div class="unit">个</div>
- </div>
- </div>
- </div>
- <div class="rate-area">
- <div class="rate-item">
- <img
- src="@/assets/images/main/rate_bg.png"
- class="icon"
- alt=""
- />
- <div class="rate">
- <div class="rate-data">
- <div class="data" v-if="ingredients.value < 100">{{ingredients.value}}</div>
- <div class="data" v-else style="color:#00FFFF;">{{ingredients.value}}</div>
- <div class="unit">%</div>
- </div>
- <div class="desc">{{ingredients.name}}</div>
- </div>
- </div>
- <div class="rate-item">
- <img
- src="@/assets/images/main/rate_bg.png"
- class="icon"
- alt=""
- />
- <div class="rate">
- <div class="rate-data">
- <div class="data" v-if="leaveSample.value < 100">{{leaveSample.value}}</div>
- <div class="data" v-else style="color:#00FFFF;">{{leaveSample.value}}</div>
- <div class="unit">%</div>
- </div>
- <div class="desc">{{leaveSample.name}}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <!-- <div class="dialog-item">
- <div class="content-title">
- <div class="title">能耗信息(本月)</div>
- </div>
- <div class="content">
- <div
- class="energy-list"
- v-for="(item, index) in energyData"
- :key="index"
- >
- <img src="@/assets/images/main/data_bg3.png" class="icon" />
- <div class="energy-info">
- <div class="desc">{{ item.name }}</div>
- <div class="num-info">
- <div class="num">{{ item.data }}</div>
- <div v-if="Number(index) === 1" class="unit">KJ</div>
- <div v-else class="unit">m³</div>
- </div>
- </div>
- </div>
- </div>
- </div> -->
- <div class="dialog-item wid100">
- <div class="content-title">
- <span class="title">热销菜品排行</span>
- </div>
- <div class="content">
- <bar-chart
- :chart-data="foodsRankBarData"
- :x-axis="foodsRankBarAxis"
- position="left"
- :yAxis="{
- name: '受欢迎度(百分制)',
- nameTextStyle: {
- color: '#fff',
- padding: [0,0,0,20]
- },
- axisLabel: {
- color: 'white',
- },
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- axisTick: {
- show: false,
- },
- splitArea: false,
- }"
- :grid="foodsRankBarGrid"
- :legend="foodsRankBarLegend"
- y-color="#FFF"
- l-color="#FFF"
- width="515px"
- height="200px"
- />
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <div class="dialog-item">
- <div class="content-title">
- <div class="title">绿智食堂参评情况</div>
- </div>
- <div class="content">
- <div class="data-content">
- <div class="data-left">
- <div class="data-item">
- <div class="data-fir">
- <img src="@/assets/images/service_new/img_1.png" class="icon" />
- <div class="name">参评绿智食堂</div>
- </div>
- <div class="data-snd">
- <div class="num">{{participate.value}}</div>
- <div class="unit">个</div>
- </div>
- </div>
- <div class="data-item">
- <div class="data-fir">
- <img src="@/assets/images/service_new/img_1.png" class="icon" />
- <div class="name">已完成单位</div>
- </div>
- <div class="data-snd">
- <div class="num">{{completed.value}}</div>
- <div class="unit">个</div>
- </div>
- </div>
- </div>
- <div class="data-right">
- <el-progress
- type="circle"
- :width="112"
- :stroke-width="8"
- :percentage="rate.value"
- color="#00FFFF"
- style="color:rgba(0, 247, 255, 0.18);"
- ></el-progress>
- <div class="name">{{ rate.name }}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="dialog-item">
- <div class="content-title">
- <span class="title">就餐人数</span>
- </div>
- <div class="content">
- <pie-chart
- position="left"
- :chart-data="diningPieData"
- :legend="diningPieLegend"
- :center="['35%','40%']"
- width="220px"
- height="180px"
- />
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <div class="dialog-item">
- <div class="content-title">
- <div class="title">智慧食堂订单数量</div>
- </div>
- <div class="content">
- <pie-chart
- :center="['35%','40%']"
- :chart-data="canteenPieData"
- :legend="canteenPieLegend"
- width="220px"
- height="180px"
- />
- </div>
- </div>
- <div class="dialog-item">
- <div class="content-title">
- <span class="title">员工服务订单数量</span>
- </div>
- <div class="content">
- <pie-chart
- position="left"
- :chart-data="employeePieData"
- :legend="employeePieLegend"
- :center="['35%','40%']"
- width="220px"
- height="180px"
- />
- </div>
- </div>
- </div>
- <div class="dialog-list">
- <div class="dialog-item wid100">
- <div class="content-title">
- <span class="title">电子餐券</span>
- </div>
- <!-- <div class="choose-area">
- <el-select v-model="canteen" @visible-change="selectOP" @change="getCanteenScoreData" placeholder="请选择">
- <el-option
- v-for="item in canteens"
- :key="item"
- :label="item"
- :value="item"
- >
- </el-option>
- </el-select>
- </div> -->
- <div class="content">
- <!-- <div class="choose-area">-->
- <!-- <el-select v-model="canteen" @visible-change="selectOP" placeholder="请选择">-->
- <!-- <el-option-->
- <!-- v-for="item in canteens"-->
- <!-- :key="item"-->
- <!-- :label="item"-->
- <!-- :value="item"-->
- <!-- >-->
- <!-- </el-option>-->
- <!-- </el-select>-->
- <!-- </div>-->
- <bar-chart
- :chart-data="electronicVouchersBarData"
- :x-axis="electronicVouchersBarAxis"
- :yAxis="{
- name: '',
- nameTextStyle: {
- color: '#fff',
- padding: [0,20,0,0],
- fontSize:14
- },
- axisLabel: {
- color: 'white',
- },
- splitLine: {
- show: false,
- },
- axisLine: {
- show: false,
- },
- axisTick: {
- show: false,
- },
- splitArea: false,
- }"
- y-color="#FFF"
- l-color="#FFF"
- width="515px"
- height="180px"
- />
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import LineChart from "@/components/Echarts/LineChart";
- import PieChart from "@/components/Echarts/PieChart";
- import BarChart from "@/components/Echarts/BarChart.vue";
- import echarts from "echarts";
- import {
- getCanteenData,
- getCanteenScoreData,
- getCanteenStaff,
- getCanteenDegreeData,
- getQualificationData,
- getFoodData,
- getOtherData,
- getSafetyData,
- getFoodRankData,
- geParticipateData,
- getDiningPieData,
- getSmartCanteenPieData,
- getSmartEmployeePieData,
- getElectronicVouchersData,
- getCanteenNameList
- } from "@/api/screen/service";
- export default {
- name: "CanteenDialog",
- components: {
- BarChart,
- PieChart,
- LineChart,
- },
- props: {
- appOrg: {
- type: String,
- default: "0000",
- },
- },
- data() {
- return {
- select: 0,
- barYaxis: {
- type: "value",
- boundaryGap: [0, 0.01],
- name: '',
- nameTextStyle: {
- color: '#fff',
- },
- axisLine:{
- show:false
- },
- axisLabel: {
- color: "white", // 设置横坐标轴字体颜色为红色
- },
- splitLine: {
- show: false,
- },
- axisTick: {
- show: false,
- },
- splitArea:false
- },
- //食堂概况
- dataList: [],
- peopleBarData: [],
- peopleBarAxis: {},
- peopleBarYAxis: {},
- //食堂满意服务
- canteen: "",
- canteens: [],
- canteenScoreBarData: [],
- canteenScoreBarAxis: {},
- canteenScoreBarYaxis: {
- type: "value",
- boundaryGap: [0, 0.01],
- name:"",
- nameTextStyle: {
- color: "#fff",
- fontSize: 14,
- },
- axisLabel: {
- color: "white", // 设置纵坐标轴字体颜色为红色
- },
- splitLine: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#0A7C80",
- },
- },
- splitArea: false,
- },
- //各食堂满意度排名
- canteenDegreeBarData: [],
- canteenDegreeBarAxis: {},
- canteenDegreeBarGrid: {
- top: 30,
- bottom: 0,
- left: "8%",
- right: "0%",
- containLabel: true,
- },
- canteenDegreeBarYaxis: {
- type: "value",
- boundaryGap: [0, 0.01],
- name:"",
- nameTextStyle: {
- color: "#fff",
- fontSize: 14,
- },
- axisLabel: {
- color: "white", // 设置横坐标轴字体颜色为红色
- },
- splitLine: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#0A7C80",
- },
- },
- splitArea: false,
- },
- //各单位统计排行
- canteenTotalRankBarData: [],
- canteenTotalRankBarAxis: {},
-
- barGrid: {},
- barLegend: {},
- canteenTotalRankBarYaxis: {
- type: "value",
- boundaryGap: [0, 0.01],
- name:"",
- nameTextStyle: {
- color: "#fff",
- fontSize: 14,
- },
- axisLabel: {
- color: "white", // 设置横坐标轴字体颜色为红色
- },
- splitLine: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#0A7C80",
- },
- },
- splitArea: false,
- },
- //资质证件
- healthNum: {},
- licenceNum: {},
- //菜品信息
- dailyMenu: {},
- weeklyCuisine: {},
- //其他数据信息
- clearPlate: {},
- culinaryExchange: {},
- foodVoting: {},
- //食堂安全管理
- negative: {},
- positive: {},
- sample: {},
- ingredients: {},
- leaveSample: {},
- //能耗信息
- energyData: [],
- //热销菜品
- foodsRankBarData: [],
- foodsRankBarAxis: {},
- foodsRankBarGrid: {},
- foodsRankBarLegend: {},
- //绿智食堂参评情况
- participate: {},
- completed: {},
- rate: {},
- //就餐情况
- diningPieData: [],
- diningPieLegend: {
- bottom: 70,
- orient: "vertical",
- right: 0,
- itemWidth: 8, // 设置图例标记的宽度
- itemHeight: 8, // 设置图例标记的高度
- textStyle: {
- color: "#FFF",
- },
- },
- //智慧食堂
- canteenPieData: [],
- canteenPieLegend: {
- top: 40,
- orient: "vertical",
- right: 0,
- itemWidth: 8, // 设置图例标记的宽度
- itemHeight: 8, // 设置图例标记的高度
- textStyle: {
- color: "#FFF",
- },
- },
- canteenPieCenter: ["50%", "50%"],
- //员工服务
- employeePieData: [],
- employeePieLegend: {
- top: 40,
- orient: "vertical",
- right: 0,
- itemWidth: 8, // 设置图例标记的宽度
- itemHeight: 8, // 设置图例标记的高度
- textStyle: {
- color: "#FFF",
- },
- },
- //电子餐券
- electronicVouchersBarData: [],
- electronicVouchersBarAxis: {},
- };
- },
- created() {
- //食堂列表
- this.getCanteenNameList();
- //食堂概况
- this.getCanteenData();
- //各食堂满意度排名
- this.getCanteenDegreeData();
- //食堂服务人员情况
- this.getCanteenStaff();
- //菜品信息
- this.getFoodData();
- //其他数据信息
- this.getOtherData();
- //食堂安全管理
- this.getSafetyData();
- //热销菜品排行
- this.getFoodRankData();
- //绿智食堂参评情况
- this.geParticipateData();
- //就餐情况
- this.getDiningPieData();
- //智慧食堂
- this.getSmartCanteenPieData();
- //员工服务
- this.getEmployeePieData();
- //电子餐券
- this.getElectronicVouchersData();
- },
- destroyed() {},
- beforeDestroy() {},
- mounted() {
- },
- methods: {
- // 下拉触发时间
- selectOP(value){
- if(value){
- this.select = 1;
- }else{
- this.select = 0;
- }
- console.log(value,"==================")
- },
- //获取食堂列表
- getCanteenNameList() {
- getCanteenNameList(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- let canteens = [];
- res.data.forEach((item)=>{
- canteens.push(item.canteenNum)
- })
- this.canteens = canteens;
- this.canteen = canteens[0];
- //食堂服务满意度
- this.getCanteenScoreData();
- //资质证件
- this.getQualificationData();
- }
- });
- },
- //获取数据概况
- getCanteenData() {
- getCanteenData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.dataList = [{
- name: "食堂数量",
- data: res.data.canteenTotalNumber.value > 10000 ? parseFloat(res.data.canteenTotalNumber.value/10000).toFixed(2) : res.data.canteenTotalNumber.value,
- unit: res.data.canteenTotalNumber.value > 10000 ? "万个":'个'
- },{
- name:"自建食堂数量",
- data: res.data.selfCanteenNumber.value > 10000 ? parseFloat(res.data.selfCanteenNumber.value/10000).toFixed(2) : res.data.selfCanteenNumber.value,
- unit: res.data.selfCanteenNumber.value > 10000 ? "万个":'个'
- },{
- name:"外包食堂数量",
- data: res.data.outsourceCanteenNumber.value > 10000 ? parseFloat(res.data.outsourceCanteenNumber.value/10000).toFixed(2) : res.data.outsourceCanteenNumber.value,
- unit: res.data.outsourceCanteenNumber.value > 10000 ? "万个":'个'
- },{
- name:"座位数量",
- data: res.data.seatsNum.value > 10000 ? parseFloat(res.data.seatsNum.value/10000).toFixed(2) : res.data.seatsNum.value,
- unit: res.data.seatsNum.value > 10000 ? "万个":'个'
- },{
- name:"食堂面积",
- data: res.data.areaNum.value > 10000 ? parseFloat(res.data.areaNum.value/10000).toFixed(2) : res.data.areaNum.value,
- unit: res.data.areaNum.value > 10000 ? "万㎡":'㎡'
- },{
- name:"食堂证件上传数",
- data: res.data.licenceNum.value > 10000 ? parseFloat(res.data.licenceNum.value/10000).toFixed(2) : res.data.licenceNum.value,
- unit: res.data.licenceNum.value > 10000 ? "万个":'个'
- },
- {
- name:"健康证上传数",
- data: res.data.healthNum.value > 10000 ? parseFloat(res.data.healthNum.value/10000).toFixed(2) : res.data.healthNum.value,
- unit: res.data.healthNum.value > 10000 ? "万个":'个'
- },
- {
- name:"服务就餐人数",
- data: res.data.serviceDinersNum.value > 10000 ? parseFloat(res.data.serviceDinersNum.value/10000).toFixed(2) : res.data.serviceDinersNum.value,
- unit: res.data.serviceDinersNum.value > 10000 ? "万人":'人'
- }]
- this.peopleBarData = [
- {
- name: "",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#1890FF",
- //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 10,
- data: [res.data.personnelNum.value, 0, 0 ,0],
- },
- {
- name: "",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#00FF9D",
- //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 10,
- data: [0, res.data.serviceNum.value, 0, 0],
- },
- {
- name: "",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#7565EF",
- //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 10,
- data: [0, 0, res.data.chefsNum.value, 0],
- },
- {
- name: "",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#43DCDB",
- //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 10,
- data: [0, 0, 0, res.data.managementNum.value],
- },
- ];
- this.peopleBarAxis = {
- type: "value",
- boundaryGap: [0, 0.01],
- nameTextStyle: {
- color: "#fff",
- },
- axisLabel: {
- color: "white", // 设置横坐标轴字体颜色为红色
- },
- splitLine: {
- show: false,
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#0A7C80",
- },
- },
- splitArea: false,
- };
- this.peopleBarYAxis = {
- type: "category",
- data: ["其他人员", "服务人员", "厨师人数", "管理人员"],
- axisLabel: {
- color: "white", // 设置纵坐标轴字体颜色为红色
- },
- axisTick: {
- show: false,
- },
- splitArea: false,
- axisLine: {
- show: false,
- },
- };
- }
- });
- },
- //获取食堂服务满意度
- getCanteenScoreData() {
- getCanteenScoreData(this.$props.appOrg, this.canteen).then((res) => {
- if (Number(res.code) === 200) {
- let firData = [];
- let sndData = [];
- let thdData = [];
- let fouData = [];
- //菜品卫生
- if(res.data.dishScore.value >= 90){
- firData.push(res.data.dishScore.value);
- sndData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if(res.data.dishScore.value >= 70){
- sndData.push(res.data.dishScore.value);
- firData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if (res.data.dishScore.value >= 50){
- thdData.push(res.data.dishScore.value);
- firData.push(0);
- sndData.push(0);
- fouData.push(0);
- }
- else{
- fouData.push(res.data.dishScore.value);
- firData.push(0);
- sndData.push(0);
- thdData.push(0);
- }
- //菜品口味
- if(res.data.tasteScore.value >= 90){
- firData.push(res.data.tasteScore.value);
- sndData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if(res.data.tasteScore.value >= 70){
- sndData.push(res.data.tasteScore.value);
- firData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if (res.data.tasteScore.value >= 50){
- thdData.push(res.data.tasteScore.value);
- firData.push(0);
- sndData.push(0);
- fouData.push(0);
- }
- else{
- fouData.push(res.data.tasteScore.value);
- firData.push(0);
- sndData.push(0);
- thdData.push(0);
- }
- //服务态度
- if(res.data.attitudeScore.value >= 90){
- firData.push(res.data.attitudeScore.value);
- sndData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if(res.data.attitudeScore.value >= 70){
- sndData.push(res.data.attitudeScore.value);
- firData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if (res.data.attitudeScore.value >= 50){
- thdData.push(res.data.attitudeScore.value);
- firData.push(0);
- sndData.push(0);
- fouData.push(0);
- }
- else{
- fouData.push(res.data.attitudeScore.value);
- firData.push(0);
- sndData.push(0);
- thdData.push(0);
- }
- //餐具卫生
- if(res.data.tablewareScore.value >= 90){
- firData.push(res.data.tablewareScore.value);
- sndData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if(res.data.tablewareScore.value >= 70){
- sndData.push(res.data.tablewareScore.value);
- firData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if (res.data.tablewareScore.value >= 50){
- thdData.push(res.data.tablewareScore.value);
- firData.push(0);
- sndData.push(0);
- fouData.push(0);
- }
- else{
- fouData.push(res.data.tablewareScore.value);
- firData.push(0);
- sndData.push(0);
- thdData.push(0);
- }
- //菜品种类
- if(res.data.typesScore.value >= 90){
- firData.push(res.data.typesScore.value);
- sndData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if(res.data.typesScore.value >= 70){
- sndData.push(res.data.typesScore.value);
- firData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if (res.data.typesScore.value >= 50){
- thdData.push(res.data.typesScore.value);
- firData.push(0);
- sndData.push(0);
- fouData.push(0);
- }
- else{
- fouData.push(res.data.typesScore.value);
- firData.push(0);
- sndData.push(0);
- thdData.push(0);
- }
- //就餐体验
- if(res.data.diningScore.value >= 90){
- firData.push(res.data.diningScore.value);
- sndData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if(res.data.diningScore.value >= 70){
- sndData.push(res.data.diningScore.value);
- firData.push(0);
- thdData.push(0);
- fouData.push(0);
- }
- else if (res.data.diningScore.value >= 50){
- thdData.push(res.data.diningScore.value);
- firData.push(0);
- sndData.push(0);
- fouData.push(0);
- }
- else{
- fouData.push(res.data.diningScore.value);
- firData.push(0);
- sndData.push(0);
- thdData.push(0);
- }
- this.canteenScoreBarData = [
- {
- name: "非常满意",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#00FF9D",
- //barBorderRadius: [5, 5, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 30,
- data: firData,
- },
- {
- name: "满意",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#43DCDB",
- //barBorderRadius: [5, 5, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 30,
- data: sndData,
- },
- {
- name: "一般",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#2F82FE",
- //barBorderRadius: [5, 5, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 30,
- data: thdData,
- },
- {
- name: "不满意",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: "#7565EF",
- //barBorderRadius: [5, 5, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 30,
- data: fouData,
- },
- ];
- this.canteenScoreBarAxis = {
- type: "category",
- data: [res.data.dishScore.name, res.data.tasteScore.name, res.data.attitudeScore.name, res.data.tablewareScore.name, res.data.typesScore.name, res.data.diningScore.name],
- axisLabel: {
- color: "white", // 设置横坐标轴字体颜色为红色
- rotate: 0,
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#465A64",
- },
- },
- };
- }
- });
- },
- //各食堂满意度排名
- getCanteenDegreeData() {
- getCanteenDegreeData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.canteenDegreeBarData = [
- {
- name: "",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: res.data.yData.color,
- //barBorderRadius: [5, 5, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 20,
- data: res.data.yData.yList,
- },
- ];
- this.canteenDegreeBarAxis = {
- type: "category",
- data: res.data.xList,
- axisLabel: {
- interval: 0,
- color: "white", // 设置横坐标轴字体颜色为红色
- rotate: -20,
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#465A64",
- },
- },
- };
- }
- });
- },
- //食堂服务人员情况
- getCanteenStaff() {
- getCanteenStaff(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
-
- this.canteenTotalRankBarData = [
- {
- name: "厨师",
- type: "bar",
- itemStyle: {
- color: "#43DCDB",
- //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 20,
- data: [res.data[0].chefs],
- },
- {
- name: "服务员",
- type: "bar",
- itemStyle: {
- color: "#efb164",
- //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 20,
- data: [res.data[0].service],
- },
- ];
-
- this.barGrid = {
- top: 30,
- bottom: 0,
- left: "2%",
- right: "2%",
- containLabel: true,
- };
- this.barLegend = {
- right: 0,
- top: 0,
- itemWidth: 17, // 设置图例标记的宽度
- itemHeight: 10, // 设置图例标记的高度
- textStyle: {
- color: "#FFF",
- },
- };
- this.canteenTotalRankBarAxis = {
- type: "category",
- data: [res.data[0].canteenName,],
- axisLabel: {
- color: "white", // 设置横坐标轴字体颜色为红色
- rotate: -20,
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#465A64",
- },
- },
- };
-
- }
- });
- },
- //获取资质证件
- getQualificationData() {
- getQualificationData(this.$props.appOrg, this.canteen).then((res) => {
- if (Number(res.code) === 200) {
- this.healthNum = res.data.healthNum;
- this.licenceNum = res.data.licenceNum;
- }
- });
- },
- //获取菜品信息
- getFoodData() {
- getFoodData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.dailyMenu = res.data.dailyMenu;
- this.weeklyCuisine = res.data.weeklyCuisine;
- }
- });
- },
- //其他数据信息
- getOtherData() {
- getOtherData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.clearPlate = res.data.clearPlate;
- this.culinaryExchange = res.data.culinaryExchange;
- this.foodVoting = res.data.foodVoting;
- }
- });
- },
- //食堂安全管理
- getSafetyData() {
- getSafetyData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.negative = res.data.negative;
- this.positive = res.data.positive;
- this.sample = res.data.sample;
- this.ingredients = res.data.ingredients;
- this.leaveSample = res.data.leaveSample;
- }
- });
- },
- //热销菜品排行
- getFoodRankData() {
- getFoodRankData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.foodsRankBarData = [
- {
- name: "",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: res.data.yData.color,
- //barBorderRadius: [5, 5, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 20,
- data: res.data.yData.yList,
- },
- ];
- this.foodsRankBarAxis = {
- type: "category",
- data: res.data.xList,
- axisLabel: {
- interval: 0,
- color: "white", // 设置横坐标轴字体颜色为红色
- rotate: -20,
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#465A64",
- },
- },
- };
- }
- });
- },
- //绿智食堂参评情况
- geParticipateData() {
- geParticipateData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.participate = res.data.participate;
- this.completed = res.data.completed;
- this.rate = res.data.rate;
- }
- });
- },
- //就餐情况
- getDiningPieData() {
- getDiningPieData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.diningPieData = res.data;
- }
- });
- },
- //智慧食堂
- getSmartCanteenPieData() {
- getSmartCanteenPieData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.canteenPieData = res.data;
- }
- });
- },
- //员工服务
- getEmployeePieData() {
- getSmartEmployeePieData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.employeePieData = res.data;
- }
- });
- },
- //电子餐券
- getElectronicVouchersData() {
- getElectronicVouchersData(this.$props.appOrg).then((res) => {
- if (Number(res.code) === 200) {
- this.electronicVouchersBarData = [
- {
- name: "",
- type: "bar",
- stack: "a",
- itemStyle: {
- color: res.data.yData.color,
- //barBorderRadius: [5, 5, 0, 0], // 统一设置四个角的圆角大小
- },
- barWidth: 30,
- data: res.data.yData.yList,
- },
- ];
- this.electronicVouchersBarAxis = {
- type: "category",
- data: res.data.xList,
- axisLabel: {
- color: "white", // 设置横坐标轴字体颜色为红色
- rotate:0,
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#465A64",
- },
- },
- };
- }
- });
- },
- //点击菜谱
- foodsClick(e){
- this.$emit("foodsClick",e);
- },
- //鼠标移出
- leaveFun(){
- if(this.select === 1){
- return
- }
- setTimeout(()=>{
- this.$emit("closeDialog")
- },200)
- },
- preventDefault() {
- },
- showContent(percent){
- return percent;
- }
- },
- };
- </script>
- <style lang="scss">
- .dialog-canteen-area {
- overflow: hidden;
- width: 1125px;
- height:1000px;
- background: url("../../../assets/images/main/components_max_bg.png") no-repeat;
- background-size: cover;
- padding: 19px 15px 11px 15px;
- .dialog-title {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- position: relative;
- margin-bottom: 10px;
- img {
- width: 284px;
- height: 32px;
- }
- .title {
- font-size: 20px;
- font-weight: 900;
- font-family: "PingFangSC";
- width: 100%;
- position: absolute;
- display: flex;
- align-items: center;
- justify-content: center;
- top: -5px;
- color: #fff;
- }
- }
- .dialog-cont {
- width:100%;
- height: 920px;
- padding: 15px;
- overflow-y: scroll;
- background: url("../../../assets/images/main/components_max_cont.png") no-repeat;
- background-size: 100% 100%;
- .dialog-left{
- width: 520px;
- float: left;
- }
- .dialog-right{
- width: 520px;
- float: right;
- }
- }
- .dialog-list {
- width: 100%;
- display: flex;
- justify-content: space-between;
- margin-bottom: 20px;
- .dialog-item{
- width: calc(50% - 20px);
- }
- .dialog-item-cont{
- display: flex;
- justify-content: center;
- align-items: center;
- margin-top:40px;
- }
- .wid100 {
- width: 100%;
- .content-title {
- width: 100%;
- background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
- }
- }
- }
- .content-title {
- width: 100%;
- height: 26px;
- background: url("../../../assets/images/main/title_pro.png") no-repeat;
- background-size: 100% 100%;
- font-family: "PingFangSC";
- font-size: 16px;
- font-weight: bold;
- color: #00ffff;
- padding-left: 25px;
- .title {
- display: block;
- position: relative;
- top:-5px;
- }
- }
- .data-chart {
- margin-top: 15px !important;
- margin-bottom: 5px !important;
- }
- .data-list {
- display: flex;
- justify-content: space-between;
- align-items: flex-start !important;
- flex-wrap: wrap;
- width: 100%;
- .data-item.wid80 {
- width:90px;
- }
- .data-item.wid130 {
- width:130px;
- }
- .data-item{
- width:150px;
- border-right: 0 !important;
- margin-top:25px;
- .data-fir{
- width:100%;
- display: flex;
- align-items: center;
- .icon{
- width: 15px;
- height: 15px;
- margin-right: 6px;
- }
- .name{
- font-size: 14px;
- color:#FFFFFF;
- }
- }
- .data-snd{
- width:100%;
- display: flex;
- align-items: baseline;
- .num{
- font-size: 36px;
- color:#00FFFF;
- font-family: 'electronicFont';
- }
- .unit{
- font-size:12px;
- color:#00FFFF;
- font-weight: 500;
- }
- }
- }
- }
- .choose-area {
- width: 148px;
- height: 30px;
- line-height: 30px;
- padding-left: 15px;
- font-size: 14px;
- color: #00ffff;
- background: url("../../../assets/images/main/choose_bg4.png") no-repeat;
- cursor: pointer;
- .el-input {
- input {
- background: rgba(255, 255, 255, 0);
- color: #00ffff;
- border: none;
- padding: 0;
- }
- }
- }
- .card-cont{
- width:100%;
- display: flex;
- align-items: center;
- padding-top: 20px;
- padding-bottom: 10px;
- .card-list{
- width:50%;
- display: flex;
- align-items: center;
- img{
- width:70px;
- height:70px;
- }
- .card-info{
- padding-left:20px;
- .name{
- font-size:22px;
- color:#FFFFFF;
- font-weight: 500;
- }
- .value{
- display: flex;
- align-items: center;
- color:#00FFFF;
- font-size: 32px;
- // font-weight: bold;
- padding-top:5px;
- // font-family: 'electronicFont';
- .unit{
- font-size:22px;
- color:#FFFFFF;
- font-weight: 500;
- position: relative;
- top:3px;
- left:2px;
- }
- }
- }
- }
- }
- .food-cont{
- width:100%;
- padding:0 15px;
- display: flex;
- justify-content: center;
- align-items: center;
- .food-list{
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- .value{
- width:88.8px;
- height:81.6px;
- background: url("../../../assets/images/service_new/img_9.png") no-repeat;
- background-size: cover;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size:25px;
- color:#00FFFF;
- font-family: 'electronicFont';
- padding-bottom: 18px;
- .unit{
- font-size:10px;
- font-weight: 500;
- position: relative;
- top:3px;
- left:2px;
- }
- }
- .name{
- width: 100%;
- text-align: center;
- font-size: 14px;
- color: #FFFFFF;
- font-weight: 500;
- padding-top:4px;
- }
- }
- }
- .other-cont{
- width:100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .other-list{
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .value{
- width:68px;
- height:68px;
- background: url("../../../assets/images/service_new/img_10.png") no-repeat;
- background-size: 100% 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size:25px;
- color:#ffffff;
- font-family: 'electronicFont';
- .unit{
- font-size:10px;
- font-weight: 500;
- position: relative;
- top:3px;
- left:2px;
- }
- }
- .name{
- width: 60px;
- text-align: center;
- font-size: 14px;
- color: #FFFFFF;
- font-weight: 500;
- padding-top:4px;
- }
- }
- }
- .rate-area {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- margin-top: 20px;
- .rate-item {
- flex: 1;
- position: relative;
- }
- img {
- width: 237px;
- height: 137px;
- }
- .rate {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- width: 100%;
- position: absolute;
- top: 5px;
- left: -5px;
- color: #fff;
- .rate-data {
- display: flex;
- flex-direction: row;
- align-items: baseline;
- color: #ffba44;
- .data {
- font-family: "electronicFont";
- font-size: 30px;
- }
- .unit {
- font-size: 12px;
- }
- }
- .desc {
- font-size: 12px;
- width: 58px;
- text-align: center;
- }
- }
- }
- .energy-list {
- display: flex;
- .icon {
- display: block;
- width: 70px;
- height: auto;
- }
- .energy-info {
- padding-left: 2px;
- .desc {
- font-size: 12px;
- color: #ffffff;
- font-weight: bold;
- }
- .num-info {
- width: 100%;
- padding-top: 2px;
- display: flex;
- align-items: center;
- .num {
- font-size: 30px;
- color: #00FFFF;
- font-weight: bold;
- font-family: "electronicFont";
- }
- .unit {
- font-size: 12px;
- color: #00ffff;
- font-weight: 500;
- position: relative;
- top: 4px;
- }
- .mar {
- margin-left: 20px;
- }
- }
- }
- }
- .data-content{
- display: flex;
- justify-content: space-between;
- padding-top:10px;
- .mar{
- margin-bottom: 15px;
- }
- .data-left{
- width: auto;
- .data-item{
- width:auto;
- margin-bottom: 23px;
- .data-fir{
- display: flex;
- align-items: center;
- .icon{
- width: 15px;
- height: 15px;
- margin-right: 6px;
- }
- .name{
- font-size: 14px;
- color:#FFFFFF;
- }
- }
- .data-snd{
- display: flex;
- align-items: center;
- padding-top:2px;
- .num{
- font-size: 32px;
- color:#00FFFF;
- font-family: 'electronicFont';
- }
- .unit{
- font-size:12px;
- color:#00FFFF;
- font-weight: 500;
- position: relative;
- top:5px;
- left:2px;
- }
- }
- }
- }
- .data-right{
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- padding-top: 2px;
- align-items: center;
- .name{
- width:75px;
- font-size: 18px;
- color:#FFFFFF;
- font-family: 'fashionZh';
- padding-top:10px;
- text-align: center;
- }
- }
- }
- .content {
- margin-top: 20px;
- }
- .camera-cont {
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .camera-item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- position: relative;
- cursor: pointer;
- .num-info {
- display: flex;
- justify-content: center;
- align-items: center;
- .num {
- font-size: 30px;
- color: #00FFFF;
- font-weight: bold;
- font-family: "electronicFont";
- padding-left: 4px;
- }
- .num2 {
- font-size: 30px;
- color: #00FFFF;
- font-weight: bold;
- font-family: "electronicFont";
- padding-left: 4px;
- }
- .unit {
- font-size: 12px;
- color: #00ffff;
- font-weight: 500;
- position: relative;
- top: 3px;
- }
- }
- .num-info2{
- position: absolute;
- top: 15px;
- .unit2{
- color: #00ffff;
- font-size: 12px;
- }
- }
- .icon {
- display: block;
- width: 46px;
- height: auto;
- }
- .icon2 {
- display: block;
- width: 101px;
- height: auto;
- }
- .title {
- font-size: 12px;
- color: #ffffff;
- margin-top: 6px;
- font-weight: normal;
- }
- }
- }
- .camera-other {
- position: relative;
- .num-info {
- position: absolute;
- top: 0;
- left: 0;
- width: 67px;
- height: 67px;
- display: flex;
- align-items: baseline;
- justify-content: center;
- color: #fff;
- .num3 {
- font-size: 30px;
- color: #fff;
- font-weight: bold;
- font-family: "electronicFont";
- }
- .unit {
- font-size: 12px;
- color: #ffffff !important;
- }
- }
- .icon2 {
- width: 67px !important;
- height: 67px !important;
- }
- .title {
- width: 67px;
- font-size: 12px;
- color: #ffffff;
- text-align: center;
- }
- }
- .foods-item {
- .icon2 {
- display: block;
- width: 74px !important;
- height: auto;
- }
- }
- .other-item {
- .icon2 {
- display: block;
- width: 67px !important;
- height: auto;
- }
- }
- .order-type {
- .camera-item {
- position: relative;
- .icon2 {
- width: 112px !important;
- }
- .num-info {
- position: absolute;
- left: 0;
- top: 0;
- color: #00ffff;
- .name {
- font-size: 12px;
- }
- }
- }
- }
- .use-energy {
- width: 100%;
- padding: 0 15px;
- .use-energy-fir {
- width: 100%;
- display: flex;
- align-items: center;
- font-size: 14px;
- color: #ffffff;
- font-weight: 500;
- .num {
- font-weight: 900;
- color: #00ffff;
- padding: 0 8px;
- }
- }
- .use-energy-snd {
- width: 100%;
- margin-top: 15px;
- display: flex;
- align-items: center;
- .use-energy-snd-list {
- display: flex;
- align-items: center;
- .icon {
- display: block;
- width: 34px;
- height: 34px;
- }
- .use-energy-snd-info {
- padding-left: 4px;
- .desc {
- font-size: 12px;
- color: #ffffff;
- }
- .num-info {
- display: flex;
- align-items: center;
- .num {
- font-size: 24px;
- color: #00FFFF;
- font-weight: bold;
- font-family: "electronicFont";
- }
- .unit {
- font-size: 12px;
- color: #00ffff;
- font-weight: 500;
- position: relative;
- top: 4px;
- left: 2px;
- }
- }
- }
- }
- .use-energy-snd-list:last-child {
- margin-left: 36px;
- }
- }
- }
- .list-area {
- display: flex;
- width: 90%;
- flex-direction: column;
- .list-item {
- display: flex;
- flex-direction: row;
- align-items: center;
- font-size: 12px;
- color: #ffffff;
- margin-bottom: 10px;
- .item-1 {
- width: 35%;
- }
- .item-2 {
- flex: 1;
- }
- .item-3 {
- width: 25%;
- }
- .cur {
- color: #ff8c00;
- }
- }
- .list-title {
- color: #00ffff !important;
- padding: 4px 0;
- background: url("../../../assets/images/main/title_line.png") no-repeat;
- background-size: 100% 100%;
- margin-bottom: 10px !important;
- }
- }
- .canteen-data {
- .data-item {
- margin-bottom: 20px;
- border: none !important;
- }
- }
- .tips{
- width: 12px;
- height: 12px;
- /* margin: 0 0 -4px 10px; */
- position: relative;
- top: -7px;
- left: 1px;
- }
- .case-area {
- background: url("../../../assets/images/main/data_bg6.png") no-repeat;
- background-size: 100% 100%;
- padding: 16px 38px 20px;
- .img-area {
- position: relative;
- img {
- width: 151px;
- }
- span {
- position: absolute;
- left: 0;
- bottom: 0;
- width: 100;
- padding: 4px 8px;
- background: rgba(0, 0, 0, 0.3);
- font-size: 12px;
- color: #fff;
- }
- }
- .data-item {
- border: none !important;
- img {
- width: 50px;
- margin-top: -10px;
- }
- .desc {
- font-size: 12px;
- color: #ffffff;
- }
- }
- }
- .el-progress--circle .el-progress__text, .el-progress--dashboard .el-progress__text{
- color: #FFFFFF !important;
- font-family: "fashionZh" !important;
- font-size: 20px !important;
- }
- ::-webkit-scrollbar {
- display: none;
- width: 3px;
- height: 3px;
- }
- ::-webkit-scrollbar-thumb {
- //滑块部分
- // border-radius: 5px;
- background-color: #58cbbb;
- }
- ::-webkit-scrollbar-track {
- //轨道部分
- // box-shadow: inset 0 0 5px #ddd;
- background: #ddd;
- // border-radius: 5px;
- }
- }
- </style>
|