You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

referenceDataset.vue 22 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. <template>
  2. <div>
  3. <template v-if="showFlag">
  4. <div v-loading="loadingLinkPage">
  5. <div class="ui container">
  6. <div class="ui mobile reversed stackable grid">
  7. <div class="row" style="justify-content: space-between">
  8. <div class="ui blue small menu compact selectcloudbrain">
  9. <a class="item" :href="`${repoLink}/datasets`">{{
  10. i18n.current_dataset
  11. }}</a>
  12. <a
  13. class="active item"
  14. :href="`${repoLink}/datasets/reference_datasets`"
  15. >{{ i18n.linked_datasets }}</a
  16. >
  17. </div>
  18. <button
  19. style="margin-right: 2rem"
  20. class="ui green button"
  21. :class="{ disabled: !canWrite }"
  22. @click="openDataset()"
  23. >
  24. {{ i18n.linked_datasets }}
  25. </button>
  26. </div>
  27. <div class="row">
  28. <div class="ui two cards" style="width: 100%">
  29. <div
  30. class="ui card refer-dataset-card"
  31. v-for="(item, index) in datasetList"
  32. :key="index"
  33. @click="gotoDataset(item)"
  34. >
  35. <div class="content" style="border-bottom: none">
  36. <div class="refer-dataset-card-content">
  37. <div class="refer-dataset-card-title">
  38. <span
  39. :title="item.Title"
  40. class="nowrap"
  41. style="display: inline-block; max-width: 90%"
  42. >{{ item.Title }}</span
  43. ><img
  44. v-if="item.Recommend"
  45. src="/img/jian.svg"
  46. style="margin-left: 0.5rem"
  47. />
  48. </div>
  49. <template v-if="item.IsStaring">
  50. <div style="display: flex">
  51. <button
  52. class="ui mini basic button dataset-card-flavor"
  53. @click.stop="postStar(item, isSigned)"
  54. >
  55. <i class="ri-heart-fill" style="color: #fa8c16"></i>
  56. <span style="margin-left: 0.3rem">{{
  57. i18n.unfavorite
  58. }}</span>
  59. </button>
  60. <a class="ui mini basic button card-flavor-num">
  61. {{ item.NumStars }}
  62. </a>
  63. </div>
  64. </template>
  65. <template v-else>
  66. <div style="display: flex">
  67. <button
  68. class="ui mini basic button dataset-card-flavor"
  69. @click.stop="postStar(item, isSigned)"
  70. >
  71. <i class="ri-heart-line"></i>
  72. <span style="margin-left: 0.3rem">{{
  73. i18n.favorite
  74. }}</span>
  75. </button>
  76. <a class="ui mini basic button card-flavor-num">
  77. {{ item.NumStars }}
  78. </a>
  79. </div>
  80. </template>
  81. </div>
  82. <div style="font-size: 12px; margin-top: 5px">
  83. <a
  84. v-if="item.Category"
  85. :href="'/explore/datasets?category=' + item.Category"
  86. class="ui repo-topic label topic"
  87. >{{ i18n[item.Category] || item.Category }}</a
  88. >
  89. <a
  90. v-if="item.Task"
  91. :href="'/explore/datasets?task=' + item.Task"
  92. class="ui repo-topic label topic"
  93. >{{ i18n[item.Task] || item.Task }}</a
  94. >
  95. <a
  96. v-if="item.License"
  97. :href="'/explore/datasets?license=' + item.License"
  98. class="ui repo-topic label topic"
  99. >{{ item.License }}</a
  100. >
  101. </div>
  102. <div class="description card-flavor-desc">
  103. <p>{{ item.Description }}</p>
  104. </div>
  105. </div>
  106. <div
  107. class="extra content"
  108. style="border-top: none !important"
  109. >
  110. <div style="display: flex; align-items: center">
  111. <a
  112. :href="'/' + item.Repo.OwnerName"
  113. :title="item.Repo.OwnerName"
  114. >
  115. <img
  116. class="ui avatar image"
  117. style="width: 22px; height: 22px"
  118. :src="'/user/avatar/' + item.Repo.OwnerName + '/-1'"
  119. />
  120. </a>
  121. <span
  122. style="
  123. color: #999999;
  124. font-size: 12px;
  125. margin-left: 0.5rem;
  126. "
  127. >{{ item.CreatedUnix | transformTimestamp }}</span
  128. >
  129. <span
  130. style="
  131. display: flex;
  132. align-items: center;
  133. justify-content: center;
  134. margin: 0 1rem;
  135. "
  136. title="引用次数"
  137. >
  138. <i class="ri-link"></i>
  139. <span
  140. style="
  141. color: #101010;
  142. font-size: 12px;
  143. margin-left: 0.2rem;
  144. "
  145. >{{ item.UseCount }}</span
  146. >
  147. </span>
  148. <span
  149. style="display: flex; align-items: center; flex: 1"
  150. title="下载次数"
  151. >
  152. <i class="ri-download-line"></i>
  153. <span
  154. style="
  155. color: #101010;
  156. font-size: 12px;
  157. margin-left: 0.2rem;
  158. "
  159. >{{ item.DownloadTimes }}</span
  160. >
  161. </span>
  162. <button
  163. class="ui mini button"
  164. :class="{ disabled1: !canWrite }"
  165. @click.stop="
  166. cancelReferData(item.ID, item.Title, canWrite)
  167. "
  168. >
  169. {{ i18n.disassociate }}
  170. </button>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </template>
  180. <template v-else>
  181. <div class="ui container">
  182. <div class="ui mobile reversed stackable grid">
  183. <div class="row" style="justify-content: space-between">
  184. <div class="ui blue small menu compact selectcloudbrain">
  185. <a class="item" :href="`${repoLink}/datasets`">{{
  186. i18n.current_dataset
  187. }}</a>
  188. <a
  189. class="active item"
  190. :href="`${repoLink}/datasets/reference_datasets`"
  191. >{{ i18n.linked_datasets }}</a
  192. >
  193. </div>
  194. <button class="ui green button" @click="openDataset()">
  195. {{ i18n.linked_datasets }}
  196. </button>
  197. </div>
  198. </div>
  199. <div class="ui placeholder segment bgtask-none">
  200. <div class="ui icon header bgtask-header-pic"></div>
  201. <div class="bgtask-content-header">还未关联过数据集</div>
  202. <div class="bgtask-content">
  203. <div class="bgtask-content-txt">
  204. 您可以通过单击新建关联数据集按钮,将平台上公开数据集展示在这里。
  205. </div>
  206. <div class="bgtask-content-txt">
  207. 使用说明可以参考启智AI协作平台<a
  208. href="https://git.openi.org.cn/zeizei/OpenI_Learning"
  209. >小白训练营课程</a
  210. >
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </template>
  216. <el-dialog
  217. :title="i18n.linked_datasets"
  218. :visible.sync="dialogVisible"
  219. :width="dialogWidth"
  220. @closed="refreshData"
  221. >
  222. <div class="ui icon input dataset-search-vue">
  223. <i
  224. class="search icon"
  225. style="cursor: pointer; pointer-events: auto"
  226. @click="searchName"
  227. ></i>
  228. <input
  229. type="text"
  230. :placeholder="i18n.search_dataset"
  231. v-model="search"
  232. @keydown.enter.stop.prevent="searchName"
  233. />
  234. </div>
  235. <el-row>
  236. <el-col
  237. :span="17"
  238. style="
  239. padding-right: 1rem;
  240. border-right: 1px solid #f5f5f6;
  241. position: relative;
  242. "
  243. >
  244. <el-tabs v-model="activeName">
  245. <el-tab-pane :label="i18n.public_dataset" name="first">
  246. <el-row v-loading="loadingPublicPage">
  247. <el-checkbox-group
  248. v-model="checkList"
  249. style="font-size: 14px; line-height: 1"
  250. >
  251. <div
  252. v-for="(item, index) in publicDatasetList"
  253. :key="index"
  254. class="select-data-wrap"
  255. >
  256. <div class="dataset-header-vue">
  257. <el-checkbox
  258. :label="item.ID"
  259. @change="(checked) => changeCheckbox(checked, item)"
  260. :title="item.Title"
  261. class="select-data-title"
  262. style="display: flex; align-items: end"
  263. ><span class="ref-data-title">
  264. {{ item.Title }}
  265. </span></el-checkbox
  266. >
  267. <a
  268. class="select-data-title select-data-href"
  269. :href="`/${item.Repo.OwnerName}/${item.Repo.Name}/datasets`"
  270. :title="`${item.Repo.OwnerName}/${item.Repo.Alias}`"
  271. style="font-size: 12px"
  272. >{{ item.Repo.OwnerName }}/{{ item.Repo.Alias }}</a
  273. >
  274. </div>
  275. <div class="data-multiple-wrap" :title="item.Description">
  276. {{ item.Description }}
  277. </div>
  278. </div>
  279. </el-checkbox-group>
  280. </el-row>
  281. <div
  282. class="ui container"
  283. style="margin-top: 25px; text-align: center"
  284. >
  285. <el-pagination
  286. background
  287. @current-change="currentChange"
  288. :current-page="currentPage"
  289. :page-size="5"
  290. layout="total, prev, pager, next"
  291. :total="totalNum"
  292. >
  293. </el-pagination>
  294. </div>
  295. </el-tab-pane>
  296. </el-tabs>
  297. </el-col>
  298. <el-col
  299. :span="7"
  300. style="
  301. display: flex;
  302. flex-direction: column;
  303. height: 100%;
  304. right: 0;
  305. position: absolute;
  306. padding: 0 1.5rem;
  307. "
  308. >
  309. <div
  310. style="
  311. font-size: 14px;
  312. height: 40px;
  313. text-align: left;
  314. color: #0066ff;
  315. line-height: 40px;
  316. "
  317. >
  318. {{ i18n.selected_data_file }}
  319. </div>
  320. <div
  321. style="
  322. flex: 1;
  323. margin-top: 1.5rem;
  324. margin-bottom: 1rem;
  325. overflow-y: auto;
  326. "
  327. >
  328. <el-checkbox-group v-model="checkList">
  329. <el-checkbox
  330. v-for="(item, index) in selectDatasetArray"
  331. :key="index"
  332. :label="item.ID"
  333. :title="item.Title"
  334. @change="(checked) => changeCheckSelected(checked, item)"
  335. style="display: flex; margin: 0.5rem 0"
  336. ><span class="select-data-right">{{
  337. item.Title
  338. }}</span></el-checkbox
  339. >
  340. </el-checkbox-group>
  341. </div>
  342. <div style="text-align: end">
  343. <el-button
  344. @click.native="confirmDataset"
  345. size="small"
  346. style="
  347. background: #389e0d;
  348. color: #fff;
  349. border: 1px solid #389e0d;
  350. "
  351. >{{ i18n.sure }}</el-button
  352. >
  353. </div>
  354. </el-col>
  355. </el-row>
  356. </el-dialog>
  357. </div>
  358. </template>
  359. <script>
  360. const { _AppSubUrl, _StaticUrlPrefix, csrf } = window.config;
  361. export default {
  362. components: {},
  363. data() {
  364. return {
  365. dialogWidth: "65%",
  366. dialogVisible: false,
  367. activeName: "first",
  368. repoLink: "",
  369. datasetList: [],
  370. test: false,
  371. checkList: [],
  372. publicDatasetList: [],
  373. showFlag: true,
  374. search: "",
  375. selectDatasetArray: [],
  376. paramsPublics: { page: 1, q: "" },
  377. i18n: {},
  378. totalNum: 0,
  379. currentPage: 1,
  380. loadingLinkPage: false,
  381. loadingPublicPage: false,
  382. canWrite: true,
  383. isSigned: false,
  384. };
  385. },
  386. methods: {
  387. openDataset() {
  388. this.checkList = this.datasetList.map((item) => {
  389. this.selectDatasetArray.push({ ID: item.ID, Title: item.Title });
  390. return item.ID;
  391. });
  392. this.dialogVisible = true;
  393. this.getDatasetList();
  394. },
  395. refreshData() {
  396. this.checkList = [];
  397. this.selectDatasetArray = [];
  398. },
  399. gotoDataset(item) {
  400. location.href = `/${item.Repo.OwnerName}/${item.Repo.Name}/datasets`;
  401. },
  402. currentChange(page) {
  403. this.paramsPublics.page = page;
  404. this.getDatasetList();
  405. },
  406. searchName() {
  407. this.paramsPublics.q = this.search;
  408. this.paramsPublics.page = 1;
  409. this.getDatasetList();
  410. },
  411. cancelReferData(id, name, canWrite) {
  412. if (!canWrite) {
  413. return;
  414. }
  415. let url = `${this.repoLink}/datasets/reference_datasets/${id}`;
  416. this.$axios
  417. .delete(url)
  418. .then((res) => {
  419. if (res.data.Code === 0) {
  420. this.$message.success(`取消${name}关联数据集成功!`);
  421. let index = this.datasetList.findIndex((item) => {
  422. return item.ID === id;
  423. });
  424. this.datasetList.splice(index, 1);
  425. } else {
  426. this.$message.error(res.data.Message);
  427. }
  428. })
  429. .catch((err) => {
  430. this.$message.error(`取消关联数据集失败!`);
  431. console.log(err);
  432. });
  433. },
  434. confirmDataset() {
  435. this.submitReferDataset();
  436. this.dialogVisible = false;
  437. },
  438. changeCheckbox(checked, item) {
  439. console.log(this.checkList);
  440. // if (this.checkList.length > 10) {
  441. // this.checkList.splice(10, 1);
  442. // this.$message.error("关联超过20个数据集");
  443. // return;
  444. // }
  445. if (checked) {
  446. this.selectDatasetArray.push({ ID: item.ID, Title: item.Title });
  447. } else {
  448. let index = this.selectDatasetArray.findIndex((element) => {
  449. return element.ID === item.ID;
  450. });
  451. this.selectDatasetArray.splice(index, 1);
  452. }
  453. },
  454. changeCheckSelected(checked, item) {
  455. if (!checked) {
  456. let index = this.selectDatasetArray.findIndex((element) => {
  457. return element.ID === item.ID;
  458. });
  459. this.selectDatasetArray.splice(index, 1);
  460. }
  461. },
  462. postStar(item, isSigned) {
  463. if (!isSigned) {
  464. return;
  465. }
  466. if (item.IsStaring) {
  467. let url = `${this.repoLink}/datasets/${item.ID}/unstar`;
  468. this.$axios.put(url).then((res) => {
  469. if (res.data.Code === 0) {
  470. this.datasetList.forEach((element, i) => {
  471. if (element.ID === item.ID) {
  472. this.datasetList[i].NumStars -= 1;
  473. this.datasetList[i].IsStaring = !this.datasetList[i].IsStaring;
  474. }
  475. });
  476. }
  477. });
  478. } else {
  479. let url = `${this.repoLink}/datasets/${item.ID}/star`;
  480. this.$axios.put(url).then((res) => {
  481. if (res.data.Code === 0) {
  482. this.datasetList.forEach((element, i) => {
  483. if (element.ID === item.ID) {
  484. this.datasetList[i].NumStars += 1;
  485. this.datasetList[i].IsStaring = !this.datasetList[i].IsStaring;
  486. }
  487. });
  488. }
  489. });
  490. }
  491. },
  492. getSelectDatasetList() {
  493. this.loadingLinkPage = true;
  494. let url = `${this.repoLink}/datasets/reference_datasets_data`;
  495. this.$axios.get(url).then((res) => {
  496. console.log(res);
  497. this.loadingLinkPage = false;
  498. if (!res.data) {
  499. this.showFlag = false;
  500. this.datasetList = [];
  501. return;
  502. } else {
  503. this.datasetList = res.data;
  504. this.datasetList.length
  505. ? (this.showFlag = true)
  506. : (this.showFlag = false);
  507. }
  508. });
  509. },
  510. getDatasetList() {
  511. this.loadingPublicPage = true;
  512. let url = `${this.repoLink}/datasets/reference_datasets_available`;
  513. this.$axios
  514. .get(url, {
  515. params: this.paramsPublics,
  516. })
  517. .then((res) => {
  518. this.publicDatasetList = JSON.parse(res.data.data);
  519. this.totalNum = parseInt(res.data.count);
  520. this.loadingPublicPage = false;
  521. });
  522. },
  523. submitReferDataset() {
  524. if (this.checkList.length > 20) {
  525. this.$message.error("关联超过20个数据集");
  526. return;
  527. }
  528. let url = `${this.repoLink}/datasets/reference_datasets`;
  529. let data = this.qs.stringify(
  530. {
  531. _csrf: csrf,
  532. dataset_id: this.checkList,
  533. },
  534. { arrayFormat: "repeat" }
  535. );
  536. this.$axios
  537. .post(url, data)
  538. .then((res) => {
  539. if (res.data.Code === 0) {
  540. this.$message.success(`关联数据集成功!`);
  541. this.getSelectDatasetList();
  542. } else {
  543. this.$message.error(res.data.Message);
  544. }
  545. })
  546. .catch((err) => {
  547. this.$message.error(`关联数据集失败!`);
  548. console.log(err);
  549. });
  550. },
  551. },
  552. filters: {
  553. transformTimestamp(timestamp) {
  554. const date = new Date(parseInt(timestamp) * 1000);
  555. const Y = date.getFullYear() + "-";
  556. const M =
  557. (date.getMonth() + 1 < 10
  558. ? "0" + (date.getMonth() + 1)
  559. : date.getMonth() + 1) + "-";
  560. const D =
  561. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  562. const dateString = Y + M + D;
  563. return dateString;
  564. },
  565. },
  566. watch: {
  567. search(val) {
  568. if (!val) {
  569. this.searchName();
  570. }
  571. },
  572. },
  573. mounted() {
  574. this.getSelectDatasetList();
  575. },
  576. created() {
  577. this.repoLink = $(".reference-dataset").data("repolink") || "";
  578. this.canWrite = $(".reference-dataset").data("canwrite");
  579. this.isSigned = $(".reference-dataset").data("is-sign");
  580. if (document.documentElement.attributes["lang"].nodeValue == "en-US") {
  581. this.i18n = this.$locale.US;
  582. } else {
  583. this.i18n = this.$locale.CN;
  584. }
  585. },
  586. beforeDestroy() {},
  587. };
  588. </script>
  589. <style scoped>
  590. .dataset-search-vue {
  591. z-index: 9999;
  592. position: absolute;
  593. right: 31%;
  594. height: 30px;
  595. top: 60px;
  596. }
  597. .refer-dataset-card {
  598. cursor: pointer;
  599. box-shadow: 0px 4px 4px 0px rgba(232, 232, 232, 0.6);
  600. border: 1px solid rgba(232, 232, 232, 1);
  601. }
  602. .refer-dataset-card .refer-dataset-card-content {
  603. font-size: 16px;
  604. color: #0366d6;
  605. font-family: SourceHanSansSC-medium;
  606. height: 34px;
  607. font-weight: bold;
  608. display: flex;
  609. align-items: center;
  610. justify-content: space-between;
  611. }
  612. .refer-dataset-card-title {
  613. display: flex;
  614. align-items: center;
  615. max-width: 80%;
  616. width: 100%;
  617. }
  618. .dataset-card-flavor {
  619. display: flex;
  620. align-items: center;
  621. padding: 0.3rem 0.5rem;
  622. border: #888888;
  623. border-top-right-radius: 0 !important;
  624. border-bottom-right-radius: 0 !important;
  625. margin-right: -1px;
  626. }
  627. .card-flavor-num {
  628. padding: 0.5rem;
  629. border: #888888;
  630. border-top-left-radius: 0 !important;
  631. border-bottom-left-radius: 0 !important;
  632. cursor: default !important;
  633. }
  634. .card-flavor-desc {
  635. -webkit-box-orient: vertical;
  636. -webkit-line-clamp: 2;
  637. display: -webkit-box;
  638. overflow: hidden;
  639. color: #999999;
  640. font-size: 14px;
  641. margin-top: 10px;
  642. }
  643. .select-data-wrap {
  644. padding: 1rem 0;
  645. border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  646. }
  647. .select-data-title {
  648. flex: 1;
  649. overflow: hidden;
  650. }
  651. .select-data-title .ref-data-title {
  652. font-size: 18px;
  653. color: #454545;
  654. font-weight: 700;
  655. overflow: hidden;
  656. text-overflow: ellipsis;
  657. }
  658. .select-data-href {
  659. text-align: right;
  660. text-overflow: ellipsis;
  661. max-width: 35%;
  662. word-break: initial;
  663. margin-left: 1rem;
  664. }
  665. /deep/ .el-checkbox-group .el-checkbox .el-checkbox__label {
  666. display: flex;
  667. max-width: 90%;
  668. }
  669. .select-data-right {
  670. overflow: hidden;
  671. vertical-align: middle;
  672. text-overflow: ellipsis;
  673. max-width: 100%;
  674. display: inline-block;
  675. }
  676. .data-multiple-wrap {
  677. -webkit-line-clamp: 3;
  678. -webkit-box-orient: vertical;
  679. display: -webkit-box;
  680. max-width: 100%;
  681. overflow: hidden;
  682. padding-top: 1rem;
  683. color: #888888;
  684. font: 12px;
  685. line-height: 20px;
  686. margin-left: 2rem;
  687. }
  688. .disabled1 {
  689. opacity: 0.45 !important;
  690. }
  691. </style>