2
3

login.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <template>
  2. <div style="width: 100%; overflow-y: auto" >
  3. <sticky class-name="sub-navbar2">
  4. <div class="top-wrapper">
  5. <div style="margin-top: 5px; float: left;">
  6. <router-link to="/">
  7. <img src="../assets/img/logo_dagang2.png" style="height:35px;" />
  8. </router-link>
  9. </div>
  10. <div style="float: right;">
  11. <router-link :to="'/signup'">
  12. <el-button type="text" round>没有账户?请注册</el-button>
  13. </router-link>
  14. <router-link :to="'/logingf'">
  15. <el-button type="info" size="small" round>登录供方管理系统</el-button>
  16. </router-link>
  17. </div>
  18. </div>
  19. </sticky>
  20. <div>
  21. <el-menu :default-active="activeIndex" @select="handleSelect" mode="horizontal">
  22. <el-menu-item index="0">首页</el-menu-item>
  23. <el-menu-item index="1">通知中心</el-menu-item>
  24. <el-menu-item index="2">文件下载中心</el-menu-item>
  25. </el-menu>
  26. </div>
  27. <div class="back-width1" style="margin-top: 10px" v-if="activeIndex==0">
  28. <el-carousel>
  29. <el-carousel-item key="1">
  30. <img src="../assets/img/carousel/a.jpg" style="height: 100%; width: 100%">
  31. </el-carousel-item>
  32. <el-carousel-item key="2">
  33. <img src="../assets/img/carousel/b.jpg" style="height: 100%; width: 100%">
  34. </el-carousel-item>
  35. <el-carousel-item key="3">
  36. <img src="../assets/img/carousel/c.jpg" style="height: 100%; width: 100%">
  37. </el-carousel-item>
  38. </el-carousel>
  39. </div>
  40. <div class="components-container home-wrapper" v-if="activeIndex==0">
  41. <el-row>
  42. <el-col :span="24">
  43. <span style="color: black; font-size: large; font-weight: bold; padding-top: 20px">| 功能介绍</span>
  44. </el-col>
  45. <el-col :span="24">
  46. <span style="color: black; font-size: x-small; padding-top: 20px">| 大港油田供方管理信息系统功能介绍</span>
  47. </el-col>
  48. </el-row>
  49. <el-row :gutter="20" style="margin-top: 0px">
  50. <el-col :span="12">
  51. <el-card :body-style="{ padding: '0px' }" style="margin-top: 0px">
  52. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy9.png" class="image">
  53. <div style="padding: 14px;">
  54. <span style="font-weight: bold">准入申请</span>
  55. <div class="bottom clearfix">
  56. <span>物资类、技术服务类和基建类的准入申请</span>
  57. </div>
  58. </div>
  59. </el-card>
  60. </el-col>
  61. <el-col :span="12">
  62. <el-card :body-style="{ padding: '0px' }" style="margin-top: 0px">
  63. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy7.png" class="image">
  64. <div style="padding: 14px;">
  65. <span style="font-weight: bold">增项申请</span>
  66. <div class="bottom clearfix">
  67. <span>物资类、技术服务类和基建类的增项申请</span>
  68. </div>
  69. </div>
  70. </el-card>
  71. </el-col>
  72. <el-col :span="12">
  73. <el-card :body-style="{ padding: '0px' }">
  74. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy6.png" class="image">
  75. <div style="padding: 14px;">
  76. <span style="font-weight: bold">年审</span>
  77. <div class="bottom clearfix">
  78. <span>物资类、技术服务类和基建类的年审</span>
  79. </div>
  80. </div>
  81. </el-card>
  82. </el-col>
  83. <el-col :span="12">
  84. <el-card :body-style="{ padding: '0px' }" >
  85. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy2.png" class="image">
  86. <div style="padding: 14px;">
  87. <span style="font-weight: bold">资质变更</span>
  88. <div class="bottom clearfix">
  89. <span>已入网企业的资质变更</span>
  90. </div>
  91. </div>
  92. </el-card>
  93. </el-col>
  94. <el-col :span="12">
  95. <el-card :body-style="{ padding: '0px' }" >
  96. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy7.png" class="image">
  97. <div style="padding: 14px;">
  98. <span style="font-weight: bold">信息变更</span>
  99. <div class="bottom clearfix">
  100. <span>已入网企业的信息变更</span>
  101. </div>
  102. </div>
  103. </el-card>
  104. </el-col>
  105. <el-col :span="12">
  106. <el-card :body-style="{ padding: '0px' }" >
  107. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy4.png" class="image">
  108. <div style="padding: 14px;">
  109. <span style="font-weight: bold">在线缴费</span>
  110. <div class="bottom clearfix">
  111. <span>通过此信息可在线缴费</span>
  112. </div>
  113. </div>
  114. </el-card>
  115. </el-col>
  116. <el-col :span="12">
  117. <el-card :body-style="{ padding: '0px' }" style="margin-bottom: 20px">
  118. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy5.png" class="image">
  119. <div style="padding: 14px;">
  120. <span style="font-weight: bold">业务查询</span>
  121. <div class="bottom clearfix">
  122. <span>报表及图表的查询功能</span>
  123. </div>
  124. </div>
  125. </el-card>
  126. </el-col>
  127. <el-col :span="12">
  128. <el-card :body-style="{ padding: '0px' }" style="margin-bottom: 20px">
  129. <img style="height: 200px" src="http://www.ihaier.com/public/web/images/hyqy6.png" class="image">
  130. <div style="padding: 14px;">
  131. <span style="font-weight: bold">资质管理</span>
  132. <div class="bottom clearfix">
  133. <span>资质管理的统一管理功能</span>
  134. </div>
  135. </div>
  136. </el-card>
  137. </el-col>
  138. </el-row>
  139. </div>
  140. <div class="components-container home-wrapper" v-if="activeIndex==1">
  141. <el-table :data="noticeList" style="width: 100%; height: 100vh;" @row-click="DownloadFile">
  142. <el-table-column prop="Name" label="通知标题">
  143. <template slot-scope="scope">
  144. <i class="el-icon-caret-right"></i>
  145. <a style="margin-left: 5px">{{ scope.row.Name }}</a>
  146. </template>
  147. </el-table-column>
  148. <el-table-column prop="CreateOn" label="时间" width="141">
  149. <template slot-scope="scope">
  150. {{ jstimehandle(scope.row.CreateOn+'') }}
  151. </template>
  152. </el-table-column>
  153. </el-table>
  154. </div>
  155. <div class="components-container home-wrapper" v-if="activeIndex==2">
  156. <el-table :data="fileList" style="width: 100%; height: 100vh;" @row-click="DownloadFile">
  157. <el-table-column prop="Name" label="文件名">
  158. <template slot-scope="scope">
  159. <i class="el-icon-caret-right"></i>
  160. <a style="margin-left: 5px">{{ scope.row.Name }}</a>
  161. </template>
  162. </el-table-column>
  163. <el-table-column prop="CreateOn" label="时间" width="141">
  164. <template slot-scope="scope">
  165. {{ jstimehandle(scope.row.CreateOn+'') }}
  166. </template>
  167. </el-table-column>
  168. </el-table>
  169. </div>
  170. <!--<div>
  171. <el-menu :default-active="activeIndex" @select="handleSelect" mode="horizontal">
  172. <el-menu-item index="1">通知中心</el-menu-item>
  173. <el-menu-item index="2">文件下载中心</el-menu-item>
  174. &lt;!&ndash;<el-menu-item index="3">登录供方管理系统</el-menu-item>
  175. <el-menu-item index="4">账户注册</el-menu-item>&ndash;&gt;
  176. </el-menu>
  177. </div>
  178. <div class="components-container home-wrapper">
  179. <el-card style="width: 1004px;" class="box-card" v-if="activeIndex == 1">
  180. <div slot="header">
  181. <span>
  182. <i class="icon icon-table2"></i> 通知中心
  183. </span>
  184. </div>
  185. <el-table fit :data="noticeList" style="width: 100%; height: 100vh;" @row-click="DownloadFile">
  186. <el-table-column prop="Name" label="通知标题">
  187. <template slot-scope="scope">
  188. <i class="el-icon-caret-right"></i>
  189. <a style="margin-left: 5px">{{ scope.row.Name }}</a>
  190. </template>
  191. </el-table-column>
  192. <el-table-column prop="CreateOn" label="时间" width="141">
  193. <template slot-scope="scope">
  194. {{ jstimehandle(scope.row.CreateOn+'') }}
  195. </template>
  196. </el-table-column>
  197. </el-table>
  198. </el-card>
  199. <el-card style="width: 1004px" class="box-card" v-if="activeIndex == 2">
  200. <div slot="header">
  201. <span>
  202. <i class="icon icon-table2"></i> 文件下载中心
  203. </span>
  204. </div>
  205. <el-table fit :data="fileList" style="width: 100%; height: 100vh;" @row-click="DownloadFile">
  206. <el-table-column prop="Name" label="文件名">
  207. <template slot-scope="scope">
  208. <i class="el-icon-caret-right"></i>
  209. <a style="margin-left: 5px">{{ scope.row.Name }}</a>
  210. </template>
  211. </el-table-column>
  212. <el-table-column prop="CreateOn" label="时间" width="141">
  213. <template slot-scope="scope">
  214. {{ jstimehandle(scope.row.CreateOn+'') }}
  215. </template>
  216. </el-table-column>
  217. </el-table>
  218. </el-card>
  219. <div>-->
  220. <div>
  221. <footer class="login-footer1" style="margin-top: 10px;">
  222. <div class="foot-wrapper" style="height: 30px; background-color: transparent; color:#A9A9A9; padding-top: 10px; text-align: right">
  223. ©大港油田信息中心 版权所有
  224. </div>
  225. </footer>
  226. </div>
  227. </div>
  228. </template>
  229. <script>
  230. import Sticky from '@/components/Sticky'
  231. export default {
  232. layout () {
  233. return 'site'
  234. },
  235. name: 'StickyDemo',
  236. components: {
  237. Sticky
  238. },
  239. data () {
  240. return {
  241. noticeList: [], //通知列表
  242. fileList: [], //文档列表
  243. activeIndex: '0',
  244. activeName: 'first',
  245. }
  246. },
  247. created () {
  248. this.initNoticeListData()
  249. this.initFileListData()
  250. },
  251. methods: {
  252. handleSelect (key, keyPath) {
  253. if (key === '0' || key === '1' || key === '2') {
  254. this.activeIndex = key
  255. }
  256. },
  257. //获取通知列表
  258. initNoticeListData() {
  259. let _this = this
  260. //传递列名
  261. const params = {
  262. colName: "NoticeTab"
  263. }
  264. _this.$axios.get("/document/getdocumentnameandtime", {params})
  265. .then(function (response) {
  266. _this.noticeList = response.data
  267. })
  268. .catch(function (error) {
  269. console.log(error);
  270. });
  271. },
  272. //获取文件列表
  273. initFileListData() {
  274. let _this = this
  275. //传递列名
  276. const params = {
  277. colName: "DocTab"
  278. }
  279. _this.$axios.get("/document/getdocumentnameandtime", {params})
  280. .then(function (response) {
  281. _this.fileList = response.data
  282. })
  283. .catch(function (error) {
  284. console.log(error);
  285. });
  286. },
  287. //下载文件
  288. DownloadFile(row){
  289. let val = row.FileURL
  290. let urlArr = val.split('|')
  291. location.href = "http://" + urlArr[0]
  292. },
  293. //格式化时间
  294. jstimehandle(val) {
  295. if (val === '') {
  296. return '----'
  297. } else if (val === '0001-01-01T08:00:00+08:00') {
  298. return '----'
  299. } else if (val === '5000-01-01T23:59:59+08:00') {
  300. return '永久'
  301. } else {
  302. val = val.replace('T', ' ')
  303. return val.substring(0, 10)
  304. }
  305. }
  306. }
  307. }
  308. </script>
  309. <style lang="scss" scoped>
  310. @import '../assets/styles/base/variables';
  311. .components-container div {
  312. margin-top: 20px;
  313. }
  314. .top-wrapper {
  315. margin: 0px auto;
  316. width: 1004px;
  317. /*text-align: right;
  318. alignment: right;*/
  319. flex-direction: row;
  320. }
  321. .home-wrapper{
  322. margin:0px auto;
  323. width: 1004px;
  324. flex-direction: column;
  325. }
  326. .foot-wrapper{
  327. margin:0px auto;
  328. width: 1004px;
  329. display: flex;
  330. alignment: center;
  331. align-items: center;
  332. flex-direction: column;
  333. }
  334. .back-width1 {
  335. background-color: #2F79F6;
  336. margin: 0px auto;
  337. left: 0;
  338. right: 0;
  339. top: 20px;
  340. width: 1004px;
  341. }
  342. .login-footer1 {
  343. background-color: #34393D;
  344. font-size: 10px;
  345. clear: both;
  346. display: block;
  347. text-align: center;
  348. margin: 0px auto;
  349. bottom: 10px;
  350. width: 100%;
  351. }
  352. /*-----------*/
  353. .time {
  354. font-size: 13px;
  355. color: #999;
  356. }
  357. .bottom {
  358. margin-top: 13px;
  359. line-height: 12px;
  360. }
  361. .button {
  362. padding: 0;
  363. float: right;
  364. }
  365. .image {
  366. width: 100%;
  367. display: block;
  368. }
  369. .clearfix:before,
  370. .clearfix:after {
  371. display: table;
  372. content: "";
  373. }
  374. .clearfix:after {
  375. clear: both
  376. }
  377. </style>