index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  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" :typeName="typeName"></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>未对应的{{typeName}}标识</h5>
  24. <!-- 查询条件 -->
  25. <div class="query-box clearfix">
  26. <div class="query-item">
  27. <label>{{typeName}}标识关键字</label>
  28. <el-input :placeholder="`请输入${typeName}标识关键字`" 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="`${typeName}类型关键字`" align="right" show-overflow-tooltip></el-table-column>
  57. <el-table-column prop="EquipmentMark" :label="`${typeName}标识`" 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. 可能对应的{{typeName}}标识
  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>未对应的{{typeName}}实例</h5>
  83. <!-- 查询条件 -->
  84. <div class="query-box clearfix">
  85. <div class="query-item">
  86. <label>{{typeName}}实例关键字</label>
  87. <el-input :placeholder="`请输入${typeName}实例关键字`" v-model="form.ObjectLocalName" @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="`${typeName}实例名称`" width="200" class-name="bgf5" show-overflow-tooltip>
  103. <template slot-scope="scope">{{ scope.row.ObjectLocalName }}</template>
  104. </el-table-column>
  105. <el-table-column prop="ObjectLocalCode" :label="`${typeName}本地编码`" show-overflow-tooltip></el-table-column>
  106. <el-table-column prop="SubTypeName" :label="`${typeName}类型`" 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.BuildLocalName+'-':''+scope.row.FloorLocalName?scope.row.FloorLocalName:''"
  110. placement="top">
  111. <div class="tool-tip">
  112. {{scope.row.BuildLocalName?scope.row.BuildLocalName+'-':''+scope.row.FloorLocalName?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. 可能对应的{{typeName}}实例
  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.ObjectLocalName}}</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. ObjectLocalName: "", //设备实例关键字
  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 li = this.LtableData.length - 1; li >= 0; li--) {
  303. for (let lj = 0; lj < lArray.length; lj++) {
  304. if (this.LtableData[li] && (this.LtableData[li].EquipmentMark == lArray[lj].EquipmentMark && this.LtableData[li].SubTypeCode == lArray[lj].SubTypeCode)) {
  305. // this.LtableData.splice(i, 1)
  306. delete this.LtableData[li]
  307. continue; //结束当前本轮循环,开始新的一轮循环
  308. }
  309. }
  310. }
  311. this.LtableData = this.LtableData.filter(item => {
  312. return !(item == 'undefined')
  313. })
  314. for (let ri = this.RtableData.length - 1; ri >= 0; ri--) {
  315. for (let rj = 0; rj < rArray.length; rj++) {
  316. if (this.RtableData[ri] && (this.RtableData[ri].ObjectID == rArray[rj].ObjectID && this.RtableData[ri].SubTypeCode == rArray[rj].SubTypeCode)) {
  317. // this.RtableData.splice(i, 1)
  318. delete this.RtableData[ri]
  319. continue; //结束当前本轮循环,开始新的一轮循环
  320. }
  321. }
  322. }
  323. this.RtableData = this.RtableData.filter(item => {
  324. return !(item == 'undefined')
  325. })
  326. if (this.LtableData.length < 20 && this.lPage.Total > 49) {
  327. this.queryLeftTable()
  328. }
  329. if (this.RtableData.length < 20 && this.rPage.Total > 49) {
  330. this.queryRightTable()
  331. }
  332. },
  333. //表格中的选中事件
  334. leftSelectionChange(selection) {
  335. this.lArray = selection;
  336. },
  337. rightSelectionChange(selection) {
  338. this.rArray = selection;
  339. },
  340. //查询左侧列表
  341. queryLeftTable() {
  342. this.lPage.pageNumber = 1;
  343. if (this.$refs.lTableBody && this.$refs.lTableBody.bodyWrapper) {
  344. this.$refs.lTableBody.bodyWrapper.scrollTop = 0
  345. }
  346. this.getLeftData();
  347. },
  348. //查询右侧列表
  349. queryRightTable() {
  350. this.rPage.pageNumber = 1;
  351. if (this.$refs.rTableBody && this.$refs.rTableBody.bodyWrapper) {
  352. this.$refs.rTableBody.bodyWrapper.scrollTop = 0
  353. }
  354. this.getRightData();
  355. },
  356. //获取待关联点位-左侧
  357. getLeftData() {
  358. let param = {
  359. PageNumber: this.lPage.pageNumber,
  360. PageSize: this.lPage.pageSize,
  361. TypeNameList: [this.typeName]
  362. };
  363. //处理查询条件(目前只是单个查,需后台支持)
  364. if (this.form.EquipmentMark && this.form.EquipmentMark.length) {
  365. param.EquipmentMark = this.form.EquipmentMark;
  366. }
  367. if (this.form.SubTypeName.length) {
  368. param.SubTypeNameList = this.form.SubTypeName;
  369. }
  370. if (this.form.LocationFlag.length) {
  371. param.LocationFlagList = this.form.LocationFlag;
  372. }
  373. if (this.form.Datasource.length) {
  374. param.DatasourceList = this.form.Datasource;
  375. }
  376. this.lTableLoading = true;
  377. dynamicPendingPoint(param, res => {
  378. this.lPage.total = res.PageSize < 50 ? res.PageSize : res.Total;
  379. if (this.lPage.pageNumber == 1) {
  380. this.LtableData = res.Content;
  381. } else {
  382. this.LtableData = this.LtableData.concat(res.Content);
  383. }
  384. this.lTableLoading = false;
  385. });
  386. },
  387. //获取待关联实例-右侧
  388. getRightData() {
  389. let param = {
  390. PageNumber: this.rPage.pageNumber,
  391. PageSize: this.rPage.pageSize,
  392. TypeNameList: [this.typeName]
  393. };
  394. //处理查询条件
  395. if (this.form.ObjectLocalName && this.form.ObjectLocalName.length) {
  396. param.ObjectLocalName = this.form.ObjectLocalName;
  397. }
  398. if (this.form.SubTypeName.length) {
  399. param.SubTypeNameList = this.form.SubTypeName;
  400. }
  401. if (this.form.locationVal.length > 0) {
  402. param.BuildLocalName = this.form.locationVal[0];
  403. }
  404. if (this.form.locationVal.length > 1) {
  405. param.FloorLocalName = this.form.locationVal[1];
  406. }
  407. if (this.form.locationVal.length > 2) {
  408. param.SpaceType = this.form.locationVal[2];
  409. }
  410. if (this.form.locationVal.length > 3) {
  411. param.RoomLocalName = this.form.locationVal[3];
  412. }
  413. if (!this.form.locationVal.length) {
  414. delete param.BuildLocalName
  415. delete param.FloorLocalName
  416. delete param.SpaceType
  417. delete param.RoomLocalName
  418. }
  419. this.rTableLoading = true;
  420. dynamicPendingobjs(param, res => {
  421. this.rPage.total = res.PageSize < 50 ? res.PageSize : res.Total;
  422. if (this.rPage.pageNumber == 1) {
  423. this.RtableData = res.Content;
  424. } else {
  425. this.RtableData = this.RtableData.concat(res.Content);
  426. }
  427. this.rTableLoading = false;
  428. });
  429. },
  430. //清除对应关系成功
  431. deleteSuc() {
  432. this.num--;
  433. this.queryLeftTable();
  434. this.queryRightTable();
  435. },
  436. //所在位置修改
  437. changeLocation(val) {
  438. this.form.locationVal = val;
  439. this.queryRightTable();
  440. },
  441. //数据字典设备类型修改
  442. changeDictionary(val) {
  443. this.form.SubTypeName = val;
  444. this.queryLeftTable();
  445. this.queryRightTable();
  446. },
  447. //数据源修改
  448. changeDataSource(val) {
  449. this.form.Datasource = val;
  450. this.queryLeftTable();
  451. },
  452. //修改位置标签
  453. changeLocationFlag(val) {
  454. this.form.LocationFlag = val;
  455. this.queryLeftTable();
  456. },
  457. //返回
  458. goback() {
  459. this.$router.push({ path: '/point/dynamicdata', query: { typeName: this.typeName } })
  460. },
  461. //点击行
  462. clickLeftRow(row, column, event) {
  463. this.$refs.lTableBody.toggleRowSelection(row);
  464. },
  465. //点击行
  466. clickRightRow(row, column, event) {
  467. this.$refs.rTableBody.toggleRowSelection(row);
  468. },
  469. },
  470. watch: {
  471. projectId(n, o) {
  472. this.init();
  473. },
  474. //判断两边是否均有选中值-创建关联
  475. requestFlag(n, o) {
  476. if (n) {
  477. this.rightRecoList = [];
  478. this.leftRecoList = [];
  479. let object = {
  480. Objs: this.rArray,
  481. Points: this.lArray
  482. };
  483. let param = [];
  484. param.push(object);
  485. setTimeout(() => {
  486. this.reGetData();
  487. }, 200)
  488. dynamicCreateRelation(param, res => {
  489. if (res.Result == "success") {
  490. this.$message.success("关联成功");
  491. }
  492. });
  493. }
  494. },
  495. //AI辅助-左侧
  496. lArray(n, o) {
  497. //先清空,返回结果后赋值
  498. this.rightRecoList = [];
  499. clearTimeout(this.timer);
  500. if (this.isSwitch && n.length) {
  501. this.timer = setTimeout(() => {
  502. let param = []
  503. n.map(item => {
  504. param.push({
  505. Points: [item],
  506. Top: 3,
  507. Proximity: 0.5
  508. })
  509. })
  510. dynamicQueryAI(param, res => {
  511. this.rightRecoList = res.Content[0].Objs;
  512. this.leftAI = !this.rightRecoList.length
  513. })
  514. }, 800)
  515. } else {
  516. this.rightRecoList = []
  517. this.leftAI = true;
  518. }
  519. },
  520. //AI辅助-右侧
  521. rArray(n, o) {
  522. this.leftRecoList = [];
  523. clearTimeout(this.timer);
  524. if (this.isSwitch && n.length) {
  525. this.timer = setTimeout(() => {
  526. let param = []
  527. n.map(item => {
  528. param.push({
  529. Objs: [item],
  530. Top: 3,
  531. Proximity: 0.5
  532. })
  533. })
  534. dynamicQueryAI(param, res => {
  535. this.leftRecoList = res.Content[0].Points;
  536. this.leftAI = !!this.leftRecoList.length
  537. })
  538. }, 800)
  539. } else {
  540. this.leftRecoList = []
  541. this.leftAI = false
  542. }
  543. }
  544. }
  545. };
  546. </script>
  547. <style lang="scss" scoped>
  548. #addRelation {
  549. height: 100%;
  550. background-color: #fff;
  551. padding: 10px 20px 10px 10px;
  552. .text-right {
  553. text-align: right;
  554. }
  555. /deep/ .table-container {
  556. height: calc(100% - 160px);
  557. & > div {
  558. width: 49.5%;
  559. float: left;
  560. }
  561. .left-table,
  562. .right-table {
  563. height: 100%;
  564. h5 {
  565. line-height: 44px;
  566. padding-left: 5px;
  567. background-color: #e1e4e5;
  568. color: #2b2b2b
  569. }
  570. .query-box {
  571. margin-bottom: 20px;
  572. .query-item {
  573. float: left;
  574. width: 30%;
  575. margin: 5px;
  576. label {
  577. display: block;
  578. margin-bottom: 5px;
  579. }
  580. .el-select {
  581. width: 100%;
  582. }
  583. }
  584. }
  585. .table-box {
  586. height: calc(100% - 50px);
  587. position: relative;
  588. .AIRecom {
  589. position: absolute;
  590. width: 96%;
  591. height: 160px;
  592. bottom: 5px;
  593. left: 1%;
  594. background-color: rgba(255, 255, 255, 0.9);
  595. z-index: 3;
  596. font-size: 12px;
  597. .r-title {
  598. padding-left: 10px;
  599. i {
  600. float: right;
  601. }
  602. }
  603. .l-title {
  604. text-align: right;
  605. padding-right: 10px;
  606. i {
  607. float: left;
  608. }
  609. }
  610. .ai-recom-item {
  611. width: 30%;
  612. height: 126px;
  613. float: left;
  614. border: 1px solid #ebeef5;
  615. overflow: hidden;
  616. padding-top: 5px;
  617. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  618. p {
  619. position: relative;
  620. white-space: nowrap;
  621. text-overflow: ellipsis;
  622. overflow: hidden;
  623. padding: 0 8px;
  624. z-index: -1;
  625. span {
  626. float: right;
  627. }
  628. .el-checkbox {
  629. margin-right: 0;
  630. }
  631. }
  632. }
  633. .ai-recom-item.r-ai-recom-item + .ai-recom-item {
  634. margin-left: 3%;
  635. }
  636. .l-ai-recom-item {
  637. float: right;
  638. p {
  639. text-align: right;
  640. padding-right: 10px;
  641. span {
  642. float: left;
  643. }
  644. }
  645. }
  646. .ai-recom-item.l-ai-recom-item + .ai-recom-item {
  647. margin-right: 3%;
  648. }
  649. }
  650. }
  651. ::-webkit-scrollbar {
  652. display: none;
  653. }
  654. //列表
  655. .custom-table {
  656. height: 100%;
  657. .bgf5 {
  658. background-color: #f5f7fa;
  659. }
  660. thead label.el-checkbox {
  661. display: none;
  662. }
  663. }
  664. .l-custom-table {
  665. td {
  666. text-align: right;
  667. }
  668. }
  669. .tool-tip {
  670. white-space: nowrap;
  671. overflow: hidden;
  672. text-overflow: ellipsis;
  673. }
  674. }
  675. }
  676. .fr {
  677. padding-top: 10px;
  678. float: right;
  679. }
  680. .clearfix:before,
  681. .clearfix:after {
  682. content: "";
  683. display: block;
  684. clear: both;
  685. }
  686. .clearfix {
  687. zoom: 1;
  688. }
  689. .ani-his-plus {
  690. position: relative;
  691. .plusOne {
  692. position: absolute;
  693. color: red;
  694. left: 50%;
  695. bottom: 50%;
  696. font-size: 20px;
  697. font-weight: 800;
  698. }
  699. .startAni {
  700. animation: fadeToTop 1s;
  701. }
  702. }
  703. @keyframes fadeToTop {
  704. 0% {
  705. left: 50%;
  706. bottom: 50%;
  707. opacity: 1;
  708. }
  709. 100% {
  710. bottom: 100%;
  711. opacity: 0;
  712. }
  713. }
  714. }
  715. </style>
  716. <style>
  717. body {
  718. overflow-y: hidden;
  719. }
  720. </style>