index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <template>
  2. <div class="base">
  3. <div class="content">
  4. <div class="words">
  5. <h1>渐进、交互式文档生成</h1>
  6. <p>
  7. 覆盖房地产、土地和各类资产评估报告自动生成。<br>
  8. 支持测算表生成和下载,亦可以应用于文档。<br>
  9. 用户仅需提交必要评估物数据和测算数据,由平台自动生成商业级评估报告。
  10. </p>
  11. </div>
  12. <div class="option">
  13. <div class="create-btn">
  14. <button class="cssbuttons-io-button" @click="goto('house/parent')">
  15. 房地产
  16. <div class="icon">
  17. <svg
  18. height="24"
  19. width="24"
  20. viewBox="0 0 24 24"
  21. xmlns="http://www.w3.org/2000/svg"
  22. >
  23. <path d="M0 0h24v24H0z" fill="none"></path>
  24. <path
  25. d="M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"
  26. fill="currentColor"
  27. ></path>
  28. </svg>
  29. </div>
  30. </button>
  31. <button class="cssbuttons-io-button" @click="goto('assets')">
  32. 资产
  33. <div class="icon">
  34. <svg
  35. height="24"
  36. width="24"
  37. viewBox="0 0 24 24"
  38. xmlns="http://www.w3.org/2000/svg"
  39. >
  40. <path d="M0 0h24v24H0z" fill="none"></path>
  41. <path
  42. d="M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"
  43. fill="currentColor"
  44. ></path>
  45. </svg>
  46. </div>
  47. </button>
  48. <button class="cssbuttons-io-button" @click="goto('planning')">
  49. 土地
  50. <div class="icon">
  51. <svg
  52. height="24"
  53. width="24"
  54. viewBox="0 0 24 24"
  55. xmlns="http://www.w3.org/2000/svg"
  56. >
  57. <path d="M0 0h24v24H0z" fill="none"></path>
  58. <path
  59. d="M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"
  60. fill="currentColor"
  61. ></path>
  62. </svg>
  63. </div>
  64. </button>
  65. </div>
  66. <div class="example-list">
  67. <el-card class="report-item no-border" shadow="never">
  68. <div class="report-icon">
  69. <img src="../../assets/icons/folder.png" style="width: 52px; height: 52px;"/>
  70. </div>
  71. <div class="report-text">
  72. <div>
  73. <span class="report-text-type">房地产抵押类报告</span>
  74. <span> 一 </span>
  75. <span class="report-text-name">成都市双流区怡心街道万顺路二段370号“西派国樾”共计22套商业用房地产市场价值咨询评估</span>
  76. </div>
  77. <div style="padding-top: 5px;">
  78. <span>
  79. <el-icon>
  80. <Avatar />
  81. </el-icon>
  82. 成都中铁华府置业有限公司</span>
  83. <span>
  84. <el-tag style="margin-left: 5px;">
  85. 房地产
  86. </el-tag>
  87. <el-tag style="margin-left: 5px;" type="success">
  88. 抵押
  89. </el-tag>
  90. </span>
  91. <span style="float: right; color:darkgrey">
  92. 2024-10-16 12:10:09
  93. </span>
  94. </div>
  95. </div>
  96. <div class="report-button">
  97. <el-icon>
  98. <Download />
  99. </el-icon>
  100. </div>
  101. </el-card>
  102. <el-card class="report-item no-border" shadow="never">
  103. <div class="report-icon">
  104. <img src="../../assets/icons/word.png" style="width: 52px; height: 52px;"/>
  105. </div>
  106. <div class="report-text">
  107. <span class="report-text-type">房地产咨询类报告</span>
  108. <span> 一 </span>
  109. <span
  110. class="report-text-name">自贡鑫景城实业有限公司开发建设的位于自贡市自流井区汇东路西段与汇兴路交叉口南侧中心城区D2-44-3地块(原汇西片区C1-03地块)4号楼在建工程(建筑物)抵押价值评估
  111. </span>
  112. <div style="margin-top: 5px;">
  113. <span>
  114. <el-icon>
  115. <Avatar />
  116. </el-icon>
  117. 四川银行股份有限公司自贡分行</span>
  118. <span>
  119. <el-tag style="margin-left: 5px;">
  120. 房地产
  121. </el-tag>
  122. <el-tag style="margin-left: 5px;" type="danger">
  123. 咨询
  124. </el-tag>
  125. </span>
  126. <span style="float: right; color:darkgrey">
  127. 2024-10-16 12:10:09
  128. </span>
  129. </div>
  130. </div>
  131. <div class="report-button">
  132. <el-icon>
  133. <Download />
  134. </el-icon>
  135. </div>
  136. </el-card>
  137. <el-card class="report-item no-border" shadow="never">
  138. <div class="report-icon">
  139. <img src="../../assets/icons/excel.png" style="width: 52px; height: 52px;"/>
  140. </div>
  141. <div class="report-text">
  142. <span class="report-text-type">房地产咨询类报告</span>
  143. <span> 一 </span>
  144. <span
  145. class="report-text-name">自贡鑫景城实业有限公司开发建设的位于自贡市自流井区汇东路西段与汇兴路交叉口南侧中心城区D2-44-3地块(原汇西片区C1-03地块)4号楼在建工程(建筑物)抵押价值评估
  146. </span>
  147. <div style="margin-top: 5px;">
  148. <span>
  149. <el-icon>
  150. <Avatar />
  151. </el-icon>
  152. 四川银行股份有限公司自贡分行</span>
  153. <span>
  154. <el-tag style="margin-left: 5px;">
  155. 房地产
  156. </el-tag>
  157. <el-tag style="margin-left: 5px;" type="danger">
  158. 咨询
  159. </el-tag>
  160. </span>
  161. <span style="float: right; color:darkgrey">
  162. 2024-10-16 12:10:09
  163. </span>
  164. </div>
  165. </div>
  166. <div class="report-button">
  167. <el-icon>
  168. <Download />
  169. </el-icon>
  170. </div>
  171. </el-card>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </template>
  177. <script>
  178. import { loginByOAInfo } from '@/api/user';
  179. import { setToken, getToken } from '@/utils/auth';
  180. import { mapStores } from 'pinia'
  181. import { useUserStore } from '@/stores/useUserStore';
  182. export default {
  183. data() {
  184. return {
  185. mainType: null
  186. }
  187. },
  188. computed: {
  189. // 非setup语法,需要使用mapStores()才能访问
  190. // 直接放在生命周期函数也可以访问,但是似乎会导致持久化失效,没找到解决办法,建议还是用mapStores
  191. // 名字会变成id + 'Store' 的形式,比如id本来是user,那么这种方式使用就需要变成this.userStore.xxx
  192. ...mapStores(useUserStore),
  193. },
  194. created() {
  195. // 如果路由上带了token,说明是从oa刚跳转过来,需要进行登录
  196. if (this.$route.query.token) {
  197. loginByOAInfo(this.$route.query.token).then(res => {
  198. setToken(res.data.tokenValue);
  199. this.userStore.setUserInfo(res.data);
  200. })
  201. }
  202. // 登录成功,重新跳转到主页
  203. this.$router.push(`/home/index`)
  204. },
  205. methods: {
  206. goto(path) {
  207. this.$router.push(`/home/${path}`)
  208. }
  209. }
  210. }
  211. </script>
  212. <style scoped>
  213. .base {
  214. min-height: calc(100vh - 80px);
  215. width: 100%;
  216. }
  217. .content {
  218. /* margin-left: 160px; */
  219. /* margin-right: 160px; */
  220. /* padding: 50px 20px 20px 20px; */
  221. }
  222. .words {
  223. padding: 70px 20px 20px 20px;
  224. background: linear-gradient(180deg, transparent, hsla(0, 0%, 95%, .29) 47.39%, #fff), linear-gradient(90deg, #f9ddf1 .07%, #e5e1ff 16.73%, #daedff 34.48%, #e2f4e3 49.98%, #ebf5d8 66.12%, #faf2da 81.95%, #fbe5d8 99.9%);
  225. }
  226. h1 {
  227. margin-left: 160px;
  228. font-size: 50px;
  229. font-weight: 400;
  230. }
  231. p {
  232. margin-left: 160px;
  233. font-size: 20px;
  234. letter-spacing: 1px;
  235. margin-top: 20px;
  236. }
  237. .option {
  238. width: 58.5%;
  239. margin-top: 10px;
  240. margin-left: 160px;
  241. height: 1000px;
  242. border-right: 1.5px #dae1eb solid;
  243. padding: 0px 20px 20px 20px;
  244. }
  245. .create-btn {
  246. height: 50px;
  247. }
  248. /* From Uiverse.io by adamgiebl */
  249. .cssbuttons-io-button {
  250. background: #ff6154;
  251. color: white;
  252. padding: 0.35em;
  253. padding-left: 1.2em;
  254. font-size: 20px;
  255. font-weight: 400;
  256. border-radius: 0.3em;
  257. border: none;
  258. letter-spacing: 0.05em;
  259. display: flex;
  260. align-items: center;
  261. box-shadow: inset 0 0 1.6em -0.6em #ff6154;
  262. overflow: hidden;
  263. position: relative;
  264. height: 2.7em;
  265. padding-right: 3.3em;
  266. cursor: pointer;
  267. margin-right: 20px;
  268. float: left;
  269. width: 8em;
  270. }
  271. .cssbuttons-io-button .icon {
  272. background: white;
  273. margin-left: 1em;
  274. position: absolute;
  275. display: flex;
  276. align-items: center;
  277. justify-content: center;
  278. height: 2.2em;
  279. width: 2.2em;
  280. border-radius: 0.3em;
  281. box-shadow: 0.1em 0.1em 0.6em 0.2em #ff6154;
  282. right: 0.3em;
  283. transition: all 0.3s;
  284. }
  285. .cssbuttons-io-button:hover .icon {
  286. width: calc(100% - 0.6em);
  287. }
  288. .cssbuttons-io-button .icon svg {
  289. width: 1.1em;
  290. transition: transform 0.3s;
  291. color: #ff6154;
  292. }
  293. .cssbuttons-io-button:hover .icon svg {
  294. transform: translateX(0.1em);
  295. }
  296. .cssbuttons-io-button:active .icon {
  297. transform: scale(0.95);
  298. }
  299. .no-border {
  300. border: none;
  301. border-radius: 0.6em;
  302. }
  303. </style>