Browse Source

Merge branch 'develop6.0-tmd' of http://52.130.252.100:10000/TEAMMODEL/TEAMModelOS into develop6.0-tmd

OnePsycho 3 years ago
parent
commit
55b2bf30e8
100 changed files with 178 additions and 206 deletions
  1. 4 0
      .gitignore
  2. BIN
      TEAMModeBI/ClientApp.zip
  3. 0 71
      TEAMModeBI/TEAMModeBI.csproj
  4. 0 0
      TEAMModelBI/ClientApp/.gitignore
  5. 0 0
      TEAMModelBI/ClientApp/README.md
  6. 0 0
      TEAMModelBI/ClientApp/babel.config.js
  7. 0 0
      TEAMModelBI/ClientApp/iconfont.css
  8. 0 0
      TEAMModelBI/ClientApp/package.json
  9. 0 0
      TEAMModelBI/ClientApp/public/favicon.ico
  10. 0 0
      TEAMModelBI/ClientApp/public/index.html
  11. 0 0
      TEAMModelBI/ClientApp/src/App.vue
  12. 0 0
      TEAMModelBI/ClientApp/src/access/index.js
  13. 0 0
      TEAMModelBI/ClientApp/src/api/index.js
  14. 0 0
      TEAMModelBI/ClientApp/src/assets/filter/http.js
  15. 0 0
      TEAMModelBI/ClientApp/src/assets/font/DS-DIGIT.TTF
  16. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/audio.png
  17. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/excel.png
  18. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/folder.png
  19. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/image.png
  20. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/item.png
  21. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/link.png
  22. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/pdf.png
  23. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/ppt.png
  24. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/unknow.png
  25. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/video.png
  26. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/word.png
  27. 0 0
      TEAMModelBI/ClientApp/src/assets/icon/zip.png
  28. 0 0
      TEAMModelBI/ClientApp/src/assets/img/background1.png
  29. 0 0
      TEAMModelBI/ClientApp/src/assets/img/background2.png
  30. 0 0
      TEAMModelBI/ClientApp/src/assets/img/background3.png
  31. 0 0
      TEAMModelBI/ClientApp/src/assets/img/dashboard-bg.jpg
  32. 0 0
      TEAMModelBI/ClientApp/src/assets/img/dashboard-head_bg.png
  33. 0 0
      TEAMModelBI/ClientApp/src/assets/img/dashboard-jt.png
  34. 0 0
      TEAMModelBI/ClientApp/src/assets/img/dashboard-lbx.png
  35. 0 0
      TEAMModelBI/ClientApp/src/assets/img/dashboard-map.png
  36. 0 0
      TEAMModelBI/ClientApp/src/assets/img/ddlogin.png
  37. 0 0
      TEAMModelBI/ClientApp/src/assets/img/erweima.png
  38. 0 0
      TEAMModelBI/ClientApp/src/assets/img/lbx.png
  39. 0 0
      TEAMModelBI/ClientApp/src/assets/img/list-num.png
  40. 0 0
      TEAMModelBI/ClientApp/src/assets/img/login.png
  41. 0 0
      TEAMModelBI/ClientApp/src/assets/img/logox.png
  42. 0 0
      TEAMModelBI/ClientApp/src/assets/img/mima.png
  43. 0 0
      TEAMModelBI/ClientApp/src/assets/img/placeholder.png
  44. 0 0
      TEAMModelBI/ClientApp/src/assets/img/tmd_logo.png
  45. 0 0
      TEAMModelBI/ClientApp/src/assets/logo.png
  46. 0 0
      TEAMModelBI/ClientApp/src/components/Ability.vue
  47. 0 0
      TEAMModelBI/ClientApp/src/components/AbilityTree.vue
  48. 0 0
      TEAMModelBI/ClientApp/src/components/Counter.vue
  49. 0 0
      TEAMModelBI/ClientApp/src/components/FetchData.vue
  50. 0 0
      TEAMModelBI/ClientApp/src/components/Home.vue
  51. 0 0
      TEAMModelBI/ClientApp/src/components/NavMenu.vue
  52. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/baseBar.vue
  53. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/baseBarAcross.vue
  54. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/basicLine.vue
  55. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/basicPie.vue
  56. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/chinaMap.vue
  57. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/customBar.vue
  58. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/customLine.vue
  59. 0 0
      TEAMModelBI/ClientApp/src/components/echarts/customPie.vue
  60. 0 0
      TEAMModelBI/ClientApp/src/main.js
  61. 1 1
      TEAMModeBI/ClientApp/src/router/index.js
  62. 0 0
      TEAMModelBI/ClientApp/src/static/Global.js
  63. 0 0
      TEAMModelBI/ClientApp/src/static/dimension.js
  64. 0 0
      TEAMModelBI/ClientApp/src/static/region.json
  65. 0 0
      TEAMModelBI/ClientApp/src/store/index.js
  66. 0 0
      TEAMModelBI/ClientApp/src/until/blobTool.js
  67. 0 0
      TEAMModelBI/ClientApp/src/until/china.js
  68. 0 0
      TEAMModelBI/ClientApp/src/until/common.js
  69. 0 0
      TEAMModelBI/ClientApp/src/until/excel.js
  70. 0 0
      TEAMModelBI/ClientApp/src/until/http.js
  71. 0 0
      TEAMModelBI/ClientApp/src/until/inspect.js
  72. 0 0
      TEAMModelBI/ClientApp/src/until/js-fn.js
  73. 0 0
      TEAMModelBI/ClientApp/src/until/public.js
  74. 0 0
      TEAMModelBI/ClientApp/src/view/404.vue
  75. 0 0
      TEAMModelBI/ClientApp/src/view/bindPhone.vue
  76. 0 0
      TEAMModelBI/ClientApp/src/view/common/aside.vue
  77. 0 0
      TEAMModelBI/ClientApp/src/view/common/header.vue
  78. 0 0
      TEAMModelBI/ClientApp/src/view/created/created.vue
  79. 1 1
      TEAMModeBI/ClientApp/src/view/ddlogin.vue
  80. 0 0
      TEAMModelBI/ClientApp/src/view/home.vue
  81. 0 0
      TEAMModelBI/ClientApp/src/view/index/dashboard.vue
  82. 0 0
      TEAMModelBI/ClientApp/src/view/index/operateLog.vue
  83. 68 48
      TEAMModeBI/ClientApp/src/view/login.vue
  84. 0 0
      TEAMModelBI/ClientApp/src/view/teachermanage/areamanage.vue
  85. 0 0
      TEAMModelBI/ClientApp/src/view/teachermanage/manage.vue
  86. 0 0
      TEAMModelBI/ClientApp/src/view/teachermanage/reuse.vue
  87. 0 0
      TEAMModelBI/ClientApp/src/view/teachermanage/school.vue
  88. 0 0
      TEAMModelBI/ClientApp/src/view/teachermanage/traitmanage.vue
  89. 1 1
      TEAMModeBI/ClientApp/vue.config.js
  90. 0 0
      TEAMModelBI/Controllers/AESHelper.cs
  91. 0 0
      TEAMModelBI/Controllers/Activity/ActivitySticsController.cs
  92. 0 0
      TEAMModelBI/Controllers/BIAbility/AbilityMgmtController.cs
  93. 1 3
      TEAMModeBI/Controllers/BIAbility/AbilityTaskMgmtController.cs
  94. 0 0
      TEAMModelBI/Controllers/BIHome/HomeStatisController.cs
  95. 0 0
      TEAMModelBI/Controllers/BISchool/AreaRelevantController.cs
  96. 0 7
      TEAMModeBI/Controllers/BISchool/BatchAreaController.cs
  97. 2 73
      TEAMModeBI/Controllers/BISchool/BatchSchoolController.cs
  98. 100 1
      TEAMModeBI/Controllers/BISchool/SchoolController.cs
  99. 0 0
      TEAMModelBI/Controllers/BIServer/BiServersController.cs
  100. 0 0
      TEAMModeBI/Controllers/BITest/TestController.cs

