Browse Source

资产模块

master
xueyinfei 3 months ago
parent
commit
2d9ef8f825
  1. 2
      README.md
  2. 12
      vue-fastapi-backend/module_admin/controller/data_ast_content_controller.py
  3. 2
      vue-fastapi-backend/module_admin/service/data_ast_content_service.py
  4. 2
      vue-fastapi-frontend/src/views/datastd/stddict/codeItem.vue
  5. 2
      vue-fastapi-frontend/src/views/datastd/stddict/codeItemCommon.vue

2
README.md

@ -13,7 +13,7 @@
</p> </p>
## 平台简介 ## 平台简介
8083的目录: /home/test
RuoYi-Vue3-FastAPI是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。 RuoYi-Vue3-FastAPI是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
* 前端采用Vue3、Element Plus,基于<u>[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3)</u>前端项目修改。 * 前端采用Vue3、Element Plus,基于<u>[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3)</u>前端项目修改。

12
vue-fastapi-backend/module_admin/controller/data_ast_content_controller.py

@ -99,20 +99,20 @@ async def getMetaSercuityData(
): ):
# 获取当前用户信息 # 获取当前用户信息
user_id = current_user.user.user_id user_name = current_user.user.user_name
password = current_user.user.password password = current_user.user.password
logger.info(f"获取当前用户信息:user_id={user_id}, password={password}") logger.info(f"获取当前用户信息:user_id={user_name}, password={password}")
# 设置字段 # 设置字段
apiModel = MetaSecurityApiModel() apiModel = MetaSecurityApiModel()
apiModel.dbRId = dataAstSecuRequest.data_ast_src apiModel.dbRCode = dataAstSecuRequest.data_ast_src
apiModel.username = user_id apiModel.username = user_name
apiModel.password = password apiModel.password = password
apiModel.sqlStr = "select * from " + dataAstSecuRequest.data_ast_eng_name apiModel.sqlStr = "select * from " + dataAstSecuRequest.data_ast_eng_name
logger.info(f"设置 apiModel 参数:dbRId={apiModel.dbRId}, username={apiModel.username}, password={apiModel.password}, sqlStr={apiModel.sqlStr}") # logger.info(f"设置 apiModel 参数:dbRId={apiModel.dbRId}, username={apiModel.username}, password={apiModel.password}, sqlStr={apiModel.sqlStr}")
# 打印 apiModel 对象 # 打印 apiModel 对象
logger.debug(f"apiModel 对象内容:{apiModel}") # logger.debug(f"apiModel 对象内容:{apiModel}")
# 调用服务层方法 # 调用服务层方法
config_detail_result = await MetaSecurityService.getMetaSercuitybysql(request, query_db, apiModel) config_detail_result = await MetaSecurityService.getMetaSercuitybysql(request, query_db, apiModel)

2
vue-fastapi-backend/module_admin/service/data_ast_content_service.py

@ -706,7 +706,7 @@ class DataCatalogService:
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script> <script type="text/javascript" src="/assets/js/echarts.min.js"></script>
<style> <style>
html, body {{ html, body {{
margin: 0; margin: 0;

2
vue-fastapi-frontend/src/views/datastd/stddict/codeItem.vue

@ -197,7 +197,7 @@
<script setup> <script setup>
import { ref, reactive, onMounted, toRefs } from 'vue'; import { ref, reactive, onMounted, toRefs } from 'vue';
import { listStdCode,listStdCodeCompany,addStdCode,updateStdCode } from "@/api/datastd/stdcode"; // import { listStdCode,listStdCodeCompany,addStdCode,updateStdCode } from "@/api/datastd/std"; //
import codeItemCommon from './codeItemCommon.vue'; // import codeItemCommon from './codeItemCommon.vue'; //
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();

2
vue-fastapi-frontend/src/views/datastd/stddict/codeItemCommon.vue

@ -75,7 +75,7 @@
<script setup> <script setup>
import { ref, reactive, onMounted, toRefs } from 'vue'; import { ref, reactive, onMounted, toRefs } from 'vue';
import { listStdCode,getStdCode} from "@/api/datastd/stdcode"; // import { listStdCode,getStdCode} from "@/api/datastd/std"; //
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const { std_code_status } = proxy.useDict("std_code_status"); const { std_code_status } = proxy.useDict("std_code_status");

Loading…
Cancel
Save