Selaa lähdekoodia

切分支改bug

Karsa 3 kuukautta sitten
vanhempi
commit
cb7763107c

+ 15 - 15
src/api/modules/dataApi.js

@@ -112,19 +112,19 @@ const dataInterence = {
 	delData:params => {
 		return http.post('/entry/data/delete',params)
 	},
-/* 	获取数据列表
-	page_no	是	int	每页起始位置:默认0
-	page_size	是	int	每页数据条数,默认10
-	start_date	否	string	开始日期
-	end_date	否	string	结束日期
-	frequency	否	string	频度
-	classify_id	否	int	分类id,默认0
-	key_word	否	string	标题搜索关键词 
-	trade_code	否	string	指标编码 */
-	getDatalist:params => {
-		return http.get('/entry/data/list',params)
-	},
-/* 	导出数据
+	/* 	获取数据列表
+		page_no	是	int	每页起始位置:默认0
+		page_size	是	int	每页数据条数,默认10
+		start_date	否	string	开始日期
+		end_date	否	string	结束日期
+		frequency	否	string	频度
+		classify_id	否	int	分类id,默认0
+		key_word	否	string	标题搜索关键词 
+		trade_code	否	string	指标编码 */
+		getDatalist:params => {
+			return http.get('/entry/data/list',params)
+		},
+	/* 	导出数据
 	start_date	否	string	开始日期
 	end_date	否	string	结束日期
 	frequency	否	string	频度
@@ -133,7 +133,7 @@ const dataInterence = {
 	exportData:params => {
 		return http.get('/entry/export/dataList',params)
 	},
-/* 	检测日期下数据是否存在接口
+	/* 	检测日期下数据是否存在接口
 	trade_code	是	string	指标唯一编码
 	create_date	是	string	所选日期 */
 	checkData:params => {
@@ -515,7 +515,7 @@ const dataRefreshInterface = {
     getSimgleEdbRefreshTime(params){
         return http.get("/datamanage/edb_info/refresh/edb_config",params)
     },
-// -------------------刷新状态设置
+	// -------------------刷新状态设置
 	/**
 	 * 获取引用指标数据
 	 * @param {Object} params 

+ 198 - 7
src/api/modules/thirdBaseApi.js

@@ -1263,12 +1263,12 @@ export {
 	coalDataInterface,
 	steelInterface,
 	steoInterface,
-  sciDataInterface,
-  baiinfoInterface,
-  nationalInterface,
-  databankInterface,
-  yongyiInterface,
-  fwmtInterface,
+	sciDataInterface,
+	baiinfoInterface,
+	nationalInterface,
+	databankInterface,
+	yongyiInterface,
+	fwmtInterface,
 	guangqiInterface,
 	icpiInterface,
 	zczxInterface,
@@ -1277,4 +1277,195 @@ export {
 	ccfDataInterface,
 	windInterface,
 	highFrequencyDataInterface
-}
+}
+
+
+/* 卓创红期数据 */
+export const zhuochuangRedStageInterface = {
+
+	/**
+	 * 分类列表
+	 * @param {*} params 
+	 * @returns 
+	 */
+	classifyList: params => {
+		return http.get('/datamanage/sci_hq/classify')
+	},
+
+	/**
+	 * 添加分类
+	 * @param {*ParentId ClassifyName} params 
+	 * @returns 
+	 */
+	classifyAdd: params => {
+		return http.post('/datamanage/sci_hq/classify/add',params)
+	},
+
+	/**
+	 * 编辑分类
+	 * @param {* ClassifyName ClassifyId} params 
+	 * @returns 
+	 */
+	classifyEdit: params => {
+		return http.post('/datamanage/sci_hq/classify/edit',params)
+	},
+
+	/**
+ * 删除分类
+ * @param {*} params ClassifyId
+ * @returns 
+ */
+	classifyDel: params => {
+		return http.post('/datamanage/sci_hq/classify/del',params)
+	},
+
+	/**
+	 * 移动分类
+	 * @param {*} params 
+	 * ClassifyId PrevClassifyId NextClassifyId
+	 ParentId
+		* @returns 
+		*/
+	classifyMove: params => {
+		return http.post('/datamanage/sci_hq/classify/move',params)
+	},
+
+	/**
+	 * 指标懒加载
+	 * @param {*ClassifyId} params 
+	 * @returns 
+	 */
+	edbListForClassify:params=>{
+		return http.get('/datamanage/sci_hq/index/list',params)
+	},
+
+	/**
+	 * 获取指标列表
+	 * @param {*} params  PageSize CurrentIndex IsListAll
+	 * @returns 
+	 */
+	getEdbList: params => {
+		return http.get('/datamanage/sci_hq/index/page/list',params)
+	},
+
+
+	/**
+	 * 数据接口 
+	 * @param {*} params IndexCode
+	 * @returns 
+	 */
+	getEdbData: params => {
+		return http.get('/datamanage/sci_hq/single_data',params)
+	},
+
+	/**
+	 * 编辑指标
+	 * @param {*} params 
+	 * BaseFromSciHqIndexId
+	 * ClassifyId
+	 * @returns 
+	 */
+	edbEdit: params => {
+		return http.post('/datamanage/sci_hq/edit',params)
+	},
+
+	/**
+	 * 指标移动
+	 * @param {*} params 
+	 * BaseFromSciHqIndexId 
+	 * ClassifyId
+	 * PrevBaseFromSciHqIndexId
+	 * NextBaseFromSciHqIndexId
+	 * @returns 
+	 */
+	edbMove: params => {
+		return http.post('/datamanage/sci_hq/move',params)
+	},
+
+	/**
+	 * 清除指标分类
+	 * @param {* BaseFromSciHqIndexId} params 
+	 * @returns 
+	 */
+	clearEdbClassify: params => {
+		return http.post('/datamanage/sci_hq/reset',params)
+	},
+
+	/**
+	 * 指标删除
+	 * @param {*} params BaseFromSciHqIndexId
+	 * @returns 
+	 */
+	edbDel: params => {
+		return http.post('/datamanage/sci_hq/del',params)
+	},
+
+	/**
+	 * 搜索指标
+	 * @param {*} params Keyword
+	 * @returns 
+	 */
+	searchEdb: params => {
+		return http.get('/datamanage/sci_hq/search_list',params)
+	},
+
+	/**
+	 * 批量搜索指标
+	 * @param {Object} params 
+	 * @param {String} ClassifyIds 目录列表 用,隔开
+	 * @param {String} Keyword
+	 * @returns 
+	 */
+	searchEdbBatch:params=>{
+		return http.get('/sci_hq/index/list',params)
+	},
+
+	/**
+	 * 重名检测
+	 * @param {[]} params 
+	 * @param {String} EdbCode
+	 * @param {String} EdbName
+	 * @returns 
+	 */
+	batchCheckEdbName:params=>{
+		return http.post('/datamanage/sci_hq/edb_info/name_check',params)
+	},
+
+	/**
+	 * 添加检测
+	 * @param {} params 
+	 * @param {[]} IndexCodes  指标IDs
+	 * @returns 
+	 */
+	batchAddEdbCheck:params=>{
+		return http.post('/datamanage/sci_hq/edb_info/add_check',params)
+	},
+
+	/**
+	 * 批量添加到指标库
+	 * @param {[]} params
+	 * @param {String} params[].EdbCode
+	 * @param {String} params[].EdbName
+	 * @param {String} params[].Unit
+	 * @param {Number} params[].ClassifyId 指标库的id
+	 * @param {String} params[].Frequency
+	 * @returns 
+	 */
+	batchAddToLib:params=>{
+		return http.post('/datamanage/sci_hq/edb_info/batch_add',params)
+	},
+
+	/**
+	 * 单个添加到指标库
+	 * @param {Object} params 
+	 * @param {String} params.EdbCode
+	 * @param {String} params.EdbName
+	 * @param {String} params.Unit
+	 * @param {String} params.Frequency
+	 * @param {Number} params.ClassifyId
+	 * @returns 
+	 */
+	AddToLib:params=>{
+		return http.post('/datamanage/sci_hq/edb_info/add',params)
+	}
+}

+ 9 - 1
src/routes/modules/dataRoutes.js

@@ -228,7 +228,7 @@ export default [
         name: "卓创数据(红桃3)",
         hidden: false,
         meta:{
-            name_en:"SCI"
+            name_en:"SCI(hongtao3)"
         }
       },
       {
@@ -356,6 +356,14 @@ export default [
           name_en:'High Frequency Data'
         }
       },
+      {
+        path: "zchqDataBase",
+        component: () => import("@/views/dataEntry_manage/thirdBase/zhuochuangRedStageBase.vue"),
+        name: "卓创红期",
+        meta:{
+          name_en:'SCI(hongqi)'
+        }
+      },
     ],
   },
 ];

