roomInfo.vue 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886
  1. <template>
  2. <div class="content-box" v-loading="loading">
  3. <div class="title">
  4. <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
  5. <span class="cameratxt">民宿管理/民宿信息</span>
  6. <el-button
  7. type="primary"
  8. color="rgba(9, 101, 98, 1)"
  9. @click="maintain"
  10. v-if="store.state.user.level == 2"
  11. >信息维护</el-button
  12. >
  13. </div>
  14. <div class="content">
  15. <div class="left">
  16. <div class="titles">民宿信息</div>
  17. <div class="tooltips">
  18. <div class="cont">
  19. <span>图片:</span>
  20. </div>
  21. <div class="img img1">
  22. <div class="img_title">
  23. <span>封面图</span>
  24. </div>
  25. <div class="tupian">
  26. <img :src="tableData.coverImg" alt="" />
  27. <div
  28. class="lookImg"
  29. @click="lookImg(1)"
  30. v-if="tableData.coverImg"
  31. >
  32. <img src="@/assets/lookImg.png" alt="" />
  33. </div>
  34. </div>
  35. </div>
  36. <div class="img img2">
  37. <div class="img_title">
  38. <span>详情图</span>
  39. </div>
  40. <div class="carousel">
  41. <div class="pre" @click="infoImgClick('left')">
  42. <img src="@/assets/left.png" alt="" />
  43. </div>
  44. <el-carousel
  45. ref="infoImg"
  46. indicator-position="none"
  47. arrow="always"
  48. :autoplay="false"
  49. @change="switchImg"
  50. :initial-index="switchImgInd"
  51. >
  52. <el-carousel-item
  53. v-for="(item, index) in imgList2"
  54. :key="item.id"
  55. :name="index"
  56. >
  57. <img :src="item.url" alt="" />
  58. </el-carousel-item>
  59. </el-carousel>
  60. <div class="pre" @click="infoImgClick('right')">
  61. <img src="@/assets/right.png" alt="" />
  62. </div>
  63. <span class="numImg">{{
  64. switchImgInd + 1 + "/" + imgList2.length
  65. }}</span>
  66. <div class="lookImg" @click="lookImg(2)" v-if="imgList2.length">
  67. <img src="@/assets/lookImg.png" alt="" />
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="tooltips">
  73. <div class="cont">
  74. <span>名称:</span>
  75. <span>{{ tableData.hotelName }}</span>
  76. </div>
  77. </div>
  78. <div class="tooltips">
  79. <div class="cont">
  80. <span>所属乡镇:</span>
  81. <span>{{ tableData.hotelTownshipName }}</span>
  82. </div>
  83. </div>
  84. <div class="tooltips">
  85. <div class="cont">
  86. <span>法人:</span>
  87. <span class="titleContent">{{ tableData.corpnName }}</span>
  88. </div>
  89. <div class="cont">
  90. <span>联系电话:</span>
  91. <span> {{ tableData.corpnPhone }}</span>
  92. </div>
  93. </div>
  94. <div class="tooltips">
  95. <div class="cont">
  96. <span>户主姓名:</span>
  97. <span class="titleContent">{{ tableData.cardName }}</span>
  98. </div>
  99. <div class="cont">
  100. <span>取款账号:</span>
  101. <span>{{ tableData.bankCard }}</span>
  102. </div>
  103. </div>
  104. <div class="tooltips">
  105. <div class="cont">
  106. <span>类型:</span>
  107. <span class="titleContent">{{ tableData.hTypeName }}</span>
  108. </div>
  109. <div class="cont">
  110. <span>状态:</span>
  111. <span v-if="tableData.hstatus == 1">营业</span>
  112. <span v-else-if="tableData.hstatus == 2">休息</span>
  113. </div>
  114. </div>
  115. <div class="tooltips">
  116. <div class="cont address">
  117. <span>地址:</span>
  118. <span>{{ tableData.hposition }}</span>
  119. </div>
  120. </div>
  121. <div class="tooltips">
  122. <div class="cont">
  123. <span>开业时间:</span>
  124. <span class="titleContent">{{ tableData.openTime }}</span>
  125. </div>
  126. <div class="cont">
  127. <span>装修时间:</span>
  128. <span>{{ tableData.fitupTime }}</span>
  129. </div>
  130. </div>
  131. <div class="tooltips">
  132. <div class="cont">
  133. <span>入住时间:</span>
  134. <span class="titleContent">{{ tableData.liveTime }}</span>
  135. </div>
  136. <div class="cont">
  137. <span>离店时间:</span>
  138. <span>{{ tableData.leaveTime }}</span>
  139. </div>
  140. </div>
  141. <div class="tooltips">
  142. <div class="cont">
  143. <span>客房数:</span>
  144. <span>{{ tableData.roomNumber }}</span>
  145. </div>
  146. </div>
  147. <div class="tooltips">
  148. <div class="cont">
  149. <span>简介:</span>
  150. <div class="introduce">
  151. {{ tableData.remark }}
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="right">
  157. <div class="titles">民宿设施</div>
  158. <div class="tooltips">
  159. <div class="configuration" v-for="i in tableData.hconfigNames">
  160. <img :src="i.fileUrl" alt="" />
  161. <span>{{ i.name }}</span>
  162. </div>
  163. </div>
  164. <div class="titles">默认设置</div>
  165. <div class="tooltips">
  166. <div class="cont">
  167. <span>接单设置:</span>
  168. <span v-if="tableData.isOrder == 1">自动接单</span>
  169. <span v-if="tableData.isOrder == 2">手动接单</span>
  170. </div>
  171. </div>
  172. <div class="tooltips">
  173. <div class="cont">
  174. <span>是否自动退房:</span>
  175. <span v-if="tableData.isCheckout == 1">是</span>
  176. <span v-if="tableData.isCheckout == 2">否</span>
  177. </div>
  178. </div>
  179. <div class="tooltips">
  180. <div class="cont">
  181. <span>锁定时间:</span>
  182. <span>{{ tableData.lockTime }}</span>
  183. </div>
  184. </div>
  185. <div class="tooltips">
  186. <div class="cont">
  187. <span>用户是否能取消订单:</span>
  188. <span v-if="tableData.isCanorder == 1">是</span>
  189. <span v-if="tableData.isCanorder == 2">否</span>
  190. </div>
  191. </div>
  192. </div>
  193. <!-- 信息维护弹窗 -->
  194. <el-dialog
  195. class="addStaff"
  196. v-model="addDialogVisible"
  197. :close-on-click-modal="false"
  198. :close-on-press-escape="false"
  199. title="信息维护"
  200. align-center
  201. width="900"
  202. :before-close="cancelAdd"
  203. >
  204. <div class="slider">
  205. <el-form
  206. ref="ruleFormRef"
  207. :model="ruleForm"
  208. :rules="rules"
  209. label-width="100px"
  210. class="demo-ruleForm"
  211. size="default"
  212. label-position="left"
  213. status-icon
  214. :inline="true"
  215. >
  216. <div class="titles"><span>基础信息</span></div>
  217. <div class="form_item tag">
  218. <div class="items">
  219. <el-form-item label="名宿图片 :" prop="coverImg">
  220. <div class="tooltips">
  221. <div class="img img1">
  222. <div class="img_title">
  223. <span>封面图:</span>
  224. </div>
  225. <div class="updateImg">
  226. <img :src="img1" alt="" />
  227. <div class="lookImgs" @click="lookImg(3)" v-if="img1">
  228. <img src="@/assets/lookImg.png" alt="" />
  229. </div>
  230. <el-upload
  231. class="avatar-uploader"
  232. action=""
  233. list-type="picture"
  234. :on-preview="handlePreview"
  235. :on-remove="handleRemove"
  236. :on-change="handleChange"
  237. :before-upload="beforeAvatarUpload"
  238. :http-request="handleUpload"
  239. >
  240. <template #trigger>
  241. <el-button
  242. type="primary"
  243. color="rgba(9, 101, 98, 1)"
  244. @click="updateImg"
  245. >上传图片</el-button
  246. >
  247. </template>
  248. <template #tip>
  249. <div class="el-upload__tip">
  250. (注:图片大小不超过10M,建议按3:2比例)
  251. </div>
  252. </template>
  253. </el-upload>
  254. </div>
  255. </div>
  256. <div class="img img2">
  257. <div class="img_title">
  258. <span>详情图:</span>
  259. </div>
  260. <div class="updateImg">
  261. <div class="carousel">
  262. <div class="pre" @click="infoImgClick2('left')">
  263. <img src="@/assets/left.png" alt="" />
  264. </div>
  265. <el-carousel
  266. ref="infoImg2"
  267. indicator-position="none"
  268. arrow="always"
  269. :autoplay="false"
  270. @change="switchImg2"
  271. :initial-index="switchImgInd2"
  272. >
  273. <el-carousel-item
  274. v-for="item in fileList.list"
  275. :key="item.id"
  276. >
  277. <img :src="item.url" alt="" />
  278. </el-carousel-item>
  279. </el-carousel>
  280. <div class="pre" @click="infoImgClick2('right')">
  281. <img src="@/assets/right.png" alt="" />
  282. </div>
  283. <span class="numImg">{{
  284. switchImgInd2 + 1 + "/" + fileList.list.length
  285. }}</span>
  286. <div class="lookImg" v-if="fileList.list.length">
  287. <img
  288. src="@/assets/lookImg.png"
  289. alt=""
  290. @click="lookImg(4)"
  291. />
  292. <div class="delimg" @click="delImgList(item)"></div>
  293. </div>
  294. </div>
  295. <el-upload
  296. class="avatar-uploader"
  297. action=""
  298. :on-preview="handlePreview2"
  299. :on-remove="handleRemove2"
  300. :on-change="handleChange2"
  301. :http-request="handleUpload2"
  302. :before-upload="beforeAvatarUpload2"
  303. >
  304. <template #trigger>
  305. <el-button
  306. type="primary"
  307. color="rgba(9, 101, 98, 1)"
  308. >上传图片</el-button
  309. >
  310. </template>
  311. <template #tip>
  312. <div class="el-upload__tip">
  313. (注:图片大小不超过10M,建议按16:9比例)
  314. </div>
  315. </template>
  316. </el-upload>
  317. </div>
  318. </div>
  319. </div>
  320. </el-form-item>
  321. </div>
  322. </div>
  323. <div class="form_item tag">
  324. <div class="items">
  325. <el-form-item label="名称 :">
  326. <span>{{ tableData.hotelName }}</span>
  327. </el-form-item>
  328. </div>
  329. <div class="items">
  330. <el-form-item label="所属乡镇 :">
  331. <span>{{ tableData.hotelTownshipName }}</span>
  332. </el-form-item>
  333. </div>
  334. </div>
  335. <div class="form_item tag">
  336. <div class="items">
  337. <el-form-item label="法人 :">
  338. <span>{{ tableData.corpnName }}</span>
  339. </el-form-item>
  340. </div>
  341. <div class="items">
  342. <el-form-item label="联系电话 :">
  343. <span>{{ tableData.corpnPhone }}</span>
  344. </el-form-item>
  345. </div>
  346. </div>
  347. <div class="form_item">
  348. <div class="items">
  349. <el-form-item label="民宿类型 :" prop="htype">
  350. <el-select
  351. v-model="ruleForm.htype"
  352. class="m-2"
  353. placeholder="请选择民宿类型"
  354. >
  355. <el-option
  356. v-for="i in teamIdName"
  357. :label="i.name"
  358. :value="`${i.id}`"
  359. />
  360. </el-select>
  361. </el-form-item>
  362. </div>
  363. <div class="items">
  364. <el-form-item label="状态 :" prop="hstatus">
  365. <el-select
  366. v-model="ruleForm.hstatus"
  367. class="m-2"
  368. placeholder="请选择状态"
  369. >
  370. <el-option label="营业" :value="1" />
  371. <el-option label="休息" :value="2" />
  372. </el-select>
  373. </el-form-item>
  374. </div>
  375. </div>
  376. <div class="form_item tag">
  377. <div class="items">
  378. <el-form-item label="户主姓名 :">
  379. <span>{{ tableData.cardName }}</span>
  380. </el-form-item>
  381. </div>
  382. <div class="items">
  383. <el-form-item label="取款账号 :">
  384. <span>{{ tableData.bankCard }}</span>
  385. </el-form-item>
  386. </div>
  387. </div>
  388. <div class="form_item">
  389. <div class="items">
  390. <el-form-item label="详细地址 :" prop="hposition">
  391. <el-input
  392. v-model="ruleForm.hposition"
  393. placeholder="请输入地址"
  394. :clearable="false"
  395. >
  396. <template #suffix>
  397. <img
  398. src="@/assets/map.png"
  399. style="width: 16px; cursor: pointer"
  400. alt=""
  401. @click="clickMap"
  402. />
  403. </template>
  404. </el-input>
  405. </el-form-item>
  406. </div>
  407. <div class="items">
  408. <el-form-item label="经纬度 :">
  409. <span>{{ ruleForm.hpositionWens }}</span>
  410. </el-form-item>
  411. </div>
  412. </div>
  413. <div class="form_item">
  414. <div class="items">
  415. <el-form-item label="开业时间 :" prop="openTime">
  416. <el-date-picker
  417. v-model="ruleForm.openTime"
  418. type="date"
  419. format="YYYY-MM-DD"
  420. value-format="YYYY-MM-DD"
  421. :prefix-icon="Calendar"
  422. placeholder="请选择开业时间"
  423. :clearable="true"
  424. />
  425. </el-form-item>
  426. </div>
  427. <div class="items">
  428. <el-form-item label="装修时间 :" prop="fitupTime">
  429. <el-date-picker
  430. v-model="ruleForm.fitupTime"
  431. type="date"
  432. format="YYYY-MM-DD"
  433. value-format="YYYY-MM-DD"
  434. :prefix-icon="Calendar"
  435. placeholder="请选择装修时间"
  436. :clearable="true"
  437. />
  438. </el-form-item>
  439. </div>
  440. </div>
  441. <div class="form_item">
  442. <div class="items">
  443. <el-form-item label="入店时间 :" prop="liveTime">
  444. <!-- <el-date-picker
  445. v-model="ruleForm.liveTime"
  446. type="date"
  447. format="YYYY-MM-DD"
  448. value-format="YYYY-MM-DD"
  449. :prefix-icon="Calendar"
  450. placeholder="请选择入店时间"
  451. :clearable="true"
  452. /> -->
  453. <el-time-picker
  454. v-model="ruleForm.liveTime"
  455. format="HH:mm"
  456. value-format="HH:mm"
  457. placeholder="请选择入店时间"
  458. />
  459. </el-form-item>
  460. </div>
  461. <div class="items">
  462. <el-form-item label="离店时间 :" prop="leaveTime">
  463. <!-- <el-date-picker
  464. v-model="ruleForm.leaveTime"
  465. type="date"
  466. format="YYYY-MM-DD"
  467. value-format="YYYY-MM-DD"
  468. :prefix-icon="Calendar"
  469. placeholder="请选择离店时间"
  470. :clearable="true"
  471. /> -->
  472. <el-time-picker
  473. v-model="ruleForm.leaveTime"
  474. format="HH:mm"
  475. value-format="HH:mm"
  476. placeholder="请选择离店时间"
  477. />
  478. </el-form-item>
  479. </div>
  480. </div>
  481. <div class="form_item">
  482. <div class="items">
  483. <el-form-item label="客房数 :">
  484. <!-- <el-input
  485. v-model.number="ruleForm.roomNumber"
  486. placeholder="请输入客房数"
  487. clearable
  488. /> -->
  489. <span>{{ tableData.roomNumber }}</span>
  490. </el-form-item>
  491. </div>
  492. </div>
  493. <div class="form_item">
  494. <div class="items intro">
  495. <el-form-item label="简介 :" prop="remark">
  496. <el-input
  497. v-model="ruleForm.remark"
  498. placeholder="请输入民宿简介信息"
  499. :rows="4"
  500. type="textarea"
  501. :maxlength="200"
  502. clearable
  503. autosize
  504. :show-word-limit="true"
  505. />
  506. </el-form-item>
  507. </div>
  508. </div>
  509. <div class="titles">
  510. <span>民宿配置</span
  511. ><span>(最多可选择5个设施信息展示,管理端民宿配置管理)</span>
  512. </div>
  513. <div class="form_item">
  514. <div class="items">
  515. <el-form-item label="" prop="hconfig">
  516. <el-checkbox-group
  517. @change="checkHouse"
  518. v-model="checkedCities"
  519. :max="5"
  520. >
  521. <el-checkbox v-for="city in cities" :label="`${city.id}`">{{
  522. city.name
  523. }}</el-checkbox>
  524. </el-checkbox-group>
  525. </el-form-item>
  526. </div>
  527. </div>
  528. <div class="titles">
  529. <span>默认设置</span>
  530. </div>
  531. <div class="form_item">
  532. <div class="items">
  533. <el-form-item label="接单设置 :" prop="isOrder">
  534. <el-select
  535. v-model="ruleForm.isOrder"
  536. class="m-2"
  537. placeholder="请选择接单设置"
  538. >
  539. <el-option label="自动接单" :value="1" />
  540. <el-option label="手动接单" :value="2" />
  541. </el-select>
  542. </el-form-item>
  543. </div>
  544. <div class="items default">
  545. <el-form-item label="是否自动退房 :" prop="isCheckout">
  546. <el-select
  547. v-model="ruleForm.isCheckout"
  548. class="m-2"
  549. placeholder="请选择是否自动退房"
  550. >
  551. <el-option label="是" :value="1" />
  552. <el-option label="否" :value="2" />
  553. </el-select>
  554. </el-form-item>
  555. </div>
  556. </div>
  557. <div class="form_item">
  558. <div class="items">
  559. <el-form-item label="锁定时间 :" prop="lockTime">
  560. <!-- <el-select
  561. v-model="ruleForm.lockTime"
  562. class="m-2"
  563. placeholder="请选择维修班"
  564. >
  565. <el-option label="校方人员" :value="0" />
  566. <el-option label="第三方人员" :value="1" />
  567. </el-select> -->
  568. <el-input
  569. v-model="ruleForm.lockTime"
  570. placeholder="请输入锁定时间"
  571. clearable
  572. />
  573. </el-form-item>
  574. </div>
  575. <div class="items default">
  576. <el-form-item label="用户是否能取消订房 :" prop="isCanorder">
  577. <el-select
  578. v-model="ruleForm.isCanorder"
  579. class="m-2"
  580. placeholder="请选择是否能取消订房"
  581. >
  582. <el-option label="是" :value="1" />
  583. <el-option label="否" :value="2" />
  584. </el-select>
  585. </el-form-item>
  586. </div>
  587. </div>
  588. <div class="form_item nowDay">
  589. <div class="now"></div>
  590. <div class="items">
  591. <el-form-item label="入住当天 :" prop="cancelTime">
  592. <el-time-picker
  593. :editable="false"
  594. v-model="ruleForm.cancelTime"
  595. format="HH:mm"
  596. value-format="HH:mm"
  597. placeholder="请选择时间"
  598. />
  599. </el-form-item>
  600. <span>之前可以取消订单</span>
  601. </div>
  602. </div>
  603. <div class="footer">
  604. (注:锁定时间为订单待支付倒计时时间,订单待支付前客房锁定)
  605. </div>
  606. <el-form-item class="options">
  607. <el-button
  608. color="rgba(9, 101, 98, 1)"
  609. class="queding"
  610. type="primary"
  611. @click="submitAdd(ruleFormRef)"
  612. >
  613. 保存
  614. </el-button>
  615. <el-button @click="cancelAdd(ruleFormRef)">取消</el-button>
  616. </el-form-item>
  617. </el-form>
  618. </div>
  619. </el-dialog>
  620. <el-dialog
  621. class="mapDialong"
  622. v-model="mapDialong"
  623. :close-on-click-modal="false"
  624. :close-on-press-escape="false"
  625. title="地图"
  626. align-center
  627. width="1200"
  628. :before-close="closeMap"
  629. >
  630. <Map
  631. @mapClick="mapDatas"
  632. :fatherMessage="fatherMessage"
  633. :key="fatherMessage.timer"
  634. ></Map>
  635. </el-dialog>
  636. </div>
  637. <div class="bgImg" v-if="bgImg">
  638. <el-carousel
  639. @click="bgImg = false"
  640. ref="bgImg"
  641. indicator-position
  642. arrow="always"
  643. :autoplay="false"
  644. @change="switchBgImg"
  645. trigger
  646. :initial-index="switchImgInd3"
  647. >
  648. <el-carousel-item v-for="item in bgImgList" :key="item.id">
  649. <img :src="item.url" alt="" />
  650. </el-carousel-item>
  651. </el-carousel>
  652. </div>
  653. </div>
  654. </template>
  655. <script setup>
  656. import { ref, reactive, nextTick, onBeforeMount, onMounted } from "vue";
  657. import { useRouter, useRoute } from "vue-router";
  658. import { ElMessage, ElMessageBox } from "element-plus";
  659. import { Calendar } from "@element-plus/icons-vue";
  660. import vidiconsApi from "@/api/vidicons.js";
  661. import { dayjs } from "element-plus";
  662. import lodash from "lodash";
  663. import axios from "axios";
  664. import COS from "cos-js-sdk-v5";
  665. import Map from "@/views/map/map.vue";
  666. import { useStore } from "vuex";
  667. const store = useStore();
  668. const api = ref("");
  669. const router = useRouter();
  670. const route = useRoute(); // 获取router-push传过来的flag
  671. // 表格数据
  672. const loading = ref(true);
  673. const tableData = ref({});
  674. // 添加员工弹窗数据 (------------------------------------)
  675. const addDialogVisible = ref(false); // 控制添加员工弹窗
  676. const cities = ref([]); // 名宿配置数据
  677. const checkedCities = ref([]); // 名宿配置选中数据
  678. const teamIdName = ref(); // 民宿配置
  679. const infoImg = ref(); // 控制走马灯ref
  680. const switchImgInd = ref(0); // 幻灯片的默认索引
  681. const infoImg2 = ref(); // 控制走马灯ref
  682. const switchImgInd2 = ref(0); // 幻灯片的默认索引
  683. const img1File = ref(); // 弹窗中封面图地址
  684. const img1 = ref();
  685. const imgList2 = ref([]); // 弹窗中详情图地址(幻灯片)
  686. const fileList = reactive({ list: [] }); // 添加多张图片的文件
  687. const mapDialong = ref(false); // 打开地图弹窗
  688. const searchInput = reactive({
  689. keyWord: "",
  690. teamId: "",
  691. schoolId: "",
  692. }); // 搜索按钮数据
  693. // 添加员工表单数据
  694. const ruleFormRef = ref();
  695. const ruleForm = reactive({
  696. coverImg: "", //封面图
  697. htype: "", //民宿类型
  698. hstatus: "", //状态(1 营业 2.休息)
  699. hposition: "", //详细地址
  700. openTime: "", //开业时间
  701. fitupTime: "", //装修时间
  702. liveTime: [], //入住时间
  703. leaveTime: [], //离店时间
  704. roomNumber: "", //客房数
  705. remark: "", //
  706. hconfig: "", //酒店配置
  707. isOrder: "", //接单设置(1自动接单 2手动接单)
  708. isCheckout: "", //是否自动退房(1是 2否)
  709. isCanorder: "", //是否能取消订单(1是 2否)
  710. lockTime: "", //订单锁定时间
  711. fileListJson: "", //民宿详细图
  712. hpositionWens: "", // 经纬度
  713. cancelTime: "", // 入住当天 取消订单
  714. id: "",
  715. });
  716. // 传给子组件的参数
  717. const fatherMessage = ref({
  718. position: "",
  719. lat: "",
  720. lng: "",
  721. timer: "",
  722. });
  723. // 点击查看图片
  724. const bgImg = ref(false);
  725. const bgImgList = ref([]);
  726. const switchImgInd3 = ref();
  727. const flags = ref(); // 记录是谁点击查看图片
  728. // 锁定时间验证
  729. const validatePrice = (rule, value, callback) => {
  730. var reg = /^\+?[1-9]\d*$/; // 大于0的正整数
  731. if (reg.test(value) && value <= 60) {
  732. // 非大于0的正整数,给出提示
  733. callback();
  734. } else {
  735. callback(new Error("锁定时间范围为1~60之间的正整数"));
  736. }
  737. // if (/^([1-6])?[1-9]$/.test(value)) {
  738. // callback();
  739. // } else {
  740. // callback(new Error("锁定时间范围在1~60之间"));
  741. // }
  742. };
  743. // 表单验证
  744. const rules = reactive({
  745. // serial: [{ required: true, message: "序列号不能为空", trigger: "blur" }],
  746. coverImg: [{ required: true, message: "封面图不能为空", trigger: "blur" }],
  747. htype: [{ required: true, message: "民宿类型不能为空", trigger: "blur" }],
  748. hstatus: [{ required: true, message: "状态不能为空", trigger: "blur" }],
  749. hposition: [
  750. { required: true, message: "详细地址不能为空", trigger: "change" },
  751. ],
  752. openTime: [{ required: true, message: "开业时间不能为空", trigger: "blur" }],
  753. fitupTime: [{ required: true, message: "装修时间不能为空", trigger: "blur" }],
  754. liveTime: [{ required: true, message: "入住时间不能为空", trigger: "blur" }],
  755. leaveTime: [{ required: true, message: "离店时间不能为空", trigger: "blur" }],
  756. roomNumber: [{ required: true, message: "客房数不能为空", trigger: "blur" }],
  757. hconfig: [{ required: true, message: "民宿配置不能为空", trigger: "blur" }],
  758. isOrder: [{ required: true, message: "接单设置不能为空", trigger: "blur" }],
  759. isCheckout: [
  760. { required: true, message: "是否自动退房不能为空", trigger: "blur" },
  761. ],
  762. lockTime: [
  763. { required: true, message: "锁定时间不能为空", trigger: "change" },
  764. { validator: validatePrice, trigger: "change" },
  765. ],
  766. isCanorder: [
  767. { required: true, message: "是否能取消订单不能为空", trigger: "blur" },
  768. ],
  769. fileListJson: [
  770. { required: true, message: "详情图不能为空", trigger: "blur" },
  771. ],
  772. cancelTime: [
  773. { required: true, message: "取消订单不能为空", trigger: "blur" },
  774. ],
  775. });
  776. // 查看员工列表
  777. const getList = async () => {
  778. loading.value = true;
  779. let data = {
  780. managerId: sessionStorage.getItem("token"),
  781. };
  782. let res = await axios({
  783. method: "post",
  784. url: api.value + "/mhotel/hotelgetByHotelInfo.action",
  785. headers: {},
  786. params: data,
  787. });
  788. console.log(res, "民宿信息");
  789. if (res.data.code == 200) {
  790. if (res.data.data.hconfig) {
  791. res.data.data.hconfigNames = [];
  792. res.data.data.hconfig.split(",").forEach((item) => {
  793. cities.value.forEach((i) => {
  794. if (item == i.id) {
  795. res.data.data.hconfigNames.push({
  796. name: i.name,
  797. fileUrl: i.fileUrl,
  798. });
  799. }
  800. });
  801. });
  802. }
  803. fileList.list = res.data.data.fileInfoList;
  804. imgList2.value = res.data.data.fileInfoList;
  805. // img1.value = res.data.data.coverImg;
  806. // console.log(!res.data.data.lockTime, "锁定时间");
  807. // if (!res.data.data.lockTime) {
  808. // res.data.data.lockTime = 0;
  809. // }
  810. tableData.value = res.data.data;
  811. ruleForm.id = tableData.value.id;
  812. ruleForm.coverImg = tableData.value.coverImg;
  813. ruleForm.hpositionWens = tableData.value.hpositionWens;
  814. if (tableData.value.hconfig) {
  815. checkedCities.value = tableData.value.hconfig.split(",");
  816. }
  817. loading.value = false;
  818. } else {
  819. ElMessage({
  820. type: "error",
  821. showClose: true,
  822. message: res.data.message,
  823. center: true,
  824. });
  825. }
  826. };
  827. const mapDatas = (data) => {
  828. if (data.flag) {
  829. console.log(data, "确定");
  830. ruleForm.hposition = data.address;
  831. ruleForm.hpositionWens = data.lat + "," + data.lng;
  832. mapDialong.value = false;
  833. } else {
  834. console.log(data, "取消");
  835. mapDialong.value = false;
  836. }
  837. };
  838. // 点击地图定位按钮
  839. const clickMap = () => {
  840. console.log(tableData.value, "点击了地图定位");
  841. fatherMessage.value.position = tableData.value.hposition;
  842. fatherMessage.value.lng = tableData.value.hpositionWens.split(",")[0];
  843. fatherMessage.value.lat = tableData.value.hpositionWens.split(",")[1];
  844. fatherMessage.value.timer = new Date().getTime();
  845. mapDialong.value = true;
  846. };
  847. //维护信息(--------------------------------------)
  848. const maintain = async () => {
  849. console.log(tableData.value.fileInfoList);
  850. img1.value = tableData.value.coverImg;
  851. ruleForm.fileListJson = fileList.list;
  852. ruleForm.htype = tableData.value.htype;
  853. ruleForm.hstatus = tableData.value.hstatus;
  854. ruleForm.hposition = tableData.value.hposition;
  855. ruleForm.openTime = tableData.value.openTime;
  856. ruleForm.fitupTime = tableData.value.fitupTime;
  857. ruleForm.liveTime = tableData.value.liveTime;
  858. ruleForm.leaveTime = tableData.value.leaveTime;
  859. ruleForm.roomNumber = tableData.value.roomNumber;
  860. ruleForm.remark = tableData.value.remark;
  861. ruleForm.hconfig = tableData.value.hconfig;
  862. if (tableData.value.hconfig) {
  863. checkedCities.value = tableData.value.hconfig.split(",");
  864. }
  865. ruleForm.isOrder = tableData.value.isOrder;
  866. ruleForm.isCheckout = tableData.value.isCheckout;
  867. ruleForm.isCanorder = tableData.value.isCanorder;
  868. ruleForm.lockTime = tableData.value.lockTime;
  869. ruleForm.cancelTime = tableData.value.cancelTime;
  870. addDialogVisible.value = true;
  871. };
  872. // 取消维护
  873. const cancelAdd = () => {
  874. addDialogVisible.value = false;
  875. fileList.list = tableData.value.fileInfoList;
  876. ruleFormRef.value.resetFields();
  877. };
  878. // 左右切换走马灯
  879. const infoImgClick = (val) => {
  880. if (val == "right") {
  881. //点击右按钮切换至下一页走马灯
  882. infoImg.value.next();
  883. } else {
  884. //点击左按钮切换至上一页走马灯
  885. infoImg.value.prev();
  886. }
  887. };
  888. // 得到当前幻灯片的索引
  889. const switchImg = (val) => {
  890. // console.log(val);
  891. switchImgInd.value = val;
  892. };
  893. // 左右切换走马灯
  894. const infoImgClick2 = (val) => {
  895. if (val == "right") {
  896. //点击右按钮切换至下一页走马灯
  897. infoImg2.value.next();
  898. } else {
  899. //点击左按钮切换至上一页走马灯
  900. infoImg2.value.prev();
  901. }
  902. };
  903. // 得到当前幻灯片的索引
  904. const switchImg2 = (val) => {
  905. // console.log(val);
  906. switchImgInd2.value = val;
  907. };
  908. // 删除幻灯片中的图片
  909. const delImgList = (item) => {
  910. console.log(switchImgInd2.value);
  911. // console.log(item);
  912. fileList.list = fileList.list.filter((i, index) => {
  913. // return i.id != item.id;
  914. return index != switchImgInd2.value;
  915. });
  916. };
  917. // 封面图上传(------------------------------------------------------)
  918. // 添加照片时往fileList列表中添加图片信息(封面图上传图片)
  919. const handleChange = (file, fileLists) => {
  920. console.log(file, "file11111");
  921. if (file.raw.type == "image/jpeg" || file.raw.type == "image/png") {
  922. img1.value = file.url;
  923. }
  924. // ruleForm.coverImg = file.url;
  925. };
  926. // 可以获取图片参数(封面图上传图片)
  927. const handleUpload = async (file) => {
  928. console.log(file, "2222");
  929. img1File.value = file.file;
  930. if (img1File.value) {
  931. const cos = new COS({
  932. SecretId: "AKIDJSP9gz469yZv77tQjotsgHguvjIgtvkL",
  933. SecretKey: "b3MVRD1g8RYS9g195oMkvukQvDKZfbOz",
  934. SecurityToken: "1320402385",
  935. Bucket: "jinganminsu-1320402385",
  936. Region: "ap-nanjing",
  937. });
  938. const files = file.file;
  939. console.log(files, "files文件");
  940. const key = file.file.name; // 设置上传到 COS 后的文件名
  941. cos.putObject(
  942. {
  943. Bucket: "jinganminsu-1320402385",
  944. Region: "ap-nanjing",
  945. Key: key,
  946. Body: files,
  947. onProgress: function (progressData) {
  948. console.log(JSON.stringify(progressData));
  949. },
  950. },
  951. function (err, data) {
  952. if (err) {
  953. console.error(err, "请求失败");
  954. } else {
  955. console.log(data, "请求成功");
  956. ruleForm.coverImg = "https://" + data.Location;
  957. // 成功
  958. }
  959. }
  960. );
  961. // datas.set("files", img1File.value);
  962. // let ress = await axios({
  963. // method: "post",
  964. // url: api.value + "/file/cos/upload",
  965. // headers: {},
  966. // data: datas,
  967. // });
  968. // console.log(ress, "图片上传成功封面图");
  969. // ruleForm.coverImg = ress.data.data;
  970. }
  971. };
  972. // 移出图片(封面图上传图片)
  973. const handleRemove = (uploadFile, uploadFiles) => {
  974. console.log(uploadFile, uploadFiles);
  975. };
  976. // 限制上传图片的大小
  977. const beforeAvatarUpload = (rawFile) => {
  978. console.log(rawFile.type);
  979. if (rawFile.type !== "image/jpeg" && rawFile.type !== "image/png") {
  980. ElMessage.error("图片格式必须为JPG/PNG格式!");
  981. return false;
  982. } else if (rawFile.size / 1024 / 1024 > 10) {
  983. ElMessage.error("图片的大小不能超过10MB!");
  984. return false;
  985. }
  986. return true;
  987. };
  988. //轮播图上传(-----------------------------------------------)
  989. // 移出照片
  990. const handleRemove2 = (uploadFile, uploadFiles) => {
  991. // console.log(uploadFile.uid, uploadFiles);
  992. fileList.list = fileList.list.filter((item) => {
  993. return item.uid != uploadFile.uid;
  994. });
  995. ruleForm.fileListJson = fileList.list;
  996. };
  997. // 点击图片的查看按钮
  998. const handlePreview2 = (file) => {
  999. // imgUrl.value = file.url;
  1000. // imgVisible.value = true;
  1001. // console.log(file);
  1002. };
  1003. // 限制上传图片的大小
  1004. const beforeAvatarUpload2 = (rawFile) => {
  1005. // console.log(rawFile.type);
  1006. if (rawFile.type !== "image/jpeg" && rawFile.type !== "image/png") {
  1007. ElMessage.error("图片格式必须为JPG/PNG格式!");
  1008. return false;
  1009. } else if (rawFile.size / 1024 / 1024 > 10) {
  1010. ElMessage.error("图片的大小不能超过10MB!");
  1011. return false;
  1012. }
  1013. return true;
  1014. };
  1015. // 添加照片时往fileList列表中添加图片信息
  1016. const handleChange2 = async (file, fileLists) => {
  1017. // console.log(file, "1111");
  1018. // fileList.list.push(file);
  1019. };
  1020. // 可以获取图片参数
  1021. const handleUpload2 = async (file) => {
  1022. if (fileList.list.length >= 6) {
  1023. ElMessage.error("最多可上传6张图片!");
  1024. return false;
  1025. }
  1026. console.log(file, "22222222");
  1027. img1File.value = file.file;
  1028. const cos = new COS({
  1029. SecretId: "AKIDJSP9gz469yZv77tQjotsgHguvjIgtvkL",
  1030. SecretKey: "b3MVRD1g8RYS9g195oMkvukQvDKZfbOz",
  1031. SecurityToken: "1320402385",
  1032. Bucket: "jinganminsu-1320402385",
  1033. Region: "ap-nanjing",
  1034. });
  1035. const files = file.file;
  1036. console.log(files, "files文件");
  1037. const key = file.file.name; // 设置上传到 COS 后的文件名
  1038. cos.putObject(
  1039. {
  1040. Bucket: "jinganminsu-1320402385",
  1041. Region: "ap-nanjing",
  1042. Key: key,
  1043. Body: files,
  1044. onProgress: function (progressData) {
  1045. console.log(JSON.stringify(progressData));
  1046. },
  1047. },
  1048. function (err, data) {
  1049. if (err) {
  1050. console.error(err, "请求失败");
  1051. } else {
  1052. console.log(data, "请求成功");
  1053. // ruleForm.coverImg = "https://" + data.Location;
  1054. let arr = {
  1055. uid: file.file.uid,
  1056. url: "https://" + data.Location,
  1057. };
  1058. fileList.list = fileList.list.concat([arr]);
  1059. ruleForm.fileListJson = fileList.list;
  1060. // 成功
  1061. }
  1062. }
  1063. );
  1064. // let data = new FormData();
  1065. // data.set("files", file.file);
  1066. // let res = await axios({
  1067. // method: "post",
  1068. // url: api.value + "/file/cos/upload",
  1069. // headers: {},
  1070. // data: data,
  1071. // });
  1072. // console.log(res, "图片上传成功详情图");
  1073. // if (res.data.code == 1) {
  1074. // // res.data.data.uid = file.file.uid;
  1075. // // console.log([res.data.data]);
  1076. // let arr = {
  1077. // uid: file.file.uid,
  1078. // url: res.data.data,
  1079. // };
  1080. // fileList.list = fileList.list.concat([arr]);
  1081. // ruleForm.fileListJson = fileList.list;
  1082. // }
  1083. };
  1084. // 确认维护信息
  1085. const submitAdd = lodash.debounce(async (formEl) => {
  1086. if (!formEl) return;
  1087. await formEl.validate(async (valid, fields) => {
  1088. if (valid) {
  1089. let data = new FormData();
  1090. data.set("coverImg", ruleForm.coverImg);
  1091. data.set("htype", ruleForm.htype);
  1092. data.set("hstatus", ruleForm.hstatus);
  1093. data.set("hposition", ruleForm.hposition);
  1094. data.set("openTime", ruleForm.openTime);
  1095. data.set("fitupTime", ruleForm.fitupTime);
  1096. data.set("liveTime", ruleForm.liveTime);
  1097. data.set("leaveTime", ruleForm.leaveTime);
  1098. // data.set("roomNumber", ruleForm.roomNumber);
  1099. data.set("remark", ruleForm.remark);
  1100. data.set("hconfig", ruleForm.hconfig);
  1101. data.set("isOrder", ruleForm.isOrder);
  1102. data.set("isCheckout", ruleForm.isCheckout);
  1103. data.set("isCanorder", ruleForm.isCanorder);
  1104. data.set("lockTime", ruleForm.lockTime);
  1105. data.set("hpositionWens", ruleForm.hpositionWens);
  1106. data.set("fileListJson", JSON.stringify(fileList.list));
  1107. data.set("id", ruleForm.id);
  1108. data.set("managerId", sessionStorage.getItem("token"));
  1109. data.set("hname", tableData.value.hotelName);
  1110. data.set("createId", sessionStorage.getItem("roomId"));
  1111. data.set("cancelTime", ruleForm.cancelTime);
  1112. console.log(ruleForm);
  1113. let res = await axios({
  1114. method: "post",
  1115. url: api.value + "/mhotel/hotelupdateHotel.action",
  1116. headers: {},
  1117. data: data,
  1118. });
  1119. console.log(res, "维护信息");
  1120. if (res.data.code == 200) {
  1121. getList();
  1122. ElMessage({
  1123. type: "success",
  1124. showClose: true,
  1125. message: res.data.message,
  1126. center: true,
  1127. });
  1128. addDialogVisible.value = false;
  1129. ruleFormRef.value.resetFields();
  1130. } else {
  1131. ElMessage({
  1132. type: "error",
  1133. showClose: true,
  1134. message: res.data.message,
  1135. center: true,
  1136. });
  1137. }
  1138. } else {
  1139. console.log("error submit!", fields);
  1140. }
  1141. });
  1142. }, 1500);
  1143. // 选择民宿配置
  1144. const checkHouse = (val) => {
  1145. console.log(val);
  1146. checkedCities.value = val;
  1147. ruleForm.hconfig = val.join(",");
  1148. };
  1149. // 查看图片
  1150. const lookImg = (flag) => {
  1151. bgImg.value = true;
  1152. if (flag == 1) {
  1153. flags.value = 1;
  1154. let arr = [
  1155. {
  1156. url: tableData.value.coverImg,
  1157. id: tableData.value.coverImg,
  1158. },
  1159. ];
  1160. bgImgList.value = arr;
  1161. } else if (flag == 2) {
  1162. flags.value = 2;
  1163. console.log(imgList2.value);
  1164. let arr = [];
  1165. imgList2.value.forEach((item) => {
  1166. arr.push({
  1167. url: item.url,
  1168. id: item.id,
  1169. });
  1170. });
  1171. switchImgInd3.value = switchImgInd.value;
  1172. bgImgList.value = arr;
  1173. } else if (flag == 3) {
  1174. flags.value = 3;
  1175. let arr = [
  1176. {
  1177. url: img1.value,
  1178. id: tableData.value.coverImg,
  1179. },
  1180. ];
  1181. bgImgList.value = arr;
  1182. } else if (flag == 4) {
  1183. flags.value = 4;
  1184. let arr = [];
  1185. fileList.list.forEach((item) => {
  1186. arr.push({
  1187. url: item.url,
  1188. id: item.id,
  1189. });
  1190. });
  1191. switchImgInd3.value = switchImgInd2.value;
  1192. bgImgList.value = arr;
  1193. }
  1194. };
  1195. // 切换图片后缩列图也跟着变
  1196. const switchBgImg = (val) => {
  1197. console.log(val);
  1198. switchImgInd3.value = val;
  1199. if (flags.value == 2) {
  1200. infoImg.value.setActiveItem(val);
  1201. } else if (flags.value == 4) {
  1202. infoImg2.value.setActiveItem(val);
  1203. }
  1204. };
  1205. onBeforeMount(async () => {
  1206. api.value = store.state.user.api;
  1207. let flag = route.params.flag;
  1208. console.log(flag);
  1209. if (flag == 1) {
  1210. maintain();
  1211. }
  1212. // 查看房型配置
  1213. let data = {
  1214. code: 2,
  1215. };
  1216. let res = await axios({
  1217. method: "get",
  1218. url: api.value + "/mhotel/hotelqueryList.action",
  1219. headers: {},
  1220. params: data,
  1221. });
  1222. console.log(res, "房型配置");
  1223. cities.value = res.data.data;
  1224. // 民宿类型配置
  1225. let datas = {
  1226. code: 1,
  1227. };
  1228. let ress = await axios({
  1229. method: "get",
  1230. url: api.value + "/mhotel/hotelqueryList.action",
  1231. headers: {},
  1232. params: datas,
  1233. });
  1234. console.log(ress, "民宿类型配置");
  1235. teamIdName.value = ress.data.data;
  1236. getList();
  1237. });
  1238. </script>
  1239. <style scoped lang="scss">
  1240. .content-box {
  1241. min-width: 1000px;
  1242. width: calc(100vw - 240px);
  1243. height: calc(100vh - 105px);
  1244. margin: 20px auto;
  1245. background-color: #fff;
  1246. color: #fff;
  1247. display: flex;
  1248. flex-direction: column;
  1249. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1250. .title {
  1251. // width: calc(100wh - 40px);
  1252. display: flex;
  1253. align-items: center;
  1254. justify-content: space-between;
  1255. height: 60px;
  1256. margin: 0 30px;
  1257. border-bottom: 1px solid #ccc;
  1258. color: rgb(0, 0, 0);
  1259. font-size: 20px;
  1260. font-weight: 600;
  1261. span {
  1262. margin-right: 20px;
  1263. cursor: pointer;
  1264. height: 60px;
  1265. line-height: 60px;
  1266. }
  1267. .is_active {
  1268. color: rgba(111, 182, 184, 1);
  1269. }
  1270. }
  1271. .content {
  1272. width: calc(100% - 60px);
  1273. height: calc(100%);
  1274. overflow: auto;
  1275. margin: 0 auto;
  1276. display: flex;
  1277. .left {
  1278. flex: 1;
  1279. height: 100%;
  1280. color: #000;
  1281. .titles {
  1282. font-size: 18px;
  1283. margin: 8px 0;
  1284. font-weight: 700;
  1285. }
  1286. .tooltips {
  1287. display: flex;
  1288. margin: 15px 0;
  1289. .titleContent {
  1290. display: inline-block;
  1291. width: 100px;
  1292. }
  1293. .img {
  1294. display: flex;
  1295. margin-right: 20px;
  1296. .img_title {
  1297. // margin: 0 20px 0 0;
  1298. display: flex;
  1299. flex-direction: column;
  1300. align-items: center;
  1301. span {
  1302. display: inline-block;
  1303. width: 53px;
  1304. }
  1305. }
  1306. }
  1307. .img1 {
  1308. .tupian {
  1309. width: 183px;
  1310. height: 121px;
  1311. opacity: 1;
  1312. border-radius: 10px;
  1313. .lookImg {
  1314. width: 183px;
  1315. height: 121px;
  1316. cursor: pointer;
  1317. position: relative;
  1318. top: -127px;
  1319. left: 0;
  1320. border-radius: 10px;
  1321. display: flex;
  1322. justify-content: center;
  1323. align-items: center;
  1324. img {
  1325. width: 30px;
  1326. height: 30px;
  1327. opacity: 0;
  1328. }
  1329. }
  1330. .lookImg:hover {
  1331. background-color: rgba(0, 0, 0, 0.2);
  1332. img {
  1333. opacity: 1;
  1334. }
  1335. }
  1336. }
  1337. img {
  1338. width: 183px;
  1339. height: 121px;
  1340. opacity: 1;
  1341. border-radius: 10px;
  1342. }
  1343. }
  1344. .img2 {
  1345. .carousel {
  1346. height: 120px;
  1347. display: flex;
  1348. align-items: center;
  1349. position: relative;
  1350. .pre {
  1351. img {
  1352. width: 30px;
  1353. cursor: pointer;
  1354. }
  1355. }
  1356. .numImg {
  1357. position: relative;
  1358. color: #fff;
  1359. right: 70px;
  1360. bottom: -40px;
  1361. }
  1362. .el-carousel {
  1363. width: 213px;
  1364. height: 120px;
  1365. img {
  1366. width: 213px;
  1367. height: 120px;
  1368. }
  1369. :deep(.el-carousel__container) {
  1370. border: 1px solid #ccc;
  1371. height: 120px !important;
  1372. box-sizing: border-box;
  1373. .el-carousel__arrow {
  1374. display: none;
  1375. }
  1376. }
  1377. }
  1378. .lookImg {
  1379. width: 213px;
  1380. height: 120px;
  1381. cursor: pointer;
  1382. position: absolute;
  1383. top: 0;
  1384. left: 30px;
  1385. display: flex;
  1386. justify-content: center;
  1387. align-items: center;
  1388. img {
  1389. width: 30px;
  1390. height: 30px;
  1391. opacity: 0;
  1392. }
  1393. }
  1394. .lookImg:hover {
  1395. background-color: rgba(0, 0, 0, 0.2);
  1396. img {
  1397. opacity: 1;
  1398. }
  1399. }
  1400. }
  1401. }
  1402. .cont:nth-child(1) {
  1403. span:nth-child(1) {
  1404. color: rgba(128, 128, 128, 1);
  1405. display: inline-block;
  1406. width: 80px;
  1407. }
  1408. }
  1409. .cont:nth-child(2) {
  1410. margin-left: 100px;
  1411. span:nth-child(1) {
  1412. color: rgba(128, 128, 128, 1);
  1413. display: inline-block;
  1414. width: 80px;
  1415. }
  1416. }
  1417. .address {
  1418. display: flex;
  1419. span:nth-child(2) {
  1420. display: inline-block;
  1421. width: 85%;
  1422. }
  1423. }
  1424. }
  1425. .tooltips:last-child {
  1426. .cont {
  1427. display: flex;
  1428. .introduce {
  1429. width: 85%;
  1430. height: 170px;
  1431. overflow: auto;
  1432. }
  1433. }
  1434. }
  1435. }
  1436. .right {
  1437. flex: 1;
  1438. height: 100%;
  1439. color: #000;
  1440. padding: 0 0 0 60px;
  1441. .titles {
  1442. font-size: 18px;
  1443. margin: 8px 0;
  1444. font-weight: 700;
  1445. }
  1446. .tooltips {
  1447. display: flex;
  1448. flex-wrap: wrap;
  1449. margin: 15px 0;
  1450. .cont:nth-child(1) {
  1451. span:nth-child(1) {
  1452. color: rgba(128, 128, 128, 1);
  1453. display: inline-block;
  1454. padding-right: 10px;
  1455. }
  1456. }
  1457. .configuration {
  1458. display: flex;
  1459. align-items: center;
  1460. margin: 5px 10px;
  1461. img {
  1462. width: 28px;
  1463. height: 28px;
  1464. margin-right: 8px;
  1465. }
  1466. }
  1467. }
  1468. }
  1469. // 添加员工弹窗样式
  1470. :deep(.addStaff) {
  1471. height: 800px;
  1472. border-radius: 11px;
  1473. .el-dialog__header {
  1474. border-radius: 11px 11px 0 0;
  1475. background: rgba(237, 241, 245, 1);
  1476. font-weight: 600;
  1477. margin: 0;
  1478. .el-dialog__headerbtn {
  1479. outline: none;
  1480. }
  1481. }
  1482. .el-dialog__body {
  1483. padding: 10px 30px 10px 35px;
  1484. .slider {
  1485. height: 720px;
  1486. overflow: auto;
  1487. }
  1488. .tooltips {
  1489. display: flex;
  1490. .img {
  1491. display: flex;
  1492. .img_title {
  1493. span {
  1494. display: inline-block;
  1495. width: 60px;
  1496. }
  1497. }
  1498. .updateImg {
  1499. display: flex;
  1500. flex-direction: column;
  1501. // align-items: center;
  1502. width: 300px;
  1503. .el-button {
  1504. margin-top: 10px;
  1505. }
  1506. .lookImgs {
  1507. width: 183px;
  1508. height: 121px;
  1509. cursor: pointer;
  1510. position: absolute;
  1511. top: 0;
  1512. left: 60px;
  1513. border-radius: 10px;
  1514. display: flex;
  1515. justify-content: center;
  1516. align-items: center;
  1517. img {
  1518. width: 30px;
  1519. height: 30px;
  1520. opacity: 0;
  1521. }
  1522. }
  1523. .lookImgs:hover {
  1524. background-color: rgba(0, 0, 0, 0.2);
  1525. img {
  1526. opacity: 1;
  1527. }
  1528. }
  1529. }
  1530. }
  1531. }
  1532. .img1 {
  1533. img {
  1534. width: 183px;
  1535. height: 121px;
  1536. opacity: 1;
  1537. border-radius: 10px;
  1538. }
  1539. .updateImg {
  1540. .el-upload {
  1541. margin-left: 45px;
  1542. }
  1543. .el-upload__tip {
  1544. color: rgba(212, 48, 48, 1);
  1545. transform: translateX(-30px);
  1546. }
  1547. .el-upload-list {
  1548. display: none;
  1549. }
  1550. }
  1551. }
  1552. .img2 {
  1553. position: relative;
  1554. .carousel {
  1555. height: 120px;
  1556. display: flex;
  1557. align-items: center;
  1558. .pre {
  1559. img {
  1560. width: 30px;
  1561. cursor: pointer;
  1562. }
  1563. }
  1564. .numImg {
  1565. position: relative;
  1566. color: #fff;
  1567. right: 70px;
  1568. bottom: -40px;
  1569. }
  1570. .el-carousel {
  1571. width: 213px;
  1572. height: 120px;
  1573. img {
  1574. width: 213px;
  1575. height: 120px;
  1576. }
  1577. .el-carousel__container {
  1578. border: 1px solid #ccc;
  1579. height: 120px !important;
  1580. box-sizing: border-box;
  1581. .el-carousel__arrow {
  1582. display: none;
  1583. }
  1584. }
  1585. }
  1586. .lookImg {
  1587. width: 213px;
  1588. height: 120px;
  1589. position: absolute;
  1590. z-index: 99;
  1591. top: 0;
  1592. left: 90px;
  1593. display: flex;
  1594. justify-content: center;
  1595. align-items: center;
  1596. img {
  1597. width: 30px;
  1598. height: 30px;
  1599. opacity: 0;
  1600. }
  1601. .delimg {
  1602. width: 30px;
  1603. height: 30px;
  1604. background-image: url("@/assets/imgDel.png");
  1605. background-size: 100%;
  1606. opacity: 0;
  1607. margin-left: 5px;
  1608. }
  1609. }
  1610. .lookImg:hover {
  1611. background-color: rgba(0, 0, 0, 0.2);
  1612. img {
  1613. opacity: 1;
  1614. cursor: pointer;
  1615. }
  1616. .delimg {
  1617. opacity: 1;
  1618. cursor: pointer;
  1619. }
  1620. }
  1621. }
  1622. .updateImg {
  1623. .el-upload {
  1624. margin-left: 90px;
  1625. }
  1626. .el-upload__tip {
  1627. margin-left: 20px;
  1628. color: rgba(212, 48, 48, 1);
  1629. }
  1630. // 录播图显示文件
  1631. .el-upload-list {
  1632. display: none;
  1633. }
  1634. }
  1635. }
  1636. .el-input {
  1637. width: 200px;
  1638. }
  1639. .el-form {
  1640. .titles {
  1641. font-weight: 600;
  1642. color: #000;
  1643. font-size: 18px;
  1644. margin: 10px 0 20px 0;
  1645. span:nth-child(2) {
  1646. color: rgba(212, 48, 48, 1);
  1647. }
  1648. }
  1649. .footer {
  1650. color: rgba(212, 48, 48, 1);
  1651. }
  1652. .form_item {
  1653. display: flex;
  1654. .items {
  1655. .el-checkbox-group {
  1656. height: 100%;
  1657. line-height: 0;
  1658. }
  1659. }
  1660. .intro {
  1661. .el-form-item__content {
  1662. width: 550px;
  1663. }
  1664. }
  1665. .default {
  1666. .el-form-item__label {
  1667. width: 160px !important;
  1668. }
  1669. }
  1670. }
  1671. .tag {
  1672. .el-form-item__content {
  1673. width: 200px;
  1674. }
  1675. }
  1676. .nowDay {
  1677. margin-bottom: 18px;
  1678. .el-form-item__label {
  1679. width: 90px !important;
  1680. }
  1681. .el-form-item {
  1682. margin: 0 10px 0 0;
  1683. }
  1684. .now {
  1685. width: 332px;
  1686. }
  1687. }
  1688. }
  1689. .options {
  1690. width: 100%;
  1691. margin: 25px 0 15px 0;
  1692. .el-form-item__content {
  1693. .queding {
  1694. margin-left: 20px;
  1695. color: #fff;
  1696. }
  1697. display: flex;
  1698. flex-direction: row-reverse;
  1699. }
  1700. }
  1701. }
  1702. }
  1703. // 添加员工弹窗样式
  1704. :deep(.mapDialong) {
  1705. height: 800px;
  1706. border-radius: 11px;
  1707. .el-dialog__header {
  1708. border-radius: 11px 11px 0 0;
  1709. background: rgba(237, 241, 245, 1);
  1710. font-weight: 600;
  1711. margin: 0;
  1712. .el-dialog__headerbtn {
  1713. outline: none;
  1714. }
  1715. }
  1716. .el-dialog__body {
  1717. padding: 0;
  1718. }
  1719. }
  1720. }
  1721. .bgImg {
  1722. position: absolute;
  1723. left: 0;
  1724. top: 0;
  1725. z-index: 99999999;
  1726. width: 100%;
  1727. height: 100%;
  1728. background-color: rgba(255, 255, 255, 0.8);
  1729. // border-radius: 50px;
  1730. :deep(.el-carousel__container) {
  1731. width: 100%;
  1732. height: calc(100vh);
  1733. .el-carousel__item {
  1734. display: flex;
  1735. justify-content: center;
  1736. img {
  1737. height: 100%;
  1738. }
  1739. }
  1740. }
  1741. }
  1742. }
  1743. </style>