+ 4 - 0
.gitignore

@@ -254,4 +254,8 @@ _Pvt_Extensions
 /.idea
 /TEAMModelOS/wwwroot/dist
 /TEAMModelOS/wwwroot
+/TEAMModelBI/wwwroot/dist
+/TEAMModelBI/wwwroot
+/TEAMModelBI/wwwroot/static
 *.log.*
+

BIN
TEAMModeBI/ClientApp.zip


+ 0 - 71
TEAMModeBI/TEAMModeBI.csproj

@@ -1,71 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk.Web">
-
-  <PropertyGroup>
-    <TargetFramework>net6.0</TargetFramework>
-    <RootNamespace>TEAMModeBI</RootNamespace>
-  </PropertyGroup>
-
-  <PropertyGroup>
-    <SpaRoot>ClientApp\</SpaRoot>
-    <DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
-  </PropertyGroup>
-
-  <ItemGroup>
-   
-    <PackageReference Include="VueCliMiddleware" Version="6.0.0" />
-  </ItemGroup>
-
-  <ItemGroup>
-    <!-- Don't publish the SPA source files, but do show them in the project files list -->
-    <Content Remove="$(SpaRoot)**" />
-    <None Remove="$(SpaRoot)**" />
-    <None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
-  </ItemGroup>
-
-  <ItemGroup>
-    <ProjectReference Include="..\TEAMModelOS.SDK\TEAMModelOS.SDK.csproj" />
-  </ItemGroup>
-
-  <ItemGroup>
-    <Reference Include="topsdk-net-core">
-      <HintPath>Lib\topsdk-net-core.dll</HintPath>
-    </Reference>
-  </ItemGroup>
-
-  <ItemGroup>
-    <Folder Include="Controllers\DataCore\" />
-    <Folder Include="Models\" />
-  </ItemGroup>
-
-  <Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
-    <!-- Ensure Node.js is installed -->
-    <Exec Command="node --version" ContinueOnError="true">
-      <Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
-    </Exec>
-    <Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
-    <Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
-    <Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
-  </Target>
-
-  <Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
-    <!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
-    <Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
-    <Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod" />
-    <Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --prod" Condition=" '$(BuildServerSideRenderer)' == 'true' " />
-
-    <!-- Include the newly-built files in the publish output -->
-    <ItemGroup>
-      <DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" />
-      <DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
-      <ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
-        <RelativePath>%(DistFiles.Identity)</RelativePath>
-        <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
-        <ExcludeFromSingleFile>true</ExcludeFromSingleFile>
-      </ResolvedFileToPublish>
-    </ItemGroup>
-  </Target>
-
-  <ProjectExtensions><VisualStudio><UserProperties clientapp_4package_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
-
-
-</Project>

