index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. <template>
  2. <div id="addRelation">
  3. <!-- 数据字典设备类型 -->
  4. <el-row>
  5. <el-col :span="12">
  6. <el-button size="small" type="default" icon="el-icon-back" @click="goback"></el-button>
  7. <div style="display:inline-block;width:317px;margin-left:10px;">
  8. <dictionary-device @change="changeDictionary" :Related="false"></dictionary-device>
  9. </div>
  10. </el-col>
  11. <el-col :span="12" class="text-right">
  12. <el-switch @change="changeType" v-model="isSwitch"></el-switch>
  13. <span style="padding:0 5px;">AI辅助</span>
  14. <el-button size="medium" @click="showHistory" class="ani-his-plus">
  15. 本次对应记录 {{num}}
  16. <span v-if="showPlus" :class="{'plusOne':true,'startAni':showPlus}">+1</span>
  17. </el-button>
  18. </el-col>
  19. </el-row>
  20. <!-- 列表及查询条件区域 -->
  21. <div class="table-container clearfix">
  22. <div class="left-table">
  23. <h5>未对应的设备标识</h5>
  24. <!-- 查询条件 -->
  25. <div class="query-box clearfix">
  26. <div class="query-item">
  27. <label>设备标识关键字</label>
  28. <el-input placeholder="请输入设备标识关键字" v-model="form.EquipmentMark" @keyup.enter.native="queryLeftTable">
  29. <i slot="suffix" class="el-input__icon el-icon-search" @click="queryLeftTable"></i>
  30. </el-input>
  31. </div>
  32. <div class="query-item">
  33. <label>数据源</label>
  34. <dataSource :Related="false" @change="changeDataSource" :typeName="typeName"></dataSource>
  35. </div>
  36. <div class="query-item">
  37. <label>位置标签</label>
  38. <locationFlag :Related="false" @change="changeLocationFlag" :typeName="typeName"></locationFlag>
  39. </div>
  40. </div>
  41. <!-- 左侧列表 -->
  42. <div class="table-box">
  43. <div class="l-custom-table custom-table" v-loading="lTableLoading">
  44. <el-table ref="lTableBody" :data="LtableData" tooltip-effect="dark" style="width: 100%" height="100%" @row-click="clickLeftRow"
  45. @selection-change="leftSelectionChange">
  46. <el-table-column label="数据源" align="right" show-overflow-tooltip>
  47. <template slot-scope="scope">{{ scope.row.Datasource }}</template>
  48. </el-table-column>
  49. <el-table-column label="位置标签" align="right">
  50. <template slot-scope="scope">
  51. <el-tooltip :content="scope.row.LocationFlag.toString()" placement="top">
  52. <div class="tool-tip">{{scope.row.LocationFlag.toString()}}</div>
  53. </el-tooltip>
  54. </template>
  55. </el-table-column>
  56. <el-table-column prop="SubTypeName" label="设备类型关键字" align="right" show-overflow-tooltip></el-table-column>
  57. <el-table-column prop="EquipmentMark" label="设备标识" show-overflow-tooltip align="right" width="200" class-name="bgf5"></el-table-column>
  58. <el-table-column type="selection" width="35" class-name="bgf5"></el-table-column>
  59. </el-table>
  60. </div>
  61. <!-- 智能推荐 -->
  62. <transition name="el-zoom-in-top">
  63. <div class="AIRecom" v-show="leftRecoList.length&&leftAI&&rArray.length">
  64. <div class="l-title">
  65. 可能对应的设备标识
  66. <i class="el-icon-close" @click="leftRecoList=[]"></i>
  67. </div>
  68. <div v-for="(t,i) in leftRecoList" :key="t.id" class="l-ai-recom-item ai-recom-item" @click="selectAI(i,'l')">
  69. <p>
  70. <el-checkbox v-model="t.checked"></el-checkbox>
  71. <span>{{t.Proximity}}%</span>
  72. </p>
  73. <p>{{t.EquipmentMark&&t.EquipmentMark!='null'?t.EquipmentMark:''}}</p>
  74. <p>{{t.LocationFlag.toString()}}</p>
  75. <!-- <p>{{t.address}}</p> -->
  76. </div>
  77. </div>
  78. </transition>
  79. </div>
  80. </div>
  81. <div class="right-table" style="float: right;">
  82. <h5>未对应的设备实例</h5>
  83. <!-- 查询条件 -->
  84. <div class="query-box clearfix">
  85. <div class="query-item">
  86. <label>设备实例关键字</label>
  87. <el-input placeholder="请输入设备实例关键字" v-model="form.EquipLocalName" @keyup.enter.native="queryRightTable">
  88. <i slot="suffix" class="el-input__icon el-icon-search" @click="queryRightTable"></i>
  89. </el-input>
  90. </div>
  91. <div class="query-item">
  92. <label>所在位置</label>
  93. <location-cas @change="changeLocation" :Related="false" :typeName="typeName"></location-cas>
  94. </div>
  95. </div>
  96. <!-- 右侧列表 -->
  97. <div class="table-box">
  98. <div class="r-custom-table custom-table" v-loading="rTableLoading">
  99. <el-table ref="rTableBody" :data="RtableData" tooltip-effect="dark" style="width: 100%" height="100%" @row-click="clickRightRow"
  100. @selection-change="rightSelectionChange">
  101. <el-table-column type="selection" width="35" class-name="bgf5"></el-table-column>
  102. <el-table-column label="设备实例名称" width="200" class-name="bgf5" show-overflow-tooltip>
  103. <template slot-scope="scope">{{ scope.row.EquipLocalName }}</template>
  104. </el-table-column>
  105. <el-table-column prop="ObjectID" label="设备实例编码" show-overflow-tooltip></el-table-column>
  106. <el-table-column prop="SubTypeName" label="设备类型" show-overflow-tooltip></el-table-column>
  107. <el-table-column label="所在建筑楼层">
  108. <template slot-scope="scope">
  109. <el-tooltip :content="scope.row.BuildLocalName&&scope.row.FloorLocalName?scope.row.BuildLocalName+'-'+scope.row.FloorLocalName:''"
  110. placement="top">
  111. <div class="tool-tip">
  112. {{scope.row.BuildLocalName&&scope.row.FloorLocalName?scope.row.BuildLocalName+'-'+scope.row.FloorLocalName:''}}</div>
  113. </el-tooltip>
  114. </template>
  115. </el-table-column>
  116. <el-table-column prop="RoomLocalName" label="所在业务空间" show-overflow-tooltip></el-table-column>
  117. </el-table>
  118. </div>
  119. <!-- 智能推荐 -->
  120. <transition name="el-zoom-in-top">
  121. <div class="AIRecom" v-show="rightRecoList.length&&!leftAI&&lArray.length">
  122. <div class="r-title">
  123. 可能对应的设备实例
  124. <i class="el-icon-close" @click="rightRecoList=[]"></i>
  125. </div>
  126. <div v-for="(t,i) in rightRecoList" :key="t.id" class="r-ai-recom-item ai-recom-item" @click="selectAI(i,'r')">
  127. <p>
  128. <el-checkbox v-model="t.checked"></el-checkbox>
  129. <span>{{t.Proximity}}%</span>
  130. </p>
  131. <p>{{t.EquipLocalName}}</p>
  132. <p>{{BuildLocalName&&BuildLocalName!='null'?t.BuildLocalName:''}}-{{t.FloorLocalName&&t.FloorLocalName!='null'?t.FloorLocalName:''}}
  133. </p>
  134. <p>{{t.RoomLocalName&&t.RoomLocalName!='null'?t.RoomLocalName:''}}</p>
  135. <p>{{t.InstallLocation&&t.InstallLocation!='null'?t.InstallLocation:''}}</p>
  136. </div>
  137. </div>
  138. </transition>
  139. </div>
  140. </div>
  141. </div>
  142. <!-- 历史记录弹窗 -->
  143. <history-dialog ref="history" @delSuc="deleteSuc"></history-dialog>
  144. </div>
  145. </template>
  146. <script>
  147. import tools from "@/utils/tools";
  148. import historyDialog from "@/components/point/dynamicdata/historyDialog";
  149. import locationCas from "@/components/point/dynamicdata/locationCascader";
  150. import dictionaryDevice from "@/components/point/dynamicdata/dictionaryDevice";
  151. import dataSource from "@/components/point/dynamicdata/dataSource";
  152. import locationFlag from "@/components/point/dynamicdata/locationFlag";
  153. import { mapGetters, mapActions } from "vuex";
  154. import {
  155. dynamicPendingobjs,
  156. dynamicPendingPoint,
  157. dynamicCreateRelation,
  158. dynamicDeleteRelation,
  159. dynamicPointTypeList,
  160. dynamicQueryAI
  161. } from "@/api/scan/request";
  162. export default {
  163. components: {
  164. historyDialog,
  165. locationCas,
  166. dictionaryDevice,
  167. dataSource,
  168. locationFlag
  169. },
  170. data() {
  171. return {
  172. isSwitch: true, //AI辅助
  173. typeName: "", //当前类型
  174. LtableData: [], //列表数据
  175. RtableData: [], //列表数据
  176. form: {
  177. EquipmentMark: "", //设备标识关键字
  178. SubTypeName: [], //数据字典设备类型
  179. LocationFlag: [], //位置标签
  180. Datasource: [], //数据源
  181. EquipLocalName: "", //设备实例关键字
  182. locationVal: [] //所在位置下拉
  183. }, //查询条件
  184. leftRecoList: [], //左推荐
  185. rightRecoList: [], //右推荐
  186. leftAI: true, //左右推荐公用-互斥
  187. lArray: [], //左侧选中数据
  188. rArray: [], //右侧选中数据
  189. hasRequestedFlag: false, //用于标识是否关联过数据,若是则重新请求第一页数据,
  190. showPlus: false, //+1记录动画
  191. num: 0, //记录条数
  192. timer: null, //函数节流 延时器
  193. historyList: [], //操作历史
  194. lTableLoading: false, //loading
  195. rTableLoading: false,
  196. lPage: {
  197. pageNumber: 1,
  198. pageSize: 50,
  199. total: 0
  200. },
  201. rPage: {
  202. pageNumber: 1,
  203. pageSize: 50,
  204. total: 0
  205. }
  206. };
  207. },
  208. created() {
  209. this.typeName = this.$route.query.typeName;
  210. this.init();
  211. },
  212. mounted() {
  213. this.lTableBody = this.$refs.lTableBody.bodyWrapper;
  214. this.rTableBody = this.$refs.rTableBody.bodyWrapper;
  215. this.lTableBody.addEventListener("scroll", () => {
  216. // 滚动距离
  217. let scrollTop = this.lTableBody.scrollTop;
  218. // 变量windowHeight是可视区的高度
  219. let windowHeight =
  220. this.lTableBody.clientHeight || this.lTableBody.clientHeight;
  221. // 变量scrollHeight是滚动条的总高度
  222. let scrollHeight =
  223. this.lTableBody.scrollHeight || this.lTableBody.scrollHeight;
  224. if (scrollTop + windowHeight === scrollHeight) {
  225. if (this.lPage.pageNumber * this.lPage.pageSize < this.lPage.total) {
  226. this.lPage.pageNumber++;
  227. if (this.LtableData.length < 50) {
  228. this.lPage.pageNumber = 1
  229. }
  230. this.getLeftData();
  231. }
  232. }
  233. });
  234. this.rTableBody.addEventListener("scroll", () => {
  235. // 滚动距离
  236. let scrollTop = this.rTableBody.scrollTop;
  237. // 变量windowHeight是可视区的高度
  238. let windowHeight =
  239. this.rTableBody.clientHeight || this.rTableBody.clientHeight;
  240. // 变量scrollHeight是滚动条的总高度
  241. let scrollHeight =
  242. this.rTableBody.scrollHeight || this.rTableBody.scrollHeight;
  243. if (scrollTop + windowHeight === scrollHeight) {
  244. // 获取到的不是全部数据 当滚动到底部 继续获取新的数据
  245. if (this.rPage.pageNumber * this.rPage.pageSize < this.rPage.total) {
  246. this.rPage.pageNumber++;
  247. if (this.RtableData.length < 50) {
  248. this.rPage.pageNumber = 1
  249. }
  250. this.getRightData();
  251. }
  252. }
  253. });
  254. },
  255. computed: {
  256. ...mapGetters("layout", ["projectId"]),
  257. requestFlag() {
  258. return this.lArray.length > 0 && this.rArray.length > 0;
  259. }
  260. },
  261. methods: {
  262. init() {
  263. this.queryLeftTable();
  264. this.queryRightTable();
  265. },
  266. //切换AI辅助
  267. changeType() { },
  268. //推荐中的选择事件
  269. selectAI(i, l) {
  270. //i 索引 l 左侧AI or 右侧AI
  271. if (l == "l") {
  272. this.leftRecoList[i].checked = true;
  273. this.lArray = [];
  274. this.lArray.push(this.leftRecoList[i]);
  275. } else {
  276. this.rightRecoList[i].checked = true;
  277. this.rArray = [];
  278. this.rArray.push(this.rightRecoList[i]);
  279. }
  280. },
  281. //查看本次历史记录
  282. showHistory() {
  283. this.$refs.history.showDialog(this.historyList);
  284. },
  285. //重新获取数据
  286. reGetData() {
  287. //删除选中项
  288. this.delSelectedRows(this.lArray, this.rArray);
  289. let history = { leftList: this.lArray, rightList: this.rArray };
  290. this.historyList.push(history); //保存本次操作记录
  291. this.lArray = []; //清空选中list
  292. this.rArray = [];
  293. this.num++; //右上角操作记录
  294. this.showPlus = true;
  295. setTimeout(() => {
  296. this.showPlus = false;
  297. }, 800);
  298. },
  299. //少于20条请求数据-否则删除选中项
  300. delSelectedRows(lArray, rArray) {
  301. for (let i = this.LtableData.length - 1; i >= 0; i--) {
  302. for (let j = 0; j < lArray.length; j++) {
  303. if (this.LtableData[i].EquipmentMark == lArray[j].EquipmentMark && this.LtableData[i].SubTypeCode == lArray[j].SubTypeCode) {
  304. this.LtableData.splice(i, 1)
  305. continue; //结束当前本轮循环,开始新的一轮循环
  306. }
  307. }
  308. }
  309. for (let i = this.RtableData.length - 1; i >= 0; i--) {
  310. for (let j = 0; j < rArray.length; j++) {
  311. if (this.RtableData[i].ObjectID == rArray[j].ObjectID && this.RtableData[i].SubTypeCode == rArray[j].SubTypeCode) {
  312. this.RtableData.splice(i, 1)
  313. continue; //结束当前本轮循环,开始新的一轮循环
  314. }
  315. }
  316. }
  317. if (this.LtableData.length < 20) {
  318. this.queryLeftTable()
  319. }
  320. if (this.RtableData.length < 20) {
  321. this.queryRightTable()
  322. }
  323. },
  324. //表格中的选中事件
  325. leftSelectionChange(selection) {
  326. this.lArray = selection;
  327. },
  328. rightSelectionChange(selection) {
  329. this.rArray = selection;
  330. },
  331. //查询左侧列表
  332. queryLeftTable() {
  333. this.lPage.pageNumber = 1;
  334. if (this.$refs.lTableBody && this.$refs.lTableBody.bodyWrapper) {
  335. this.$refs.lTableBody.bodyWrapper.scrollTop = 0
  336. }
  337. this.getLeftData();
  338. },
  339. //查询右侧列表
  340. queryRightTable() {
  341. this.rPage.pageNumber = 1;
  342. if (this.$refs.rTableBody && this.$refs.rTableBody.bodyWrapper) {
  343. this.$refs.rTableBody.bodyWrapper.scrollTop = 0
  344. }
  345. this.getRightData();
  346. },
  347. //获取待关联点位-左侧
  348. getLeftData() {
  349. let param = {
  350. PageNumber: this.lPage.pageNumber,
  351. PageSize: this.lPage.pageSize,
  352. TypeNameList: [this.typeName]
  353. };
  354. //处理查询条件(目前只是单个查,需后台支持)
  355. if (this.form.EquipmentMark && this.form.EquipmentMark.length) {
  356. param.EquipmentMark = this.form.EquipmentMark;
  357. }
  358. if (this.form.SubTypeName.length) {
  359. param.SubTypeNameList = this.form.SubTypeName;
  360. }
  361. if (this.form.LocationFlag.length) {
  362. param.LocationFlagList = this.form.LocationFlag;
  363. }
  364. if (this.form.Datasource.length) {
  365. param.DatasourceList = this.form.Datasource;
  366. }
  367. this.lTableLoading = true;
  368. dynamicPendingPoint(param, res => {
  369. this.lPage.total = res.Total;
  370. if (this.lPage.pageNumber == 1) {
  371. this.LtableData = res.Content;
  372. } else {
  373. this.LtableData = this.LtableData.concat(res.Content);
  374. }
  375. this.lTableLoading = false;
  376. });
  377. },
  378. //获取待关联实例-右侧
  379. getRightData() {
  380. let param = {
  381. PageNumber: this.rPage.pageNumber,
  382. PageSize: this.rPage.pageSize,
  383. TypeNameList: [this.typeName]
  384. };
  385. //处理查询条件
  386. if (this.form.EquipLocalName && this.form.EquipLocalName.length) {
  387. param.EquipLocalName = this.form.EquipLocalName;
  388. }
  389. if (this.form.SubTypeName.length) {
  390. param.SubTypeNameList = this.form.SubTypeName;
  391. }
  392. if (this.form.locationVal.length > 0) {
  393. param.BuildLocalName = this.form.locationVal[0];
  394. }
  395. if (this.form.locationVal.length > 1) {
  396. param.FloorLocalName = this.form.locationVal[1];
  397. }
  398. if (this.form.locationVal.length > 2) {
  399. param.SpaceType = this.form.locationVal[2];
  400. }
  401. if (this.form.locationVal.length > 3) {
  402. param.RoomLocalName = this.form.locationVal[3];
  403. }
  404. if (!this.form.locationVal.length) {
  405. delete param.BuildLocalName
  406. delete param.FloorLocalName
  407. delete param.SpaceType
  408. delete param.RoomLocalName
  409. }
  410. this.rTableLoading = true;
  411. dynamicPendingobjs(param, res => {
  412. this.rPage.total = res.Total;
  413. if (this.rPage.pageNumber == 1) {
  414. this.RtableData = res.Content;
  415. } else {
  416. this.RtableData = this.RtableData.concat(res.Content);
  417. }
  418. this.rTableLoading = false;
  419. });
  420. },
  421. //清除对应关系成功
  422. deleteSuc() {
  423. this.num--;
  424. this.queryLeftTable();
  425. this.queryRightTable();
  426. },
  427. //所在位置修改
  428. changeLocation(val) {
  429. this.form.locationVal = val;
  430. this.queryRightTable();
  431. },
  432. //数据字典设备类型修改
  433. changeDictionary(val) {
  434. this.form.SubTypeName = val;
  435. this.queryLeftTable();
  436. this.queryRightTable();
  437. },
  438. //数据源修改
  439. changeDataSource(val) {
  440. this.form.Datasource = val;
  441. this.queryLeftTable();
  442. },
  443. //修改位置标签
  444. changeLocationFlag(val) {
  445. this.form.LocationFlag = val;
  446. this.queryLeftTable();
  447. },
  448. //返回
  449. goback() {
  450. this.$router.push({ path: '/point/dynamicdata', query: { typeName: this.typeName } })
  451. },
  452. //点击行
  453. clickLeftRow(row, column, event) {
  454. this.$refs.lTableBody.toggleRowSelection(row);
  455. },
  456. //点击行
  457. clickRightRow(row, column, event) {
  458. this.$refs.rTableBody.toggleRowSelection(row);
  459. },
  460. },
  461. watch: {
  462. projectId(n, o) {
  463. this.init();
  464. },
  465. //判断两边是否均有选中值-创建关联
  466. requestFlag(n, o) {
  467. if (n) {
  468. this.rightRecoList = [];
  469. this.leftRecoList = [];
  470. let object = {
  471. Objs: this.rArray,
  472. Points: this.lArray
  473. };
  474. let param = [];
  475. param.push(object);
  476. dynamicCreateRelation(param, res => {
  477. if (res.Result == "success") {
  478. this.$message.success("关联成功");
  479. this.reGetData();
  480. }
  481. });
  482. }
  483. },
  484. //AI辅助-左侧
  485. lArray(n, o) {
  486. //先清空,返回结果后赋值
  487. this.rightRecoList = [];
  488. clearTimeout(this.timer);
  489. if (this.isSwitch && n.length) {
  490. this.timer = setTimeout(() => {
  491. let param = []
  492. n.map(item => {
  493. param.push({ Points: [item] })
  494. })
  495. dynamicQueryAI(param, res => {
  496. this.rightRecoList = res.Content[0].Objs;
  497. this.leftAI = !this.rightRecoList.length
  498. })
  499. }, 800)
  500. } else {
  501. this.rightRecoList = []
  502. this.leftAI = true;
  503. }
  504. },
  505. //AI辅助-右侧
  506. rArray(n, o) {
  507. this.leftRecoList = [];
  508. clearTimeout(this.timer);
  509. if (this.isSwitch && n.length) {
  510. this.timer = setTimeout(() => {
  511. let param = []
  512. n.map(item => {
  513. param.push({ Objs: [item] })
  514. })
  515. dynamicQueryAI(param, res => {
  516. this.leftRecoList = res.Content[0].Points;
  517. this.leftAI = !!this.leftRecoList.length
  518. })
  519. }, 800)
  520. } else {
  521. this.leftRecoList = []
  522. this.leftAI = false
  523. }
  524. }
  525. }
  526. };
  527. </script>
  528. <style lang="scss" scoped>
  529. #addRelation {
  530. height: 100%;
  531. background-color: #fff;
  532. padding: 10px 20px 10px 10px;
  533. .text-right {
  534. text-align: right;
  535. }
  536. /deep/ .table-container {
  537. height: calc(100% - 160px);
  538. & > div {
  539. width: 49.5%;
  540. float: left;
  541. }
  542. .left-table,
  543. .right-table {
  544. height: 100%;
  545. h5 {
  546. line-height: 44px;
  547. padding-left: 5px;
  548. background-color: #dfe6ec;
  549. }
  550. .query-box {
  551. margin-bottom: 20px;
  552. .query-item {
  553. float: left;
  554. width: 30%;
  555. margin: 5px;
  556. label {
  557. display: block;
  558. margin-bottom: 5px;
  559. }
  560. .el-select {
  561. width: 100%;
  562. }
  563. }
  564. }
  565. .table-box {
  566. height: calc(100% - 50px);
  567. position: relative;
  568. .AIRecom {
  569. position: absolute;
  570. width: 96%;
  571. height: 160px;
  572. bottom: 5px;
  573. left: 1%;
  574. background-color: rgba(255, 255, 255, 0.9);
  575. z-index: 3;
  576. font-size: 12px;
  577. .r-title {
  578. padding-left: 10px;
  579. i {
  580. float: right;
  581. }
  582. }
  583. .l-title {
  584. text-align: right;
  585. padding-right: 10px;
  586. i {
  587. float: left;
  588. }
  589. }
  590. .ai-recom-item {
  591. width: 30%;
  592. height: 126px;
  593. float: left;
  594. border: 1px solid #ebeef5;
  595. overflow: hidden;
  596. padding-top: 5px;
  597. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  598. p {
  599. position: relative;
  600. white-space: nowrap;
  601. text-overflow: ellipsis;
  602. overflow: hidden;
  603. padding: 0 8px;
  604. z-index: -1;
  605. span {
  606. float: right;
  607. }
  608. .el-checkbox {
  609. margin-right: 0;
  610. }
  611. }
  612. }
  613. .ai-recom-item.r-ai-recom-item + .ai-recom-item {
  614. margin-left: 3%;
  615. }
  616. .l-ai-recom-item {
  617. float: right;
  618. p {
  619. text-align: right;
  620. padding-right: 10px;
  621. span {
  622. float: left;
  623. }
  624. }
  625. }
  626. .ai-recom-item.l-ai-recom-item + .ai-recom-item {
  627. margin-right: 3%;
  628. }
  629. }
  630. }
  631. ::-webkit-scrollbar {
  632. display: none;
  633. }
  634. //列表
  635. .custom-table {
  636. height: 100%;
  637. .bgf5 {
  638. background-color: #f5f7fa;
  639. }
  640. thead label.el-checkbox {
  641. display: none;
  642. }
  643. }
  644. .l-custom-table {
  645. td {
  646. text-align: right;
  647. }
  648. }
  649. .tool-tip {
  650. white-space: nowrap;
  651. overflow: hidden;
  652. text-overflow: ellipsis;
  653. }
  654. }
  655. }
  656. .fr {
  657. padding-top: 10px;
  658. float: right;
  659. }
  660. .clearfix:before,
  661. .clearfix:after {
  662. content: "";
  663. display: block;
  664. clear: both;
  665. }
  666. .clearfix {
  667. zoom: 1;
  668. }
  669. .ani-his-plus {
  670. position: relative;
  671. .plusOne {
  672. position: absolute;
  673. color: red;
  674. left: 50%;
  675. bottom: 50%;
  676. font-size: 20px;
  677. font-weight: 800;
  678. }
  679. .startAni {
  680. animation: fadeToTop 1s;
  681. }
  682. }
  683. @keyframes fadeToTop {
  684. 0% {
  685. left: 50%;
  686. bottom: 50%;
  687. opacity: 1;
  688. }
  689. 100% {
  690. bottom: 100%;
  691. opacity: 0;
  692. }
  693. }
  694. }
  695. </style>
  696. <style>
  697. body{
  698. overflow-y: hidden;
  699. }
  700. </style>