newAssociatedPage.vue 23 KB

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