TEAMModeBI/ClientApp/.gitignore → TEAMModelBI/ClientApp/.gitignore


TEAMModeBI/ClientApp/README.md → TEAMModelBI/ClientApp/README.md


TEAMModeBI/ClientApp/babel.config.js → TEAMModelBI/ClientApp/babel.config.js


TEAMModeBI/ClientApp/iconfont.css → TEAMModelBI/ClientApp/iconfont.css


TEAMModeBI/ClientApp/package.json → TEAMModelBI/ClientApp/package.json


TEAMModeBI/ClientApp/public/favicon.ico → TEAMModelBI/ClientApp/public/favicon.ico


TEAMModeBI/ClientApp/public/index.html → TEAMModelBI/ClientApp/public/index.html


TEAMModeBI/ClientApp/src/App.vue → TEAMModelBI/ClientApp/src/App.vue


TEAMModeBI/ClientApp/src/access/index.js → TEAMModelBI/ClientApp/src/access/index.js


TEAMModeBI/ClientApp/src/api/index.js → TEAMModelBI/ClientApp/src/api/index.js


TEAMModeBI/ClientApp/src/assets/filter/http.js → TEAMModelBI/ClientApp/src/assets/filter/http.js


TEAMModeBI/ClientApp/src/assets/font/DS-DIGIT.TTF → TEAMModelBI/ClientApp/src/assets/font/DS-DIGIT.TTF


TEAMModeBI/ClientApp/src/assets/icon/audio.png → TEAMModelBI/ClientApp/src/assets/icon/audio.png


TEAMModeBI/ClientApp/src/assets/icon/excel.png → TEAMModelBI/ClientApp/src/assets/icon/excel.png


TEAMModeBI/ClientApp/src/assets/icon/folder.png → TEAMModelBI/ClientApp/src/assets/icon/folder.png


TEAMModeBI/ClientApp/src/assets/icon/image.png → TEAMModelBI/ClientApp/src/assets/icon/image.png


TEAMModeBI/ClientApp/src/assets/icon/item.png → TEAMModelBI/ClientApp/src/assets/icon/item.png


TEAMModeBI/ClientApp/src/assets/icon/link.png → TEAMModelBI/ClientApp/src/assets/icon/link.png


TEAMModeBI/ClientApp/src/assets/icon/pdf.png → TEAMModelBI/ClientApp/src/assets/icon/pdf.png


TEAMModeBI/ClientApp/src/assets/icon/ppt.png → TEAMModelBI/ClientApp/src/assets/icon/ppt.png


TEAMModeBI/ClientApp/src/assets/icon/unknow.png → TEAMModelBI/ClientApp/src/assets/icon/unknow.png


TEAMModeBI/ClientApp/src/assets/icon/video.png → TEAMModelBI/ClientApp/src/assets/icon/video.png


TEAMModeBI/ClientApp/src/assets/icon/word.png → TEAMModelBI/ClientApp/src/assets/icon/word.png


TEAMModeBI/ClientApp/src/assets/icon/zip.png → TEAMModelBI/ClientApp/src/assets/icon/zip.png


TEAMModeBI/ClientApp/src/assets/img/background1.png → TEAMModelBI/ClientApp/src/assets/img/background1.png


TEAMModeBI/ClientApp/src/assets/img/background2.png → TEAMModelBI/ClientApp/src/assets/img/background2.png


TEAMModeBI/ClientApp/src/assets/img/background3.png → TEAMModelBI/ClientApp/src/assets/img/background3.png


TEAMModeBI/ClientApp/src/assets/img/dashboard-bg.jpg → TEAMModelBI/ClientApp/src/assets/img/dashboard-bg.jpg


TEAMModeBI/ClientApp/src/assets/img/dashboard-head_bg.png → TEAMModelBI/ClientApp/src/assets/img/dashboard-head_bg.png


TEAMModeBI/ClientApp/src/assets/img/dashboard-jt.png → TEAMModelBI/ClientApp/src/assets/img/dashboard-jt.png


TEAMModeBI/ClientApp/src/assets/img/dashboard-lbx.png → TEAMModelBI/ClientApp/src/assets/img/dashboard-lbx.png


TEAMModeBI/ClientApp/src/assets/img/dashboard-map.png → TEAMModelBI/ClientApp/src/assets/img/dashboard-map.png


TEAMModeBI/ClientApp/src/assets/img/ddlogin.png → TEAMModelBI/ClientApp/src/assets/img/ddlogin.png


TEAMModeBI/ClientApp/src/assets/img/erweima.png → TEAMModelBI/ClientApp/src/assets/img/erweima.png


TEAMModeBI/ClientApp/src/assets/img/lbx.png → TEAMModelBI/ClientApp/src/assets/img/lbx.png


TEAMModeBI/ClientApp/src/assets/img/list-num.png → TEAMModelBI/ClientApp/src/assets/img/list-num.png


TEAMModeBI/ClientApp/src/assets/img/login.png → TEAMModelBI/ClientApp/src/assets/img/login.png


TEAMModeBI/ClientApp/src/assets/img/logox.png → TEAMModelBI/ClientApp/src/assets/img/logox.png


