index.vue 23 KB

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