newAssociatedPage.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. <template>
  2. <div class="newAssociatedPage">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" class="form-box">
  4. <el-form-item label="关键字" prop="name">
  5. <el-input
  6. style="width:160px;"
  7. maxlength="10"
  8. v-model="queryParams.searchValue"
  9. placeholder="实验室"
  10. clearable
  11. size="small"
  12. />
  13. </el-form-item>
  14. <el-form-item label="安全分类" prop="typeId">
  15. <el-select v-model="queryParams.typeId" placeholder="请选择安全分类" style="width:160px;">
  16. <el-option
  17. v-for="dict in typeList"
  18. :key="dict.id"
  19. :label="dict.typeName"
  20. :value="dict.id"
  21. ></el-option>
  22. </el-select>
  23. </el-form-item>
  24. <el-form-item label="安全分级" prop="level">
  25. <el-select v-model="queryParams.level" placeholder="请选择安全分级" style="width:160px;">
  26. <el-option
  27. v-for="item in levelList"
  28. :key="item.id"
  29. :label="item.classifiedName"
  30. :value="item.id">
  31. </el-option>
  32. </el-select>
  33. </el-form-item>
  34. <el-form-item label="关联时间" prop="senseState">
  35. <el-date-picker
  36. :clearable="false"
  37. v-model="dateRange"
  38. size="small"
  39. style="width: 240px"
  40. value-format="yyyy-MM-dd"
  41. type="daterange"
  42. range-separator="-"
  43. start-placeholder="开始日期"
  44. end-placeholder="结束日期"
  45. ></el-date-picker>
  46. </el-form-item>
  47. <el-form-item style="float: right;">
  48. <el-col :span="1.5">
  49. <p class="reset-button-one"
  50. @click="backButton"
  51. style="float: right;"
  52. >返回</p>
  53. <p class="add-button-one-90"
  54. @click="handleAdd(1)"
  55. style="float: right;margin-right:20px;"
  56. >新增</p>
  57. </el-col>
  58. </el-form-item>
  59. <el-form-item>
  60. <p class="inquire-button-one" style="margin-right:10px;" @click="handleQuery">查询</p>
  61. <p class="reset-button-one" @click="resetQuery">重置</p>
  62. </el-form-item>
  63. </el-form>
  64. <el-table v-loading="loading" border :data="tableData">
  65. <el-table-column label="实验室" align="left" prop="name" width="300" show-overflow-tooltip/>
  66. <el-table-column label="安全分类" align="left" prop="typeName" width="140">
  67. <template slot-scope="scope">
  68. <span v-for="(item,index) in typeList" :key="index" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
  69. </template>
  70. </el-table-column>
  71. <el-table-column label="安全分级" align="left" prop="leveName" width="140">
  72. <template slot-scope="scope">
  73. <span v-for="(item,index) in levelList" :key="index" v-if="item.id == scope.row.level">{{item.classifiedName}}</span>
  74. </template>
  75. </el-table-column>
  76. <el-table-column label="危险源" align="left" prop="labSensorHazardRelationsList" show-overflow-tooltip>
  77. <template slot-scope="scope">
  78. <span style="margin-right:10px;" v-for="(item,index) in scope.row.labSensorHazardRelationsList" :key="index">
  79. {{item.hazardName}} - {{item.sensorName}}
  80. </span>
  81. </template>
  82. </el-table-column>
  83. <el-table-column label="关联时间" align="left" prop="relationTime" width="200"/>
  84. <el-table-column label="状态" align="left" prop="senseState" width="140"/>
  85. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="100">
  86. <template slot-scope="scope">
  87. <div class="table-button-box">
  88. <p class="table-button-null"></p>
  89. <p class="table-button-p" @click="handleDelete(scope.row)">移除</p>
  90. <p class="table-button-null"></p>
  91. </div>
  92. </template>
  93. </el-table-column>
  94. </el-table>
  95. <pagination :page-sizes="[20, 30, 40, 50]"
  96. v-show="total>0"
  97. :total="total"
  98. layout="total, prev, pager, next, sizes, jumper"
  99. :page.sync="queryParams.pageNum"
  100. :limit.sync="queryParams.pageSize"
  101. @pagination="getList"
  102. />
  103. <el-dialog title='关联实验室' v-if="dialogAssociatedOpen" :visible.sync="dialogAssociatedOpen" width="1200px">
  104. <div style="height: 600px;overflow: hidden;display: flex;flex-direction: column;flex:1;">
  105. <el-form :model="param" ref="queryForm" :inline="true" label-width="80px">
  106. <el-form-item label="关键字" prop="searchValue">
  107. <el-input
  108. maxlength="10"
  109. v-model="param.searchValue"
  110. placeholder="实验室"
  111. clearable
  112. size="small"
  113. />
  114. </el-form-item>
  115. <el-form-item label="安全分类" prop="typeId" label-width="80px">
  116. <el-select v-model="param.typeId" placeholder="请选择安全分类" clearable size="small">
  117. <el-option
  118. v-for="dict in typeList"
  119. :key="dict.id"
  120. :label="dict.typeName"
  121. :value="dict.id"
  122. ></el-option>
  123. </el-select>
  124. </el-form-item>
  125. <el-form-item label="安全分级" prop="level" label-width="80px">
  126. <el-select v-model="param.level" placeholder="请选择安全分级" clearable size="small">
  127. <el-option
  128. v-for="dict in levelList"
  129. :key="dict.id"
  130. :label="dict.classifiedName"
  131. :value="dict.id"
  132. ></el-option>
  133. </el-select>
  134. </el-form-item>
  135. <el-form-item>
  136. <p class="inquire-button-one" style="margin-right:10px;" @click="onSearch">查询</p>
  137. <p class="reset-button-one" @click="resetForm">重置</p>
  138. </el-form-item>
  139. </el-form>
  140. <!--<div style="display: flex;background: rgb(202,229,253);height:40px;line-height:40px;font-size:16px;padding:0 82px;margin-bottom:20px;">-->
  141. <!--<p style="margin-right:24px;">已选择 <span style="color:#0183FA;">{{allNum}}</span> 项</p>-->
  142. <!--<p style="color:#0183FA;cursor: pointer;" @click="allButton(1)">全选本页</p>-->
  143. <!--<p style="color:#0183FA;margin:0 32px 0 30px;cursor: pointer;" @click="allButton(2)">选择全部</p>-->
  144. <!--</div>-->
  145. <el-table ref="table" v-loading="loading" border :data="dialogTableData" @selection-change="handleSelectionChange" :row-key="getRowKeys">
  146. <el-table-column type="selection" width="55" :reserve-selection="true" align="center" />
  147. <el-table-column label="实验室" width="220" align="center" prop="name" show-overflow-tooltip/>
  148. <el-table-column label="安全分类" width="100" align="center" prop="typeId" show-overflow-tooltip>
  149. <template slot-scope="scope">
  150. <span v-for="(item,index) in typeList" :key="index" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
  151. </template>
  152. </el-table-column>
  153. <el-table-column label="安全分级" width="100" align="center" prop="level" show-overflow-tooltip>
  154. <template slot-scope="scope">
  155. <span v-for="(item,index) in levelList" :key="index" v-if="item.id == scope.row.level">{{item.classifiedName}}</span>
  156. </template>
  157. </el-table-column>
  158. <el-table-column label="危险源" align="left">
  159. <template slot-scope="scope">
  160. <div style="margin-bottom:10px;">
  161. <div v-for="(item,index) in scope.row.buttonList" :key="index"
  162. style="display: inline-block;padding:0 10px;border:1px solid #E0E0E0;margin:10px 10px 0 0;">
  163. <span style="line-height:40px;font-size:14px;">{{item.hazardSubjectName}}-{{item.sensorName}}</span>
  164. <span class="el-icon-circle-close" @click="delMinObj(scope.row.buttonList,index)"
  165. style="cursor: pointer;width:14px;height:14px;margin-left:10px;margin-top:14px;color:#666;"></span>
  166. </div>
  167. <p v-if="scope.row.buttonType == 0"
  168. @click="addObjButton(1,scope.row)"
  169. style="color:#0183FA;font-size:16px;border:1px solid #0183FA;
  170. border-radius:4px;width:88px;height:30px;line-height:30px;
  171. display: inline-block;margin:5px 0 0 10px;text-align: center;cursor: pointer;">新增危险源</p>
  172. <div v-if="scope.row.buttonType == 1"
  173. style="display: flex;margin-top:10px;">
  174. <el-select v-model="scope.row.hazardSubjectId" placeholder="请选择危险源"
  175. @change="(val)=>hardwareChange(val,scope.row)"
  176. style="width:168px;">
  177. <el-option
  178. v-for="dict in scope.row.labHazardSubVOList"
  179. :key="dict.xyId"
  180. :label="dict.label"
  181. :value="dict.xyId"
  182. ></el-option>
  183. </el-select>
  184. <p style="width:30px;text-align: center;line-height:40px;">-</p>
  185. <el-select v-model="scope.row.sensorId" placeholder="请选择传感器"
  186. @change="(val)=>sensorChange(val,scope.row)"
  187. style="width:168px;">
  188. <el-option
  189. v-for="dict in scope.row.labSensorList"
  190. :key="dict.id"
  191. :label="dict.name"
  192. :value="dict.id"
  193. ></el-option>
  194. </el-select>
  195. <p style="color:#CCCCCC;font-size:16px;border:1px solid #E0E0E0;
  196. border-radius:4px;width:80px;height:30px;line-height:30px;
  197. display: inline-block;margin:5px 0 0 10px;text-align: center;cursor: pointer;" @click="addObjButton(2,scope.row)">取消</p>
  198. <p style="color:#0183FA;font-size:16px;border:1px solid #0183FA;
  199. border-radius:4px;width:80px;height:30px;line-height:30px;
  200. display: inline-block;margin:5px 0 0 10px;text-align: center;cursor: pointer;" @click="addObjButton(3,scope.row)">确定</p>
  201. </div>
  202. </div>
  203. </template>
  204. </el-table-column>
  205. </el-table>
  206. <pagination
  207. v-show="dialogTotal>0"
  208. :total="dialogTotal"
  209. :page.sync="param.pageNum"
  210. :limit.sync="param.pageSize"
  211. @pagination="getList"
  212. />
  213. </div>
  214. <div slot="footer" class="dialog-footer">
  215. <div style="display: flex">
  216. <p style="flex:1;"></p>
  217. <p style="cursor: pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;margin-right:17px;color:#999999;background:#E0E0E0;" @click="handleAdd(2)">取消</p>
  218. <p style="cursor: pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;color:#fff;background:#0045AF;" @click="handleAdd(3)">确定</p>
  219. <p style="flex:1;"></p>
  220. </div>
  221. </div>
  222. </el-dialog>
  223. </div>
  224. </template>
  225. <script>
  226. import { optionHardware } from "@/api/laboratory/hardware";
  227. import { optionSensor } from "@/api/laboratory/sensor";
  228. import { listClassifiedAll } from "@/api/laboratory/classified";
  229. import { listClasstypeAll } from "@/api/laboratory/classtype";
  230. import { getLabRiskPlanJoinSub,getLabRiskPlanNoJoinSub,deleteRiskPlanJoinSub,riskPlanJoinSub,riskPlanBatchJoinSub } from "@/api/evacuation3_2/index";
  231. export default {
  232. name: 'newAssociatedPage',
  233. props:{
  234. associationData:{},
  235. },
  236. data() {
  237. return {
  238. loading:false,
  239. levelList:[],
  240. typeList:[],
  241. // 查询参数
  242. dateRange:[],
  243. queryParams:{
  244. pageNum: 1,
  245. pageSize:20,
  246. searchValue:"",
  247. },
  248. total:0,
  249. tableData:[],
  250. /***************关联危险源开始****************/
  251. // 选中数组
  252. ids: [],
  253. // 非单个禁用
  254. single: true,
  255. // 非多个禁用
  256. multiple: true,
  257. // 查询数据
  258. param:{
  259. pageNum:1,
  260. pageSize:10,
  261. },
  262. dialogTotal:5,
  263. //关联实验室
  264. dialogAssociatedOpen:false,
  265. dialogTableData:[],
  266. //传感器
  267. sensorList:[],
  268. sensorListData:[],
  269. //设备
  270. hardwareList:[],
  271. /***************关联危险源结束****************/
  272. allNum:0,
  273. }
  274. },
  275. created(){
  276. this.getListAll();
  277. },
  278. mounted(){
  279. this.getList();
  280. },
  281. methods:{
  282. getListAll(){
  283. optionSensor({}).then(response => {
  284. this.sensorList = response.data;
  285. this.sensorListData = JSON.parse(JSON.stringify(response.data))
  286. });
  287. optionHardware({}).then(response => {
  288. this.hardwareList = response.data;
  289. });
  290. listClassifiedAll().then(response=>{
  291. if(response.code==200){
  292. this.levelList=response.data
  293. }
  294. })
  295. listClasstypeAll().then(response=>{
  296. if(response.code==200){
  297. this.typeList=response.data;
  298. }
  299. });
  300. },
  301. //新增关联实验室弹窗
  302. handleAdd(type){
  303. let self = this;
  304. if (type == 1){
  305. this.resetForm();
  306. this.$set(this,'allNum',0);
  307. this.$set(this,'dialogAssociatedOpen',true);
  308. }else if(type == 2){
  309. this.$set(this,'dialogAssociatedOpen',false);
  310. }else if(type == 3){
  311. let list = JSON.parse(JSON.stringify(this.$refs.table.selection));
  312. if(!list[0]){
  313. this.msgError('请勾选需要关联的实验室');
  314. return
  315. }
  316. let newList = [];
  317. for(let i=0;i<list.length;i++){
  318. let obj = {
  319. riskPlanId:self.associationData.id,
  320. subjectId:list[i].id,
  321. labSensorHazardRelations:list[i].buttonList,
  322. }
  323. newList.push(obj);
  324. }
  325. let newObj = {
  326. riskPlanId:self.associationData.id,
  327. yesOrNo:0,
  328. labRiskPlanSubVos:newList,
  329. }
  330. riskPlanJoinSub(newObj).then(response => {
  331. if(response.data.ifConflict == 1){
  332. self.$confirm(response.data.message, "警告", {
  333. confirmButtonText: "确定",
  334. cancelButtonText: "取消",
  335. type: "warning"
  336. }).then(function() {
  337. let newData = {
  338. riskPlanId:self.associationData.id,
  339. yesOrNo:1,
  340. labRiskPlanSubVos:newList,
  341. }
  342. riskPlanJoinSub(newData).then(response => {
  343. self.msgSuccess(response.msg);
  344. self.resetQuery();
  345. self.$set(self,'dialogAssociatedOpen',false);
  346. });
  347. }).then(() => {
  348. }).catch(() => {});
  349. }else{
  350. self.msgSuccess(response.msg);
  351. self.resetQuery();
  352. self.$set(self,'dialogAssociatedOpen',false);
  353. }
  354. });
  355. }
  356. },
  357. //查询
  358. onSearch(){
  359. this.$set(this.param,'pageNum',1);
  360. this.getLabRiskPlanNoJoinSub();
  361. },
  362. //重置
  363. resetForm(){
  364. this.$set(this,'param',{
  365. pageNum:1,
  366. pageSize:20,
  367. searchValue:"",
  368. typeId:"",
  369. level:"",
  370. });
  371. this.$set(this,'dialogTotal',0);
  372. this.$set(this,'dialogTableData',[]);
  373. this.onSearch();
  374. },
  375. //获取未关联实验室列表
  376. getLabRiskPlanNoJoinSub(){
  377. this.$set(this.param,'riskPlanId',this.associationData.id);
  378. getLabRiskPlanNoJoinSub(this.param).then(response => {
  379. for(let i=0;i<response.rows.length;i++){
  380. response.rows[i].buttonType = 0;
  381. response.rows[i].buttonList = [];
  382. response.rows[i].sensorId = null;
  383. response.rows[i].sensorName = null;
  384. response.rows[i].hazardSubjectId = null;
  385. response.rows[i].hazardSubjectName = null;
  386. }
  387. this.dialogTableData = response.rows;
  388. this.dialogTotal = response.total;
  389. this.loading = false;
  390. });
  391. },
  392. //新增对象至选中实验室
  393. addObjButton(type,item){
  394. if(type == 1){
  395. if(item.buttonList.length>8){
  396. this.msgError('最多添加9项')
  397. return
  398. }
  399. item.buttonType = 1;
  400. }else if(type == 2){
  401. item.buttonType = 0;
  402. }else if(type == 3){
  403. console.log('sensorId',item.sensorId)
  404. console.log('hazardSubjectId',item.hazardSubjectId)
  405. if(item.hazardSubjectId == null){
  406. this.msgError('请选择要添加的危险源')
  407. return
  408. }
  409. if(item.sensorId == null){
  410. this.msgError('请选择要添加的传感器')
  411. return
  412. }
  413. let obj = {
  414. sensorId:item.sensorId,
  415. sensorName:item.sensorName,
  416. hazardSubjectId:item.hazardSubjectId,
  417. hazardSubjectName:item.hazardSubjectName,
  418. };
  419. for(let i=0;i<item.buttonList.length;i++){
  420. if(item.buttonList[i].sensorId == item.sensorId && item.buttonList[i].hazardSubjectId == item.hazardSubjectId){
  421. this.msgError('该条件已存在');
  422. return
  423. }
  424. }
  425. item.buttonList.push(obj);
  426. item.sensorId = null;
  427. item.sensorName = null;
  428. item.hazardSubjectId = null;
  429. item.hazardSubjectName = null;
  430. item.buttonType = 0;
  431. this.$forceUpdate();
  432. }
  433. },
  434. //删除列表内的对象
  435. delMinObj(list,index){
  436. list.splice(index,1)
  437. this.$forceUpdate();
  438. },
  439. sensorChange(val,row){
  440. console.log('传感器')
  441. for(let i=0;i<row.labSensorList.length;i++){
  442. if(row.labSensorList[i].id == val){
  443. row.sensorId = row.labSensorList[i].id;
  444. row.sensorName = row.labSensorList[i].name;
  445. }
  446. }
  447. this.$forceUpdate();
  448. },
  449. hardwareChange(val,row){
  450. console.log('危险源')
  451. for(let i=0;i<row.labHazardSubVOList.length;i++){
  452. if(row.labHazardSubVOList[i].xyId == val){
  453. row.hazardSubjectId = row.labHazardSubVOList[i].xyId;
  454. row.hazardSubjectName = row.labHazardSubVOList[i].label;
  455. }
  456. }
  457. this.$forceUpdate();
  458. },
  459. //删除关联实验室
  460. handleDelete(item){
  461. let self = this;
  462. this.$confirm('您确定要移除该实验室吗?', "警告", {
  463. confirmButtonText: "确定",
  464. cancelButtonText: "取消",
  465. type: "warning"
  466. }).then(function() {
  467. let obj = {
  468. riskPlanId:self.associationData.id,
  469. subjectId:item.id
  470. }
  471. deleteRiskPlanJoinSub(obj).then((response) => {
  472. self.msgSuccess(response.msg)
  473. self.resetQuery();
  474. });
  475. }).then(() => {
  476. }).catch(() => {});
  477. },
  478. //查询
  479. handleQuery(){
  480. this.$set(this.queryParams,'pageNum',1);
  481. if(this.dateRange[0]){
  482. this.queryParams.startDate = this.dateRange[0]
  483. this.queryParams.endDate = this.dateRange[1]
  484. }else {
  485. this.queryParams.startDate = null
  486. this.queryParams.endDate = null
  487. }
  488. this.getList();
  489. },
  490. //重置
  491. resetQuery(){
  492. this.$set(this,'queryParams',{
  493. pageNum:1,
  494. pageSize:20,
  495. searchValue:"",
  496. typeId:"",
  497. level:"",
  498. });
  499. this.$set(this,'dateRange',[]);
  500. this.$set(this,'total',0);
  501. this.$set(this,'tableData',[]);
  502. this.handleQuery();
  503. },
  504. /** 查询列表 */
  505. getList() {
  506. let self = this;
  507. this.loading = true;
  508. this.$set(this.queryParams,'riskPlanId',this.associationData.id);
  509. getLabRiskPlanJoinSub(this.queryParams).then(response => {
  510. for(let i=0;i<response.rows.length;i++){
  511. for(let o=0;o<self.typeList.length;o++){
  512. if(response.rows[i].typeId == self.typeList[o].id){
  513. response.rows[i].typeName = self.typeList[o].typeName;
  514. }
  515. }
  516. for(let o=0;o<self.levelList.length;o++){
  517. if(response.rows[i].level == self.levelList[o].id){
  518. response.rows[i].leveName = self.levelList[o].classifiedName;
  519. }
  520. }
  521. response.rows[i].labSensorHazardRelationsList = [];
  522. for(let o=0;o<response.rows[i].labSensorHazardRelations.length;o++){
  523. let obj = {
  524. hazardName:response.rows[i].labSensorHazardRelations[o].hazardName,
  525. sensorName:response.rows[i].labSensorHazardRelations[o].sensorName,
  526. }
  527. response.rows[i].labSensorHazardRelationsList.push(obj);
  528. }
  529. }
  530. this.tableData = response.rows;
  531. this.total = response.total;
  532. this.loading = false;
  533. });
  534. },
  535. //返回
  536. backButton(){
  537. if(this.associationData.type == 1){
  538. this.$parent.tableClickButton(6)
  539. }else{
  540. this.$parent.tableClickButton(5)
  541. }
  542. },
  543. /*===记录勾选数据===
  544. 需要再el-table 添加 :row-key="getRowKeys"
  545. 需要在selection 添加 :reserve-selection="true"
  546. */
  547. getRowKeys(row) {
  548. return row.id
  549. },
  550. //勾选
  551. handleSelectionChange(selection){
  552. this.$set(this,'allNum',selection.length);
  553. // console.log('selection',selection)
  554. },
  555. allButton(type){
  556. let self = this;
  557. if(type == 1){
  558. let list = [];
  559. for(let i=0;i<self.dialogTableData.length;i++){
  560. list.push(self.dialogTableData[i].id);
  561. }
  562. let obj = {
  563. riskPlanId:self.associationData.id,
  564. subjectIds:list+''
  565. }
  566. riskPlanBatchJoinSub(obj).then(response => {
  567. this.msgSuccess(response.msg);
  568. this.resetQuery();
  569. this.$set(this,'dialogAssociatedOpen',false);
  570. });
  571. }else if(type == 2){
  572. let obj = {
  573. riskPlanId:self.associationData.id,
  574. searchValue:self.param.searchValue,
  575. typeId:self.param.typeId,
  576. level:self.param.level,
  577. subjectIds:'-1'
  578. };
  579. riskPlanBatchJoinSub(obj).then(response => {
  580. this.msgSuccess(response.msg);
  581. this.resetQuery();
  582. this.$set(this,'dialogAssociatedOpen',false);
  583. });
  584. }
  585. },
  586. },
  587. }
  588. </script>
  589. <style scoped lang="scss">
  590. .newAssociatedPage{
  591. flex: 1;
  592. display: flex !important;
  593. flex-direction: column;
  594. overflow: hidden;
  595. padding:20px;
  596. p {
  597. margin: 0;
  598. font-weight: 500;
  599. }
  600. }
  601. </style>