TEAMModeBI/ClientApp/src/assets/img/mima.png → TEAMModelBI/ClientApp/src/assets/img/mima.png


TEAMModeBI/ClientApp/src/assets/img/placeholder.png → TEAMModelBI/ClientApp/src/assets/img/placeholder.png


TEAMModeBI/ClientApp/src/assets/img/tmd_logo.png → TEAMModelBI/ClientApp/src/assets/img/tmd_logo.png


TEAMModeBI/ClientApp/src/assets/logo.png → TEAMModelBI/ClientApp/src/assets/logo.png


TEAMModeBI/ClientApp/src/components/Ability.vue → TEAMModelBI/ClientApp/src/components/Ability.vue


TEAMModeBI/ClientApp/src/components/AbilityTree.vue → TEAMModelBI/ClientApp/src/components/AbilityTree.vue


TEAMModeBI/ClientApp/src/components/Counter.vue → TEAMModelBI/ClientApp/src/components/Counter.vue


TEAMModeBI/ClientApp/src/components/FetchData.vue → TEAMModelBI/ClientApp/src/components/FetchData.vue


TEAMModeBI/ClientApp/src/components/Home.vue → TEAMModelBI/ClientApp/src/components/Home.vue


TEAMModeBI/ClientApp/src/components/NavMenu.vue → TEAMModelBI/ClientApp/src/components/NavMenu.vue


TEAMModeBI/ClientApp/src/components/echarts/baseBar.vue → TEAMModelBI/ClientApp/src/components/echarts/baseBar.vue


TEAMModeBI/ClientApp/src/components/echarts/baseBarAcross.vue → TEAMModelBI/ClientApp/src/components/echarts/baseBarAcross.vue


TEAMModeBI/ClientApp/src/components/echarts/basicLine.vue → TEAMModelBI/ClientApp/src/components/echarts/basicLine.vue


TEAMModeBI/ClientApp/src/components/echarts/basicPie.vue → TEAMModelBI/ClientApp/src/components/echarts/basicPie.vue


TEAMModeBI/ClientApp/src/components/echarts/chinaMap.vue → TEAMModelBI/ClientApp/src/components/echarts/chinaMap.vue


TEAMModeBI/ClientApp/src/components/echarts/customBar.vue → TEAMModelBI/ClientApp/src/components/echarts/customBar.vue


TEAMModeBI/ClientApp/src/components/echarts/customLine.vue → TEAMModelBI/ClientApp/src/components/echarts/customLine.vue


TEAMModeBI/ClientApp/src/components/echarts/customPie.vue → TEAMModelBI/ClientApp/src/components/echarts/customPie.vue


TEAMModeBI/ClientApp/src/main.js → TEAMModelBI/ClientApp/src/main.js


+ 1 - 1
TEAMModeBI/ClientApp/src/router/index.js

