baseManage.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <template>
  2. <div>
  3. <el-breadcrumb separator-class="el-icon-arrow-right">
  4. <el-breadcrumb-item>基地管理</el-breadcrumb-item>
  5. </el-breadcrumb>
  6. <SearchBar>
  7. <div slot="type-check">
  8. <el-input
  9. placeholder="请输入内容"
  10. size="mini"
  11. suffix-icon="el-icon-search"
  12. v-model="search"
  13. @change="searchBase"
  14. clearable
  15. ></el-input>
  16. </div>
  17. <div slot="search-common">
  18. <el-button type="primary" size="mini" @click="addBase('新增基地')"
  19. >新增</el-button
  20. >
  21. </div>
  22. </SearchBar>
  23. <el-row :gutter="20">
  24. <el-col
  25. :xs="24"
  26. :sm="24"
  27. :md="12"
  28. :lg="12"
  29. :xl="8"
  30. class="col-item"
  31. v-for="(item, index) in baseList"
  32. :key="index"
  33. >
  34. <el-card class="box-card boxCard">
  35. <div class="baseCard">
  36. <div class="baseImg">
  37. <img :src="$host + item.base_img" />
  38. </div>
  39. <div class="addBaseInfo">
  40. <h2>{{ item.base_name }}</h2>
  41. <div class="addBaseInfoDetails">
  42. <i class="iconfont icon-yonghu11"></i>
  43. <div class="caption">负责人 :</div>
  44. <div>{{ item.base_charge }}</div>
  45. </div>
  46. <div class="addBaseInfoDetails">
  47. <i class="iconfont icon-dianhua2"></i>
  48. <div class="caption">电&nbsp;&nbsp;&nbsp;&nbsp;话 :</div>
  49. <div>{{ item.base_phone }}</div>
  50. </div>
  51. <div class="addBaseInfoDetails">
  52. <i class="iconfont icon-mianji"></i>
  53. <div class="caption">面&nbsp;&nbsp;&nbsp;&nbsp;积 :</div>
  54. <div>{{ item.base_area }}</div>
  55. </div>
  56. <div class="addBaseInfoDetails">
  57. <i class="iconfont icon-dingwei"></i>
  58. <div class="caption">地&nbsp;&nbsp;&nbsp;&nbsp;址 :</div>
  59. <div class="addr">{{ item.address || '未定位' }}</div>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="baseEditBox" @click="editBase(item.id, '修改基地',item.address)">
  64. <img src="@/assets/images/fourMoodBase/baseEditIcon.png" alt />
  65. </div>
  66. <div class="baseBtn">
  67. <span class="detailBtn" @click="detailBase(item.id)">详情</span>
  68. <span class="delBtn" @click="delBase(item.id)">删除</span>
  69. </div>
  70. </el-card>
  71. </el-col>
  72. </el-row>
  73. <!-- 暂无数据 -->
  74. <div class="expertDiagnosis_referral_units_not" v-if="baseList.length <= 0">
  75. <img
  76. src="@/assets/images/expertDiagnosis/zanwu.png"
  77. alt
  78. class="expertDiagnosis_referral_units_notImg"
  79. />
  80. </div>
  81. <el-pagination
  82. v-if="baseList.length > 0"
  83. background
  84. :page-size="6"
  85. layout="prev, pager, next"
  86. :current-page="page"
  87. :total="totalNum"
  88. @current-change="changePage"
  89. ></el-pagination>
  90. <!-- 基地新增/修改 -->
  91. <el-dialog
  92. :title="title"
  93. :visible.sync="baseAddVisible"
  94. width="30%"
  95. @close="addBaseDialogClosed"
  96. >
  97. <el-form
  98. ref="addBaseFormRef"
  99. :model="addBaseInfo"
  100. label-width="90px"
  101. :rules="addUserFormRules"
  102. >
  103. <el-form-item label="基地名称 : " prop="baseName">
  104. <el-input v-model="addBaseInfo.baseName"></el-input>
  105. </el-form-item>
  106. <el-form-item label="基地图片 : " prop="imgSrc">
  107. <el-upload
  108. class="avatar-uploader"
  109. action
  110. :auto-upload="false"
  111. :show-file-list="false"
  112. :on-change="changeUpload"
  113. >
  114. <img
  115. v-if="addBaseInfo.imgSrc"
  116. :src="$host + addBaseInfo.imgSrc"
  117. class="avatar"
  118. />
  119. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  120. </el-upload>
  121. </el-form-item>
  122. <el-form-item label="负责人 : " prop="principal">
  123. <el-input v-model="addBaseInfo.principal"></el-input>
  124. </el-form-item>
  125. <el-form-item label="联系电话 : " prop="phone">
  126. <el-input v-model="addBaseInfo.phone"></el-input>
  127. </el-form-item>
  128. <el-form-item label="面积(亩) : " prop="area">
  129. <el-input type="number" min="0" v-model="addBaseInfo.area"></el-input>
  130. </el-form-item>
  131. <el-form-item label="绑定设备 : " prop="bindEquip">
  132. <el-cascader
  133. :key="addBaseInfo.cascaderKey"
  134. style="width: 100%"
  135. :options="addBaseInfo.cascaderEquipArr"
  136. v-model="addBaseInfo.bindEquip"
  137. :props="{
  138. multiple: true,
  139. label: 'type_name',
  140. value: 'type_name',
  141. multiple: true
  142. }"
  143. clearable
  144. filterable
  145. ></el-cascader>
  146. </el-form-item>
  147. <el-form-item label="基地描述 : " prop="baseIntro">
  148. <el-input type="textarea" v-model="addBaseInfo.baseIntro"></el-input>
  149. </el-form-item>
  150. <el-form-item label="基地地址 : " prop="address" class="addressItem">
  151. <el-input
  152. type="text"
  153. v-model="addBaseInfo.address"
  154. disabled
  155. placeholder="请定位"
  156. ></el-input>
  157. <el-button type="primary" size="mini" @click="goLocation"
  158. >基地定位</el-button
  159. >
  160. </el-form-item>
  161. </el-form>
  162. <span slot="footer" class="dialog-footer">
  163. <el-button @click="baseAddVisible = false">取 消</el-button>
  164. <el-button type="primary" @click="addBaseSubm">确认</el-button>
  165. </span>
  166. </el-dialog>
  167. <!-- vueCropper 剪裁图片实现-->
  168. <el-dialog title="图片剪裁" :visible.sync="cropperVisible" append-to-body>
  169. <div class="cropper-content">
  170. <div style="width: 100%; height: 500px">
  171. <vueCropper
  172. ref="cropper"
  173. :img="option.img"
  174. autoCrop
  175. centerBox
  176. fixed
  177. :fixedNumber="option.fixedNumber"
  178. :outputSize="option.size"
  179. :outputType="option.outputType"
  180. ></vueCropper>
  181. </div>
  182. </div>
  183. <div slot="footer" class="dialog-footer">
  184. <el-button @click="cropperVisible = false">取 消</el-button>
  185. <el-button type="primary" @click="finish">确认</el-button>
  186. </div>
  187. </el-dialog>
  188. <!-- 添加定位弹框 -->
  189. <el-dialog
  190. class="map_dialog"
  191. title="添加定位"
  192. v-if="addLocationDialogVisible"
  193. :visible.sync="addLocationDialogVisible"
  194. width="800px"
  195. @closed="addLocationDialogClosed"
  196. >
  197. <el-form
  198. :inline="true"
  199. :model="locationForm"
  200. class="demo-form-inline"
  201. size="mini"
  202. >
  203. <el-form-item label="经度">
  204. <el-input v-model="locationForm.lng"></el-input>
  205. </el-form-item>
  206. <el-form-item label="维度">
  207. <el-input v-model="locationForm.lat"></el-input>
  208. </el-form-item>
  209. <el-form-item>
  210. <el-button type="primary" size="mini" @click="locationSearch"
  211. >定位</el-button
  212. >
  213. </el-form-item>
  214. <el-form-item>
  215. <el-input
  216. @change="addrChange()"
  217. clearable
  218. placeholder="请输入地区检索"
  219. v-model="addr"
  220. >
  221. <i slot="suffix" class="el-input__icon el-icon-search"></i>
  222. </el-input>
  223. </el-form-item>
  224. </el-form>
  225. <baidu-map
  226. class="Bmap"
  227. :center="center"
  228. :zoom="mapZoom"
  229. :scroll-wheel-zoom="true"
  230. @ready="handlerBMap"
  231. @click="locationPoint"
  232. ></baidu-map>
  233. <span slot="footer" class="dialog-footer">
  234. <el-button @click="addLocationDialogVisible = false">取 消</el-button>
  235. <el-button type="primary" @click="addLocationSubm">确 定</el-button>
  236. </span>
  237. </el-dialog>
  238. </div>
  239. </template>
  240. <script>
  241. import SearchBar from '@/components/SearchBar'
  242. export default {
  243. data() {
  244. var checkMobile = (rule, value, callback) => {
  245. const regMobile = /^1\d{10}$/
  246. if (regMobile.test(value)) {
  247. callback()
  248. } else {
  249. // 返回一个错误提示
  250. callback(new Error('请输入合法的手机号码'))
  251. }
  252. }
  253. return {
  254. dialogTxt: '',
  255. search: '',
  256. page: 1,
  257. flag: null, //编辑基地提交为1,添加基地为2
  258. totalNum: null,
  259. baseAddVisible: false,
  260. cropperVisible: false,
  261. title: '',
  262. addBaseInfo: {
  263. baseName: '',
  264. imgSrc: '',
  265. principal: '',
  266. phone: '',
  267. area: 0,
  268. cascaderKey: 0, //绑定key值,key值改变,cascader就重新渲染
  269. cascaderEquipArr: [],
  270. bindEquip: [],
  271. baseIntro: '',
  272. address: '',
  273. lng: '',
  274. lat: '',
  275. base_id: ''
  276. },
  277. addUserFormRules: {
  278. baseName: [
  279. { required: true, message: '请输入基地名称', trigger: 'blur' }
  280. ],
  281. imgSrc: [
  282. { required: true, message: '请选择基地图片', trigger: 'change' }
  283. ],
  284. principal: [
  285. { required: true, message: '请输入负责人', trigger: 'blur' }
  286. ],
  287. phone: [
  288. { required: true, trigger: 'blur', message: '手机号不能为空' },
  289. { required: true, validator: checkMobile, trigger: 'blur' }
  290. ],
  291. cascaderEquipArr: [
  292. { required: true, message: '请选择基地设备', trigger: 'change' }
  293. ],
  294. address: [
  295. { required: true, message: '请选择基地地址', trigger: 'change' }
  296. ]
  297. },
  298. // 裁剪组件的基础配置option
  299. option: {
  300. img:
  301. 'https://qn-qn-kibey-../../assets-cdn.app-echo.com/goodboy-weixin.PNG', // 裁剪图片的地址
  302. info: true, // 裁剪框的大小信息
  303. outputSize: 0.8, // 裁剪生成图片的质量
  304. outputType: 'jpeg', // 裁剪生成图片的格式
  305. // canScale: false, // 图片是否允许滚轮缩放
  306. // autoCrop: true, // 是否默认生成截图框
  307. // autoCropWidth: 300, // 默认生成截图框宽度
  308. // autoCropHeight: 200, // 默认生成截图框高度
  309. // fixedBox: true, // 固定截图框大小 不允许改变
  310. fixed: true, // 是否开启截图框宽高固定比例
  311. fixedNumber: [10, 7], // 截图框的宽高比例
  312. full: true, // 是否输出原图比例的截图
  313. canMoveBox: false, // 截图框能否拖动
  314. original: false, // 上传图片按照原始比例渲染
  315. centerBox: false, // 截图框是否被限制在图片里面
  316. infoTrue: true // true 为展示真实输出图片宽高 false 展示看到的截图框宽高
  317. },
  318. baseList: [],
  319. //添加基地定位
  320. addLocationDialogVisible: false,
  321. addr: '', //地图检索的地址
  322. locationForm: {
  323. lng: '',
  324. lat: ''
  325. },
  326. center: { lng: 113.271429, lat: 23.135336 },
  327. mapZoom: 6
  328. }
  329. },
  330. components: {
  331. SearchBar
  332. },
  333. created() {
  334. this.getBaseList()
  335. },
  336. methods: {
  337. getBaseList() {
  338. this.$axios({
  339. method: 'POST',
  340. url: '/api/api_gateway?method=base.bases.base_list',
  341. data: this.qs.stringify({
  342. ret: 'list',
  343. page_size: 6,
  344. search: this.search,
  345. page: this.page
  346. })
  347. }).then((res) => {
  348. if (res.data.message == '') {
  349. let data = res.data.data.data
  350. let _this = this
  351. this.baseList = []
  352. getList(0, data.length)
  353. function getList(j, length) {
  354. let lat = data[j].lat
  355. let lng = data[j].lng
  356. _this
  357. .$jsonp(
  358. `http://api.map.baidu.com/reverse_geocoding/v3/?renderReverse&output=json&coordtype=wgs84ll`,
  359. {
  360. ak: 'nroAiX0Lf6ppNEGt2dBLtDkOldGCPFwF',
  361. location: `${lat},${lng}`
  362. }
  363. )
  364. .then((res) => {
  365. let addressComponent = res.result && res.result.addressComponent
  366. if (addressComponent) {
  367. data[j].address =
  368. addressComponent.province +
  369. addressComponent.city +
  370. addressComponent.district
  371. } else {
  372. data[j].address = ''
  373. }
  374. _this.baseList.push(data[j])
  375. if (++j < length) {
  376. getList(j, length)
  377. }
  378. })
  379. }
  380. this.totalNum = res.data.data.page_size
  381. }
  382. })
  383. },
  384. searchBase() {
  385. this.page = 1
  386. this.getBaseList()
  387. },
  388. //获取所有未绑定设备+自己已绑定的设备
  389. getEquipList(id) {
  390. this.$axios({
  391. method: 'POST',
  392. url: '/api/api_gateway?method=base.bases.base_equip',
  393. data: this.qs.stringify({
  394. base_id: id
  395. })
  396. }).then((res) => {
  397. let data = res.data.data.data
  398. this.addBaseInfo.cascaderEquipArr = data
  399. })
  400. },
  401. changePage(val) {
  402. this.page = val
  403. this.getBaseList()
  404. },
  405. addBaseDialogClosed() {
  406. this.$refs.addBaseFormRef.resetFields()
  407. this.addBaseInfo.cascaderKey++
  408. this.addBaseInfo.baseName = ''
  409. this.addBaseInfo.principal = ''
  410. this.addBaseInfo.phone = ''
  411. this.addBaseInfo.area = ''
  412. this.addBaseInfo.imgSrc = ''
  413. this.addBaseInfo.cascaderEquipArr = []
  414. this.addBaseInfo.bindEquip = []
  415. this.addBaseInfo.baseIntro = ''
  416. this.addBaseInfo.address = ''
  417. this.addBaseInfo.lat = ''
  418. this.addBaseInfo.lng = ''
  419. },
  420. //添加/删除基地
  421. addBaseSubm() {
  422. this.$refs.addBaseFormRef.validate((valid) => {
  423. if (valid) {
  424. let arr = this.addBaseInfo.bindEquip.map((item) => {
  425. return item[1]
  426. })
  427. if (this.flag == 1) {
  428. let ret = 'modify'
  429. //编辑
  430. this.baseFun(ret, arr, '修改成功')
  431. } else if (this.flag == 2) {
  432. let ret = 'add'
  433. //添加
  434. this.baseFun(ret, arr, '添加成功')
  435. }
  436. } else {
  437. return false
  438. }
  439. })
  440. // this.getEquipList()
  441. },
  442. baseFun(ret, arr, txt) {
  443. this.$axios({
  444. method: 'POST',
  445. url: '/api/api_gateway?method=base.bases.base_list',
  446. data: this.qs.stringify({
  447. ret: ret,
  448. base_id: this.addBaseInfo.base_id,
  449. base_name: this.addBaseInfo.baseName,
  450. base_charge: this.addBaseInfo.principal,
  451. base_phone: this.addBaseInfo.phone,
  452. base_area: this.addBaseInfo.area,
  453. base_img: this.addBaseInfo.imgSrc, //去掉/api/
  454. base_equip: arr.join('#'),
  455. base_describe: this.addBaseInfo.baseIntro,
  456. lng: this.addBaseInfo.lng,
  457. lat: this.addBaseInfo.lat
  458. })
  459. }).then((res) => {
  460. if (res.data.message == '') {
  461. this.baseAddVisible = false
  462. this.getBaseList()
  463. this.$message.success(txt)
  464. }
  465. })
  466. },
  467. // 上传按钮 限制图片大小
  468. changeUpload(file, fileList) {
  469. const isLt5M = file.size / 1024 / 1024 < 5
  470. if (!isLt5M) {
  471. this.$message.error('上传文件大小不能超过 5MB!')
  472. return false
  473. }
  474. // 上传成功后将图片地址赋值给裁剪框显示图片
  475. this.$nextTick(() => {
  476. this.option.img = URL.createObjectURL(file.raw)
  477. this.cropperVisible = true
  478. })
  479. },
  480. // 点击裁剪,这一步是可以拿到处理后的地址
  481. finish() {
  482. // 获取截图的base64 数据
  483. this.$refs.cropper.getCropBlob((data) => {
  484. var form = new FormData()
  485. let resFile = this.blobToFile(data, 'filename.jpg')
  486. form.append('img_file', resFile)
  487. this.cropperVisible = false
  488. this.$axios({
  489. method: 'POST',
  490. url: '/api/api_gateway?method=base.bases.base_photo',
  491. data: form
  492. }).then((res) => {
  493. if (res.data.message == '') {
  494. this.addBaseInfo.imgSrc = res.data.data.src
  495. }
  496. })
  497. })
  498. },
  499. //转成blob
  500. blobToFile(Blob, fileName) {
  501. Blob.lastModifiedDate = new Date()
  502. Blob.name = fileName
  503. return Blob
  504. },
  505. dataURLtoFile(dataurl, filename) {
  506. //将base64转换为文件
  507. var arr = dataurl.split(','),
  508. mime = arr[0].match(/:(.*?);/)[1],
  509. bstr = atob(arr[1]),
  510. n = bstr.length,
  511. u8arr = new Uint8Array(n)
  512. while (n--) {
  513. u8arr[n] = bstr.charCodeAt(n)
  514. }
  515. if (!!window.ActiveXObject || 'ActiveXObject' in window) {
  516. // ie浏览器
  517. return new Blob([u8arr.buffer], { type: mime })
  518. } else {
  519. //主流浏览器
  520. return new File([u8arr], filename, { type: mime })
  521. }
  522. },
  523. goLocation() {
  524. this.addLocationDialogVisible = true
  525. },
  526. addrChange() {
  527. let local = new this.BMap.LocalSearch(this.map, {
  528. renderOptions: { map: this.map, panel: 'r-result' }
  529. })
  530. local.search(this.addr)
  531. },
  532. addLocationDialogClosed() {},
  533. locationSearch() {},
  534. handlerBMap({ BMap, map }) {
  535. this.BMap = BMap
  536. this.map = map
  537. },
  538. //在地图中点击定位
  539. locationPoint(e) {
  540. let { point } = e
  541. this.locationForm = point
  542. this.map.clearOverlays()
  543. this.map.addOverlay(new BMap.Marker(point))
  544. },
  545. addLocationSubm() {
  546. let { lng, lat } = this.locationForm
  547. this.$jsonp(
  548. `http://api.map.baidu.com/reverse_geocoding/v3/?renderReverse&output=json&coordtype=wgs84ll`,
  549. {
  550. ak: 'nroAiX0Lf6ppNEGt2dBLtDkOldGCPFwF',
  551. location: `${lat},${lng}`
  552. }
  553. ).then((res) => {
  554. let addressComponent = res.result && res.result.addressComponent
  555. if (addressComponent) {
  556. this.addBaseInfo.address =
  557. addressComponent.province +
  558. addressComponent.city +
  559. addressComponent.district
  560. } else {
  561. this.addBaseInfo.address = ''
  562. }
  563. this.addBaseInfo.lng = lng
  564. this.addBaseInfo.lat = lat
  565. this.addLocationDialogVisible = false //关闭弹框
  566. })
  567. },
  568. editBase(id, title,address) {
  569. this.title = title
  570. this.flag = 1
  571. this.addBaseInfo.base_id = id
  572. this.$axios({
  573. method: 'POST',
  574. url: '/api/api_gateway?method=base.bases.base_list',
  575. data: this.qs.stringify({
  576. ret: 'details',
  577. base_id: id
  578. })
  579. }).then((res) => {
  580. let item = res.data.data[0]
  581. this.addBaseInfo.baseName = item.base_name
  582. this.addBaseInfo.principal = item.base_charge
  583. this.addBaseInfo.phone = item.base_phone
  584. this.addBaseInfo.area = Number(item.base_area)
  585. this.addBaseInfo.imgSrc = item.base_img
  586. this.addBaseInfo.bindEquip = item.base_equip
  587. this.addBaseInfo.baseIntro = item.base_describe
  588. this.addBaseInfo.address = address
  589. this.addBaseInfo.lat = item.lat
  590. this.addBaseInfo.lng = item.lng
  591. this.getEquipList(id) //获取所有未绑定和已绑定的设备
  592. this.dialogTxt = '编辑基地'
  593. this.baseAddVisible = true
  594. })
  595. },
  596. addBase(title) {
  597. this.title = title
  598. this.flag = 2
  599. this.getEquipList('')
  600. this.baseAddVisible = true
  601. this.dialogTxt = '新建基地'
  602. },
  603. delBase(id) {
  604. console.log(id)
  605. this.$confirm(`确定删除基地么?`, '提示', {
  606. confirmButtonText: '确定',
  607. cancelButtonText: '取消',
  608. type: 'warning'
  609. })
  610. .then(() => {
  611. this.$axios({
  612. method: 'POST',
  613. url: '/api/api_gateway?method=base.bases.base_list',
  614. data: this.qs.stringify({
  615. ret: 'del',
  616. base_id: id
  617. })
  618. }).then((res) => {
  619. this.getBaseList()
  620. this.$message({
  621. type: 'success',
  622. message: '删除成功!'
  623. })
  624. })
  625. })
  626. .catch(() => {
  627. this.$message({
  628. type: 'info',
  629. message: '已取消删除'
  630. })
  631. })
  632. },
  633. detailBase(id) {
  634. this.$router.push({ path: '/index/baseShow', query: { id: id } })
  635. }
  636. }
  637. }
  638. </script>
  639. <style lang="less" scoped>
  640. .boxCard {
  641. position: relative;
  642. .baseCard {
  643. display: flex;
  644. .baseImg {
  645. flex: 1;
  646. overflow: hidden;
  647. height: 160px;
  648. img {
  649. width: 100%;
  650. height: auto;
  651. }
  652. }
  653. .addBaseInfo {
  654. flex: 1;
  655. padding-left: 15px;
  656. h2 {
  657. font-size: 16px;
  658. margin-bottom: 10px;
  659. white-space: nowrap;
  660. overflow: hidden;
  661. text-overflow: ellipsis;
  662. width: 80%;
  663. }
  664. .addBaseInfoDetails {
  665. display: flex;
  666. padding-bottom: 10px;
  667. color: #525252;
  668. line-height: 18px;
  669. font-size: 14px;
  670. i {
  671. font-size: 14px;
  672. }
  673. .caption {
  674. margin-left: 5px;
  675. width: 70px;
  676. flex-grow: 0;
  677. flex-shrink: 0;
  678. text-align: left;
  679. }
  680. .addr {
  681. flex-grow: 1;
  682. text-overflow: -o-ellipsis-lastline;
  683. overflow: hidden;
  684. text-overflow: ellipsis;
  685. display: -webkit-box;
  686. -webkit-line-clamp: 2;
  687. line-clamp: 2;
  688. -webkit-box-orient: vertical;
  689. min-height: 40px;
  690. }
  691. }
  692. }
  693. }
  694. .baseEditBox {
  695. position: absolute;
  696. right: 20px;
  697. top: 0;
  698. cursor: pointer;
  699. img {
  700. width: 35px;
  701. }
  702. }
  703. .baseBtn {
  704. position: absolute;
  705. right: 20px;
  706. bottom: 10px;
  707. line-height: 22px;
  708. span {
  709. display: inline-block;
  710. width: 60px;
  711. border-radius: 20px;
  712. color: #666;
  713. text-align: center;
  714. cursor: pointer;
  715. }
  716. .delBtn {
  717. background: #ddd;
  718. }
  719. .detailBtn {
  720. background: #14a478;
  721. color: #fff;
  722. margin-right: 10px;
  723. }
  724. }
  725. }
  726. .avatar-uploader {
  727. /deep/.el-upload {
  728. .el-upload-dragge {
  729. width: 100%;
  730. height: 100%;
  731. }
  732. }
  733. }
  734. .col-item {
  735. height: 223px;
  736. }
  737. .cropper {
  738. width: auto;
  739. height: 300px;
  740. }
  741. .addressItem {
  742. /deep/.el-form-item__content {
  743. display: flex;
  744. .el-input {
  745. flex: 1;
  746. margin-right: 15px;
  747. }
  748. }
  749. }
  750. .Bmap {
  751. width: 100%;
  752. height: 400px;
  753. }
  754. // 暂无数据
  755. .expertDiagnosis_referral_units_not {
  756. width: 272px;
  757. margin: 0 auto;
  758. }
  759. </style>