From a5c3d8a6a9dee5c50bb39b4b7b625eec81e7da34 Mon Sep 17 00:00:00 2001
From: hailu <962012470@qq.com>
Date: 星期三, 28 二月 2024 17:10:47 +0800
Subject: [PATCH] A股
---
dist.rar | 0
src/router/routers.js | 25 +-
src/components/main/components/side-menu/collapsed-menu.vue | 2
src/view/admin/dataManagement/Industrial.vue | 4
src/router/index.js | 2
src/view/risk-control/Astock.vue | 330 +++++++++++++++++++++++++++++++++++++++++++++++
src/view/risk-control/risk-control-application/znxg.vue | 8
7 files changed, 353 insertions(+), 18 deletions(-)
diff --git a/dist.rar b/dist.rar
index 2160733..4731195 100644
--- a/dist.rar
+++ b/dist.rar
Binary files differ
diff --git a/src/components/main/components/side-menu/collapsed-menu.vue b/src/components/main/components/side-menu/collapsed-menu.vue
index 68f52d9..3cac942 100644
--- a/src/components/main/components/side-menu/collapsed-menu.vue
+++ b/src/components/main/components/side-menu/collapsed-menu.vue
@@ -86,7 +86,7 @@
turnTo(name) {
// console.log(this.menu);
// if (name === 'Macroeconomic-ch' || name === 'Macroeconomic-am' || name === 'policyCountry' || name === 'policyBeijing' || name === 'policyShanghai' || name === 'policyShenzhen' || name === 'enterpriseDataAtlas') {
- if (name === 'Macroeconomic-ch' || name === 'Macroeconomic-am' || name === 'policyCountry' || name === 'policyBeijing' || name === 'policyShanghai' || name === 'policyShenzhen'|| name === 'Astock') {
+ if (name === 'Macroeconomic-ch' || name === 'Macroeconomic-am' || name === 'policyCountry' || name === 'policyBeijing' || name === 'policyShanghai' || name === 'policyShenzhen') {
this.$Message.warning('鍔熻兘姝e湪寮�鍙戜腑...');
}
// else if (name === 'riskControlReportFK'||name === 'SRRHaig'|| name === 'enterpriseSemiconductor'||name === 'rickControlQuantification'||name === 'investmentAdvisory') {
diff --git a/src/router/index.js b/src/router/index.js
index f228332..008834f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -90,7 +90,7 @@
return false
} else if (to.path == '/fingpt') {
- window.open('https://76b1fb3a.r8.vip.cpolar.cn/')
+ window.open('https://fingpt.vip.cpolar.cn/')
return false
}
if (store.state.user.hasGetInfo) {
diff --git a/src/router/routers.js b/src/router/routers.js
index e73c0a6..10b3581 100644
--- a/src/router/routers.js
+++ b/src/router/routers.js
@@ -774,7 +774,7 @@
meta: {
notCache: true,
icon: 'custom custom-fangkuan',
- title: 'A鑲″競鍦哄叏鏅垎鏋愬緟涓婄嚎'
+ title: 'A鑲″競鍦哄叏鏅垎鏋�'
},
component: () =>
import('@/view/risk-control/Astock.vue')
@@ -1427,7 +1427,17 @@
},
component: () =>
import('@/view/risk-control/rzd/rzd.vue')
- }
+ },
+ {
+ path: '/fingpt',
+ name: 'fingpt',
+ meta: {
+ icon: 'custom custom-dayin',
+ title: '浠佽蒋閲戣瀺GPT'
+ },
+ component: () =>
+ import('@/view/risk-control/risk-control-application/fingpt.vue')
+ },
]
},
@@ -1497,16 +1507,7 @@
component: () =>
import('@/view/risk-control/risk-control-application/investmentAdvisory.vue')
},
- {
- path: '/fingpt',
- name: 'fingpt',
- meta: {
- icon: 'custom custom-dayin',
- title: '浠佽蒋閲戣瀺GPT'
- },
- component: () =>
- import('@/view/risk-control/risk-control-application/fingpt.vue')
- },
+
]
},
]
diff --git a/src/view/admin/dataManagement/Industrial.vue b/src/view/admin/dataManagement/Industrial.vue
index fc8ded9..1940bbc 100644
--- a/src/view/admin/dataManagement/Industrial.vue
+++ b/src/view/admin/dataManagement/Industrial.vue
@@ -143,8 +143,8 @@
// IndustryCategory: '鍗婂浣�',
// ArticleType: '骞村害澶嶇洏',
// }
- IndustryCategoryList: [{ value: '鍗婂浣�', label: '鍗婂浣�' }, { value: '鍏変紡', label: '鍏変紡' }, { value: '鏂拌兘婧愯溅', label: '鏂拌兘婧愯溅' },{ value: 'AIGC琛屼笟', label: 'AIGC琛屼笟' }],
- ArticleTypeList: [{ value: '骞村害澶嶇洏', label: '骞村害澶嶇洏' }, { value: '缁嗗垎璧涢亾', label: '缁嗗垎璧涢亾' }, { value: '纭呮櫠鍦�', label: '纭呮櫠鍦�' }, { value: 'EDA', label: 'EDA' }, { value: '涓婂競鍏徃寰偣璇�', label: '涓婂競鍏徃寰偣璇�' },{ value: 'GPT澶фā鍨嬪簲鐢ㄨ祫璁�', label: 'GPT澶фā鍨嬪簲鐢ㄨ祫璁�' },{ value: 'GPT澶фā鍨嬪浗鍐呭紑婧�', label: 'GPT澶фā鍨嬪浗鍐呭紑婧�' },{ value: 'GPT澶фā鍨嬪浗澶栧紑婧�', label: 'GPT澶фā鍨嬪浗澶栧紑婧�' }],
+ IndustryCategoryList: [{ value: '鍗婂浣�', label: '鍗婂浣�' }, { value: '鍏変紡', label: '鍏変紡' }, { value: '鏂拌兘婧愯溅', label: '鏂拌兘婧愯溅' },{ value: 'AIGC琛屼笟', label: 'AIGC琛屼笟' },{ value: 'A鑲″競鍦哄叏鏅垎鏋�', label: 'A鑲″競鍦哄叏鏅垎鏋�' }],
+ ArticleTypeList: [{ value: '骞村害澶嶇洏', label: '骞村害澶嶇洏' }, { value: '缁嗗垎璧涢亾', label: '缁嗗垎璧涢亾' }, { value: '纭呮櫠鍦�', label: '纭呮櫠鍦�' }, { value: 'EDA', label: 'EDA' }, { value: '涓婂競鍏徃寰偣璇�', label: '涓婂競鍏徃寰偣璇�' },{ value: 'GPT澶фā鍨嬪簲鐢ㄨ祫璁�', label: 'GPT澶фā鍨嬪簲鐢ㄨ祫璁�' },{ value: 'GPT澶фā鍨嬪浗鍐呭紑婧�', label: 'GPT澶фā鍨嬪浗鍐呭紑婧�' },{ value: 'GPT澶фā鍨嬪浗澶栧紑婧�', label: 'GPT澶фā鍨嬪浗澶栧紑婧�' },{ value: 'A鑲�', label: 'A鑲�' }],
addModal: false,
updataModal: false,
pageIndex: 1,
diff --git a/src/view/risk-control/Astock.vue b/src/view/risk-control/Astock.vue
index e69de29..54726fb 100644
--- a/src/view/risk-control/Astock.vue
+++ b/src/view/risk-control/Astock.vue
@@ -0,0 +1,330 @@
+<template>
+ <div class="rentClass receivableClass">
+ <Card v-if="showTabTitle" class="customTitle">
+ <div >
+ <Icon custom="custom custom-fangkuan"></Icon>
+ <span style="margin-left: 6px;">A鑲″競鍦哄叏鏅垎鏋�</span>
+ </div>
+ </Card>
+ <Card style="padding-bottom:60px;margin-top:3px;">
+ <div class="lists_readAndEdit2" style="margin-top: 0;padding-top: 0;display: flex;"
+ v-if="showTabTitle">
+ <div>
+ <Select v-model="article" style="width:100px;padding-right: 12px" size="large">
+ <Option value="0">鏍囬</Option>
+ <Option value="1">鎽樿</Option>
+ <Option value="2">鍐呭</Option>
+
+ </Select>
+ <Input v-model="searchName" clearable size="large" style="width: 400px;font-size:14px;margin-right: 12px;"
+ placeholder="璇疯緭鍏ユ爣棰樻憳瑕佹垨鍐呭"></Input>
+ <Button size="large" icon="ios-search" type="primary" @click="searchClick">鎼滅储</Button>
+ </div>
+
+ </div>
+ <div class="rentScrollOut" style="margin-top: 12px">
+ <Table ref="datalist" :data="datalist" :columns="datalistcol" transfer :loading="loading" border>
+ <template slot="action" slot-scope="params">
+ <Tooltip content="鏌ョ湅" class="tableActionMargin" theme="light" transfer max-width="200" placement="top">
+ <Icon class="action_class" custom="custom custom-chakan" size="18" style="color:#2D8CF0;cursor: pointer;"
+ @click="checkArticle(params.row)" />
+ </Tooltip>
+ </template>
+ </Table>
+
+ <Page :current="CurrentPage" :total="totalItems" :page-size="8" @on-change="changePage"
+ style="float: right;margin-top: 12px;" />
+ </div>
+ </Card>
+ </div>
+ </template>
+
+ <script>
+ import axios from '@/libs/api.request'
+ import $ from 'jquery'
+ export default {
+ name: '',
+ props: {
+ showTabTitle: {
+ type: Boolean,
+ default: true
+ },
+ name: {
+ type: String,
+ default: ''
+ },
+ fullCompanyName: {
+ type: String,
+ default: ''
+ }
+ },
+ data() {
+ return {
+ searchName: '',
+ article: '0',
+ pageIndex: 1,
+ pageSize: 8,
+ totalItems: 0,
+ totalPages: 0,
+ datalist: [],
+ loading: false,
+ titleKeyword: '',
+ abstractKeyword: '',
+ CurrentPage: 0,
+ }
+ },
+ watch: {
+
+ },
+ mounted() {
+ if (this.name) {
+ console.log(this.fullCompanyName, this.name);
+ this.searchName = this.name
+ this.article = '2'
+ this.searchClick()
+ // this.getPage()
+ } else {
+ this.getPage()
+ }
+
+ },
+ created() {
+
+ },
+ methods: {
+ searchClick() {
+ this.pageIndex = 1
+ this.loading = true
+ let data = {
+ fullName: this.fullCompanyName,
+ pageIndex: this.pageIndex,
+ pageSize: this.pageSize,
+ industryCategoryKeyword: 'A鑲″競鍦哄叏鏅垎鏋�',
+ ArticleTypeKeyword: 'A鑲�',
+ titleKeyword: '',
+ abstractKeyword: '',
+ contentKeyword: '',
+ }
+ if (this.article === '0') {
+ data.titleKeyword = this.searchName
+ data.abstractKeyword = ''
+ data.contentKeyword = ''
+ } else if (this.article === '1') {
+ data.titleKeyword = ''
+ data.contentKeyword = ''
+ data.abstractKeyword = this.searchName
+ } else if (this.article === '2') {
+ data.contentKeyword = this.searchName
+ data.titleKeyword = ''
+ data.abstractKeyword = ''
+ }
+ axios.request({
+ url: '/IndustryChain/GetPage',
+ data,
+ method: 'post'
+ }).then(res => {
+ if (res.data.Check) {
+ this.datalist = res.data.Data.Items
+ this.loading = false
+ this.totalItems = res.data.Data.TotalItems
+ this.totalPages = res.data.Data.TotalPages
+ this.CurrentPage = res.data.Data.CurrentPage
+ } else {
+ this.loading = false
+
+ }
+ }, res => {
+
+ })
+
+ },
+ changePage(index) {
+ this.pageIndex = index
+ this.getPage()
+
+ },
+ getPage() {
+ this.loading = true
+ let data = {
+ fullName: this.fullCompanyName,
+ pageIndex: this.pageIndex,
+ pageSize: this.pageSize,
+ industryCategoryKeyword: 'A鑲″競鍦哄叏鏅垎鏋�',
+ ArticleTypeKeyword: 'A鑲�',
+ titleKeyword: '',
+ abstractKeyword: '',
+ contentKeyword: '',
+ }
+ if (this.article === '0') {
+ data.titleKeyword = this.searchName
+ data.abstractKeyword = ''
+ data.contentKeyword = ''
+ } else if (this.article === '1') {
+ data.titleKeyword = ''
+ data.contentKeyword = ''
+ data.abstractKeyword = this.searchName
+ } else if (this.article === '2') {
+ data.contentKeyword = this.searchName
+ data.titleKeyword = ''
+ data.abstractKeyword = ''
+ }
+ axios.request({
+ url: '/IndustryChain/GetPage',
+ data,
+ method: 'post'
+ }).then(res => {
+ if (res.data.Check) {
+ this.datalist = res.data.Data.Items
+ this.loading = false
+ this.totalItems = res.data.Data.TotalItems
+ this.totalPages = res.data.Data.TotalPages
+ this.CurrentPage = res.data.Data.CurrentPage
+ } else {
+ this.loading = false
+
+ }
+ }, res => {
+
+ })
+ },
+ checkArticle(params) {
+ // console.log(params);
+ // this.$router.push('/artDetail')
+ this.$router.push({
+ name: "artDetail",
+ query: {
+ id: params.Id
+ },
+ params: {
+ // name: params.Title
+ name: params.Title.length > 15 ? params.Title.substring(0, 15) + '...' : params.Title,
+
+ }
+ });
+ },
+
+ },
+ computed: {
+ datalistcol() {
+ // 鏍囬 鎽樿 鍐呭锛屽彂甯冩椂闂� 淇敼鏃堕棿锛屾祻瑙堟鏁帮紝鍙戝竷鑰咃紝闄勪欢锛屾爣绛撅紝琛屼笟鍒嗙被 鏂囩珷绫诲瀷
+ let columns = [];
+ columns.push({
+ title: "搴忓彿",
+ key: "id",
+ render: (h, params) => {
+ return h("span", params.index + 1 + (this.pageIndex - 1) * 8);
+ },
+ width: 100,
+ align: "center",
+ fixed: 'left'
+
+ });
+ columns.push({
+ title: "鏍囬",
+ key: "Title",
+ minWidth: 200,
+ render: (h, params) => {
+ return h("span",
+ {
+ style: {
+ margin: '0 0 0 3px',
+ }
+ },
+ params.row.Title);
+ },
+ className: 'tablecontent',
+ align: 'center',
+ });
+ columns.push({
+ title: "鎽樿",
+ key: "Abstract",
+ minWidth: 380,
+ className: 'tablecontent',
+ align: 'center',
+ render: (h, params) => {
+ return h('Tooltip', {
+ props: {
+ placement: 'bottom-start', transfer: true, maxWidth: 500,
+ },
+ },
+ [
+ h('div', {
+ style: {
+ width: '380px',
+ overflow: 'hidden',
+ whiteSpace: 'nowrap',
+ textOverflow: 'ellipsis',
+ margin: '0 0 0 3px',
+ }
+ }, params.row.Abstract),
+ h('span', {
+ slot: 'content',
+ style: {
+ whiteSpace: 'normal',
+ wordBreak: 'break-all',
+
+ }
+ }, params.row.Abstract)
+ ]
+ )
+ }
+ });
+ columns.push({
+ title: "鍙戝竷鏃堕棿",
+ key: "PubTime",
+ width: 150,
+ align: 'center'
+ });
+ // columns.push({
+ // title: "淇敼鏃堕棿",
+ // key: "UpdateTime",
+ // width: 200,
+ // align: 'center'
+ // });
+
+ columns.push({
+ title: "鏍囩",
+ key: "Tag",
+ render: (h, params) => {
+ return h("span", params.row.Tag.join());
+ },
+ width: 100,
+ align: 'center'
+ });
+ // columns.push({
+ // title: "琛屼笟鍒嗙被",
+ // key: "IndustryCategory",
+ // // solt: 'IndustryCategoryParams',
+ // width: 200,
+ // align: 'center',
+
+
+ // });
+ // columns.push({
+ // title: "鏂囩珷绫诲瀷",
+ // key: "ArticleType",
+ // // solt: "ArticleTypeParams",
+ // width: 200,
+ // align: 'center',
+
+ // });
+ columns.push({
+ title: '鎿嶄綔',
+ key: 'action',
+ slot: 'action',
+ width: 100,
+ align: 'center',
+ fixed: 'right'
+ })
+
+ return columns;
+ },
+ }
+ }
+ </script>
+
+ <style scoped>
+
+ </style>
+
+
\ No newline at end of file
diff --git a/src/view/risk-control/risk-control-application/znxg.vue b/src/view/risk-control/risk-control-application/znxg.vue
index e837c72..f9afc09 100644
--- a/src/view/risk-control/risk-control-application/znxg.vue
+++ b/src/view/risk-control/risk-control-application/znxg.vue
@@ -307,10 +307,14 @@
question: this.searchName
}
}).then(res => {
+
this.loading = false
if (res.data.Check) {
- let data = JSON.parse(res.data.Data).data.answer[0].txt[0].content.components[0].data
- this.setRqpmColumns(data.columns, data.datas)
+ console.log(111111);
+ console.log(JSON.parse(res.data.Data));
+ // let data = JSON.parse(res.data.Data).data.answer[0].txt[0].content.components[0].data
+ // console.log(data);
+ // this.setRqpmColumns(data.columns, data.datas)
} else {
this.$Message.error(res.msg)
}
--
Gitblit v1.8.0