@@ -1,4 +1,4 @@
-import { createWebHashHistory, createRouter } from "vue-router";
+import { createRouter, createWebHashHistory } from "vue-router";
 // import store from '@/store/index.js'
 const routes = [{
         path: "/",

TEAMModeBI/ClientApp/src/static/Global.js → TEAMModelBI/ClientApp/src/static/Global.js


TEAMModeBI/ClientApp/src/static/dimension.js → TEAMModelBI/ClientApp/src/static/dimension.js


TEAMModeBI/ClientApp/src/static/region.json → TEAMModelBI/ClientApp/src/static/region.json


TEAMModeBI/ClientApp/src/store/index.js → TEAMModelBI/ClientApp/src/store/index.js


TEAMModeBI/ClientApp/src/until/blobTool.js → TEAMModelBI/ClientApp/src/until/blobTool.js


TEAMModeBI/ClientApp/src/until/china.js → TEAMModelBI/ClientApp/src/until/china.js


TEAMModeBI/ClientApp/src/until/common.js → TEAMModelBI/ClientApp/src/until/common.js


TEAMModeBI/ClientApp/src/until/excel.js → TEAMModelBI/ClientApp/src/until/excel.js


TEAMModeBI/ClientApp/src/until/http.js → TEAMModelBI/ClientApp/src/until/http.js


TEAMModeBI/ClientApp/src/until/inspect.js → TEAMModelBI/ClientApp/src/until/inspect.js


TEAMModeBI/ClientApp/src/until/js-fn.js → TEAMModelBI/ClientApp/src/until/js-fn.js


TEAMModeBI/ClientApp/src/until/public.js → TEAMModelBI/ClientApp/src/until/public.js


TEAMModeBI/ClientApp/src/view/404.vue → TEAMModelBI/ClientApp/src/view/404.vue


TEAMModeBI/ClientApp/src/view/bindPhone.vue → TEAMModelBI/ClientApp/src/view/bindPhone.vue


TEAMModeBI/ClientApp/src/view/common/aside.vue → TEAMModelBI/ClientApp/src/view/common/aside.vue


TEAMModeBI/ClientApp/src/view/common/header.vue → TEAMModelBI/ClientApp/src/view/common/header.vue


TEAMModeBI/ClientApp/src/view/created/created.vue → TEAMModelBI/ClientApp/src/view/created/created.vue


+ 1 - 1
TEAMModeBI/ClientApp/src/view/ddlogin.vue

@@ -12,7 +12,7 @@ export default {
     data() {
         return {
             appid: 'dingrucgsnt8p13rfbgd',
-            redirectUrl: 'https://bitest.teammodel.cn/login',
+            redirectUrl: 'https://' + JSON.parse(localStorage.getItem('Host')) + '/login',
             apiUrl: '/common/login/DingLogin',
             dingCodeConfig: {
                 id: 'login_container',

TEAMModeBI/ClientApp/src/view/home.vue → TEAMModelBI/ClientApp/src/view/home.vue


TEAMModeBI/ClientApp/src/view/index/dashboard.vue → TEAMModelBI/ClientApp/src/view/index/dashboard.vue


TEAMModeBI/ClientApp/src/view/index/operateLog.vue → TEAMModelBI/ClientApp/src/view/index/operateLog.vue


+ 68 - 48
TEAMModeBI/ClientApp/src/view/login.vue

@@ -37,7 +37,7 @@
             </div> -->
         </div>
         <!-- <div id="login_container" style="transform: scale(.8);">123456</div> -->
-        <bind :callbackStatus=callbackStatus v-if="callbackStatus.state ===200" ref="comRef"></bind>
+        <bind :callbackStatus=callbackStatus v-if="callbackStatus.state ===201" ref="comRef"></bind>
     </div>
 </template>
 <script>
@@ -84,6 +84,7 @@ export default {
             }
             var types = navigator.language
             localStorage.setItem('language', JSON.stringify(types))
+            localStorage.setItem('Host', JSON.stringify(window.location.host))
         })
         //处理登录icon变化
         watch(loginModel, () => {
@@ -105,61 +106,80 @@ export default {
                     callbackStatus.value.state = res.state
                     callbackStatus.value.partitionKey = res.ddUserId.partitionKey
                     callbackStatus.value.rowKey = res.ddUserId.rowKey
-                    res.state === 200 ? (store.commit('BindStatus', true), loading.close(), (callbackStatus.value.phoneNum = res.ddUserId.mobile)) : res.state === 0 ? ElMessage.error(res.message) : ''
+                    res.state === 201
+                        ? (store.commit('BindStatus', true), loading.close(), (callbackStatus.value.phoneNum = res.ddUserId.mobile))
+                        : res.state === 200
+                        ? (loading.close(), getOrganization(), Allpermission(), ElMessage.success('登录成功'), router.push({ path: '/dashboard' }))
+                        : (loading.close(), ElMessage.error(res.message))
                 })
             }
             return {
                 editState,
             }
         }
-        //钉钉账号或扫码登录
-        function userlogin(proxy) {
-            loading = ElLoading.service({
-                lock: true,
-                text: 'Loading',
-                background: 'rgba(0, 0, 0, 0.7)',
+        //获取组织架构
+        function getOrganization() {
+            console.log(proxy, '检查proxy')
+            proxy.$api.getorganization().then((res) => {
+                console.log(res, '组织架构返回的内容')
+                res.state === 200 ? (store.commit('ChangOrganization', res.deptlist), localStorage.setItem('organization', JSON.stringify(res.deptlist))) : ''
             })
-            let nonceNum = Math.floor(Math.random() * 10000)
-            console.log(nonceNum, '随机数')
-            let params = {
-                grant_type: 'account',
-                client_id: 'c7317f88-7cea-4e48-ac57-a16071f7b884',
-                nonce: 'habook',
-                account: user.value,
-                password: pwd.value,
-            }
-            // proxy.$api.loginUser(params).then(async (res) => {
-            //     console.log(res, '登录接口返回成功!')
-            //     res.error
-            //         ? (ElMessage.error('密码错误'), loading.close())
-            //         : res.id_token
-            //         ? (getTeachinfo(proxy, res.id_token), Allpermission(proxy), getOrganization(proxy))
-            //         : (loading.close(), ElMessage.error('登录失败'))
-            //     // router.push("/home");
-            // })
         }
-        //获取教师个人信息
-        function getTeachinfo(proxy, param) {
-            let parameter = { id_token: param }
-            proxy.$api.teacherinfo(parameter).then((res) => {
-                if (res.state === 1) {
-                    ElMessage.warning('该账户未绑定钉钉信息!请扫码绑定信息!')
-                    loginModel.value = false
-                } else {
-                    localStorage.setItem('userData', JSON.stringify(res))
-                    console.log(res, '教室个人信息')
-                    let jwt_authtoken = {
-                        jwt_user: jwt_decode(res.auth_token),
-                    }
-                    res = Object.assign(res, jwt_authtoken)
-                    res.state === 200 ? store.commit('getTeachdata', res) : []
-                    loading.close()
-                    ElMessage.success('登录成功')
-                    store.commit('getBlobsas', { host: res.osblob_uri, sas: res.osblob_sas })
-                    // router.push('/home')
-                }
+        //获取所有权限表
+        function Allpermission() {
+            proxy.$api.getAllpermission().then((res) => {
+                console.log(res, '权限列表')
+                res.authorityBIList ? (store.commit('getPermission', res.authorityBIList), localStorage.setItem('management', JSON.stringify(res.authorityBIList))) : []
             })
         }
+        // //钉钉账号或扫码登录
+        // function userlogin(proxy) {
+        //     loading = ElLoading.service({
+        //         lock: true,
+        //         text: 'Loading',
+        //         background: 'rgba(0, 0, 0, 0.7)',
+        //     })
+        //     let nonceNum = Math.floor(Math.random() * 10000)
+        //     console.log(nonceNum, '随机数')
+        //     let params = {
+        //         grant_type: 'account',
+        //         client_id: 'c7317f88-7cea-4e48-ac57-a16071f7b884',
+        //         nonce: 'habook',
+        //         account: user.value,
+        //         password: pwd.value,
+        //     }
+        //     // proxy.$api.loginUser(params).then(async (res) => {
+        //     //     console.log(res, '登录接口返回成功!')
+        //     //     res.error
+        //     //         ? (ElMessage.error('密码错误'), loading.close())
+        //     //         : res.id_token
+        //     //         ? (getTeachinfo(proxy, res.id_token), Allpermission(proxy), getOrganization(proxy))
+        //     //         : (loading.close(), ElMessage.error('登录失败'))
+        //     //     // router.push("/home");
+        //     // })
+        // }
+        // //获取教师个人信息
+        // function getTeachinfo(proxy, param) {
+        //     let parameter = { id_token: param }
+        //     proxy.$api.teacherinfo(parameter).then((res) => {
+        //         if (res.state === 1) {
+        //             ElMessage.warning('该账户未绑定钉钉信息!请扫码绑定信息!')
+        //             loginModel.value = false
+        //         } else {
+        //             localStorage.setItem('userData', JSON.stringify(res))
+        //             console.log(res, '教室个人信息')
+        //             let jwt_authtoken = {
+        //                 jwt_user: jwt_decode(res.auth_token),
+        //             }
+        //             res = Object.assign(res, jwt_authtoken)
+        //             res.state === 200 ? store.commit('getTeachdata', res) : []
+        //             loading.close()
+        //             ElMessage.success('登录成功')
+        //             store.commit('getBlobsas', { host: res.osblob_uri, sas: res.osblob_sas })
+        //             // router.push('/home')
+        //         }
+        //     })
+        // }
         return {
             comRef,
             store,
@@ -171,11 +191,11 @@ export default {
             userCode,
             editState,
             callbackStatus,
-            userlogin,
             router,
-            getTeachinfo,
             loading,
             msgText,
+            getOrganization,
+            Allpermission,
         }
     },
 }

TEAMModeBI/ClientApp/src/view/teachermanage/areamanage.vue → TEAMModelBI/ClientApp/src/view/teachermanage/areamanage.vue


TEAMModeBI/ClientApp/src/view/teachermanage/manage.vue → TEAMModelBI/ClientApp/src/view/teachermanage/manage.vue


TEAMModeBI/ClientApp/src/view/teachermanage/reuse.vue → TEAMModelBI/ClientApp/src/view/teachermanage/reuse.vue


TEAMModeBI/ClientApp/src/view/teachermanage/school.vue → TEAMModelBI/ClientApp/src/view/teachermanage/school.vue


TEAMModeBI/ClientApp/src/view/teachermanage/traitmanage.vue → TEAMModelBI/ClientApp/src/view/teachermanage/traitmanage.vue


+ 1 - 1
TEAMModeBI/ClientApp/vue.config.js

@@ -1,6 +1,6 @@
     module.exports = {
         publicPath: './', // 默认'/',部署应用包时的基本 URL
-        outputDir: 'dist', // 'dist', 生产环境构建文件的目录
+        outputDir: '../wwwroot', // 'dist', 生产环境构建文件的目录
         assetsDir: 'static',
         // lintOnSave: true,
         // runtimeCompiler: true,

TEAMModeBI/Controllers/AESHelper.cs → TEAMModelBI/Controllers/AESHelper.cs


TEAMModeBI/Controllers/Activity/ActivitySticsController.cs → TEAMModelBI/Controllers/Activity/ActivitySticsController.cs


TEAMModeBI/Controllers/BIAbility/AbilityMgmtController.cs → TEAMModelBI/Controllers/BIAbility/AbilityMgmtController.cs


+ 1 - 3
TEAMModeBI/Controllers/BIAbility/AbilityTaskMgmtController.cs

@@ -12,12 +12,10 @@ using System.Text.Json;
 using TEAMModelOS.SDK.Models;
 using Azure.Cosmos;
 using HTEXLib.COMM.Helpers;
-using TEAMModelOS.Services.Common;
-using TEAMModelOS.SDK.Models.Cosmos.BI;
 using TEAMModelOS.SDK.Models.Cosmos.Common;
 using System.Text;
 using TEAMModeBI.Filter;
-using TEAMModelOS.SDK.Services.Common;
+using TEAMModelOS.SDK.Services;
 
 namespace TEAMModeBI.Controllers.BIAbility
 {

TEAMModeBI/Controllers/BIHome/HomeStatisController.cs → TEAMModelBI/Controllers/BIHome/HomeStatisController.cs


TEAMModeBI/Controllers/BISchool/AreaRelevantController.cs → TEAMModelBI/Controllers/BISchool/AreaRelevantController.cs


+ 0 - 7
TEAMModeBI/Controllers/BISchool/BatchAreaController.cs

@@ -15,14 +15,7 @@ using DingTalk.Api.Request;
 using DingTalk.Api.Response;
 using System.Text.Json;
 using HTEXLib.COMM.Helpers;
-using TEAMModelOS.Services.Common;
 using TEAMModelOS.SDK.Models.Cosmos.Common;
-using Azure.Storage.Blobs.Models;
-using Azure.Storage.Blobs;
-using System.Text;
-using Azure.Storage.Sas;
-using Azure.Storage.Blobs.Specialized;
-using Azure;
 using TEAMModelOS.SDK.Models.Cosmos.BI;
 using Azure.Messaging.ServiceBus;
 using TEAMModelOS.SDK.Extension;

+ 2 - 73
TEAMModeBI/Controllers/BISchool/BatchSchoolController.cs

@@ -15,7 +15,6 @@ using TEAMModelOS.SDK.DI;
 using TEAMModelOS.SDK.Extension;
 using TEAMModelOS.SDK.Models;
 using TEAMModelOS.SDK.Models.Cosmos.BI;
-using static TEAMModelOS.SDK.Models.Teacher;
 using Microsoft.AspNetCore.Hosting;  //引用读取文件
 using TEAMModelOS.SDK.Models.Service;
 using System.IO;
@@ -327,7 +326,7 @@ namespace TEAMModeBI.Controllers.BISchool
                                     //创建账号并第一次登录IES5则默认赠送1G
                                     size = 1,
                                     defaultSchool = createSchoolInfo.id,
-                                    schools = new List<Teacher.TeacherSchool>() { new TeacherSchool { schoolId = createSchoolInfo.id, name = bischool.name, status = "join", time = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() } }
+                                    schools = new List<Teacher.TeacherSchool>() { new Teacher.TeacherSchool { schoolId = createSchoolInfo.id, name = bischool.name, status = "join", time = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() } }
                                 };
 
                                 stringBuilder.Append($"没有该教师信息创建的教师信息:{addteacher.name}【{addteacher.id}】");
@@ -544,59 +543,6 @@ namespace TEAMModeBI.Controllers.BISchool
             }
         }
 
-        /// <summary>
-        /// 修改学校信息
-        /// </summary>
-        /// <param name="school"></param>
-        /// <returns></returns>
-        [ProducesDefaultResponseType]
-        [AuthToken(Roles = "assist")]
-        [HttpPost("upd-school")]
-        public async Task<IActionResult> UpdSchool(ReplaceSchool replaceSchool)
-        {
-            try
-            {
-                School schoolInfo = new School();
-                var cosmosClient = _azureCosmos.GetCosmosClient();
-
-                School tempShool = await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<School>(replaceSchool.school.id, new PartitionKey("Base"));
-                if (tempShool != null)
-                {
-                    List<Teacher> teachers = new List<Teacher>();
-                    string sqltxt = $"select distinct value(c) from c join a1 in c.schools where a1.schoolId='{replaceSchool.school.id}'";
-                    await foreach (var item in cosmosClient.GetContainer(Constant.TEAMModelOS, "Teacher").GetItemQueryIterator<Teacher>(queryText: sqltxt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey("Base") }))
-                    {
-                        teachers.Add(item);
-                    }
-
-                    foreach (var item in teachers)
-                    {
-                        TeacherSchool teacherSchool = item.schools.Find(x => x.schoolId.Equals(replaceSchool.school.id));
-                        if (teacherSchool != null)
-                        {
-                            teacherSchool.name = replaceSchool.school.name;
-                            teacherSchool.picture = replaceSchool.school.picture;
-                            teacherSchool.areaId = replaceSchool.school.areaId;
-                        }
-                        await cosmosClient.GetContainer(Constant.TEAMModelOS, "Teacher").ReplaceItemAsync(item, item.id, new PartitionKey("Base"));
-                    }
-
-                    schoolInfo = await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReplaceItemAsync<School>(replaceSchool.school, replaceSchool.school.id, new PartitionKey("Base"));
-
-                    //保存操作记录
-                    await _azureStorage.SaveLog("school-update", $"{replaceSchool.tmdName}【{replaceSchool.tmdId}】修改学校信息,学校和ID:{replaceSchool.school.name}【{replaceSchool.school.id}】", _dingDing, httpContext: HttpContext);
-
-                    return Ok(new { state = 200, schoolInfo });
-                }
-                else return Ok(new { state = 400, message = "请求错误!" });
-            }
-            catch (Exception ex)
-            {
-                await _dingDing.SendBotMsg($"BI,{_option.Location}  /batchschool/upd-school \n {ex.Message}{ex.StackTrace}", GroupNames.成都开发測試群組);
-                return BadRequest();
-            }
-        }
-
         /// <summary>
         /// 修改学校信息和顾问信息
         /// </summary>
@@ -685,7 +631,7 @@ namespace TEAMModeBI.Controllers.BISchool
                                 }
                                 else
                                 {
-                                    TeacherSchool teacherSchool = new TeacherSchool
+                                    Teacher.TeacherSchool teacherSchool = new Teacher.TeacherSchool
                                     {
                                         schoolId = tempShool.id,
                                         name = tempShool.name,
@@ -1170,23 +1116,6 @@ namespace TEAMModeBI.Controllers.BISchool
             public string tmdName { get; set; }
         }
 
-        public record ReplaceSchool()
-        {
-            /// <summary>
-            /// 醍摩豆账户ID
-            /// </summary>
-            public string tmdId { get; set; }
-
-            /// <summary>
-            /// 醍摩豆账户名称
-            /// </summary>
-            public string tmdName { get; set; }
-
-            /// <summary>
-            /// 学校
-            /// </summary>
-            public School school { get; set; }
-        }
 
         /// <summary>
         /// 创建多个学校实体

+ 100 - 1
TEAMModeBI/Controllers/BISchool/SchoolController.cs

@@ -24,7 +24,6 @@ namespace TEAMModeBI.Controllers.BISchool
         private readonly DingDing _dingDing;
         private readonly Option _option;
         private readonly AzureStorageFactory _azureStorage;
-        public readonly string mobel = "学校";
 
         public SchoolController(AzureCosmosFactory azureCosmos, DingDing dingDing, AzureStorageFactory azureStorage, IOptionsSnapshot<Option> option) 
         {
@@ -165,6 +164,106 @@ namespace TEAMModeBI.Controllers.BISchool
             return Ok(new { state = 200, schools });
         }
 
+        /// <summary>
+        /// 依据学校编号查询学校信息
+        /// </summary>
+        /// <param name="jsonElement"></param>
+        /// <returns></returns>
+        [HttpPost("get-schoolid")]
+        public async Task<IActionResult> GetSchoolId(JsonElement jsonElement) 
+        {
+            try
+            {
+                if (!jsonElement.TryGetProperty("schoolId", out JsonElement schoolId)) return BadRequest();
+
+                var cosmosClient = _azureCosmos.GetCosmosClient();
+
+                School school = await cosmosClient.GetContainer("TEAMModelOS", "School").ReadItemAsync<School>($"{schoolId}", new PartitionKey("Base"));
+
+                return Ok(new { state = 200, school });
+
+            }
+            catch (Exception ex)
+            {
+                await _dingDing.SendBotMsg($"BI,{_option.Location}   /schoolcheck/get-schoolid   {ex.Message}{ex.StackTrace}", GroupNames.成都开发測試群組);
+                return BadRequest();
+            }
+        }
+
+        /// <summary>
+        /// 修改学校信息
+        /// </summary>
+        /// <param name="school"></param>
+        /// <returns></returns>
+        [ProducesDefaultResponseType]
+        [AuthToken(Roles = "assist")]
+        [HttpPost("upd-school")]
+        public async Task<IActionResult> UpdSchool(ReplaceSchool replaceSchool)
+        {
+            try
+            {
+                School schoolInfo = new School();
+                var cosmosClient = _azureCosmos.GetCosmosClient();
+
+                School tempShool = await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<School>(replaceSchool.school.id, new PartitionKey("Base"));
+                if (tempShool != null)
+                {
+                    List<Teacher> teachers = new List<Teacher>();
+                    string sqltxt = $"select distinct value(c) from c join a1 in c.schools where a1.schoolId='{replaceSchool.school.id}'";
+                    await foreach (var item in cosmosClient.GetContainer(Constant.TEAMModelOS, "Teacher").GetItemQueryIterator<Teacher>(queryText: sqltxt, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey("Base") }))
+                    {
+                        teachers.Add(item);
+                    }
+
+                    foreach (var item in teachers)
+                    {
+                        Teacher.TeacherSchool teacherSchool = item.schools.Find(x => x.schoolId.Equals(replaceSchool.school.id));
+                        if (teacherSchool != null)
+                        {
+                            teacherSchool.name = replaceSchool.school.name;
+                            teacherSchool.picture = replaceSchool.school.picture;
+                            teacherSchool.areaId = replaceSchool.school.areaId;
+                        }
+                        await cosmosClient.GetContainer(Constant.TEAMModelOS, "Teacher").ReplaceItemAsync(item, item.id, new PartitionKey("Base"));
+                    }
+
+                    schoolInfo = await cosmosClient.GetContainer(Constant.TEAMModelOS, "School").ReplaceItemAsync<School>(replaceSchool.school, replaceSchool.school.id, new PartitionKey("Base"));
+
+                    //保存操作记录
+                    await _azureStorage.SaveLog("school-update", $"{replaceSchool.tmdName}【{replaceSchool.tmdId}】修改学校信息,学校和ID:{replaceSchool.school.name}【{replaceSchool.school.id}】", _dingDing, httpContext: HttpContext);
+
+                    return Ok(new { state = 200, schoolInfo });
+                }
+                else return Ok(new { state = 400, message = "请求错误!" });
+            }
+            catch (Exception ex)
+            {
+                await _dingDing.SendBotMsg($"BI,{_option.Location}  /batchschool/upd-school \n {ex.Message}{ex.StackTrace}", GroupNames.成都开发測試群組);
+                return BadRequest();
+            }
+        }
+
+        /// <summary>
+        /// 修改学校的结构
+        /// </summary>
+        public record ReplaceSchool()
+        {
+            /// <summary>
+            /// 醍摩豆账户ID
+            /// </summary>
+            public string tmdId { get; set; }
+
+            /// <summary>
+            /// 醍摩豆账户名称
+            /// </summary>
+            public string tmdName { get; set; }
+
+            /// <summary>
+            /// 学校
+            /// </summary>
+            public School school { get; set; }
+        }
+
         /// <summary>
         /// 未加入区域的学校
         /// </summary>

TEAMModeBI/Controllers/BIServer/BiServersController.cs → TEAMModelBI/Controllers/BIServer/BiServersController.cs


+ 0 - 0
TEAMModeBI/Controllers/BITest/TestController.cs


Some files were not shown because too many files changed in this diff