You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

741 lines
22 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="box">
  3. <div style="width: 95%">
  4. <el-card style="border-radius: 15px;">
  5. <div class="publiccss">诊断</div>
  6. <div class="" style="display: flex">
  7. <div style="margin-left: 5px; margin-top: 15px; width: 15%">
  8. <el-tree
  9. :data="treedata"
  10. :props="defaultProps"
  11. @node-click="handleNodeClick"
  12. ></el-tree>
  13. </div>
  14. <div style="width: 85%">
  15. <el-table
  16. :data="tableData"
  17. style="width: 100%; margin-top: 20px; height: 500px"
  18. row-key="id"
  19. class="el-table__body-wrapper tbody"
  20. @row-click="rowick"
  21. :height="window.pageHeight < 600 ? 440 : window.pageHeight - 160"
  22. highlight-current-row
  23. >
  24. <el-table-column prop="id" label="编号" width="300">
  25. </el-table-column>
  26. <el-table-column prop="displayName" label="名称" width="">
  27. </el-table-column>
  28. <el-table-column prop="creatorName" label="创建者" width="">
  29. </el-table-column>
  30. <!-- <el-table-column prop="creationTime" label="创建时间" width="200">
  31. <template slot-scope="scope">
  32. {{ scope.row.creationTime | dateFormat }}
  33. </template>
  34. </el-table-column> -->
  35. <el-table-column prop="lastModifierName" label="修改者" width="">
  36. </el-table-column>
  37. <!-- <el-table-column
  38. prop="lastModificationTime"
  39. label="修改时间"
  40. width="200"
  41. >
  42. <template slot-scope="scope">
  43. {{ scope.row.lastModificationTime | dateFormat }}
  44. </template>
  45. </el-table-column> -->
  46. <el-table-column label="操作" width="">
  47. <template>
  48. <el-tag
  49. class="move"
  50. style="
  51. cursor: move;
  52. margin-left: 15px;
  53. background-color: rgb(245, 245, 245);
  54. border: none;
  55. "
  56. draggable="true"
  57. >
  58. <i
  59. class="el-icon-d-caret"
  60. style="
  61. width: 1rem;
  62. height: 1rem;
  63. color: rgb(113, 113, 113);
  64. "
  65. ></i>
  66. </el-tag>
  67. </template>
  68. </el-table-column>
  69. </el-table>
  70. </div>
  71. </div>
  72. <!-- -->
  73. <!-- <span style="margin-top: 10px; padding: 5px; margin-left: 28.5%"
  74. >项目类别</span
  75. >
  76. <el-select
  77. v-model="values"
  78. placeholder="请选择"
  79. @change="ischangs"
  80. style="margin-top: 5px"
  81. >
  82. <el-option
  83. v-for="item in projectid"
  84. :key="item.id"
  85. :label="item.displayName"
  86. :value="item.id"
  87. >
  88. </el-option>
  89. </el-select> -->
  90. <!-- <span style="margin-left: 10%; padding: 5px">搜索选择</span>
  91. <el-select
  92. filterable
  93. v-model="flitvalues"
  94. placeholder="请选择"
  95. style="margin-top: 5px"
  96. >
  97. <el-option
  98. v-for="item in filetelists"
  99. :key="item.id"
  100. :label="item.displayName"
  101. :value="item.id"
  102. >
  103. </el-option>
  104. </el-select> -->
  105. <!-- <div class="mainbox">
  106. <div class="mainleftbox">
  107. <div class="weixuan">未选项目</div>
  108. <div
  109. v-for="(item, index) in leftdata"
  110. :key="index"
  111. @click="clickPaixu(item, index)"
  112. @dblclick="shuanji(item, index)"
  113. :class="num === index ? 'activetext' : ''"
  114. style=""
  115. >
  116. <div>{{ item.displayName }}</div>
  117. </div>
  118. </div>
  119. <div class="Selectbutton">
  120. <div style="margin-top: 10px">
  121. <el-button @click="addall"
  122. >全添加<i class="el-icon-caret-right"></i
  123. ><i class="el-icon-caret-right"></i
  124. ></el-button>
  125. </div>
  126. <div style="margin-top: 10px">
  127. <el-button @click="addobj" style="width: 111px"
  128. >添加<i class="el-icon-caret-right"></i>
  129. </el-button>
  130. </div>
  131. <div style="margin-top: 10px">
  132. <el-button @click="removeright" style="width: 111px"
  133. >移去<i class="el-icon-caret-left"></i>
  134. </el-button>
  135. </div>
  136. <div style="margin-top: 10px">
  137. <el-button @click="allclear"
  138. >全移去<i class="el-icon-caret-left"></i
  139. ><i class="el-icon-caret-left"></i>
  140. </el-button>
  141. </div>
  142. </div>
  143. <div class="mainleftbox">
  144. <div class="weixuan">已选项目</div>
  145. <div
  146. v-for="(item, index) in rightdata"
  147. :key="index"
  148. @click="rightindex(item, index)"
  149. @dblclick="rightdelite(item, index)"
  150. :class="nums === index ? 'activetext' : ''"
  151. >
  152. <div>{{ item.displayName }}</div>
  153. </div>
  154. </div>
  155. </div> -->
  156. <!-- <div class="confirmcancellation">
  157. <el-button :disabled="isdislob" @click="Onsubmit">确定</el-button>
  158. <el-button :disabled="isdislob">取消</el-button>
  159. </div> -->
  160. </el-card>
  161. <el-dialog
  162. :title="title == 1 ? '新增' : '编辑'"
  163. :visible.sync="dialogVisible"
  164. width="75%"
  165. :close-on-click-modal="false"
  166. >
  167. <el-form ref="form" :model="form" label-width="100px" :rules="rules">
  168. <el-row>
  169. <el-col :span="8">
  170. <el-form-item label="名称" prop="displayName">
  171. <el-input
  172. ref="refinput"
  173. v-model="form.displayName"
  174. style="width: 100%"
  175. ></el-input> </el-form-item
  176. ></el-col>
  177. <el-col :span="8">
  178. <el-form-item label="项目类别" prop="itemTypeId">
  179. <el-select v-model="form.itemTypeId" placeholder="请选择">
  180. <el-option
  181. v-for="item in itemTypeId"
  182. :key="item.id"
  183. :label="item.displayName"
  184. :value="item.id"
  185. >
  186. </el-option> </el-select></el-form-item
  187. ></el-col>
  188. <el-col :span="8">
  189. <el-form-item label="是疾病" prop="isIll">
  190. <el-select v-model="form.isIll" placeholder="请选择">
  191. <el-option
  192. v-for="item in isIll"
  193. :key="item.value"
  194. :label="item.label"
  195. :value="item.value"
  196. >
  197. </el-option>
  198. </el-select> </el-form-item
  199. ></el-col>
  200. <el-col :span="8">
  201. <el-form-item label="建议名称" prop="suggestionName">
  202. <el-input
  203. v-model="form.suggestionName"
  204. style="width: 100%"
  205. ></el-input>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="8">
  209. <el-form-item label="是总检模板" prop="isSummaryTemplate">
  210. <el-select
  211. v-model="form.isSummaryTemplate"
  212. placeholder="请选择"
  213. >
  214. <el-option
  215. v-for="item in isSummaryTemplate"
  216. :key="item.value"
  217. :label="item.label"
  218. :value="item.value"
  219. >
  220. </el-option>
  221. </el-select>
  222. </el-form-item>
  223. </el-col>
  224. <el-col :span="8">
  225. <el-form-item label="适用性别" prop="forSexId">
  226. <el-select v-model="form.forSexId" placeholder="请选择">
  227. <el-option
  228. v-for="item in forSexId"
  229. :key="item.id"
  230. :label="item.displayName"
  231. :value="item.id"
  232. >
  233. </el-option>
  234. </el-select> </el-form-item
  235. ></el-col>
  236. <el-col :span="8">
  237. <el-form-item label="诊断级别" prop="diagnosisLevelId">
  238. <el-select v-model="form.diagnosisLevelId" placeholder="请选择">
  239. <el-option
  240. v-for="item in diagnosisLevelId"
  241. :key="item.id"
  242. :label="item.displayName"
  243. :value="item.id"
  244. >
  245. </el-option>
  246. </el-select> </el-form-item
  247. ></el-col>
  248. </el-row>
  249. </el-form>
  250. <span slot="footer" class="dialog-footer">
  251. <el-button @click="dialogVisible = false"> </el-button>
  252. <el-button type="primary" @click="onsbmint"> </el-button>
  253. </span>
  254. </el-dialog>
  255. </div>
  256. <!-- 按钮区域 -->
  257. <div style="margin-left: 10px; margin-top: 5%">
  258. <el-button type="" @click="add" class="commonbutton">新增</el-button>
  259. <div style="margin-top: 10px">
  260. <el-button type="" @click="edit" class="commonbutton">编辑</el-button>
  261. </div>
  262. <div style="margin-top: 10px">
  263. <el-button type="" @click="delets" class="deleteButton">删除</el-button>
  264. </div>
  265. <div style="margin-top: 10px">
  266. <el-button type="" @click="topping" class="commonbutton"
  267. >置顶</el-button
  268. >
  269. </div>
  270. <div style="margin-top: 10px">
  271. <el-button type="" @click="toppings" class="commonbutton"
  272. >置底</el-button
  273. >
  274. </div>
  275. <div style="margin-top: 10px">
  276. <el-button
  277. type=""
  278. :disabled="isshow"
  279. @click="assertion"
  280. class="commonbutton"
  281. >排序</el-button
  282. >
  283. </div>
  284. <div style="margin-top: 10px">
  285. <el-button
  286. type=""
  287. :disabled="isshow"
  288. @click="cancellation"
  289. class="commonbutton"
  290. >取消</el-button
  291. >
  292. </div>
  293. </div>
  294. </div>
  295. </template>
  296. <script>
  297. import Sortable from "sortablejs";
  298. import { postapi, getapi, putapi, deletapi } from "@/api/api";
  299. import { projectlist } from "@/request/commonapi";
  300. import { examinationgender, diagsislist } from "@/request/systemapi";
  301. export default {
  302. data() {
  303. return {
  304. treedata: [], //树形结构
  305. num: 0,
  306. rightdata: [], //右侧数据
  307. leftdata: [], //左侧数据
  308. projectid: [],
  309. filetelists: [],
  310. flitvalues: [],
  311. values: "",
  312. isshow: true,
  313. isdislob: true,
  314. rules: {
  315. displayName: [
  316. { required: true, message: "请输入名称", trigger: "blur" },
  317. ],
  318. itemTypeId: [
  319. { required: true, message: "请选择项目类别", trigger: "blur" },
  320. ],
  321. suggestionName: [
  322. { required: true, message: "请输入建议名称", trigger: "blur" },
  323. ],
  324. isIll: [{ required: true, message: "请选择是疾病", trigger: "blur" }],
  325. isSummaryTemplate: [
  326. { required: true, message: "请选择是总检模板", trigger: "blur" },
  327. ],
  328. forSexId: [
  329. { required: true, message: "请选择适用性别", trigger: "blur" },
  330. ],
  331. diagnosisLevelId: [
  332. { required: true, message: "请选择诊断级别", trigger: "blur" },
  333. ],
  334. },
  335. tableData: [],
  336. initTableData: [],
  337. dialogVisible: false,
  338. title: 1,
  339. form: {
  340. displayName: "",
  341. itemTypeId: "",
  342. suggestionName: "",
  343. isIll: "",
  344. isSummaryTemplate: "",
  345. forSexId: "",
  346. diagnosisLevelId: "",
  347. },
  348. isIll: [
  349. {
  350. value: "Y",
  351. label: "是",
  352. },
  353. {
  354. value: "N",
  355. label: "否",
  356. },
  357. ], //是疾病
  358. isSummaryTemplate: [
  359. {
  360. value: "Y",
  361. label: "是",
  362. },
  363. {
  364. value: "N",
  365. label: "否",
  366. },
  367. ], //是总监模板
  368. itemTypeId: [], //项目类别
  369. forSexId: [], //性别
  370. diagnosisLevelId: [], //诊断级别
  371. ary1: [],
  372. ary2: [],
  373. nums: 0,
  374. curRow: {},
  375. defaultProps: {
  376. children: "treeChildren",
  377. label: "displayName",
  378. },
  379. };
  380. },
  381. created() {
  382. this.getlist();
  383. this.gitprojectcategory();
  384. },
  385. mounted() {
  386. this.rowDrop();
  387. this.getlisttree();
  388. },
  389. methods: {
  390. getlisttree() {
  391. getapi("/api/app/item-type/by-code-all").then((res) => {
  392. this.treedata = res.data;
  393. });
  394. },
  395. //树形结构点击
  396. handleNodeClick(data) {
  397. postapi("/api/app/diagnosis/getlistinsuggestion", {
  398. diagnosisName: data.diagnosisName,
  399. itemTypeId: data.id,
  400. }).then((res) => {
  401. this.tableData = res.data;
  402. });
  403. },
  404. Onsubmit() {
  405. let sampleGroupId = this.form.id;
  406. let sdate = [];
  407. this.rightdata.forEach((element) => {
  408. let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
  409. sdate.push(sss);
  410. });
  411. this.leftdata.forEach((element) => {
  412. let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
  413. sdate.push(sss);
  414. });
  415. if (sampleGroupId == undefined) {
  416. this.$message.warning("请选择列表");
  417. } else {
  418. postapi("/api/app/item-template-detail/many", sdate).then((res) => {
  419. this.isdislob = true;
  420. });
  421. }
  422. },
  423. //q全移去
  424. allclear() {
  425. this.isdislob = false;
  426. if (this.rightdata.length > 0) {
  427. this.ary1 = this.rightdata;
  428. this.ary2 = this.leftdata;
  429. this.updatedate();
  430. this.rightdata = [];
  431. }
  432. },
  433. //右移动
  434. removeright() {
  435. this.isdislob = false;
  436. if (this.rightdata.length > 0) {
  437. this.rightdata.splice(this.num, 1);
  438. this.leftdata.push(this.leftobj);
  439. this.isdislob = true;
  440. this.updatedate();
  441. }
  442. },
  443. //左侧添加按钮
  444. addobj() {
  445. this.isdislob = false;
  446. if (this.leftdata.length > 0) {
  447. this.leftdata.splice(this.num, 1);
  448. this.rightdata.push(this.rightobj);
  449. }
  450. },
  451. //全添加
  452. addall() {
  453. this.isdislob = false;
  454. if (this.leftdata.length > 0) {
  455. this.ary1 = this.leftdata;
  456. this.ary2 = this.rightdata;
  457. this.updatedate();
  458. this.leftdata = [];
  459. }
  460. },
  461. //左侧双击事件
  462. shuanji(item, index) {
  463. this.isdislob = false;
  464. this.leftdata.splice(index, 1);
  465. this.rightdata.push(item);
  466. },
  467. clickPaixu(item, index) {
  468. this.rightobj = item;
  469. this.num = index;
  470. },
  471. //获取项目类别 3a0b0b10-719f-5824-6956-8cb70f204013
  472. gitprojectcategory() {
  473. getapi("/api/app/item-type/by-code-all").then((res) => {
  474. this.projectid = res.data;
  475. // this.tableData = res.data;
  476. });
  477. },
  478. //ary1 需要追加的数据 ary2目标数组
  479. updatedate() {
  480. this.ary1.forEach((item) => {
  481. let iscz = false;
  482. this.ary2.forEach((item2) => {
  483. if (item2.id == item.id) {
  484. iscz = true;
  485. }
  486. });
  487. if (!iscz) {
  488. this.ary2.push(item);
  489. // this.allid.push({ id: item.id });
  490. }
  491. });
  492. },
  493. //项目类别选择
  494. ischangs(v) {
  495. getapi(`/api/app/diagnosis/in-item-type/${v}`).then((res) => {
  496. this.leftdata = res.data;
  497. });
  498. },
  499. //取消排序
  500. cancellation() {
  501. this.$message.info("取消操作");
  502. this.isshow = true;
  503. this.getlist();
  504. },
  505. //确定排序
  506. assertion() {
  507. const result = [];
  508. this.tableData.forEach((item, index) => {
  509. // index 从0开始的, 你的displayOrder从大到小排
  510. // const currentDisplayOrder = this.tableData.length -1
  511. const currentDisplayOrder = this.initTableData[index].displayOrder;
  512. if (item.displayOrder != currentDisplayOrder) {
  513. // 如果它的displayOrder和它当前所在的位置不同代表挪动过位置
  514. result.push({ id: item.id, displayOrder: currentDisplayOrder });
  515. }
  516. });
  517. putapi("/api/app/diagnosis/updatesortmany", { itemList: result }).then(
  518. (res) => {
  519. this.isshow = true;
  520. this.getlist();
  521. }
  522. );
  523. },
  524. //初始化
  525. rowDrop() {
  526. this.$nextTick(() => {
  527. const tbody = document.querySelector(".el-table__body-wrapper tbody");
  528. const _this = this;
  529. Sortable.create(tbody, {
  530. handle: ".move",
  531. animation: 300,
  532. // 指定父元素下可被拖拽的子元素
  533. // draggable: ".module-manager .el-table__row",
  534. onEnd({ newIndex, oldIndex }) {
  535. // console.log(arr);
  536. _this.isshow = false;
  537. const currRow = _this.tableData.splice(oldIndex, 1)[0];
  538. _this.tableData.splice(newIndex, 0, currRow);
  539. _this.tableData.map((item, index) => {
  540. if (index == newIndex && index == oldIndex) {
  541. // console.log(item, "新数据");
  542. } else if (index == oldIndex) {
  543. } else if (index == newIndex) {
  544. }
  545. });
  546. },
  547. });
  548. });
  549. },
  550. toppings() {
  551. this.form = { ...this.curRow };
  552. if (this.form.id == undefined) {
  553. this.$message.warning("请选择操作的数据");
  554. } else {
  555. putapi(
  556. `/api/app/diagnosis/updatemanysort?id=${this.form.id}&SortType=${2}`
  557. ).then((res) => {
  558. console.log("操作成功");
  559. this.getlist();
  560. });
  561. }
  562. },
  563. topping() {
  564. this.form = { ...this.curRow };
  565. if (this.form.id == undefined) {
  566. this.$message.warning("请选择操作的数据");
  567. } else {
  568. putapi(
  569. `/api/app/diagnosis/updatemanysort?id=${this.form.id}&SortType=${1}`
  570. ).then((res) => {
  571. console.log("操作成功");
  572. this.getlist();
  573. });
  574. }
  575. },
  576. //删除
  577. delets(row) {
  578. this.form = { ...this.curRow };
  579. console.log(row);
  580. if (this.form.id == undefined) {
  581. this.$message.warning("请选择删除的数据");
  582. } else {
  583. this.$confirm("是否确认删除,是否继续?", "提示", {
  584. confirmButtonText: "确定",
  585. cancelButtonText: "取消",
  586. type: "warning",
  587. })
  588. .then(() => {
  589. deletapi(`/api/app/diagnosis/${this.form.id}`).then((res) => {
  590. if (res.code == 0) {
  591. console.log("删除成功");
  592. this.getlist();
  593. }
  594. });
  595. })
  596. .catch(() => {
  597. this.$message.info("已取消操作");
  598. });
  599. }
  600. },
  601. //编辑弹框
  602. edit(row) {
  603. this.form = { ...this.curRow };
  604. if (this.form.id == undefined) {
  605. this.$message.warning("请选择操作的数据");
  606. } else {
  607. //项目类别
  608. projectlist().then((res) => {
  609. this.itemTypeId = res.data;
  610. });
  611. //适用性别
  612. getapi("/api/app/for-sex").then((res) => {
  613. this.forSexId = res.data;
  614. });
  615. // examinationgender().then((res) => {
  616. // this.forSexId = res.data;
  617. // });
  618. //诊断级别
  619. diagsislist().then((res) => {
  620. this.diagnosisLevelId = res.data;
  621. });
  622. this.title = 2;
  623. this.dialogVisible = true;
  624. }
  625. },
  626. //确定新增或者编辑
  627. onsbmint() {
  628. this.$refs.form.validate((v) => {
  629. if (v) {
  630. if (this.title == 1) {
  631. postapi("/api/app/diagnosis", this.form).then((res) => {
  632. console.log("新增成功");
  633. this.getlist();
  634. this.dialogVisible = false;
  635. });
  636. } else if (this.title == 2) {
  637. putapi(`/api/app/diagnosis/${this.form.id}`, this.form).then(
  638. (res) => {
  639. console.log("修改成功");
  640. this.getlist();
  641. this.dialogVisible = false;
  642. }
  643. );
  644. }
  645. }
  646. });
  647. // postapi('/api/app/diagnosis',this)
  648. },
  649. //新增弹框
  650. add() {
  651. this.dialogVisible = true;
  652. this.title = 1;
  653. this.form = {};
  654. this.$nextTick(() => {
  655. this.$refs.refinput.focus();
  656. });
  657. //项目类别
  658. projectlist().then((res) => {
  659. this.itemTypeId = res.data;
  660. });
  661. //适用性别
  662. getapi("/api/app/for-sex").then((res) => {
  663. this.forSexId = res.data;
  664. console.log("适用性别", res);
  665. });
  666. // examinationgender().then((res) => {
  667. // this.forSexId = res.data;
  668. // console.log(res, "性别");
  669. // });
  670. //诊断级别
  671. diagsislist().then((res) => {
  672. this.diagnosisLevelId = res.data;
  673. });
  674. },
  675. rowick(row) {
  676. getapi(`/api/app/diagnosis/${row.id}`).then((res) => {
  677. // this.form = res.data;
  678. this.curRow = { ...res.data };
  679. });
  680. getapi(
  681. `/api/app/item-template-detail/item-template-in-item?ItemTemplateId=${row.id}`
  682. ).then((res) => {
  683. console.log(res);
  684. let dq = res.data;
  685. if (dq.length > 0) {
  686. this.rightdata = [];
  687. dq.forEach((element) => {
  688. let bb = { displayName: element.displayName, id: element.id };
  689. this.rightdata.push(bb);
  690. });
  691. }
  692. });
  693. console.log(row);
  694. },
  695. getlist() {
  696. postapi("/api/app/diagnosis/getlistinsuggestion").then((res) => {
  697. this.initTableData = [...res.data];
  698. this.tableData = res.data;
  699. console.log(res);
  700. });
  701. },
  702. },
  703. };
  704. </script>
  705. <style scoped>
  706. ::v-deep .el-table__header th {
  707. /* font-size: px; */
  708. background-color: rgb(245, 245, 245); /* 设置表头背景颜色 */
  709. color: rgb(113, 113, 113); /* 设置表头文字颜色 */
  710. }
  711. .confirmcancellation {
  712. margin-left: 45%;
  713. }
  714. .Selectbutton {
  715. margin-left: 3%;
  716. }
  717. .activetext {
  718. background: rgb(185, 203, 235);
  719. }
  720. .weixuan {
  721. text-align: center;
  722. line-height: 20px;
  723. background: rgb(185, 203, 235);
  724. }
  725. .mainleftbox {
  726. width: 200px;
  727. height: 240px;
  728. border: 1px solid #ccc;
  729. margin-left: 6%;
  730. }
  731. .mainbox {
  732. display: flex;
  733. justify-content: center;
  734. margin-top: 20px;
  735. }
  736. .box {
  737. display: flex;
  738. }
  739. </style>