+ 12 - 0
src/utils/buttonConfig.js

@@ -297,6 +297,18 @@ export const dataSourcePermission = {
     highFrequency_classify_move:'highFrequency:classify:move',//分类设置-移动
     highFrequency_classify_delete:'highFrequency:classify:delete',//分类设置-删除
     highFrequency_classify_editAdd:'highFrequency:classify:editAdd',//分类设置-编辑/添加
+
+    /* 卓创红期 */
+    sciHongqi_batch_addBase: 'sciHongqi:batch:addBase',//批量添加到指标库
+    sciHongqi_view: 'sciHongqi:view',//查看
+    sciHongqi_export: 'sciHongqi:export',//导出Excel
+    sciHongqi_classify_edit: 'sciHongqi:classify:edit',//分类编辑
+    sciHongqi_classify_move: 'sciHongqi:classify:move',//分类移动
+    sciHongqi_classify_del: 'sciHongqi:classify:del',//分类删除
+    sciHongqi_opera_addBase: 'sciHongqi:opera:addBase',//指标入库
+    sciHongqi_opera_del: 'sciHongqi:opera:del',//指标删除
+    sciHongqi_opera_clear: 'sciHongqi:opera:clear',//指标清除
+    sciHongqi_opera_edit: 'sciHongqi:opera:edit',//指标编辑
 }
 
 /*