UploadLink.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. <template>
  2. <div class="upload_Link">
  3. <!-- <span><b>经销商</b></span> -->
  4. <span>针对论坛及其他平台链接上传</span>
  5. <div class="contentHead">
  6. <span>上传平台</span>
  7. <select name="" id="" v-model="platformVal" @change="choosePlatform">
  8. <!-- <option value="">请选择</option> -->
  9. <option
  10. v-for="(item, index) in platform"
  11. :key="index"
  12. :value="item.platformName"
  13. >
  14. {{ item.platformName }}
  15. </option>
  16. </select>
  17. </div>
  18. <div class="tableBox">
  19. <table class="feedbackTable">
  20. <thead class="theadStyle">
  21. <tr class="tableHeadStyle1">
  22. <td>论坛传播情况汇总</td>
  23. </tr>
  24. <tr class="tableHeadStyle2 tableHeadStyle3">
  25. <td v-for="(item, index) in tableHeader" :key="index">
  26. {{ item }}
  27. </td>
  28. </tr>
  29. </thead>
  30. <tbody class="bodyStyle">
  31. <tr
  32. class="bodyContent tableHeadStyle2"
  33. v-for="(obj, index) in tableData"
  34. :key="index"
  35. :class="{ table_gray: index % 2 === 0 }"
  36. >
  37. <td v-if="flag">{{ index + 1 }}</td>
  38. <td>{{ obj.publishDate }}</td>
  39. <!-- 发布日期 -->
  40. <td>{{ obj.informationName }}</td>
  41. <!-- 资料名称 -->
  42. <td>{{ obj.carTypeName }}</td>
  43. <!-- 车系 -->
  44. <td>{{ obj.carPlatformName }}</td>
  45. <!-- 车型 -->
  46. <td>{{ obj.publishSourceName }}</td>
  47. <!-- 发布版块 -->
  48. <td>{{ obj.projectTypeName }}</td>
  49. <!-- 项目分类 -->
  50. <td>{{ obj.mediaTypeName }}</td>
  51. <!-- 内容分类1 -->
  52. <td>{{ obj.contentTypeName }}</td>
  53. <!-- 内容分类2 -->
  54. <td>{{ obj.mediaTitle }}</td>
  55. <!-- 稿件标题 -->
  56. <td>
  57. <a :href="obj.mediaUrl" target="blank">{{ obj.mediaUrl }}</a>
  58. </td>
  59. <!-- 链接 -->
  60. <td class="operationStyle" style="cursor: pointer">
  61. <span @click="toggleModal(index)">编辑</span>
  62. <span @click="toggleModal2(index)">删除</span>
  63. <!-- 弹窗: 确定删除? -->
  64. <deleteModal
  65. v-if="showModal2"
  66. @dataDel="toDel"
  67. @hide_modal="closeme2"
  68. :LinkData="modalData"
  69. :showModalFlag="showModal2"
  70. :chooseItemIndex="nowIndex"
  71. ></deleteModal>
  72. </td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. </div>
  77. <!-- 弹窗: 编辑表格内容 -->
  78. <Modal
  79. v-if="showModal"
  80. v-on:closeme="closeme"
  81. :LinkData="modalData"
  82. @update="editTitle"
  83. :selectedPlatform="selectedPlatform"
  84. :releaseMedia="releaseMedia"
  85. ></Modal>
  86. <div class="timeLimitStyle">
  87. <span>仅可对上传时间为{{ feedbackTimeLimit }}个月内的资料进行反馈</span>
  88. </div>
  89. <div class="pageBottom">
  90. <div class="fileOperation">
  91. <span
  92. class="operationStyle xiahuaxian"
  93. @click="importTemplate"
  94. style="cursor: pointer"
  95. >导入模板</span
  96. >
  97. <label
  98. for="fileInput"
  99. @change="getFileInfo($event)"
  100. class="uploadFile"
  101. style="cursor: pointer"
  102. >导入<input
  103. type="file"
  104. name="fileName"
  105. id="fileInput"
  106. accept=".xlsx, .xls"
  107. multiple
  108. /></label>
  109. <label for="fileOutput" @click="onOutputExcel()" style="cursor: pointer"
  110. >导出</label
  111. >
  112. </div>
  113. <TablePage
  114. :currentPage="currentPage"
  115. :totalPage="totalPage"
  116. @change_page="changePage"
  117. @jump_page="jumpPage"
  118. class="tablePageStyle"
  119. ></TablePage>
  120. </div>
  121. <!-- 弹窗: 上传链接超过剩余限制数量,请修改后重新导入 -->
  122. <div class="modal-backdrop" v-show="showModal3">
  123. <div class="modal">
  124. <div class="modal-body">
  125. <div class="bodyRow">上传链接超过剩余限制数量,请修改后重新导入</div>
  126. </div>
  127. <div class="modal-footer">
  128. <button type="button" class="btn-confirm" @click="closeme3()">
  129. 确定
  130. </button>
  131. <button type="button" class="btn-close" @click="closeme3">
  132. 取消
  133. </button>
  134. </div>
  135. </div>
  136. </div>
  137. <!-- 弹窗: 资料名称无法匹配,请修改后重新导入 -->
  138. <div class="modal-backdrop" v-show="showModal4">
  139. <div class="modal">
  140. <div class="modal-body">
  141. <div class="bodyRow">资料名称无法匹配,请修改后重新导入</div>
  142. <div class="bodyRow">成功{{ 1 }}条,失败{{ 1 }}条</div>
  143. </div>
  144. <div class="modal-footer" style="position: relative; top: 95px">
  145. <button type="button" class="btn-confirm" @click="closeme4()">
  146. 确定
  147. </button>
  148. <button type="button" class="btn-close" @click="closeme4">
  149. 取消
  150. </button>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </template>
  156. <script>
  157. import Modal from "../../components/Modal";
  158. import TablePage from "../../components/TablePage";
  159. import deleteModal from "../data/components/UploadLinkModalDelete";
  160. export default {
  161. props: {
  162. isManufacturer: {
  163. type: String,
  164. default: "distributor",
  165. },
  166. },
  167. components: {
  168. Modal,
  169. TablePage,
  170. deleteModal,
  171. },
  172. data() {
  173. return {
  174. publishCount: "",
  175. platform: [],
  176. platformVal: "",
  177. releaseMedia: [],
  178. selectedPlatform: "",
  179. selectedPlatformId: "",
  180. nowIndex: 0,
  181. /* modal */
  182. feedbackTimeLimit: 0,
  183. showModal: false,
  184. showModal2: false,
  185. showModal3: false,
  186. showModal4: false,
  187. // 表格配置
  188. sum: 20, // 一共有多少条数据
  189. pageSize: 20, // 每页展示的数据
  190. discolor: false, // false是隔行变色
  191. currentPage: 1,
  192. tableHeader: [
  193. "NO.",
  194. "发布日期",
  195. "资料名称",
  196. "车系",
  197. "车型",
  198. "发布版块",
  199. "项目分类",
  200. "内容分类1",
  201. "内容分类2",
  202. "标题",
  203. "链接",
  204. "操作",
  205. ],
  206. tableData: [
  207. /* {
  208. informationId: "2021/03/04",
  209. publishDate: "雷克萨斯ES上市",
  210. carTypeName: "雷克萨斯ES",
  211. carPlatformName: "ES雷克萨斯",
  212. publishSourceName: "S雷克萨斯",
  213. projectTypeName: "东区1",
  214. contentTypeName: "雷克萨斯ES",
  215. mediaTitle: "ES雷克萨斯",
  216. mediaUrl: "S雷克萨斯",
  217. },*/
  218. ],
  219. flag: true,
  220. modalData: {}, //17:44
  221. emptyData: {
  222. accountId: "",
  223. carPlatformName: "",
  224. carTypeName: "",
  225. mediaTypeName: "",
  226. contentTypeName: "",
  227. endTime: null,
  228. id: "",
  229. informationId: "",
  230. informationName: "",
  231. localArea: "",
  232. mediaTitle: null,
  233. //mediaTypeName: "",
  234. mediaUrl: "",
  235. projectTypeName: "",
  236. publishDate: "",
  237. publishPlatformName: "",
  238. publishSourceName: "",
  239. queryParams: null,
  240. startTime: null,
  241. },
  242. file: "",
  243. dictList: [],
  244. onlineUrl: "http://8.136.230.133:8080",
  245. firmsDataCount: null,
  246. userId: 254,
  247. };
  248. },
  249. computed: {
  250. // 表格总页数
  251. totalPage() {
  252. return Math.ceil(this.sum / this.pageSize);
  253. },
  254. },
  255. methods: {
  256. /*toggleModal:点击编辑后弹窗; toggleModal2:点击删除后弹窗; toggleModal3:点击导入后弹窗; */
  257. toggleModal: function (i) {
  258. this.showModal = !this.showModal;
  259. this.modalData = this.tableData[i];
  260. },
  261. closeme: function () {
  262. this.showModal = !this.showModal;
  263. },
  264. //删除
  265. toggleModal2: function (i) {
  266. this.showModal2 = !this.showModal2;
  267. this.nowIndex = i;
  268. this.modalData = this.tableData[i];
  269. console.log("INtoggleModal2", this.modalData, this.nowIndex);
  270. },
  271. closeme2: function () {
  272. this.showModal2 = !this.showModal2;
  273. },
  274. toggleModal3: function () {
  275. this.showModal3 = !this.showModal3;
  276. },
  277. closeme3: function () {
  278. this.showModal3 = !this.showModal3;
  279. },
  280. toggleModal4: function () {
  281. this.showModal4 = !this.showModal4;
  282. },
  283. closeme4: function () {
  284. this.showModal4 = !this.showModal4;
  285. },
  286. /* 编辑内容,,Modal传参 */
  287. editTitle: function (val) {
  288. console.log("editTitle文件:", val);
  289. this.$http({
  290. url: val.url,
  291. method: "post",
  292. data: val.data,
  293. })
  294. .then((res) => {
  295. console.log(res);
  296. //更新数据
  297. this.choosePlatform();
  298. })
  299. .catch((err) => {
  300. console.log(err);
  301. });
  302. },
  303. toDel: function (n) {
  304. console.log("inToDel:", n);
  305. //清空数据
  306. /* if (n == -2) {
  307. this.tableData = "";
  308. }
  309. //清空某一项数据
  310. {
  311. let obj = this.tableData[n];
  312. Object.keys(obj).forEach((key) => {
  313. obj[key] = "";
  314. });
  315. } */
  316. this.showModal2 = !this.showModal2;
  317. //更新数据
  318. this.choosePlatform();
  319. },
  320. /* 表格翻页 */
  321. changePage: function (page) {
  322. this.currentPage = page;
  323. console.log(page);
  324. },
  325. // 点击上一页,下一页,首页,尾页
  326. jumpPage: function (item) {
  327. switch (item) {
  328. case 1:
  329. this.currentPage = 1;
  330. break;
  331. case 2:
  332. this.currentPage = this.currentPage - 1;
  333. break;
  334. case 3:
  335. this.currentPage = this.currentPage + 1;
  336. break;
  337. case 4:
  338. this.currentPage = this.totalPage;
  339. break;
  340. }
  341. console.log(this.currentPage);
  342. },
  343. //获取资料列表
  344. getDataList: function (config) {
  345. let date = new Date();
  346. let m = date.getMonth() + 1;
  347. let y = date.getFullYear();
  348. let d = y + "/" + m;
  349. this.$http({
  350. url: "/firmsLinkUpload",
  351. method: "post",
  352. data: {
  353. month: d,
  354. publishPlatformId: config,
  355. },
  356. })
  357. .then((res) => {
  358. if (res.data.code === 200) {
  359. //this.tableData = [];
  360. let data = res.data.data;
  361. this.firmsDataCount = data.length;
  362. for (
  363. let i = 0, j = 0;
  364. i < this.tableData.length && j < data.length;
  365. i++, j++
  366. ) {
  367. this.$set(this.tableData, i, data[j]);
  368. }
  369. console.log(this.tableData);
  370. //修改素材时间显示格式
  371. console.log(this.tableData[0].publishDate);
  372. let len = this.tableData.length;
  373. for (let i = 0; i < len; i++) {
  374. let newValue = "";
  375. let temp = this.tableData[i].publishDate;
  376. if (this.tableData[i].publishDate.length >= 10) {
  377. newValue =
  378. temp.slice(0, 4) +
  379. "/" +
  380. temp.slice(5, 7) +
  381. "/" +
  382. temp.slice(8, 10);
  383. this.$set(this.tableData[i], "publishDate", newValue);
  384. }
  385. }
  386. console.log(this.tableData);
  387. }
  388. })
  389. .catch((err) => {
  390. console.log(err);
  391. });
  392. },
  393. //导入经销商反馈信息 经销商反馈服务>导入经销商反馈信息
  394. /* importDataList: function () {
  395. this.file = event.target.files;
  396. this.fileDes = [];
  397. this.file.forEach((item) => {
  398. this.fileDes.push(item.name);
  399. });
  400. this.$http({
  401. url: "/importDealerFeedback",
  402. method: "post",
  403. data: {},
  404. })
  405. .then((res) => {
  406. if (res.data.code === 200) {
  407. this.tableData = res.data.data;
  408. }
  409. })
  410. .catch((err) => {
  411. console.log(err);
  412. });
  413. }, */
  414. //导出excel
  415. onOutputExcel: function () {
  416. let url = this.onlineUrl + "/exportNoFactory";
  417. console.log("导出excel:", url);
  418. window.open(url);
  419. /* this.$http({
  420. url: "/exportNoFactory",
  421. method: "get",
  422. params: {
  423. //id: this.selectedPlatformId //当期平台id
  424. },
  425. })
  426. .then((res) => {
  427. console.log(res);
  428. if (res.data.code === 200) {
  429. console.log(res.data);
  430. }
  431. })
  432. .catch((err) => {
  433. console.log(err);
  434. }); */
  435. },
  436. //导入excel
  437. /* onImportExcel: function () {
  438. this.$http({
  439. url: "/importDealerFeedback",
  440. method: "get",
  441. params: {},
  442. })
  443. .then((res) => {
  444. console.log(res);
  445. if (res.data.code === 200) {
  446. console.log(res.data);
  447. }
  448. })
  449. .catch((err) => {
  450. console.log(err);
  451. });
  452. }, */
  453. // 获取文件
  454. getFileInfo: function (event) {
  455. this.file = event.target.files;
  456. console.log(this.file);
  457. let fileDes = [];
  458. this.file.forEach((item) => {
  459. fileDes.push(item.name);
  460. });
  461. console.log(fileDes);
  462. let remainCount = this.publishCount - this.firmsDataCount;
  463. console.log(remainCount, this.publishCount, this.firmsDataCount);
  464. if (remainCount >= this.file.length) {
  465. this.submitRequest();
  466. } else if (remainCount < this.file.length) {
  467. this.showModal3 = !this.showModal3;
  468. }
  469. },
  470. // 导入接口
  471. submitRequest: function () {
  472. let paramData = new FormData();
  473. this.file.forEach((item) => {
  474. paramData.append("file", item);
  475. });
  476. this.$http
  477. .uploadFile("/importDealerFeedback", paramData)
  478. .then((res) => {
  479. if (res.data && res.data.code === 200) {
  480. console.log("上传成功!");
  481. } else {
  482. alert("res.data || res.data.code !== 200");
  483. console.log(res);
  484. }
  485. })
  486. .catch((err) => {
  487. alert("上传失败,请重试");
  488. console.log(err);
  489. });
  490. },
  491. //获取平台列表
  492. getPlatform: function () {
  493. this.$http({
  494. url: "/base/publishPlatformManager/selectPublishPlatformList",
  495. method: "post",
  496. data: {},
  497. })
  498. .then((res) => {
  499. if (res.data.code === 200) {
  500. this.platform = res.data.data;
  501. this.platformVal = this.platform[0].platformName;
  502. this.choosePlatform();
  503. }
  504. })
  505. .catch((err) => {
  506. console.log(err);
  507. });
  508. },
  509. //下拉选择平台
  510. choosePlatform: function () {
  511. let obj = {};
  512. //所选平台名称
  513. let val = this.platformVal;
  514. obj = this.platform.find(function (item) {
  515. return item.platformName === val;
  516. });
  517. this.selectedPlatform = obj.platformName;
  518. this.selectedPlatformId = obj.id;
  519. //获取可发布数量
  520. this.getReleaseQuantity(obj.id);
  521. //获取发布版块
  522. this.chooseReleasePlate(obj.id);
  523. },
  524. //获取可发布数量
  525. getReleaseQuantity: function (val) {
  526. let date = new Date();
  527. let m = date.getMonth() + 1;
  528. let y = date.getFullYear();
  529. let d = "";
  530. if (0 < m < 10) {
  531. d = y + "/0" + m;
  532. } else {
  533. d = y + "/" + m;
  534. }
  535. // let d = y + "/0" + m;
  536. this.$http({
  537. // url: "/base/mediaPublishManager/selectMediaPublishList",
  538. url: "/base/mediaPublishManager/selectMediaPublishListByMonth",
  539. method: "post",
  540. data: {
  541. //publishPlatformId: val,
  542. //publishMonth: d,
  543. publishMonth: d,
  544. publishPlatformId: val,
  545. //agentId: this.userId,
  546. },
  547. })
  548. .then((res) => {
  549. if (res.data.code === 200) {
  550. console.log(res);
  551. this.publishCount = res.data.data.length > 0 ? res.data.data[0].publishCount : 0;
  552. let len = this.publishCount;
  553. let l = this.tableData.length;
  554. console.log("获取可发布数量", len, l);
  555. this.tableData = [];
  556. while (len > 0) {
  557. this.tableData.push(this.emptyData);
  558. len--;
  559. }
  560. //更新列表数据
  561. this.getDataList(this.selectedPlatformId);
  562. }
  563. })
  564. .catch((err) => {
  565. this.tableData = [];
  566. console.log(err);
  567. });
  568. },
  569. //发布版块
  570. chooseReleasePlate: function (val) {
  571. this.$http({
  572. url: "/base/publishPlatformManager/selectPublishPlatformList",
  573. method: "post",
  574. data: {
  575. parentId: val,
  576. },
  577. })
  578. .then((res) => {
  579. console.log(res);
  580. if (res.data.code === 200) {
  581. this.releaseMedia = res.data.data;
  582. console.log("发布版块", this.releaseMedia);
  583. }
  584. })
  585. .catch((err) => {
  586. console.log(err);
  587. });
  588. },
  589. //导入模板
  590. importTemplate: function () {
  591. let str = "反馈链接上传导入表模板(经销商).xlsx";
  592. let url = this.onlineUrl + "/downloadTemplate?templateName=" + str;
  593. console.log("下载导入模板:", url);
  594. window.open(url);
  595. /* this.$http({
  596. url: "/downloadTemplate",
  597. method: "get",
  598. params: {
  599. templateName: "反馈链接上传导入表模板(经销商).xlsx",
  600. },
  601. })
  602. .then((res) => {
  603. console.log(res);
  604. if (res.data.code === 200) {
  605. console.log(res.data);
  606. }
  607. })
  608. .catch((err) => {
  609. console.log(err);
  610. });
  611. /* return new Promise((resolve, reject) => {
  612. this.$http({
  613. url: "/exportNoFactory",
  614. method: "get",
  615. params: "反馈链接上传导入表模板(经销商).xlsx"
  616. })
  617. .then((res) => {
  618. console.log(res);
  619. resolve(res);
  620. let link = document.createElement("a");
  621. link.href = window.URL.createObjectURL(new Blob([res.data]));
  622. link.target = "_blank";
  623. //文件名和格式
  624. link.download = "文件模板.xlsx";
  625. document.body.appendChild(link);
  626. link.click();
  627. document.body.removeChild(link);
  628. })
  629. .catch((err) => {
  630. reject(err);
  631. });
  632. }); */
  633. },
  634. // 上传时间为xx个月内的资料进行反馈 获取内容分类、媒体平台、常用参数接口的标识,再调接口时需要用到
  635. selectSysDataDictList: function () {
  636. return new Promise((resolve, reject) => {
  637. this.$http({
  638. method: "post",
  639. url: "/sys/dataDict/selectSysDataDictList",
  640. data: {},
  641. })
  642. .then((res) => {
  643. if (res.data && res.data.code === 200) {
  644. this.dictList = res.data.data;
  645. resolve();
  646. } else {
  647. console.log(res);
  648. reject();
  649. }
  650. })
  651. .catch((err) => {
  652. console.log(err);
  653. reject();
  654. });
  655. });
  656. },
  657. // 获取列表数据 接口
  658. getDateList: function () {
  659. this.$http({
  660. method: "post",
  661. url: "/sys/dataDict/selectSysDataDictPage",
  662. data: {
  663. dictCode: this.dictList[0]["dictCode"],
  664. parentId: this.dictList[0]["id"],
  665. },
  666. })
  667. .then((res) => {
  668. if (res.data && res.data.code === 200) {
  669. //this.dictId = res.data.data[0]["id"];
  670. this.feedbackTimeLimit = res.data.data[0]["dictName"];
  671. } else {
  672. console.log(res);
  673. }
  674. })
  675. .catch((err) => {
  676. console.log(err);
  677. });
  678. },
  679. },
  680. mounted() {
  681. let localUserId = localStorage.getItem("userId");
  682. if (localUserId) {
  683. console.log("经销商ID", localUserId);
  684. this.userId = localUserId;
  685. } else {
  686. console.log("经销商ID 254");
  687. this.userId = 254;
  688. }
  689. this.getPlatform();
  690. },
  691. created() {
  692. this.selectSysDataDictList()
  693. .then(() => {
  694. this.getDateList();
  695. })
  696. .catch((err) => {
  697. console.log(err);
  698. });
  699. //this.getPlatform();
  700. },
  701. };
  702. </script>
  703. <style scoped lang="less">
  704. .contentHead {
  705. height: 55px;
  706. display: flex;
  707. align-items: center;
  708. }
  709. .contentHead span {
  710. margin-right: 15px;
  711. }
  712. .tableBox {
  713. width: 1030px;
  714. overflow-y: hidden;
  715. }
  716. .tableBox {
  717. text-align: center;
  718. .table {
  719. table-layout: fixed;
  720. background-color: #fff;
  721. border-collapse: collapse;
  722. border: none;
  723. td {
  724. border: 1px solid #ccc;
  725. }
  726. span {
  727. &:hover {
  728. cursor: pointer;
  729. }
  730. }
  731. }
  732. }
  733. .table_gray td {
  734. background-color: #eeeeee;
  735. }
  736. .tableBox table {
  737. border-collapse: collapse;
  738. border: 0px;
  739. }
  740. .tableBox table td {
  741. border: 1px solid #ccc;
  742. border-right: 0px;
  743. border-bottom: 0px;
  744. text-overflow: ellipsis;
  745. overflow: hidden;
  746. white-space: nowrap;
  747. }
  748. // 表头样式
  749. .theadStyle tr td {
  750. color: white;
  751. }
  752. .tableHeadStyle1 {
  753. background: #848484;
  754. height: 30px;
  755. color: #fff;
  756. display: flex;
  757. align-items: center;
  758. }
  759. .tableHeadStyle1 td {
  760. width: 100%;
  761. padding: 7px 5px;
  762. }
  763. .tableHeadStyle2 {
  764. // background: #848484;
  765. height: 30px;
  766. color: #fff;
  767. display: flex;
  768. align-items: center;
  769. }
  770. .tableHeadStyle2 td {
  771. width: 100px;
  772. padding: 7px 5px;
  773. }
  774. .tableHeadStyle3 td {
  775. background: #848484;
  776. }
  777. .tableHeadStyle2 td:nth-child(1) {
  778. width: 60px;
  779. }
  780. .tableHeadStyle2 td:nth-child(10) {
  781. width: 100px;
  782. padding: 7px 5px;
  783. }
  784. .tableHeadStyle2 td:nth-child(11) {
  785. width: 100px;
  786. padding: 7px 5px;
  787. }
  788. .tableHeadStyle2 td:nth-child(12) {
  789. width: 100px;
  790. padding: 7px 5px;
  791. }
  792. .tableHeadStyle2 td:nth-child(2) {
  793. width: 100px;
  794. padding: 7px 5px;
  795. }
  796. .tableHeadStyle2 td:nth-child(3) {
  797. width: 100px;
  798. padding: 7px 5px;
  799. }
  800. .bodyStyle {
  801. display: block;
  802. background-color: #fff;
  803. }
  804. .bodyStyle tr > td:nth-last-child(2) {
  805. color: #0000ff;
  806. }
  807. .bodyContent td {
  808. //background-color: #fff;
  809. height: 20px;
  810. }
  811. .bodyContent td:nth-last-child(2) a {
  812. color: #0000ff;
  813. }
  814. .operationStyle {
  815. color: #0000ff;
  816. display: flex;
  817. justify-content: space-around;
  818. }
  819. .xiahuaxian {
  820. text-decoration: underline;
  821. }
  822. .operationStyle span {
  823. color: #0000ff;
  824. }
  825. .fileOperation {
  826. display: flex;
  827. justify-content: flex-start;
  828. margin: 10px;
  829. align-items: center;
  830. }
  831. .fileOperation button {
  832. border-radius: 4px;
  833. }
  834. .fileOperation span {
  835. margin-right: 16px;
  836. }
  837. .fileOperation {
  838. border-radius: 4px;
  839. label {
  840. margin-right: 16px;
  841. height: 30px;
  842. line-height: 30px;
  843. width: 56px;
  844. background-color: #0056a0;
  845. color: #fff;
  846. text-align: center;
  847. font-size: 14px;
  848. input {
  849. display: none;
  850. }
  851. }
  852. }
  853. .timeLimitStyle {
  854. padding: 10px;
  855. }
  856. .modal-backdrop {
  857. position: fixed;
  858. top: 0;
  859. right: 0;
  860. bottom: 0;
  861. left: 0;
  862. background-color: rgba(0, 0, 0, 0.3);
  863. display: flex;
  864. justify-content: center;
  865. align-items: center;
  866. }
  867. .modal {
  868. background-color: #ffffff;
  869. box-shadow: 2px 2px 20px 1px;
  870. overflow-x: auto;
  871. display: flex;
  872. flex-direction: column;
  873. width: 500px;
  874. border-radius: 0px;
  875. height: 230px;
  876. }
  877. .modal-footer {
  878. border-top: 1px solid #eee;
  879. position: relative;
  880. top: 124px;
  881. left: 232px;
  882. width: 208px;
  883. display: flex;
  884. justify-content: space-between;
  885. padding: 0px;
  886. }
  887. .modal-footer button {
  888. border-radius: 4px;
  889. margin-left: 0px;
  890. width: 80px;
  891. font-size: 14px;
  892. }
  893. .modal-footer button:nth-child(1) {
  894. background-color: #0056a0;
  895. }
  896. .modal-footer button:nth-child(2) {
  897. background-color: #eeeeee;
  898. }
  899. .modal-body {
  900. position: relative;
  901. top: 64px;
  902. margin-left: 50px;
  903. padding: 0px;
  904. }
  905. .btn-close,
  906. .btn-confirm {
  907. margin-left: 16px;
  908. width: 56px;
  909. height: 36px;
  910. border: none;
  911. cursor: pointer;
  912. }
  913. .btn-close {
  914. color: #313131;
  915. background-color: gray;
  916. }
  917. .btn-confirm {
  918. color: #fff;
  919. background-color: #2d8cf0;
  920. }
  921. .bodyRow {
  922. font-size: 16px;
  923. font-family: Arial;
  924. }
  925. /* .tablePageStyle{
  926. position: relative;
  927. left: 266px;
  928. } */
  929. .pageBottom {
  930. display: flex;
  931. justify-content: space-between;
  932. align-items: center;
  933. }
  934. </style>
  935. >>>>>>> bae6c489b4e688f713ae10f965a0bd6e0884dcd4