UserManger.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. <template>
  2. <div>
  3. <el-breadcrumb separator-class="el-icon-arrow-right">
  4. <el-breadcrumb-item>用户列表</el-breadcrumb-item>
  5. </el-breadcrumb>
  6. <div class="search-box">
  7. <div class="filter-box">
  8. <el-input
  9. size="small"
  10. placeholder="请输入用户名"
  11. @change="checkList()"
  12. clearable
  13. v-model="username"
  14. >
  15. <i slot="suffix" class="el-input__icon el-icon-search"></i>
  16. </el-input>
  17. </div>
  18. <el-button v-if="have_type==0||staff==1" type="primary" size="mini" ><a style="color:#fff" href="systemmanage_user_add">添加新用户</a></el-button >
  19. </div>
  20. <el-row :gutter="10">
  21. <el-col
  22. :xs="24"
  23. :sm="24"
  24. :md="12"
  25. :lg="6"
  26. :xl="6"
  27. v-for="item in userList"
  28. :key="item.uid"
  29. >
  30. <el-card class="box-card pad0">
  31. <div class="img-box">
  32. <img src="@/assets/images/systemManger/user.png" />
  33. <p>{{ item.username }}</p>
  34. </div>
  35. <div class="detail">
  36. <p>
  37. 模块类型
  38. <span v-if="item.user_type == '1' ">农业植保监测系统</span>
  39. <span v-if="item.user_type == '2' ">农业气象监测系统</span>
  40. <span v-if="item.user_type == '3' ">环境灾害预警系统</span>
  41. <span v-if="item.user_type == '4' ">农产品溯源系统</span>
  42. <span v-if="item.user_type == '5' ">可视农业应用系统</span>
  43. <span v-if="item.user_type == '6' ">苗情监测应用系统</span>
  44. </p>
  45. <p>
  46. 用户类型
  47. <span v-if="item.user_have_type == '1' ">普通用户</span>
  48. <span v-if="item.user_have_type == '0' ">管理员</span>
  49. </p>
  50. <p>
  51. 站点名称
  52. <span>{{ item.site || '无' }}</span>
  53. </p>
  54. <p>
  55. 站点地址
  56. <span>{{ item.user_pro }} {{ item.user_city }} {{ item.user_area }}</span>
  57. </p>
  58. <p>
  59. 标题
  60. <span>{{ item.user_header || '--' }}</span>
  61. </p>
  62. <p>
  63. logo
  64. <span><img style="width: 46px;height: 32px;" :src="item.logo" alt=""></span>
  65. </p>
  66. </div>
  67. <div class="btn">
  68. <el-button type="success" @click="edit(item)" plain>用户编辑</el-button>
  69. <el-button type="success" @click="resetPassword(item.id, item.username)" plain>重置密码</el-button>
  70. <!-- <a @click="edit(item)">
  71. <i class="iconfont icon-iconfontedit"></i>编辑
  72. </a>
  73. <a @click="resetPassword(item.uid, item.username)">
  74. <i class="iconfont icon-mima"></i>密码
  75. </a> -->
  76. </div>
  77. </el-card>
  78. </el-col>
  79. </el-row>
  80. <!-- 暂无数据 -->
  81. <div class="expertDiagnosis_referral_units_not" v-if="userList.length <= 0">
  82. <img
  83. src="@/assets/images/zanwu.png"
  84. alt
  85. class="expertDiagnosis_referral_units_notImg"
  86. />
  87. </div>
  88. <el-pagination
  89. v-if="userList.length > 0"
  90. background
  91. :page-size="8"
  92. layout="prev, pager, next"
  93. :current-page="page"
  94. :total="totalNum"
  95. @current-change="changePage"
  96. ></el-pagination>
  97. <!-- 重置密码 -->
  98. <el-dialog
  99. title="重置密码"
  100. :visible.sync="resetPassDialogVisible"
  101. width="30%"
  102. @close="resetPassDialogClosed"
  103. >
  104. <el-form
  105. ref="resetPassFormRef"
  106. :model="resetPassForm"
  107. label-width="110px"
  108. :rules="resetPassFormRules"
  109. >
  110. <el-form-item label="用户名 : " prop="username">
  111. <el-input
  112. type="text"
  113. disabled
  114. v-model="resetPassForm.username"
  115. ></el-input>
  116. </el-form-item>
  117. <el-form-item v-if="userType != 1" label="原始密码 : " prop="oldPass">
  118. <el-input type="password" v-model="resetPassForm.oldPass"></el-input>
  119. </el-form-item>
  120. <el-form-item label="新密码 : " prop="pass">
  121. <el-input type="password" v-model="resetPassForm.pass"></el-input>
  122. </el-form-item>
  123. <el-form-item label="确认新密码 : " prop="checkPass">
  124. <el-input
  125. type="password"
  126. v-model="resetPassForm.checkPass"
  127. ></el-input>
  128. </el-form-item>
  129. </el-form>
  130. <span slot="footer" class="dialog-footer">
  131. <el-button @click="resetPassDialogVisible = false">取 消</el-button>
  132. <el-button type="primary" @click="resetPassSubm">确认</el-button>
  133. </span>
  134. </el-dialog>
  135. <!-- 用户编辑 -->
  136. <el-dialog
  137. title="用户信息编辑"
  138. :visible.sync="editUserDialogVisible"
  139. width="500px"
  140. @close="editUserDialogClosed"
  141. >
  142. <el-form
  143. ref="editUserFormRef"
  144. :model="editUserForm"
  145. label-width="80px"
  146. >
  147. <el-form-item label="用户名 : ">
  148. <el-input v-model="editUserForm.username" disabled></el-input>
  149. </el-form-item>
  150. <el-form-item label="标题 : " >
  151. <el-input maxlength="11" v-model="editUserForm.user_header"></el-input>
  152. </el-form-item>
  153. <el-form-item label="logo : " >
  154. <el-upload
  155. class="avatar-uploader"
  156. action
  157. :auto-upload="false"
  158. :show-file-list="false"
  159. :on-change="changeUpload"
  160. >
  161. <img v-if="editUserForm.logo" :src="editUserForm.logo" class="avatar" />
  162. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  163. </el-upload>
  164. </el-form-item>
  165. <el-form-item label="站点名称 : " >
  166. <el-input maxlength="16" v-model="editUserForm.site"></el-input>
  167. </el-form-item>
  168. <el-form-item label="站点位置 : ">
  169. <div class="block">
  170. <el-cascader
  171. placeholder="搜索:河南"
  172. v-model="cityValue"
  173. :options="cityData"
  174. :props="props"
  175. @change="handleChange"
  176. filterable
  177. >
  178. </el-cascader>
  179. </div>
  180. </el-form-item>
  181. </el-form>
  182. <span slot="footer" class="dialog-footer">
  183. <el-button @click="editUserDialogVisible = false">取 消</el-button>
  184. <el-button type="primary" @click="editUserSubm">确认</el-button>
  185. </span>
  186. </el-dialog>
  187. <!-- vueCropper 剪裁图片实现-->
  188. <el-dialog title="图片剪裁" :visible.sync="cropperVisible" append-to-body>
  189. <div class="cropper-content">
  190. <div style="width: 100%; height: 500px">
  191. <vueCropper
  192. ref="cropper"
  193. :img="photo.img"
  194. autoCrop
  195. centerBox
  196. fixed
  197. :fixedNumber="photo.fixedNumber"
  198. :outputSize="photo.size"
  199. :outputType="photo.outputType"
  200. ></vueCropper>
  201. </div>
  202. </div>
  203. <div slot="footer" class="dialog-footer">
  204. <el-button @click="cropperVisible = false">取 消</el-button>
  205. <el-button type="primary" @click="finish">确认</el-button>
  206. </div>
  207. </el-dialog>
  208. </div>
  209. </template>
  210. <script>
  211. import cityData from './citydata.js'
  212. export default {
  213. inject: ['reload'],
  214. data() {
  215. var checkMobile = (rule, value, callback) => {
  216. const regMobile = /^1\d{10}$/
  217. if (regMobile.test(value)) {
  218. callback()
  219. } else {
  220. // 返回一个错误提示
  221. callback(new Error('请输入合法的手机号码'))
  222. }
  223. }
  224. var validatePass = (rule, value, callback) => {
  225. if (value === '') {
  226. callback(new Error('请输入新密码'))
  227. } else {
  228. if (this.resetPassForm.checkPass !== '') {
  229. this.$refs.resetPassFormRef.validateField('checkPass')
  230. }
  231. callback()
  232. }
  233. }
  234. var validatePass2 = (rule, value, callback) => {
  235. if (value === '') {
  236. callback(new Error('请再次输入密码'))
  237. } else if (value !== this.resetPassForm.pass) {
  238. callback(new Error('两次输入密码不一致!'))
  239. } else {
  240. callback()
  241. }
  242. }
  243. return {
  244. zanwu:'/images/expertDiagnosis/zanwu.png',
  245. role: '', //筛选项 角色类型
  246. userTypeCheck: '', //筛选项 用户类型
  247. username: '', //筛选项
  248. roleList: [],
  249. page: 1,
  250. userList: [],
  251. userGroupList: [],
  252. totalNum: 0,
  253. //省市县
  254. areaList: [],
  255. resetPassDialogVisible: false,
  256. addUserDialogVisible: false,
  257. editUserDialogVisible: false,
  258. resetPassForm: {
  259. username: '',
  260. uid: '',
  261. oldPass: '',
  262. pass: '',
  263. checkPass: ''
  264. },
  265. addUserForm: {
  266. username: '',
  267. mobile: '',
  268. pass: '',
  269. role_id: '',
  270. user_type: '',
  271. pcd: '',
  272. user_area: '',
  273. cs_user:false,//1为普通用户
  274. user_group_id:'' //用户组id
  275. },
  276. cropperVisible: false,
  277. // 裁剪组件的基础配置option
  278. photo: {
  279. img: '', // 裁剪图片的地址
  280. info: true, // 裁剪框的大小信息
  281. outputSize: 0.8, // 裁剪生成图片的质量
  282. outputType: 'jpeg', // 裁剪生成图片的格式
  283. // canScale: false, // 图片是否允许滚轮缩放
  284. // autoCrop: true, // 是否默认生成截图框
  285. // autoCropWidth: 300, // 默认生成截图框宽度
  286. // autoCropHeight: 200, // 默认生成截图框高度
  287. // fixedBox: true, // 固定截图框大小 不允许改变
  288. fixed: true, // 是否开启截图框宽高固定比例
  289. fixedNumber: [136, 32], // 截图框的宽高比例
  290. full: true, // 是否输出原图比例的截图
  291. canMoveBox: false, // 截图框能否拖动
  292. original: false, // 上传图片按照原始比例渲染
  293. centerBox: false, // 截图框是否被限制在图片里面
  294. infoTrue: true // true 为展示真实输出图片宽高 false 展示看到的截图框宽高
  295. },
  296. cityData,
  297. cityValue: [],
  298. props: {
  299. expandTrigger: 'hover',
  300. value: 'value'
  301. },
  302. editUserForm: {},
  303. //控制省/市/区显示
  304. editIsShow: false,
  305. //添加用户规则
  306. addUserFormRules: {
  307. username: [
  308. { required: true, message: '请填写用户名', trigger: 'blur' }
  309. ],
  310. mobile: [
  311. { required: true, trigger: 'blur', message: '手机号不能为空' },
  312. { validator: checkMobile, trigger: 'blur' }
  313. ],
  314. pass: [{ required: true, message: '请填写用户密码', trigger: 'blur' }]
  315. },
  316. //重置密码格规则
  317. resetPassFormRules: {
  318. oldPass: [{ required: true, message: '请填原始密码', trigger: 'blur' }],
  319. pass: [
  320. { validator: validatePass, trigger: 'blur' },
  321. { required: true, message: '请填写新密码', trigger: 'blur' }
  322. ],
  323. checkPass: [
  324. { validator: validatePass2, trigger: 'blur' },
  325. { required: true, message: '请确认新密码', trigger: 'blur' }
  326. ]
  327. },
  328. have_type:'',
  329. staff:'',
  330. }
  331. },
  332. computed: {
  333. //获取用户类型
  334. userType: function () {
  335. return window.sessionStorage.getItem('myuser_type')
  336. }
  337. },
  338. created() {
  339. },
  340. mounted() {
  341. this.getList()
  342. this.have_type = localStorage.getItem('have_type') // 0管理员 1用户
  343. this.staff = localStorage.getItem('staff') // 1是admin
  344. },
  345. methods: {
  346. getList() {
  347. this.$axios({
  348. method: 'POST',
  349. url: '/api/user_list',
  350. data: this.qs.stringify({
  351. typelist:1,
  352. page: this.page,
  353. uname: this.username
  354. })
  355. }).then((res) => {
  356. this.userList = res.data.userlist
  357. this.totalNum = res.data.nums
  358. })
  359. },
  360. getUserGroup() {
  361. this.$axios({
  362. method: 'POST',
  363. url: '/api/api_gateway?method=pest.warning_record.rolemanage_view',
  364. data: this.qs.stringify({
  365. add_role: 'all'
  366. })
  367. }).then((res) => {
  368. if (res.data.message == '') {
  369. this.userGroupList = res.data.data.data
  370. }
  371. })
  372. },
  373. recharge(id) {
  374. this.$confirm('是否向该用户充值一年费用?', '信息', {
  375. confirmButtonText: '确定',
  376. cancelButtonText: '取消',
  377. type: 'warning'
  378. })
  379. .then(() => {
  380. this.$axios({
  381. method: 'POST',
  382. url: '/api/api_gateway?method=user.login.user_add_package_time',
  383. data: this.qs.stringify({
  384. uid: id
  385. })
  386. }).then((res) => {
  387. if (res.data.message == '') {
  388. this.$message({
  389. type: 'success',
  390. message: '充值成功!'
  391. })
  392. this.getList()
  393. } else {
  394. this.$message({
  395. type: 'error',
  396. message: '充值失败!'
  397. })
  398. }
  399. })
  400. })
  401. .catch(() => {
  402. this.$message({
  403. type: 'info',
  404. message: '充值取消!'
  405. })
  406. })
  407. },
  408. // 编辑用户信息
  409. edit(role) {
  410. this.editUserForm = JSON.parse(JSON.stringify(role))
  411. this.editUserDialogVisible = true
  412. this.cityValue = [this.editUserForm.user_pro,this.editUserForm.user_city,this.editUserForm.user_area]
  413. },
  414. // 上传按钮 限制图片大小
  415. changeUpload(file, fileList) {
  416. const isLt4M = file.size / 1024 / 1024 < 4
  417. if (!isLt4M) {
  418. this.$message.error('上传文件大小不能超过 4MB!')
  419. return false
  420. }
  421. // 上传成功后将图片地址赋值给裁剪框显示图片
  422. this.$nextTick(() => {
  423. this.photo.img = URL.createObjectURL(file.raw)
  424. this.cropperVisible = true
  425. })
  426. },
  427. // 点击裁剪,这一步是可以拿到处理后的地址
  428. finish() {
  429. // 获取截图的base64 数据
  430. this.$refs.cropper.getCropBlob((data) => {
  431. var form = new FormData()
  432. let resFile = this.blobToFile(data, 'filename.jpg')
  433. form.append('img_file', resFile)
  434. this.cropperVisible = false
  435. this.$axios({
  436. method: 'POST',
  437. url: '/api/base_photo',
  438. data: form
  439. }).then((res) => {
  440. this.editUserForm.logo = res.data.src
  441. })
  442. })
  443. },
  444. //转成file
  445. blobToFile(Blob, fileName) {
  446. Blob.lastModifiedDate = new Date()
  447. Blob.name = fileName
  448. return Blob
  449. },
  450. handleChange(value) {
  451. console.log(value)
  452. console.log(this.cityValue)
  453. this.editUserForm.user_pro = value[0]
  454. this.editUserForm.user_city = value[1]
  455. if(value[2]){
  456. this.editUserForm.user_area = value[2]
  457. }else{
  458. this.editUserForm.user_city = value[0].substring(0,value[0].length-1)
  459. this.editUserForm.user_area = value[1]
  460. }
  461. },
  462. login(uid, username) {
  463. //一键登录
  464. this.$confirm('一键登录将登录此用户,是否继续?', '提示', {
  465. confirmButtonText: '确定',
  466. cancelButtonText: '取消',
  467. type: 'warning'
  468. })
  469. .then(() => {
  470. this.$axios({
  471. method: 'POST',
  472. url: '/api/api_gateway?method=user.login.auto_login',
  473. data: this.qs.stringify({
  474. uid
  475. })
  476. }).then((res) => {
  477. if (res.data.message == '') {
  478. this.$message({
  479. type: 'success',
  480. message: '操作成功!'
  481. })
  482. localStorage.setItem('username', username) //修改当前登录的用户名
  483. this.reload() //整体刷新
  484. this.$EventBus.$on('firstPage', (data) => {
  485. //默认显示菜单第一项
  486. this.$router.push(`${data}`)
  487. })
  488. } else {
  489. this.$message({
  490. type: 'warning',
  491. message: res.data.message
  492. })
  493. }
  494. })
  495. })
  496. .catch(() => {
  497. this.$message({
  498. type: 'info',
  499. message: '取消一键登录!'
  500. })
  501. })
  502. },
  503. //用户禁用
  504. forbidUse(id, state, txt) {
  505. this.$confirm(txt, '提示', {
  506. confirmButtonText: '确定',
  507. cancelButtonText: '取消',
  508. type: 'warning'
  509. })
  510. .then(() => {
  511. this.$axios({
  512. method: 'POST',
  513. url: '/api/api_gateway?method=user.login.users_statu_updata',
  514. data: this.qs.stringify({
  515. uid: id,
  516. state: state
  517. })
  518. }).then((res) => {
  519. if (res.data.message == '') {
  520. this.$message({
  521. type: 'success',
  522. message: '操作成功!'
  523. })
  524. this.getList()
  525. }
  526. })
  527. })
  528. .catch(() => {
  529. this.$message({
  530. type: 'info',
  531. message: '禁用取消!'
  532. })
  533. })
  534. },
  535. //密码重置
  536. resetPassword(id, name) {
  537. this.resetPassForm.id = id
  538. this.resetPassForm.username = name
  539. this.resetPassDialogVisible = true
  540. },
  541. resetPassSubm() {
  542. //暂时不用
  543. this.$refs.resetPassFormRef.validate((valid) => {
  544. if (!valid) return
  545. this.$axios({
  546. method: 'POST',
  547. url: '/api/systemmanage_user_list',
  548. data: this.qs.stringify({
  549. id: this.resetPassForm.id,
  550. req: 'resetpwd',
  551. userName:this.editUserForm.username,
  552. userpassWord: this.resetPassForm.pass,
  553. userRePassWord: this.resetPassForm.pass,
  554. })
  555. }).then((res) => {
  556. if (res.data == 0) {
  557. this.$message.success('修改密码成功')
  558. this.resetPassDialogVisible = false
  559. } else {
  560. this.$message.error(res.data.message)
  561. }
  562. })
  563. })
  564. },
  565. //监听重置密码对话框的关闭事件
  566. resetPassDialogClosed() {
  567. this.$refs.resetPassFormRef.resetFields()
  568. },
  569. changePage(value) {
  570. this.page = value
  571. this.getList()
  572. },
  573. //添加用户
  574. addUser() {
  575. this.addUserDialogVisible = true
  576. },
  577. //监听用户类型改变
  578. userTypeChange(val) {
  579. if (val == 3) {
  580. this.editIsShow = true
  581. } else {
  582. this.editIsShow = false
  583. }
  584. },
  585. //监听省/市/区
  586. pcdChange(val) {
  587. let addr_type = ''
  588. switch (val) {
  589. case '1':
  590. addr_type = 'province'
  591. break
  592. case '2':
  593. addr_type = 'city'
  594. break
  595. case '3':
  596. addr_type = 'district'
  597. break
  598. }
  599. this.$axios({
  600. method: 'POST',
  601. url: '/api/api_gateway?method=device.device_manage.device_addr',
  602. data: this.qs.stringify({
  603. addr_type
  604. })
  605. }).then((res) => {
  606. if (res.data.message == '') {
  607. this.areaList = res.data.data
  608. this.editUserForm.user_area = ''
  609. }
  610. })
  611. },
  612. //添加用户提交
  613. addUserSubm() {
  614. this.$refs.addUserFormRef.validate((valid) => {
  615. if (!valid) return
  616. let cs_user=this.addUserForm.cs_user?'1':''
  617. this.$axios({
  618. method: 'POST',
  619. url: '/api/api_gateway?method=user.login.regiest',
  620. data: this.qs.stringify({
  621. username: this.addUserForm.username,
  622. mobile: this.addUserForm.mobile,
  623. password: this.addUserForm.pass,
  624. role_id: this.addUserForm.role_id,
  625. user_type: this.addUserForm.user_type,
  626. pcd: this.addUserForm.pcd,
  627. user_area: this.addUserForm.user_area,
  628. user_group_id: this.addUserForm.user_group_id,
  629. cs_user
  630. })
  631. }).then((res) => {
  632. if (res.data.message == '') {
  633. this.$message.success('添加用户成功!')
  634. this.addUserDialogVisible = false
  635. this.getList()
  636. } else {
  637. this.$message.error(res.data.message)
  638. }
  639. })
  640. })
  641. },
  642. addUserDialogClosed() {
  643. this.$refs.addUserFormRef.resetFields()
  644. },
  645. //修改用户信息提交
  646. editUserSubm() {
  647. this.$refs.editUserFormRef.validate((valid) => {
  648. if (!valid) return
  649. this.$axios({
  650. method: 'POST',
  651. url: '/api/user_detail',
  652. data: this.qs.stringify(this.editUserForm)
  653. }).then((res) => {
  654. if (res.data == 1) {
  655. this.editUserDialogVisible = false
  656. var curr = localStorage.getItem('username');
  657. if(curr == this.editUserForm.username){
  658. window.location.reload()
  659. }else{
  660. this.getList()
  661. }
  662. }
  663. })
  664. })
  665. },
  666. editUserDialogClosed() {
  667. this.$refs.editUserFormRef.resetFields()
  668. this.areaList = [] //清空省/市/区
  669. this.editIsShow = false
  670. },
  671. checkList() {
  672. this.page = 1
  673. this.getList()
  674. }
  675. },
  676. filters: {
  677. formatUserType(value) {
  678. switch (value) {
  679. case 1:
  680. return '超级管理员'
  681. break
  682. case 2:
  683. return '经销商'
  684. break
  685. case 3:
  686. return '农林政府单位'
  687. break
  688. case 4:
  689. return '普通用户'
  690. break
  691. }
  692. }
  693. }
  694. }
  695. </script>
  696. <style lang='less' scoped>
  697. .search-box {
  698. display: flex;
  699. justify-content: space-between;
  700. margin-bottom: 10px;
  701. .filter-box > div {
  702. margin-right: 15px;
  703. }
  704. .el-input {
  705. width: 200px;
  706. }
  707. .el-date-editor--daterange {
  708. width: 222px;
  709. }
  710. }
  711. .el-card {
  712. .img-box {
  713. text-align: center;
  714. border-bottom: 1px solid #e1e1e1;
  715. padding: 15px 0;
  716. p {
  717. font-size: 14px;
  718. font-weight: 800;
  719. margin-top: 10px;
  720. }
  721. }
  722. .detail {
  723. border-bottom: 1px solid #e1e1e1;
  724. padding: 10px 0;
  725. padding: 0 20px;
  726. p {
  727. display: flex;
  728. justify-content: space-between;
  729. font-size: 13px;
  730. line-height: 34px;
  731. color: #666;
  732. padding: 0 0px;
  733. }
  734. }
  735. .btn {
  736. text-align: center;
  737. padding: 20px 10px;
  738. display: flex;
  739. justify-content: space-around;
  740. button {
  741. // flex: 1;
  742. margin: 0 8px;
  743. border: 1px solid #17bb89;
  744. color: #17bb89;
  745. // border-radius: 4px;
  746. // font-size: 12px;
  747. // padding: 5px 5px;
  748. background: #fff;
  749. cursor: pointer;
  750. i {
  751. font-size: 12px;
  752. margin-right: 2px;
  753. }
  754. }
  755. button:hover{
  756. background: #fff;
  757. border: 1px solid #47d9ad;
  758. color: #47d9ad;
  759. }
  760. }
  761. }
  762. // 暂无数据
  763. .expertDiagnosis_referral_units_not {
  764. width: 272px;
  765. margin: 0 auto;
  766. }
  767. </style>