Compare commits
492 Commits
34cc69abb0
..
v2.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 4057f1893f | |||
| 5c05a11ec4 | |||
| eec23b9d42 | |||
| f7d01f6ad7 | |||
| cb46f89ee1 | |||
| b0ad500f7a | |||
| 0327937f02 | |||
| 2f3eab6119 | |||
| 575840490f | |||
| 9b013059ba | |||
| 987831ff22 | |||
| 7691fd12ac | |||
| 0cecb91984 | |||
| 849142bd23 | |||
| 231a993f8b | |||
| ab1a2889bc | |||
| f04f0ce929 | |||
| bc3e00c8b4 | |||
| 953033b768 | |||
| c337f95693 | |||
| d2021a281e | |||
| 66ae27cc56 | |||
| 3137bca8f6 | |||
| e35f6c5471 | |||
| 46b532b858 | |||
| 5a8e1e5af7 | |||
| 9b9c83797a | |||
| 8a4b4fc9fb | |||
| 91d8d1797a | |||
| 0d2bfa8d82 | |||
| 742b60bba2 | |||
| 536fc7bbc8 | |||
| 6f0f7a7d3a | |||
| 4ed0feb1da | |||
| 45cc714942 | |||
| 147b5cadfa | |||
| d34f1f462a | |||
| c89aa8bd87 | |||
| 98324c27e6 | |||
| ae1014c70b | |||
| 7dc7236c16 | |||
| b7a5015e21 | |||
| e491265bb4 | |||
| 8a4a035b2c | |||
| 4e0fbb3f31 | |||
| d44aeac36d | |||
| f6eb5b8cd5 | |||
| 71e00ecf5b | |||
| fdc2572477 | |||
| 7ab9d0f285 | |||
| 64b8214985 | |||
| ba6bcebe1f | |||
| 8703b28470 | |||
| dc8fb450fb | |||
| 377cdb968d | |||
| 8c84cb5101 | |||
| 5a0cc41d5a | |||
| 86a1312b60 | |||
| a3ca9fe4d0 | |||
| c6770e71a5 | |||
| c70970a6f6 | |||
| d059d016a6 | |||
| 44519c5f8e | |||
| f3a4a7cd09 | |||
| 463e4728d0 | |||
| 5d04fb869d | |||
| ec83609139 | |||
| a5824cecac | |||
| 416f8f82d6 | |||
| f0a7090ab4 | |||
| a13ddf70b4 | |||
| ecf4c74259 | |||
| e712333a79 | |||
| 6900cc8a25 | |||
| d5acb0a27c | |||
| 0f845df8dd | |||
| 0b2cdd12a7 | |||
| 785ca4ad47 | |||
| 20ad1c894a | |||
| 95aa3e0be7 | |||
| 46fdee6c01 | |||
| f997cec4fb | |||
| 1586643fc2 | |||
| 5ad0da7a4a | |||
| 16c0e84ca0 | |||
| e58fbdcab6 | |||
| e17a89e151 | |||
| bf35797282 | |||
| 21bdd0b07e | |||
| 47798750a4 | |||
| 8d1d5cb43a | |||
| ef08a5277d | |||
| 98a3f9c5b5 | |||
| a0b39e7a0b | |||
| 1191b97688 | |||
| c662e6cc3a | |||
| 30b5ee24a0 | |||
| 2781d02afa | |||
| 034f9528e5 | |||
| d8712f26cd | |||
| feab37c4ac | |||
| 99955b2eff | |||
| e36ae0404d | |||
| 65edc78152 | |||
| 78f2f530c4 | |||
| fdc23361f9 | |||
| b4db6b4990 | |||
| a45ab4edf8 | |||
| 2f20696827 | |||
| 2ffffd2bf0 | |||
| 8d0f0094ba | |||
| 08dba4b364 | |||
| 2716b379b5 | |||
| 5216bf9f62 | |||
| 040814c3d6 | |||
| 264f00f5a8 | |||
| 3f48bc0ba5 | |||
| 2c47541737 | |||
| 0c2ed13cd4 | |||
| f1c36ea688 | |||
| 9568186497 | |||
| a48dc114e8 | |||
| abb224a8fb | |||
| 754fe5f797 | |||
| f72cab082a | |||
| 03c7aa3d99 | |||
| 24c7c61398 | |||
| 281c900e0c | |||
| 63772f46f8 | |||
| accac374ff | |||
| 4ee7906dcd | |||
| 3dc99d096d | |||
| 096e11e9fd | |||
| cce6122e9e | |||
| 47594536f1 | |||
| 6f3ca769a6 | |||
| da41fa1139 | |||
| 17b1cc476f | |||
| 11940798e8 | |||
| ef46e4cb08 | |||
| b2119c3acd | |||
| e7fdee1147 | |||
| b5f327fc3c | |||
| 93b7477aa6 | |||
| 73e9f30f7e | |||
| 35cc08e53c | |||
| 97dda302e1 | |||
| f59b205324 | |||
| 7328ea55df | |||
| 5773a93df3 | |||
| e6e9ab03a3 | |||
| a663f6fa4e | |||
| 80fe969fe1 | |||
| bdbca21550 | |||
| 3901ceec45 | |||
| 2f8b88b51f | |||
| bed842ec88 | |||
| 72d9872b20 | |||
| bdca45a505 | |||
| 68fa0edfe5 | |||
| 17ad103c34 | |||
| 7bebb8900e | |||
| fc72e141bf | |||
| 3eb28d2baa | |||
| 7892b8cf01 | |||
| 6cd5e7b957 | |||
| 8122464fbb | |||
| 56bc2bc5cd | |||
| 9f5fc1dc9d | |||
| 4b5fee5739 | |||
| f5143fe11c | |||
| 363ffa58b3 | |||
| 4e46bbac84 | |||
| fb8135d985 | |||
| 691a3721a0 | |||
| 4efcaa915c | |||
| 903faf405e | |||
| e5233c8894 | |||
| 4143eb6279 | |||
| 9da598862a | |||
| f3d9b31313 | |||
| 726f6499f9 | |||
| aab9c4576c | |||
| b661a51ec2 | |||
| edb03fef23 | |||
| 7ca31d8a5e | |||
| 365791624e | |||
| d7a8112441 | |||
| d05ea6c28d | |||
| 74547d7bff | |||
| 5ec5eda344 | |||
| 61a1b1b1c2 | |||
| f93274080a | |||
| fbb9899b55 | |||
| f7af9999e4 | |||
| 41eb974496 | |||
| d64bea0d27 | |||
| 6ee3a06eb2 | |||
| b4821ace59 | |||
| 3a7eadb41c | |||
| 1b25f6538e | |||
| dbc84b2f58 | |||
| 9d601b4a46 | |||
| 09e5bcb3b7 | |||
| ae536a7fc4 | |||
| 1b6f48a5a5 | |||
| d57c080916 | |||
| c2cb5b1999 | |||
| cc5ac4c2a9 | |||
| 653d3c6228 | |||
| eefb42c3f6 | |||
| 612270eaad | |||
| ba6cb87648 | |||
| 5cce828ad9 | |||
| 17f738aa5d | |||
| 7a91ccac80 | |||
| 38d8ac5ae5 | |||
| b8dfcfea1d | |||
| 47f885b551 | |||
| 010a5867b5 | |||
| 6f2bc9f7f5 | |||
| c31bc89746 | |||
| b57076d41d | |||
| a037209770 | |||
| c675e21c40 | |||
| 633a169467 | |||
| f2d50e7465 | |||
| e65e6e2208 | |||
| 196a20cbc0 | |||
| f002fed9e2 | |||
| 8aa067e52f | |||
| 423b71c702 | |||
| f79084b599 | |||
| ca99572f19 | |||
| 0d9db63f88 | |||
| 3f9beb6dee | |||
| 3243b33b33 | |||
| ca44352b9e | |||
| 20c257be4f | |||
| e5d86abf92 | |||
| 8dedd1068a | |||
| f58e52585f | |||
| 1dd153448c | |||
| b60b0f8de7 | |||
| 9de73b9d44 | |||
| b55245a83a | |||
| cf1af92c2f | |||
| 64cec20d7d | |||
| c7740493f8 | |||
| cca8a0df9d | |||
| a75f4a38f6 | |||
| 49b3b056e3 | |||
| 937ab0899e | |||
| f7d7d2b742 | |||
| 7c9cde00a9 | |||
| b56834e8ed | |||
| 29e785243e | |||
| 7d57f6b5f6 | |||
| ecb146bd67 | |||
| 795423182d | |||
| 5dd13b58c5 | |||
| bbd8e8b510 | |||
| 6c02793d2f | |||
| 4f5fb17bb8 | |||
| 5f89d7d10c | |||
| 0002bd0165 | |||
| 5cd5e3c34d | |||
| 9c0ca0a831 | |||
| 181eaed3f5 | |||
| b88657fda0 | |||
| d4aa02e0e5 | |||
| d13a5edfda | |||
| b6ee9d5f62 | |||
| 134f2471a6 | |||
| 746278681d | |||
| 081263d34f | |||
| 199fe6aed3 | |||
| 273932f9cc | |||
| 3832312041 | |||
| b6500c62c5 | |||
| 42839a925d | |||
| 342f135d23 | |||
| 7f47936f8a | |||
| a7b9218952 | |||
| 8590808cb9 | |||
| 5394a2cde5 | |||
| fe0ba42736 | |||
| b6bc22af72 | |||
| 9b67760ffd | |||
| aee12347dc | |||
| 7426be2e50 | |||
| 5565b1389d | |||
| 0e029369a3 | |||
| 5d09bd2159 | |||
| 98757b6c06 | |||
| c197c077a7 | |||
| 2ce7fa7552 | |||
| 5456d7a40b | |||
| 8299fd8958 | |||
| 06b505544b | |||
| 19d472bfb3 | |||
| 62f601a7be | |||
| 689527b61e | |||
| 7478472e33 | |||
| 7f48e37779 | |||
| 2a27e1fbae | |||
| 02a5e2fdc2 | |||
| 0f6da34395 | |||
| 2c567e3530 | |||
| b7f113c109 | |||
| 7c79e4b1f3 | |||
| 88a7634ed3 | |||
| 5528188a8b | |||
| c0aa89c6ca | |||
| 5bbbdb0a97 | |||
| cbb73d68e1 | |||
| feb205d05e | |||
| ccc6ee90cb | |||
| cbcc11fe97 | |||
| 7f20bfecdc | |||
| f58c116382 | |||
| b44d832241 | |||
| bf2a2818ce | |||
| 75059297ad | |||
| 58c33bc008 | |||
| 1e49dedd23 | |||
| 3c661ae86a | |||
| 7238b12424 | |||
| 341a707c80 | |||
| 877535f579 | |||
| 602f942e9e | |||
| a804ba40f0 | |||
| 38eef44d79 | |||
| ff1b4f6f21 | |||
| ef336eafe6 | |||
| 553014be79 | |||
| e7491501cf | |||
| d64d5a523d | |||
| b2e7eeaeb4 | |||
| 0df193c474 | |||
| 7d9be5e2b3 | |||
| df417afbbb | |||
| 48c76cb0bb | |||
| 83182a4d0f | |||
| 10408bde30 | |||
| 1705469056 | |||
| 8f5b75fcd5 | |||
| 0c3a69d4d0 | |||
| 2683a5a7c9 | |||
| d17b95a200 | |||
| 9a8bf1e637 | |||
| 4aa43b009b | |||
| bb798ce4ad | |||
| da4cc0a8ef | |||
| fb55a1d536 | |||
| 2986d43f39 | |||
| 13c9c9b4c3 | |||
| d0a7a4132f | |||
| dffad5a122 | |||
| ef3ca59842 | |||
| 1aaf1927f5 | |||
| 6fab860497 | |||
| f3ff162cdd | |||
| b7655ebad0 | |||
| 79df77b30c | |||
| cfe03844a7 | |||
| 6eebf590f8 | |||
| c09220dbd3 | |||
| 2dd2aeede7 | |||
| 5ae8348765 | |||
| 3b8505ba3a | |||
| fe8398df9d | |||
| 27caa4ff77 | |||
| 3b96a5326e | |||
| 9b63c2c82e | |||
| 342f833eb8 | |||
| 56b00791f4 | |||
| 474c0dca70 | |||
| a7806d07bb | |||
| f6e87596ee | |||
| d1448d4cc6 | |||
| bf985bcbc8 | |||
| 70db0d9258 | |||
| 8f1ab432b2 | |||
| 3f0573eeb3 | |||
| 2ed051e25b | |||
| dde53103f9 | |||
| 042a5fe59b | |||
| 8dda50f78e | |||
| 7c06c94177 | |||
| 42652cd9ee | |||
| 2370c25ed7 | |||
| cdefe6d640 | |||
| 9ef348efbf | |||
| 06e876619f | |||
| 3334e24c66 | |||
| 9b3e169ef2 | |||
| fa30c68153 | |||
| e08f094435 | |||
| d047df807e | |||
| 2c5e33903d | |||
| b024252f98 | |||
| c1be3bbf4d | |||
| f2b07131aa | |||
| 6c71803a11 | |||
| 91078abd15 | |||
| 04f8a938c3 | |||
| 2c85013008 | |||
| 9d839e46cd | |||
| 509f8f02b6 | |||
| 9cc1962b3b | |||
| 774ab78a7c | |||
| 16794dfe1d | |||
| 1c69ed08cd | |||
| 833324e1ac | |||
| f36a00cf81 | |||
| 233bcbb1d0 | |||
| b644098203 | |||
| 424a59c4d9 | |||
| a3e3db3d5b | |||
| a803ee2c00 | |||
| 5a8ec13c2f | |||
| d911d55129 | |||
| ebedae85e7 | |||
| d54dfae99f | |||
| 00396f3c9d | |||
| 2138bd3345 | |||
| 0416b1bca8 | |||
| 6dd579e910 | |||
| 98dc6beba5 | |||
| f7a62b2016 | |||
| eb50f24204 | |||
| 3c4cce70c5 | |||
| a566c1a0b8 | |||
| 3bdd567f1e | |||
| cbbbb227ea | |||
| 91dc08493b | |||
| bacdbd9fa1 | |||
| 3d096f397f | |||
| 4f7a308cf1 | |||
| bb3e3e52a5 | |||
| f918004dda | |||
| fd683d74f9 | |||
| d7838051e8 | |||
| b727d6b068 | |||
| 3b14944671 | |||
| 2b820a114b | |||
| 3f69434251 | |||
| ee545589af | |||
| feed991971 | |||
| a56b536e95 | |||
| eaf856a755 | |||
| 8f497ed363 | |||
| c33c2d6a09 | |||
| cc788b9833 | |||
| 0aaf2f3edb | |||
| 2a80893932 | |||
| 6a0859aaab | |||
| 690b29c5c5 | |||
| 0d3cb15806 | |||
| 4b32c290e7 | |||
| 390df569c9 | |||
| 05c6e9727f | |||
| 87eac9f478 | |||
| ef489552ea | |||
| dd80abed02 | |||
| 6ce18843ee | |||
| fb48b59587 | |||
| ed2b75d331 | |||
| 0c040719b0 | |||
| 5dc5213202 | |||
| bdfef06b5f | |||
| 1d009c8e18 | |||
| c03e85ff22 | |||
| 0a752ed92f | |||
| eab207fc35 | |||
| 5ef755249c | |||
| 8da7b81235 | |||
| 276d8adac0 | |||
| 12da4c5d9f | |||
| 850d64f0aa | |||
| 541d44b4f2 | |||
| a1137c0a5b | |||
| e2e20a24fd | |||
| 2f1fcfa81d | |||
| ba4a5c0d1d | |||
| face77f949 | |||
| de80b75c0b | |||
| f050df725e | |||
| 290210c27e | |||
| be2651501d | |||
| 2df6c37fd0 |
@@ -1,32 +1,4 @@
|
|||||||
kind: pipeline
|
|
||||||
type: ssh
|
|
||||||
name: ssh-linux-uat-irc-publish
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: Linux
|
|
||||||
arch: 386
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true #禁用默认克隆
|
|
||||||
|
|
||||||
server:
|
|
||||||
host: 47.117.164.182
|
|
||||||
user: root
|
|
||||||
password:
|
|
||||||
from_secret: local_pwd
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: uat-branch-publish-irc-vue
|
|
||||||
commands:
|
|
||||||
- cd /opt/1panel/vue-devops/Uat_IRC/Uat-To-Uat
|
|
||||||
- sh uat-to-uat.sh v${DRONE_BUILD_NUMBER}
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- uat
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
type: ssh
|
||||||
name: ssh-linux-test-irc-publish
|
name: ssh-linux-test-irc-publish
|
||||||
@@ -45,12 +17,17 @@ server:
|
|||||||
from_secret: local_pwd
|
from_secret: local_pwd
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish-test-irc-vue
|
- name: publish-test-irc-web
|
||||||
commands:
|
commands:
|
||||||
- echo start publish test-irc-vue
|
- bash /opt/1panel/xc-deploy-new/devops-center/build-vue-then-publish.sh IRC_Web main
|
||||||
- cd /opt/1panel/hang/vue/test-irc
|
- name: notify-wecom
|
||||||
- sh test-irc.sh v${DRONE_BUILD_NUMBER}
|
commands:
|
||||||
|
- echo $DRONE_COMMIT_AUTHOR "$DRONE_COMMIT_MESSAGE"
|
||||||
|
- bash /opt/1panel/xc-deploy-new/devops-center/drone-notify-wecom.sh "$DRONE_BUILD_STATUS" "$DRONE_REPO_NAME" "$DRONE_BRANCH" "$DRONE_BUILD_NUMBER" "4355b98e-1e72-4678-8dfb-2fc6ad0bf449" "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" "Test_IRC_WEB" "irc.test.extimaging.com"
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
"@cornerstonejs/core": "^2.19.7",
|
"@cornerstonejs/core": "^2.19.7",
|
||||||
"@cornerstonejs/dicom-image-loader": "^2.19.7",
|
"@cornerstonejs/dicom-image-loader": "^2.19.7",
|
||||||
"@cornerstonejs/tools": "^2.19.7",
|
"@cornerstonejs/tools": "^2.19.7",
|
||||||
|
"@fingerprintjs/fingerprintjs": "^4.6.2",
|
||||||
"@icr/polyseg-wasm": "^0.4.0",
|
"@icr/polyseg-wasm": "^0.4.0",
|
||||||
"@microsoft/signalr": "^8.0.7",
|
"@microsoft/signalr": "^8.0.7",
|
||||||
"@riophae/vue-treeselect": "^0.4.0",
|
"@riophae/vue-treeselect": "^0.4.0",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<meta http-equiv="Pragma" content="no-cache">
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
<meta http-equiv="Cache-control" content="no-store,no-cache,must-revalidate">
|
<meta http-equiv="Cache-control" content="no-store,no-cache,must-revalidate">
|
||||||
<meta http-equiv="Cache" content="no-cache">
|
<meta http-equiv="Cache" content="no-cache">
|
||||||
<title>IRC Imaging System</title>
|
<title>EIC lmaging Trial Management System</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<div class="title-container" style="display: flex;padding-top:180px;justify-content: flex-start;height: 100%;box-sizing: border-box">
|
<div class="title-container" style="display: flex;padding-top:180px;justify-content: flex-start;height: 100%;box-sizing: border-box">
|
||||||
<!-- IRC Management System -->
|
<!-- IRC Management System -->
|
||||||
<!-- <div class="title" style="text-align: center;font-size: 28px;margin-top: 100px;padding-right: 120px"></div>-->
|
<!-- <div class="title" style="text-align: center;font-size: 28px;margin-top: 100px;padding-right: 120px"></div>-->
|
||||||
<!-- <div class="title" v-show="false">IRC Imaging System</div>-->
|
<!-- <div class="title" v-show="false">EIC lmaging Trial Management System</div>-->
|
||||||
<div style="color: #0a84ff;text-align: left;font-size: 28px">
|
<div style="color: #0a84ff;text-align: left;font-size: 28px">
|
||||||
{{message}}
|
{{message}}
|
||||||
</div>
|
</div>
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<div style="margin: 0 auto;width: 600px;line-height: 28px;text-align: center" >
|
<div style="margin: 0 auto;width: 600px;line-height: 28px;text-align: center" >
|
||||||
<h1 style="text-align: center;margin-bottom: 20px">关于</h1>
|
<h1 style="text-align: center;margin-bottom: 20px">关于</h1>
|
||||||
<p style="margin-bottom: 20px">
|
<p style="margin-bottom: 20px">
|
||||||
IRC Imaging System
|
EIC lmaging Trial Management System
|
||||||
</p>
|
</p>
|
||||||
<p style="margin-bottom: 20px">
|
<p style="margin-bottom: 20px">
|
||||||
V1.3.0.001
|
V1.3.0.001
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<div class="title-container" style="display: flex;padding-top:180px;justify-content: flex-start;height: 100%;box-sizing: border-box">
|
<div class="title-container" style="display: flex;padding-top:180px;justify-content: flex-start;height: 100%;box-sizing: border-box">
|
||||||
<!-- IRC Management System -->
|
<!-- IRC Management System -->
|
||||||
<!-- <div class="title" style="text-align: center;font-size: 28px;margin-top: 100px;padding-right: 120px"></div>-->
|
<!-- <div class="title" style="text-align: center;font-size: 28px;margin-top: 100px;padding-right: 120px"></div>-->
|
||||||
<!-- <div class="title" v-show="false">IRC Imaging System</div>-->
|
<!-- <div class="title" v-show="false">EIC lmaging Trial Management System</div>-->
|
||||||
<div style="color: #0a84ff;text-align: left;font-size: 28px">
|
<div style="color: #0a84ff;text-align: left;font-size: 28px">
|
||||||
{{message}}
|
{{message}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
<meta http-equiv="Cache-control" content="no-store,no-cache,must-revalidate">
|
<meta http-equiv="Cache-control" content="no-store,no-cache,must-revalidate">
|
||||||
<meta http-equiv="Cache" content="no-cache">
|
<meta http-equiv="Cache" content="no-cache">
|
||||||
<title><%= webpackConfig.name %></title>
|
<title><%= webpackConfig.name %></title>
|
||||||
|
<style>
|
||||||
|
.customPromptTip {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
bottom: -100px;
|
||||||
|
z-index: 99999;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<% if (eval(process.env.VUE_APP_LOGIN_FOR_PERMISSION)) { %>
|
<% if (eval(process.env.VUE_APP_LOGIN_FOR_PERMISSION)) { %>
|
||||||
<script>
|
<script>
|
||||||
window.zzSessionStorage = {
|
window.zzSessionStorage = {
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app" style="position: relative">
|
<div id="app" style="position: relative">
|
||||||
<router-view />
|
<router-view />
|
||||||
<div
|
<div v-show="show" v-if="$route.matched.length > 0" v-adaptive @click="openI18n" style="
|
||||||
v-show="show"
|
|
||||||
v-if="$route.matched.length > 0"
|
|
||||||
v-adaptive
|
|
||||||
@click="openI18n"
|
|
||||||
style="
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 50px;
|
bottom: 50px;
|
||||||
left: 50px;
|
left: 50px;
|
||||||
@@ -19,58 +14,27 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
"
|
">
|
||||||
>
|
|
||||||
i18n
|
i18n
|
||||||
</div>
|
</div>
|
||||||
<el-drawer
|
<el-drawer :title="$t('il8n:title')" :visible.sync="drawer" direction="rtl" size="80%">
|
||||||
:title="$t('il8n:title')"
|
|
||||||
:visible.sync="drawer"
|
|
||||||
direction="rtl"
|
|
||||||
size="80%"
|
|
||||||
>
|
|
||||||
<div style="width: 800px">
|
<div style="width: 800px">
|
||||||
<el-form
|
<el-form label-width="100px" @submit.native.prevent size="small" :inline="true" class="demo-form-inline">
|
||||||
label-width="100px"
|
|
||||||
@submit.native.prevent
|
|
||||||
size="small"
|
|
||||||
:inline="true"
|
|
||||||
class="demo-form-inline"
|
|
||||||
>
|
|
||||||
<el-form-item :label="$t('il8n:search:keyword')">
|
<el-form-item :label="$t('il8n:search:keyword')">
|
||||||
<el-input v-model="key" @input="keyChange" />
|
<el-input v-model="key" @input="keyChange" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('il8n:search:state')">
|
<el-form-item :label="$t('il8n:search:state')">
|
||||||
<el-select
|
<el-select v-model="State" clearable filterable @change="handleStateChange">
|
||||||
v-model="State"
|
<el-option v-for="item of $d.InternationalizationKeyState"
|
||||||
clearable
|
:key="'InternationalizationKeyState' + item.value" :label="item.label" :value="item.value" />
|
||||||
filterable
|
|
||||||
@change="handleStateChange"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.InternationalizationKeyState"
|
|
||||||
:key="'InternationalizationKeyState' + item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table :data="tableData" v-adaptive="{ bottomOffset: 50 }" height="100" style="width: 100%"
|
||||||
:data="tableData"
|
@sort-change="handleSortByColumn">
|
||||||
v-adaptive="{ bottomOffset: 50 }"
|
<el-table-column prop="Code" :label="$t('il8n:table:label')" width="300" show-overflow-tooltip
|
||||||
height="100"
|
sortable="custom">
|
||||||
style="width: 100%"
|
|
||||||
@sort-change="handleSortByColumn"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
prop="Code"
|
|
||||||
:label="$t('il8n:table:label')"
|
|
||||||
width="300"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column-->
|
<!-- <el-table-column-->
|
||||||
<!-- prop="Description"-->
|
<!-- prop="Description"-->
|
||||||
@@ -81,71 +45,37 @@
|
|||||||
<!-- {{scope.row.Description}}-->
|
<!-- {{scope.row.Description}}-->
|
||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
<el-table-column
|
<el-table-column prop="Value" :label="$t('il8n:table:en')" sortable="custom">
|
||||||
prop="Value"
|
|
||||||
:label="$t('il8n:table:en')"
|
|
||||||
sortable="custom"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input v-model="scope.row.Value" @input="
|
||||||
v-model="scope.row.Value"
|
(e) => {
|
||||||
@input="
|
$set(scope.row, 'Value', e)
|
||||||
(e) => {
|
}
|
||||||
$set(scope.row, 'Value', e)
|
" size="mini"></el-input>
|
||||||
}
|
|
||||||
"
|
|
||||||
size="mini"
|
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="ValueCN" :label="$t('il8n:table:cn')" sortable="custom">
|
||||||
prop="ValueCN"
|
|
||||||
:label="$t('il8n:table:cn')"
|
|
||||||
sortable="custom"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input v-model="scope.row.ValueCN" @input="
|
||||||
v-model="scope.row.ValueCN"
|
(e) => {
|
||||||
@input="
|
$set(scope.row, 'ValueCN', e)
|
||||||
(e) => {
|
}
|
||||||
$set(scope.row, 'ValueCN', e)
|
" size="mini"></el-input>
|
||||||
}
|
|
||||||
"
|
|
||||||
size="mini"
|
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="ValueCN" :label="$t('il8n:table:state')" sortable="custom">
|
||||||
prop="ValueCN"
|
|
||||||
:label="$t('il8n:table:state')"
|
|
||||||
sortable="custom"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select v-model="scope.row.State" clearable filterable size="mini">
|
||||||
v-model="scope.row.State"
|
<el-option v-for="item of $d.InternationalizationKeyState"
|
||||||
clearable
|
:key="'InternationalizationKeyState' + item.value" :label="item.label" :value="item.value" />
|
||||||
filterable
|
|
||||||
size="mini"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.InternationalizationKeyState"
|
|
||||||
:key="'InternationalizationKeyState' + item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="Version" :label="$t('il8n:table:Version')" sortable="custom">
|
||||||
prop="Version"
|
|
||||||
:label="$t('il8n:table:Version')"
|
|
||||||
sortable="custom"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div style="text-align: right; padding-top: 10px; padding-right: 10px">
|
<div style="text-align: right; padding-top: 10px; padding-right: 10px">
|
||||||
<el-button size="mini" @click="drawer = false"
|
<el-button size="mini" @click="drawer = false">{{ $t('common:button:cancel') }}
|
||||||
>{{ $t('common:button:cancel') }}
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" type="primary" @click="handleSave">{{
|
<el-button size="mini" type="primary" @click="handleSave">{{
|
||||||
$t('common:button:save')
|
$t('common:button:save')
|
||||||
@@ -153,6 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<feedBack v-if="$route.matched.length > 0" />
|
<feedBack v-if="$route.matched.length > 0" />
|
||||||
|
<timeTag />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -163,11 +94,12 @@ import {
|
|||||||
} from '@/api/dictionary/dictionary'
|
} from '@/api/dictionary/dictionary'
|
||||||
import { getTrialExtralConfig } from '@/api/trials'
|
import { getTrialExtralConfig } from '@/api/trials'
|
||||||
import feedBack from '@/views/trials/trials-layout/components/feedBack'
|
import feedBack from '@/views/trials/trials-layout/components/feedBack'
|
||||||
|
import timeTag from '@/components/timeTag'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import i18n from './lang'
|
import i18n from './lang'
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: { feedBack },
|
components: { feedBack, timeTag },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawer: false,
|
drawer: false,
|
||||||
@@ -180,7 +112,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
// this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
||||||
|
this.show = false
|
||||||
Vue.prototype.$openI18n = this.openI18n
|
Vue.prototype.$openI18n = this.openI18n
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
@@ -366,13 +299,16 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
$light_gray: #606266;
|
$light_gray: #606266;
|
||||||
|
|
||||||
.el-tooltip__popper {
|
.el-tooltip__popper {
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.my_multiple {
|
.my_multiple {
|
||||||
.el-input--medium .el-input__inner {
|
.el-input--medium .el-input__inner {
|
||||||
height: 36px !important;
|
height: 36px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-select__tags {
|
.el-select__tags {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -381,6 +317,7 @@ $light_gray: #606266;
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input::-webkit-outer-spin-button,
|
input::-webkit-outer-spin-button,
|
||||||
input::-webkit-inner-spin-button {
|
input::-webkit-inner-spin-button {
|
||||||
-webkit-appearance: none !important;
|
-webkit-appearance: none !important;
|
||||||
@@ -393,6 +330,7 @@ input[type='number'] {
|
|||||||
.viewer-fixed.viewer-container {
|
.viewer-fixed.viewer-container {
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
white-space: break-spaces;
|
white-space: break-spaces;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
@@ -401,12 +339,15 @@ textarea {
|
|||||||
* {
|
* {
|
||||||
word-break: normal !important;
|
word-break: normal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-body .el-button.is-circle:not(.is-disabled) i:before {
|
.box-body .el-button.is-circle:not(.is-disabled) i:before {
|
||||||
color: #428bca;
|
color: #428bca;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-body .el-button.is-circle i.el-icon-question:before {
|
.box-body .el-button.is-circle i.el-icon-question:before {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.system-title {
|
.system-title {
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
color: $light_gray;
|
color: $light_gray;
|
||||||
@@ -415,9 +356,11 @@ textarea {
|
|||||||
font-family: 'Times New Roman';
|
font-family: 'Times New Roman';
|
||||||
text-shadow: 1px 0.5px 1.5px #666;
|
text-shadow: 1px 0.5px 1.5px #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-logo {
|
.title-logo {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-logo {
|
.title-logo {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,10 +89,11 @@ export function UpdateUserRole(param) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resetPassword(userId) {
|
export function resetPassword(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/resetPassword/${userId}`,
|
url: `/user/resetPassword`,
|
||||||
method: 'get'
|
method: 'post',
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -350,3 +351,43 @@ export function getUserJoinedTrialList(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 邮件日志-日志列表
|
||||||
|
export function getEmailLogList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/EmailLog/getEmailLogList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 邮件日志-日志详情
|
||||||
|
export function getEmailInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: `/EmailLog/getEmailInfo`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 邮件日志-重发邮件
|
||||||
|
export function resendEmail(data) {
|
||||||
|
return request({
|
||||||
|
url: `/EmailLog/resendEmail`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 邮件日志-同步邮件
|
||||||
|
export function synchronizationEmail(data) {
|
||||||
|
return request({
|
||||||
|
url: `/EmailLog/synchronizationEmail`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 邮件日志-重发列表
|
||||||
|
export function getReSendEmail(data) {
|
||||||
|
return request({
|
||||||
|
url: `/EmailLog/getReSendEmail`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -281,7 +281,13 @@ export function getCommonDocumentList(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getCommonDocument(param) {
|
||||||
|
return request({
|
||||||
|
url: `/CommonDocument/getCommonDocument`,
|
||||||
|
method: 'get',
|
||||||
|
params: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function addOrUpdateCommonDocument(param) {
|
export function addOrUpdateCommonDocument(param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/CommonDocument/addOrUpdateCommonDocument`,
|
url: `/CommonDocument/addOrUpdateCommonDocument`,
|
||||||
@@ -1397,3 +1403,74 @@ export function batchUpdateEmail(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 隐私政策和用户协议-获取列表
|
||||||
|
export function getUserAgreementList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/UserAgreement/getUserAgreementList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 隐私政策和用户协议-设置当前版本
|
||||||
|
export function setCurrentVersion(data) {
|
||||||
|
return request({
|
||||||
|
url: `/UserAgreement/setCurrentVersion`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 隐私政策和用户协议-新增或修改
|
||||||
|
export function addOrUpdateUserAgreement(data) {
|
||||||
|
return request({
|
||||||
|
url: `/UserAgreement/addOrUpdateUserAgreement`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 隐私政策和用户协议-删除
|
||||||
|
export function deleteUserAgreement(id) {
|
||||||
|
return request({
|
||||||
|
url: `/UserAgreement/deleteUserAgreement/${id}`,
|
||||||
|
method: 'delete',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 隐私政策和用户协议-详情
|
||||||
|
export function getUserAgreementById(data) {
|
||||||
|
return request({
|
||||||
|
url: `/UserAgreement/getUserAgreementById`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 隐私政策和用户协议-当前版本
|
||||||
|
export function getCurrentVersionUserAgreements(data) {
|
||||||
|
return request({
|
||||||
|
url: `/UserAgreement/getCurrentVersionUserAgreements`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 获取系统阅片关键点文件列表
|
||||||
|
export function getSystemCriterionKeyFileList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/SystemCriterionKeyFile/getSystemCriterionKeyFileList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 新增/修改系统阅片关键点文件
|
||||||
|
export function addOrUpdateSystemCriterionKeyFile(data) {
|
||||||
|
return request({
|
||||||
|
url: `/SystemCriterionKeyFile/addOrUpdateSystemCriterionKeyFile`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 删除系统阅片关键点文件
|
||||||
|
export function deleteSystemCriterionKeyFile(systemCriterionKeyFileId) {
|
||||||
|
return request({
|
||||||
|
url: `/SystemCriterionKeyFile/deleteSystemCriterionKeyFile/${systemCriterionKeyFileId}`,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -203,6 +203,15 @@ export function qCVisitList_Export(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 导出影像指控问题和答案
|
||||||
|
export function GetTrialQCQuestionAnserList_Export(data) {
|
||||||
|
return requestDownload({
|
||||||
|
url: `/ExcelExport/GetTrialQCQuestionAnserList_Export`,
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
// 导出下载记录
|
// 导出下载记录
|
||||||
export function getTrialDownloadList_Export(data) {
|
export function getTrialDownloadList_Export(data) {
|
||||||
return requestDownload({
|
return requestDownload({
|
||||||
@@ -230,6 +239,14 @@ export function getPatientList_Export(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getTumor_CDISC_IVUSOCT_Export(data) {
|
||||||
|
return requestDownload({
|
||||||
|
url: `/IVUS_OCTExport/getTumor_CDISC_Export`,
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
export function getCommonEvaluationList_Export(data) {
|
export function getCommonEvaluationList_Export(data) {
|
||||||
return requestDownload({
|
return requestDownload({
|
||||||
url: `/ExcelExport/getCommonEvaluationList_Export`,
|
url: `/ExcelExport/getCommonEvaluationList_Export`,
|
||||||
@@ -246,6 +263,14 @@ export function getCommonJudgeRatioList_Export(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getTumor_CDISC_Export(data) {
|
||||||
|
return requestDownload({
|
||||||
|
url: `/Tumor_CDISC_Export/getTumor_CDISC_Export`,
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
// 导出国际化列表
|
// 导出国际化列表
|
||||||
export function GetInternationalizationList_Export(data) {
|
export function GetInternationalizationList_Export(data) {
|
||||||
return requestDownload({
|
return requestDownload({
|
||||||
@@ -273,3 +298,21 @@ export function GetEmailNoticeConfigList_Export(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 导出重传审批
|
||||||
|
export function GetImageBackList_Export(data) {
|
||||||
|
return requestDownload({
|
||||||
|
url: `/ExcelExport/GetImageBackList_Export`,
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 导出医学审核配置
|
||||||
|
export function GetReadingMedicineSystemQuestionList_Export(data) {
|
||||||
|
return requestDownload({
|
||||||
|
url: `/ExcelExport/GetReadingMedicineSystemQuestionList_Export`,
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -45,10 +45,11 @@ export function saveImageLabelList(param) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getStudyInfo(studyId) {
|
export function getStudyInfo(studyId, params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/Study/item/${studyId}`,
|
url: `/Study/item/${studyId}`,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function getSeriesList(url) {
|
export function getSeriesList(url) {
|
||||||
@@ -285,4 +286,36 @@ export function deleteSingleTableQuestionMark(param, type) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 阅片导入
|
||||||
|
export function readingImport(param) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingCalculate/readingImport`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 非dicom阅片保存标记
|
||||||
|
export function saveAnswerAndBindingNoneDicomMark(param) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/saveAnswerAndBindingNoneDicomMark`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 非dicom按比例修改答案
|
||||||
|
export function changePlottingScaleChangeAnswer(param) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/changePlottingScaleChangeAnswer`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 阅片获取图表数据
|
||||||
|
export function getReportsChartData(param) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/getReportsChartData`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -26,8 +26,11 @@ export function getTrialSurveyInitInfo(trialId) {
|
|||||||
|
|
||||||
export function getSiteSurveyInfo(trialId, id) {
|
export function getSiteSurveyInfo(trialId, id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/TrialSiteSurvey/getSiteSurveyInfo/${trialId}/${id}`,
|
url: `/TrialSiteSurvey/getSiteSurveyInfo/${trialId}`,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
TrialsiteSurveyId: id
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1203,7 +1203,13 @@ export function getConsistencyVerificationList(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getConsistencyCheckFileList(param) {
|
||||||
|
return request({
|
||||||
|
url: `/QCList/getConsistencyCheckFileList`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function getCheckChallengeDialogList(subjectVisitId) {
|
export function getCheckChallengeDialogList(subjectVisitId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/QCList/getCheckChallengeDialogList/${subjectVisitId}`,
|
url: `/QCList/getCheckChallengeDialogList/${subjectVisitId}`,
|
||||||
@@ -1256,11 +1262,11 @@ export function getCRCVisitChallengeAndDialog(subjectVisitId, trialQCProcess) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function uploadVisitCheckExcel(trialId, file) {
|
export function uploadVisitCheckExcel(trialId, file, isFullCheck = false) {
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
return request({
|
return request({
|
||||||
url: `/QCOperation/UploadVisitCheckExcel/${trialId}`,
|
url: `/QCOperation/UploadVisitCheckExcel/${trialId}?isFullCheck=${isFullCheck}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: formData
|
data: formData
|
||||||
})
|
})
|
||||||
@@ -1405,9 +1411,9 @@ export function getForwardList(param) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '', IsReading = false) {
|
export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '', IsReading = false, isImageSegmentLabel = '') {
|
||||||
return request({
|
return request({
|
||||||
url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}&IsReading=${IsReading}`,
|
url: `/NoneDicomStudy/getNoneDicomStudyList?isImageSegmentLabel=${isImageSegmentLabel}&subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}&IsReading=${IsReading}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -2833,7 +2839,13 @@ export function getSplitPPdSum(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getSplitPPdSumNoPet(param) {
|
||||||
|
return request({
|
||||||
|
url: `/LuganoWithoutPETCalculate/getSplitPPdSum`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function submitDicomVisitTask(param) {
|
export function submitDicomVisitTask(param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/Inspection/ReadingImageTask/SubmitDicomVisitTask`,
|
url: `/Inspection/ReadingImageTask/SubmitDicomVisitTask`,
|
||||||
@@ -2872,7 +2884,13 @@ export function getIsSuvMaxLesion(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getIsSuvMaxLesionNoPet(param) {
|
||||||
|
return request({
|
||||||
|
url: `/LuganoWithoutPETCalculate/getIsSuvMaxLesion`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function getCanChooseNotMerge(param) {
|
export function getCanChooseNotMerge(param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/LuganoCalculate/getCanChooseNotMerge`,
|
url: `/LuganoCalculate/getCanChooseNotMerge`,
|
||||||
@@ -2880,6 +2898,13 @@ export function getCanChooseNotMerge(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getCanChooseNotMergeNoPet(param) {
|
||||||
|
return request({
|
||||||
|
url: `/LuganoWithoutPETCalculate/getCanChooseNotMerge`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function saveTaskQuestion(saveQuestionType, param) {
|
export function saveTaskQuestion(saveQuestionType, param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/SaveTaskQuestion/${saveQuestionType}`,
|
url: `/SaveTaskQuestion/${saveQuestionType}`,
|
||||||
@@ -3044,7 +3069,13 @@ export function readClinicalData(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function viewstudyPart(param) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/viewstudyPart`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function getCustomQuestionPreview(param) {
|
export function getCustomQuestionPreview(param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/ReadingQuestion/getCustomQuestionPreview`,
|
url: `/ReadingQuestion/getCustomQuestionPreview`,
|
||||||
@@ -3597,13 +3628,24 @@ export function getSplenicState(visitTaskId, spleenLength) {
|
|||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getSplenicStateNoPet(visitTaskId, spleenLength) {
|
||||||
|
return request({
|
||||||
|
url: `/LuganoWithoutPETCalculate/getSplenicState?visitTaskId=${visitTaskId}&spleenLength=${spleenLength}`,
|
||||||
|
method: 'post'
|
||||||
|
})
|
||||||
|
}
|
||||||
export function getSplenicVerify(visitTaskId) {
|
export function getSplenicVerify(visitTaskId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/LuganoCalculate/getSplenicVerify?visitTaskId=${visitTaskId}`,
|
url: `/LuganoCalculate/getSplenicVerify?visitTaskId=${visitTaskId}`,
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getSplenicVerifyNoPet(visitTaskId) {
|
||||||
|
return request({
|
||||||
|
url: `/LuganoWithoutPETCalculate/getSplenicVerify?visitTaskId=${visitTaskId}`,
|
||||||
|
method: 'post'
|
||||||
|
})
|
||||||
|
}
|
||||||
export function uploadTrialSiteSurveyUser(trialId, baseUrl, routeUrl, param) {
|
export function uploadTrialSiteSurveyUser(trialId, baseUrl, routeUrl, param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/TrialSiteSurvey/UploadTrialSiteSurveyUser?trialId=${trialId}&baseUrl=${baseUrl}&routeUrl=${routeUrl}`,
|
url: `/TrialSiteSurvey/UploadTrialSiteSurveyUser?trialId=${trialId}&baseUrl=${baseUrl}&routeUrl=${routeUrl}`,
|
||||||
@@ -4204,4 +4246,188 @@ export function getExportSubjectVisitImageList(data) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
// 影像质控-更正dicom
|
||||||
|
export function updateDicomStudyInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Inspection/QCOperation/UpdateDicomStudyInfo`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 影像质控-更正非dicom
|
||||||
|
export function updateNoneDicomStudy(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Inspection/NoneDicomStudy/UpdateNoneDicomStudy`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 阅片单元-获取访视计划
|
||||||
|
export function getVisitStage(data) {
|
||||||
|
return request({
|
||||||
|
url: `/VisitPlan/getVisitStage`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 稽查管理-列表
|
||||||
|
export function getAuditRecordList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/getAuditRecordList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 稽查管理-列表(EA)
|
||||||
|
export function getAuditRecordSelectList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/getAuditRecordSelectList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 稽查管理-列表新增修改
|
||||||
|
export function addOrUpdateAuditRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/addOrUpdateAuditRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 稽查管理-文档授权
|
||||||
|
export function setAuditRecordPermission(data) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/setAuditRecordPermission`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 稽查管理-人员管理
|
||||||
|
export function addOrDeleteAuditRecordUser(data) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/addOrDeleteAuditRecordUser`,
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 稽查管理-删除
|
||||||
|
export function deleteAuditRecord(auditRecordId) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/deleteAuditRecord/${auditRecordId}`,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 核对中心人员发送邮件
|
||||||
|
export function sendCheckSiteSurveyUserEmail(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialSiteSurvey/sendCheckSiteSurveyUserEmail`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 更新中心人员发送邮件
|
||||||
|
export function sendUpdateSiteSurveyUserEmail(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialSiteSurvey/sendUpdateSiteSurveyUserEmail`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 更新中心人员发送邮件
|
||||||
|
export function getTrialSiteLatestSurvey(params) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialSiteSurvey/getTrialSiteLatestSurvey`,
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 阅片期计划列表
|
||||||
|
export function getReadModulePageList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadModule/getReadModulePageList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 移除阅片期
|
||||||
|
export function setBatchRemoveReadingPlan(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingPeriodSet/setBatchRemoveReadingPlan`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 更新项目额外json配置
|
||||||
|
export function updateTrialExtralConfig(params, data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialConfig/updateTrialExtralConfig`,
|
||||||
|
method: 'put',
|
||||||
|
params,
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 获取项目标准阅片关键点列表
|
||||||
|
export function getTrialCriterionKeyFileList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialCriterionKeyFile/getTrialCriterionKeyFileList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 设置已阅读关键文件
|
||||||
|
export function setReadKeyFile(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/setReadKeyFile`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目报表-访视完成度
|
||||||
|
export function getTrialVisitFinishedStatList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialStat/getTrialVisitFinishedStatList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目报表-质疑统计表
|
||||||
|
export function getTrialQuestionStatList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialStat/getTrialQuestionStatList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目报表-疗效统计表
|
||||||
|
export function getTrialEfficacyEvaluationStatList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialStat/getTrialEfficacyEvaluationStatList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 受试者图表
|
||||||
|
export function getReportsChartSummary(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/getReportsChartSummary`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 靶段标注列表
|
||||||
|
export function getTrialSubjectVisitMarkList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/DownloadAndUpload/getTrialSubjectVisitMarkList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 更新缩略图
|
||||||
|
export function updateImageResizePath(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Series/updateImageResizePath`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 320 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 54 KiB |
@@ -0,0 +1,37 @@
|
|||||||
|
import Vue from "vue";
|
||||||
|
import AGRCOMP from "./index.vue";
|
||||||
|
|
||||||
|
const MFAConstructor = Vue.extend(AGRCOMP);
|
||||||
|
let MFAINSTANCELIST = [];
|
||||||
|
const AGR = options => {
|
||||||
|
const { Id, IsEn_Us, callBack, cancelBack } = options;
|
||||||
|
if (!Id) throw `Id is requred.but ${Id}`
|
||||||
|
const id = `AGR${new Date().getTime()}`;
|
||||||
|
const instance = new MFAConstructor();
|
||||||
|
MFAINSTANCELIST.push(instance)
|
||||||
|
instance.id = id;
|
||||||
|
instance.vm = instance.$mount();
|
||||||
|
if (instance.vm.visible) return;
|
||||||
|
document.body.appendChild(instance.vm.$el);
|
||||||
|
instance.vm.open({ Id, IsEn_Us });
|
||||||
|
instance.vm.$on("success", (Id) => {
|
||||||
|
if (callBack) callBack(Id)
|
||||||
|
});
|
||||||
|
instance.vm.$on("closed", () => {
|
||||||
|
if (cancelBack) cancelBack();
|
||||||
|
document.body.removeChild(instance.vm.$el);
|
||||||
|
instance.vm.$destroy();
|
||||||
|
let index = MFAINSTANCELIST.findIndex(item => item.id === id);
|
||||||
|
MFAINSTANCELIST.splice(index, 1)
|
||||||
|
});
|
||||||
|
return instance.vm;
|
||||||
|
}
|
||||||
|
AGR.close = () => {
|
||||||
|
if (MFAINSTANCELIST.length <= 0) return;
|
||||||
|
MFAINSTANCELIST.forEach(item => {
|
||||||
|
document.body.removeChild(item.vm.$el);
|
||||||
|
item.vm.$destroy();
|
||||||
|
})
|
||||||
|
MFAINSTANCELIST = [];
|
||||||
|
}
|
||||||
|
export default AGR;
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import AGRCOMP from "./index.vue";
|
||||||
|
import AGR from "./fun";
|
||||||
|
|
||||||
|
export default Vue => {
|
||||||
|
Vue.component(AGRCOMP.name, AGRCOMP);
|
||||||
|
Vue.prototype.$AGR = AGR;
|
||||||
|
};
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<!--AGR-->
|
||||||
|
<el-dialog v-if="visible" :visible.sync="visible" width="60%" :close-on-click-modal="false" append-to-body center
|
||||||
|
:show-close="true" @close="cancel">
|
||||||
|
<!-- <div slot="title">
|
||||||
|
{{ agreement.FileName }}
|
||||||
|
</div> -->
|
||||||
|
<div v-html="agreement.FileEnContent" class="content" v-if="IsEn_Us"></div>
|
||||||
|
<div v-html="agreement.FileContent" class="content" v-else></div>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getUserAgreementById
|
||||||
|
} from '@/api/dictionary'
|
||||||
|
export default {
|
||||||
|
name: "AGR",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
agreement: {},
|
||||||
|
IsEn_Us: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async getAgreement(Id) {
|
||||||
|
try {
|
||||||
|
let data = {
|
||||||
|
Id
|
||||||
|
}
|
||||||
|
let res = await getUserAgreementById(data)
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.agreement = res.Result
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
open(data) {
|
||||||
|
let { Id, IsEn_Us } = data;
|
||||||
|
this.IsEn_Us = IsEn_Us
|
||||||
|
this.getAgreement(Id)
|
||||||
|
this.visible = true
|
||||||
|
},
|
||||||
|
cancel() {
|
||||||
|
this.visible = false;
|
||||||
|
this.$emit("closed");
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .el-dialog__body {
|
||||||
|
height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -2,9 +2,17 @@
|
|||||||
<el-breadcrumb class="app-breadcrumb" separator-class="el-icon-arrow-right">
|
<el-breadcrumb class="app-breadcrumb" separator-class="el-icon-arrow-right">
|
||||||
<transition-group name="breadcrumb">
|
<transition-group name="breadcrumb">
|
||||||
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path">
|
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path">
|
||||||
<span v-if="item.redirect==='noRedirect'||index==levelList.length-1" class="no-redirect">{{ item.meta.title }}</span>
|
<span v-if="item.redirect==='noRedirect'||index==levelList.length-1" class="no-redirect">
|
||||||
<span v-else-if="item.name === 'TrialsPanel'" class="no-redirect">{{ item.meta.title }}</span>
|
<!-- {{ item.meta.title }} -->
|
||||||
<a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a>
|
{{ item.meta.i18n ? $t(item.meta.i18n) : item.meta.title }}
|
||||||
|
</span>
|
||||||
|
<span v-else-if="item.name === 'TrialsPanel'" class="no-redirect">
|
||||||
|
<!-- {{ item.meta.title }} -->
|
||||||
|
{{ item.meta.i18n ? $t(item.meta.i18n) : item.meta.title }}
|
||||||
|
</span>
|
||||||
|
<a v-else @click.prevent="handleLink(item)">
|
||||||
|
{{ item.meta.i18n ? $t(item.meta.i18n) : item.meta.title }}
|
||||||
|
</a>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@@ -35,6 +43,7 @@ export default {
|
|||||||
item.meta.title = this.$route.query.trialCode // 暂时处理
|
item.meta.title = this.$route.query.trialCode // 暂时处理
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
|
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
|
||||||
},
|
},
|
||||||
isDashboard(route) {
|
isDashboard(route) {
|
||||||
|
|||||||
@@ -1,15 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div id="canvas" ref="canvas" v-loading="loading" :element-loading-text="NSTip"
|
||||||
id="canvas"
|
element-loading-background="rgba(0, 0, 0, 0.8)" style="width:100%;height:100%;position:relative;"
|
||||||
ref="canvas"
|
class="cornerstone-element" @contextmenu.prevent="onContextmenu" @mouseup="sliderMouseup">
|
||||||
v-loading="loading"
|
|
||||||
:element-loading-text="NSTip"
|
|
||||||
element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
||||||
style="width:100%;height:100%;position:relative;"
|
|
||||||
class="cornerstone-element"
|
|
||||||
@contextmenu.prevent="onContextmenu"
|
|
||||||
@mouseup="sliderMouseup"
|
|
||||||
>
|
|
||||||
<div v-show="dicomInfo.series" class="info-series">
|
<div v-show="dicomInfo.series" class="info-series">
|
||||||
<div>Series #{{ dicomInfo.series }}</div>
|
<div>Series #{{ dicomInfo.series }}</div>
|
||||||
<div>Image #{{ dicomInfo.frame }}</div>
|
<div>Image #{{ dicomInfo.frame }}</div>
|
||||||
@@ -47,6 +39,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="info-subject">
|
<div class="info-subject">
|
||||||
|
<div v-if="series.subjectCode">{{ series.subjectCode }}</div>
|
||||||
|
<div v-if="series.visitName">{{ series.visitName }}</div>
|
||||||
<div>{{ stack.description }}</div>
|
<div>{{ stack.description }}</div>
|
||||||
<!-- <div>{{ dicomInfo.hospital }}</div> -->
|
<!-- <div>{{ dicomInfo.hospital }}</div> -->
|
||||||
<!-- <div v-show="dicomInfo.pid">{{ dicomInfo.pid }}</div> -->
|
<!-- <div v-show="dicomInfo.pid">{{ dicomInfo.pid }}</div> -->
|
||||||
@@ -122,7 +116,7 @@ export default {
|
|||||||
components: { DicomTags },
|
components: { DicomTags },
|
||||||
computed: {
|
computed: {
|
||||||
NSTip() {
|
NSTip() {
|
||||||
return `${this.$store.state.trials.uploadSize}, NS: ${this.$store.state.trials.uploadTip}`
|
return `${this.$store.state.trials.downloadSize}, NS: ${this.$store.state.trials.downloadTip}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -887,11 +887,11 @@ export default {
|
|||||||
.dicom-wrapper .dropdown-content {
|
.dicom-wrapper .dropdown-content {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: -20px;
|
||||||
top: 40px;
|
top: 40px;
|
||||||
color: #d0d0d0;
|
color: #d0d0d0;
|
||||||
background-color: #323232;
|
background-color: #323232;
|
||||||
min-width: 80px;
|
min-width: 100px;
|
||||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||||
border: 1px solid #4e4e4e;
|
border: 1px solid #4e4e4e;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
|||||||
@@ -1,25 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<!--MFA-->
|
<!--MFA-->
|
||||||
<el-dialog
|
<el-dialog v-if="visible" :visible.sync="visible" width="540px" :close-on-click-modal="false" append-to-body center
|
||||||
v-if="visible"
|
:show-close="status === 'login'" @close="cancel">
|
||||||
:visible.sync="visible"
|
|
||||||
width="540px"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
append-to-body
|
|
||||||
center
|
|
||||||
:show-close="status === 'login'"
|
|
||||||
@close="cancel"
|
|
||||||
>
|
|
||||||
<div slot="title">
|
<div slot="title">
|
||||||
{{ status === "login" ? $t("mfa:title") : $t("mfa:lock:title") }}
|
{{ status === "login" ? $t("mfa:title") : $t("mfa:lock:title") }}
|
||||||
</div>
|
</div>
|
||||||
<el-form
|
<el-form ref="mfaForm" label-position="right" :model="form" :rules="rules" label-width="100px">
|
||||||
ref="mfaForm"
|
|
||||||
label-position="right"
|
|
||||||
:model="form"
|
|
||||||
:rules="rules"
|
|
||||||
label-width="100px"
|
|
||||||
>
|
|
||||||
<!-- 邮箱 -->
|
<!-- 邮箱 -->
|
||||||
<p class="tip_mfa">
|
<p class="tip_mfa">
|
||||||
<i class="el-icon-warning" style="color: #409eff"></i>
|
<i class="el-icon-warning" style="color: #409eff"></i>
|
||||||
@@ -31,18 +17,13 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 验证码 -->
|
<!-- 验证码 -->
|
||||||
<el-form-item :label="$t('mfa:form:MFACode')" prop="Code">
|
<el-form-item :label="$t('mfa:form:MFACode')" prop="Code">
|
||||||
<el-input
|
<div style="display: flex;justify-content: space-between;width: 90%;">
|
||||||
:placeholder="$t('mfa:form:input:placeholder:Codes')"
|
<el-input :placeholder="$t('mfa:form:input:placeholder:Codes')" v-model="form.Code" />
|
||||||
v-model="form.Code"
|
<el-button size="small" @click.stop="sendMFACode" :disabled="flag || sendFlag" style="margin-left: 10px;"
|
||||||
style="width: 240px; margin-right: 10px"
|
class="codeBtn">{{
|
||||||
/>
|
flag ?
|
||||||
<el-button
|
`${$t("mfa:form:sendMFACodeCountDown")} (${second}s)` : $t("mfa:form:sendMFACode") }}</el-button>
|
||||||
type="primary"
|
</div>
|
||||||
size="small"
|
|
||||||
@click.stop="sendMFACode"
|
|
||||||
:disabled="flag || sendFlag"
|
|
||||||
>{{ flag ? `${second}s` : $t("mfa:form:sendMFACode") }}</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
@@ -51,19 +32,16 @@
|
|||||||
{{ $t("mfa:button:cancel") }}
|
{{ $t("mfa:button:cancel") }}
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
<!-- 保存 -->
|
<!-- 保存 -->
|
||||||
<el-button
|
<el-button type="primary" size="small" @click="save" :loading="loading" style="width: 80%">
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="save"
|
|
||||||
:loading="loading"
|
|
||||||
style="width: 80%"
|
|
||||||
>
|
|
||||||
{{
|
{{
|
||||||
status === "login"
|
status === "login"
|
||||||
? $t("mfa:button:save")
|
? $t("mfa:button:save")
|
||||||
: $t("mfa:lock:button:save")
|
: $t("mfa:lock:button:save")
|
||||||
}}
|
}}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<p style="text-align: left;font-size: 14px;margin:10px auto;width: 80%;">
|
||||||
|
<el-checkbox v-model="form.isRemember" /><span style="margin-left: 10px;">{{ $t("mfa:tip:noLogin") }}</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
@@ -86,6 +64,7 @@ export default {
|
|||||||
IdentityUserId: null,
|
IdentityUserId: null,
|
||||||
EMail: null,
|
EMail: null,
|
||||||
username: null,
|
username: null,
|
||||||
|
isRemember: true
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
Code: [
|
Code: [
|
||||||
@@ -112,6 +91,18 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.flag = true;
|
||||||
|
this.second = 60;
|
||||||
|
this.timer = setInterval(() => {
|
||||||
|
this.second--;
|
||||||
|
if (this.second <= 0) {
|
||||||
|
this.flag = false;
|
||||||
|
clearInterval(this.timer);
|
||||||
|
this.timer = null;
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open(data) {
|
open(data) {
|
||||||
let { UserId, status, username, EMail } = data;
|
let { UserId, status, username, EMail } = data;
|
||||||
@@ -189,6 +180,21 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.codeBtn {
|
||||||
|
color: #409EFF;
|
||||||
|
border-color: #409EFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codeBtn.is-disabled,
|
||||||
|
.codeBtn.is-disabled:focus,
|
||||||
|
.codeBtn.is-disabled:hover {
|
||||||
|
color: #c0c4cc;
|
||||||
|
cursor: not-allowed;
|
||||||
|
background-image: none;
|
||||||
|
background-color: #fff;
|
||||||
|
border-color: #ebeef5;
|
||||||
|
}
|
||||||
|
|
||||||
.tip_mfa {
|
.tip_mfa {
|
||||||
width: 86%;
|
width: 86%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@@ -198,10 +204,12 @@ export default {
|
|||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-dialog__header {
|
::v-deep .el-dialog__header {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import Preview from "./index.vue";
|
|||||||
const PreviewConstructor = Vue.extend(Preview);
|
const PreviewConstructor = Vue.extend(Preview);
|
||||||
|
|
||||||
const preview = options => {
|
const preview = options => {
|
||||||
const { path, type, title } = options;
|
const { path, type, title, isLocal = false } = options;
|
||||||
if (!path) throw `path is requred.but ${path}`
|
if (!path) throw `path is requred.but ${path}`
|
||||||
const id = `Preview_${new Date().getTime()}`;
|
const id = `Preview_${new Date().getTime()}`;
|
||||||
const instance = new PreviewConstructor();
|
const instance = new PreviewConstructor();
|
||||||
@@ -12,7 +12,7 @@ const preview = options => {
|
|||||||
instance.vm = instance.$mount();
|
instance.vm = instance.$mount();
|
||||||
if (instance.vm.visible) return;
|
if (instance.vm.visible) return;
|
||||||
document.body.appendChild(instance.vm.$el);
|
document.body.appendChild(instance.vm.$el);
|
||||||
instance.vm.open(path, type, title);
|
instance.vm.open(path, type, title, isLocal);
|
||||||
instance.vm.$on("closed", () => {
|
instance.vm.$on("closed", () => {
|
||||||
document.body.removeChild(instance.vm.$el);
|
document.body.removeChild(instance.vm.$el);
|
||||||
instance.vm.$destroy();
|
instance.vm.$destroy();
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog v-if="visible" :visible.sync="visible" :title="title" :fullscreen="true" append-to-body
|
||||||
v-if="visible"
|
custom-class="base-dialog-wrapper" @close="handleClose">
|
||||||
:visible.sync="visible"
|
|
||||||
:title="title"
|
|
||||||
:fullscreen="true"
|
|
||||||
append-to-body
|
|
||||||
custom-class="base-dialog-wrapper"
|
|
||||||
@close="handleClose"
|
|
||||||
>
|
|
||||||
<div class="base-modal-body" style="border: 2px solid #ccc; padding: 10px">
|
<div class="base-modal-body" style="border: 2px solid #ccc; padding: 10px">
|
||||||
<PreviewFile v-if="visible" :file-path="path" :file-type="type" />
|
<PreviewFile v-if="visible" :file-path="path" :file-type="type" :is-local="isLocal" />
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
@@ -24,13 +17,15 @@ export default {
|
|||||||
path: null,
|
path: null,
|
||||||
type: null,
|
type: null,
|
||||||
title: null,
|
title: null,
|
||||||
|
isLocal: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open(path, type, title) {
|
open(path, type, title, isLocal) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
|
this.isLocal = isLocal;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
|
|||||||
@@ -5,16 +5,17 @@
|
|||||||
<!-- <embed v-else-if="fileType.indexOf('pdf') !== -1" :src="filePath+'#toolbar=0'" style="width: 100%; height: 100%"> -->
|
<!-- <embed v-else-if="fileType.indexOf('pdf') !== -1" :src="filePath+'#toolbar=0'" style="width: 100%; height: 100%"> -->
|
||||||
<!-- <iframe v-else-if="fileType.indexOf('pdf') !== -1" :src="filePath+'#toolbar=0'" width="100%" height="100%" frameborder="0" /> -->
|
<!-- <iframe v-else-if="fileType.indexOf('pdf') !== -1" :src="filePath+'#toolbar=0'" width="100%" height="100%" frameborder="0" /> -->
|
||||||
<iframe v-else-if="fileType.indexOf('pdf') !== -1"
|
<iframe v-else-if="fileType.indexOf('pdf') !== -1"
|
||||||
:src="`/static/pdfjs/web/viewer.html?file=${OSSclientConfig.basePath}${filePath}?userName=${currentUser}&COMPANY=${COMPANY}`"
|
:src="`/static/pdfjs/web/viewer.html?file=${isLocal ? window.location.origin : OSSclientConfig.basePath}${filePath}?userName=${currentUser}&COMPANY=${COMPANY}`"
|
||||||
width="100%" height="100%" frameborder="0" crossorigin="anonymous" />
|
width="100%" height="100%" frameborder="0" crossorigin="anonymous" />
|
||||||
<!-- <pdf-->
|
<!-- <pdf-->
|
||||||
<!-- v-else-if="fileType.indexOf('pdf') !== -1"-->
|
<!-- v-else-if="fileType.indexOf('pdf') !== -1"-->
|
||||||
<!-- :src="`/static/pdfjs/web/viewer.html?file=${filePath}`">-->
|
<!-- :src="`/static/pdfjs/web/viewer.html?file=${filePath}`">-->
|
||||||
<!-- </pdf>-->
|
<!-- </pdf>-->
|
||||||
<video :src="`${OSSclientConfig.basePath}${filePath}`" style="width: 100%;height: 99%;" autoplay controls
|
<video :src="`${isLocal ? window.location.origin : OSSclientConfig.basePath}${filePath}`"
|
||||||
controlsList="nodownload" v-else-if="fileType.indexOf('mp4') !== -1"></video>
|
style="width: 100%;height: 99%;" autoplay controls controlsList="nodownload"
|
||||||
|
v-else-if="fileType.indexOf('mp4') !== -1"></video>
|
||||||
<iframe v-else
|
<iframe v-else
|
||||||
:src="`/static/onlyOffice/viewer.html?url=${OSSclientConfig.basePath}${filePath}?onlyOffice_url=${onlyOffice_url}&type=${fileType}&title=${title}&documentType=${documentType}&userName=${currentUser}`"
|
:src="`/static/onlyOffice/viewer.html?url=${isLocal ? window.location.origin : OSSclientConfig.basePath}${filePath}?onlyOffice_url=${onlyOffice_url}&type=${fileType}&title=${title}&documentType=${documentType}&userName=${currentUser}`"
|
||||||
width="100%" height="100%" frameborder="0" crossorigin="anonymous" />
|
width="100%" height="100%" frameborder="0" crossorigin="anonymous" />
|
||||||
<!-- <div v-else>
|
<!-- <div v-else>
|
||||||
{{ $t('common:message:downloadFile') }}
|
{{ $t('common:message:downloadFile') }}
|
||||||
@@ -43,12 +44,17 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
|
isLocal: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentUser: zzSessionStorage.getItem('userName'),
|
currentUser: zzSessionStorage.getItem('userName'),
|
||||||
COMPANY: process.env.VUE_APP_COMPANY_NAME,
|
COMPANY: process.env.VUE_APP_COMPANY_NAME,
|
||||||
onlyOffice_url: process.env.VUE_APP_ONLYOFFICE_URL
|
onlyOffice_url: process.env.VUE_APP_ONLYOFFICE_URL,
|
||||||
|
window,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
click() {
|
click() {
|
||||||
if (!screenfull.enabled) {
|
if (!screenfull.isEnabled) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: 'you browser can not work',
|
message: 'you browser can not work',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@@ -35,12 +35,12 @@ export default {
|
|||||||
this.isFullscreen = screenfull.isFullscreen
|
this.isFullscreen = screenfull.isFullscreen
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
if (screenfull.enabled) {
|
if (screenfull.isEnabled) {
|
||||||
screenfull.on('change', this.change)
|
screenfull.on('change', this.change)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
destroy() {
|
destroy() {
|
||||||
if (screenfull.enabled) {
|
if (screenfull.isEnabled) {
|
||||||
screenfull.off('change', this.change)
|
screenfull.off('change', this.change)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,19 +2,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="trialsTab">
|
<div class="trialsTab">
|
||||||
<el-tabs v-model="trialsTab" @tab-click="clickTab">
|
<el-tabs v-model="trialsTab" @tab-click="clickTab">
|
||||||
<el-tab-pane v-for="item of trialsRouter.children.find(v => {return v.name == 'TrialsPanel'}).children" :key="`tab${item.path}`" :disabled="TotalNeedSignTrialDocCount !== 0 && item.path !== '/trials/trials-panel/attachments'" :label="$t(item.LanguageMark)" :name="item.path">
|
<template v-for="item of trialsRouter.children.find(v => { return v.name == 'TrialsPanel' }).children">
|
||||||
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab" style="background-color: #f5f7fa;">
|
<el-tab-pane :key="`tab${item.path}`"
|
||||||
<template v-for="item1 of item.children">
|
:disabled="TotalNeedSignTrialDocCount !== 0 && item.path !== '/trials/trials-panel/attachments'"
|
||||||
<el-tab-pane
|
:label="$t(item.LanguageMark)" :name="item.path" v-if="isShowNode(item)">
|
||||||
v-if="TrialConfig && isShow(item1.path)"
|
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab"
|
||||||
:key="`tab1${item1.path}`"
|
style="background-color: #f5f7fa;">
|
||||||
:disabled="TotalNeedSignTrialDocCount !== 0 && item1.path !== '/trials/trials-panel/attachments/self-attachment' || (TrialStatusStr === 'Initializing' && (item1.path === '/trials/trials-panel/setting/personnel-manage' || item1.path === '/trials/trials-panel/setting/qc-question' || item1.path === '/trials/trials-panel/setting/reading-unit' || item1.path === '/trials/trials-panel/setting/medical-audit' || item1.path === '/trials/trials-panel/setting/email-manage'))"
|
<template v-for="item1 of item.children">
|
||||||
:label="$t(item1.LanguageMark)"
|
<el-tab-pane v-if="TrialConfig && isShow(item1.path)" :key="`tab1${item1.path}`"
|
||||||
:name="item1.path"
|
:disabled="TotalNeedSignTrialDocCount !== 0 && item1.path !== '/trials/trials-panel/attachments/self-attachment' || (TrialStatusStr === 'Initializing' && (item1.path === '/trials/trials-panel/setting/personnel-manage' || item1.path === '/trials/trials-panel/setting/qc-question' || item1.path === '/trials/trials-panel/setting/reading-unit' || item1.path === '/trials/trials-panel/setting/medical-audit' || item1.path === '/trials/trials-panel/setting/email-manage'))"
|
||||||
/>
|
:label="$t(item1.LanguageMark)" :name="item1.path" />
|
||||||
</template>
|
</template>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
</template>
|
||||||
|
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<div style="position: absolute;top: 0;right: 0;display: flex;justify-content: space-between;align-items: center">
|
<div style="position: absolute;top: 0;right: 0;display: flex;justify-content: space-between;align-items: center">
|
||||||
<trials-select />
|
<trials-select />
|
||||||
@@ -83,7 +85,7 @@ export default {
|
|||||||
getUserDocumentList({ TrialId: this.$route.query.trialId }).then(async res => {
|
getUserDocumentList({ TrialId: this.$route.query.trialId }).then(async res => {
|
||||||
var total = res.OtherInfo.NeedSignCount
|
var total = res.OtherInfo.NeedSignCount
|
||||||
var TrialStatusStr = res.OtherInfo.TrialStatusStr
|
var TrialStatusStr = res.OtherInfo.TrialStatusStr
|
||||||
this.IsAdditionalAssessment = res.OtherInfo.IsAdditionalAssessment
|
this.IsAdditionalAssessment = res.OtherInfo.IsAdditionalAssessment
|
||||||
this.TrialStatusStr = TrialStatusStr
|
this.TrialStatusStr = TrialStatusStr
|
||||||
await store.dispatch('user/setTotalNeedSignTrialDocCount', total)
|
await store.dispatch('user/setTotalNeedSignTrialDocCount', total)
|
||||||
await store.dispatch('user/setTrialStatusStr', TrialStatusStr)
|
await store.dispatch('user/setTrialStatusStr', TrialStatusStr)
|
||||||
@@ -100,7 +102,7 @@ export default {
|
|||||||
getUserDocumentList({ TrialId: this.$route.query.trialId }).then(async res => {
|
getUserDocumentList({ TrialId: this.$route.query.trialId }).then(async res => {
|
||||||
var total = res.OtherInfo.NeedSignCount
|
var total = res.OtherInfo.NeedSignCount
|
||||||
var TrialStatusStr = res.OtherInfo.TrialStatusStr
|
var TrialStatusStr = res.OtherInfo.TrialStatusStr
|
||||||
this.IsAdditionalAssessment = res.OtherInfo.IsAdditionalAssessment
|
this.IsAdditionalAssessment = res.OtherInfo.IsAdditionalAssessment
|
||||||
this.TrialStatusStr = TrialStatusStr
|
this.TrialStatusStr = TrialStatusStr
|
||||||
await store.dispatch('user/setTotalNeedSignTrialDocCount', total)
|
await store.dispatch('user/setTotalNeedSignTrialDocCount', total)
|
||||||
await store.dispatch('user/setTrialStatusStr', TrialStatusStr)
|
await store.dispatch('user/setTrialStatusStr', TrialStatusStr)
|
||||||
@@ -117,8 +119,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isShow: function(path) {
|
isShowNode(item) {
|
||||||
|
if (item.path === '/trials/trials-panel/trial-summary' && item.children.length === 1 && item.children[0].path === '/trials/trials-panel/trial-summary/report-forms' && !this.$store.state.trials.config.IsExternalViewTrialChart && this.hasPermi(['role:cmm', 'role:cpm', 'role:ea', 'role:mc', 'role:smm', 'role:spm'])) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
isShow: function (path) {
|
||||||
var isShow = true
|
var isShow = true
|
||||||
|
let chartList = [
|
||||||
|
'/trials/trials-panel/trial-summary/report-forms'
|
||||||
|
]
|
||||||
var qualityList = [
|
var qualityList = [
|
||||||
'/trials/trials-panel/visit/crc-question',
|
'/trials/trials-panel/visit/crc-question',
|
||||||
'/trials/trials-panel/visit/qc-check',
|
'/trials/trials-panel/visit/qc-check',
|
||||||
@@ -134,6 +145,9 @@ export default {
|
|||||||
'/trials/trials-panel/trial-summary/image-inspect',
|
'/trials/trials-panel/trial-summary/image-inspect',
|
||||||
'/trials/trials-panel/trial-summary/push-record',
|
'/trials/trials-panel/trial-summary/push-record',
|
||||||
]
|
]
|
||||||
|
if (!this.$store.state.trials.config.IsExternalViewTrialChart && ~chartList.indexOf(path) && this.hasPermi(['role:cmm', 'role:cpm', 'role:ea', 'role:mc', 'role:smm', 'role:spm'])) {
|
||||||
|
isShow = false
|
||||||
|
}
|
||||||
if (this.TrialConfig.QCProcessEnum === 0 && ~qualityList.indexOf(path)) {
|
if (this.TrialConfig.QCProcessEnum === 0 && ~qualityList.indexOf(path)) {
|
||||||
isShow = false
|
isShow = false
|
||||||
}
|
}
|
||||||
@@ -205,56 +219,69 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.trialsTab{
|
.trialsTab {
|
||||||
.my_icon_box{
|
.my_icon_box {
|
||||||
padding:0 20px 0 0;
|
padding: 0 20px 0 0;
|
||||||
transition: color,transform .3s;
|
transition: color, transform .3s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #666;
|
color: #666;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
&:hover{
|
|
||||||
color: #428bca;
|
&:hover {
|
||||||
}
|
color: #428bca;
|
||||||
span{
|
|
||||||
margin-left: 3px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.el-tabs__header{
|
|
||||||
margin-bottom: 3px;
|
span {
|
||||||
}
|
margin-left: 3px;
|
||||||
.el-tabs__item.is-active{
|
font-size: 14px;
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
position: relative;
|
|
||||||
.el-input--medium .el-input__inner{
|
|
||||||
height: 44px;line-height: 44px;width: 280px;
|
|
||||||
border: none;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.base-model-wrapper{
|
|
||||||
.el-dialog__header{
|
.el-tabs__header {
|
||||||
padding: 10px;
|
margin-bottom: 3px;
|
||||||
.el-dialog__headerbtn{
|
}
|
||||||
top: 10px;
|
|
||||||
right: 10px;
|
.el-tabs__item.is-active {
|
||||||
}
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.el-dialog__body{
|
|
||||||
padding:10px 10px 10px 10px;
|
position: relative;
|
||||||
.base-modal-body{
|
|
||||||
min-height: 100px;
|
.el-input--medium .el-input__inner {
|
||||||
max-height:650px;
|
height: 44px;
|
||||||
overflow-y: auto;
|
line-height: 44px;
|
||||||
padding: 10px;
|
width: 280px;
|
||||||
border: 1px solid #e0e0e0;
|
border: none;
|
||||||
}
|
text-align: right;
|
||||||
}
|
}
|
||||||
.el-dialog__footer{
|
}
|
||||||
padding: 10px;
|
|
||||||
|
.base-model-wrapper {
|
||||||
|
.el-dialog__header {
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
.el-dialog__headerbtn {
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-dialog__body {
|
||||||
|
padding: 10px 10px 10px 10px;
|
||||||
|
|
||||||
|
.base-modal-body {
|
||||||
|
min-height: 100px;
|
||||||
|
max-height: 650px;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid #e0e0e0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__footer {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -24,8 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!--上传列表@selection-change="handleSelectionChange" @sort-change="handleSortByColumn"-->
|
<!--上传列表@selection-change="handleSelectionChange" @sort-change="handleSortByColumn"-->
|
||||||
<el-table ref="dicomFilesTable" v-adaptive="{ bottomOffset: 85 }" height="100" :data="list" :loading="loading"
|
<el-table ref="dicomFilesTable" v-adaptive="{ bottomOffset: 85 }" height="100" :data="list" :loading="loading"
|
||||||
class="dicomFiles-table"
|
class="dicomFiles-table" :default-sort="{ prop: 'TaskBlindName', order: 'descending' }">
|
||||||
:default-sort="{ prop: 'TaskBlindName', order: 'descending' }">
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="55"
|
width="55"
|
||||||
@@ -35,9 +34,11 @@
|
|||||||
<!--受试者-->
|
<!--受试者-->
|
||||||
<el-table-column :label="$t('download:table:subjectCode')" min-width="130" prop="SubjectCode"
|
<el-table-column :label="$t('download:table:subjectCode')" min-width="130" prop="SubjectCode"
|
||||||
show-overflow-tooltip />
|
show-overflow-tooltip />
|
||||||
|
<!--访视名称-->
|
||||||
|
<el-table-column prop="VisitName" :label="$t('download:table:VisitName')" sortable v-if="IsImageSegment" />
|
||||||
<!--任务名称-->
|
<!--任务名称-->
|
||||||
<el-table-column :label="$t('download:table:taskName')" min-width="130" show-overflow-tooltip prop="TaskBlindName"
|
<el-table-column :label="$t('download:table:taskName')" min-width="130" show-overflow-tooltip prop="TaskBlindName"
|
||||||
sortable />
|
sortable v-else />
|
||||||
<!--检查类型-->
|
<!--检查类型-->
|
||||||
<el-table-column :label="$t('download:table:studyType')" min-width="130" show-overflow-tooltip prop="IsDicom"
|
<el-table-column :label="$t('download:table:studyType')" min-width="130" show-overflow-tooltip prop="IsDicom"
|
||||||
sortable>
|
sortable>
|
||||||
@@ -76,7 +77,8 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :modelList="modelList" :bodyPart="bodyPart"
|
<study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :modelList="modelList" :bodyPart="bodyPart"
|
||||||
:IsDicom="IsDicom" :visitTaskId="modelTaskId" />
|
:subjectVisitId="modelSubjectVisitId" :IsDicom="IsDicom" :isDownload="true" :visitTaskId="modelTaskId"
|
||||||
|
:IsImageSegment="IsImageSegment" :Criterion="Criterion" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -127,6 +129,10 @@ export default {
|
|||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
IsImageSegment: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -150,14 +156,16 @@ export default {
|
|||||||
open: null,
|
open: null,
|
||||||
downloadId: null,
|
downloadId: null,
|
||||||
IsReadingTaskViewInOrder: 0, // 阅片规则
|
IsReadingTaskViewInOrder: 0, // 阅片规则
|
||||||
bodyPart: [],
|
bodyPart: {},
|
||||||
modelTaskId: null,
|
modelTaskId: null,
|
||||||
|
modelSubjectVisitId: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
this.bodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
|
||||||
this.getList()
|
this.getList()
|
||||||
this.bodyPart = await this.$getBodyPart(this.$route.query.trialId)
|
|
||||||
this.title = `Download Images:${this.SubjectCode}(${this.Criterion.TrialReadingCriterionName})`
|
this.title = `Download Images:${this.SubjectCode}(${this.Criterion.TrialReadingCriterionName})`
|
||||||
|
if (this.IsImageSegment) this.title = `Download Images:${this.SubjectCode}`
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
store.dispatch('trials/setUnLock', false)
|
store.dispatch('trials/setUnLock', false)
|
||||||
@@ -176,6 +184,12 @@ export default {
|
|||||||
if (this.TaskId) {
|
if (this.TaskId) {
|
||||||
this.searchData.VisitTaskId = this.TaskId
|
this.searchData.VisitTaskId = this.TaskId
|
||||||
}
|
}
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
this.searchData.IsImageSegmentLabel = true
|
||||||
|
}
|
||||||
|
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
|
||||||
|
this.searchData.IsImageSegmentLabel = false
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await getSubjectImageDownloadSelectList(this.searchData)
|
let res = await getSubjectImageDownloadSelectList(this.searchData)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -258,6 +272,12 @@ export default {
|
|||||||
data.NoneDicomStudyIdList = [...data.NoneDicomStudyIdList, ...arr]
|
data.NoneDicomStudyIdList = [...data.NoneDicomStudyIdList, ...arr]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
data.IsImageSegmentLabel = true
|
||||||
|
}
|
||||||
|
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
|
||||||
|
data.IsImageSegmentLabel = false
|
||||||
|
}
|
||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
let res = await getIRReadingDownloadStudyInfo(data)
|
let res = await getIRReadingDownloadStudyInfo(data)
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
@@ -287,35 +307,78 @@ export default {
|
|||||||
formatDownloadFile(list) {
|
formatDownloadFile(list) {
|
||||||
let files = [],
|
let files = [],
|
||||||
name = `${list[0].SubjectCode}_${new Date().getTime()}.zip`
|
name = `${list[0].SubjectCode}_${new Date().getTime()}.zip`
|
||||||
if (this.IsReadingTaskViewInOrder === 1) {
|
if (this.IsImageSegment) {
|
||||||
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
|
name = `${list[0].SubjectCode}.zip`
|
||||||
}
|
} else {
|
||||||
if (this.IsReadingTaskViewInOrder === 0) {
|
if (this.IsReadingTaskViewInOrder === 1) {
|
||||||
// name = `${list[0].TaskBlindName}.zip`
|
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
|
||||||
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
|
}
|
||||||
|
if (this.IsReadingTaskViewInOrder === 0) {
|
||||||
|
// name = `${list[0].TaskBlindName}.zip`
|
||||||
|
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
list.forEach((data) => {
|
list.forEach((data) => {
|
||||||
if (data.StudyList && data.StudyList.length > 0) {
|
if (data.StudyList && data.StudyList.length > 0) {
|
||||||
let StudyList = data.StudyList
|
let StudyList = data.StudyList
|
||||||
StudyList.forEach((study) => {
|
StudyList.forEach((study) => {
|
||||||
|
if (study.StudyDIRPath) {
|
||||||
|
let obj = {
|
||||||
|
name: `${data.SubjectCode}/${data.TaskBlindName
|
||||||
|
}/${this.$fd('IsDicom', true)}/${study.StudyCode
|
||||||
|
}/DICOMDIR`,
|
||||||
|
url: this.OSSclientConfig.basePath + study.StudyDIRPath,
|
||||||
|
}
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
obj = {
|
||||||
|
name: `${data.SubjectCode}/${data.VisitName
|
||||||
|
}/${this.$fd('IsDicom', true)}/${study.StudyCode
|
||||||
|
}/DICOMDIR`,
|
||||||
|
url: this.OSSclientConfig.basePath + study.StudyDIRPath,
|
||||||
|
}
|
||||||
|
} else if (this.IsReadingTaskViewInOrder === 0) {
|
||||||
|
obj = {
|
||||||
|
name: `${data.TaskBlindName}/${this.$fd(
|
||||||
|
'IsDicom',
|
||||||
|
true
|
||||||
|
)}/DICOMDIR`,
|
||||||
|
url: this.OSSclientConfig.basePath + study.StudyDIRPath,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
files.push(obj)
|
||||||
|
}
|
||||||
if (study.SeriesList.length > 0) {
|
if (study.SeriesList.length > 0) {
|
||||||
study.SeriesList.forEach((series) => {
|
study.SeriesList.forEach((series) => {
|
||||||
if (series.InstancePathList.length > 0) {
|
if (series.InstanceList.length > 0) {
|
||||||
series.InstancePathList.forEach((instance) => {
|
series.InstanceList.forEach((instance) => {
|
||||||
let fileName = instance.Path.split('/').pop()
|
let fileName = instance.Path.split('/').pop()
|
||||||
|
if (instance.FileName) {
|
||||||
|
fileName = instance.FileName
|
||||||
|
}
|
||||||
let obj = {
|
let obj = {
|
||||||
name: `${data.SubjectCode}/${data.TaskBlindName
|
name: `${data.SubjectCode}/${data.TaskBlindName
|
||||||
}/${this.$fd('IsDicom', true)}/${study.StudyCode
|
}/${this.$fd('IsDicom', true)}/${study.StudyCode
|
||||||
}/${fileName}`,
|
}/IMAGE/${fileName}`,
|
||||||
url: this.OSSclientConfig.basePath + instance.Path,
|
url: this.OSSclientConfig.basePath + instance.Path,
|
||||||
|
IsEncapsulated: instance.IsEncapsulated
|
||||||
}
|
}
|
||||||
if (this.IsReadingTaskViewInOrder === 0) {
|
if (this.IsImageSegment) {
|
||||||
|
obj = {
|
||||||
|
name: `${data.SubjectCode}/${data.VisitName
|
||||||
|
}/${this.$fd('IsDicom', true)}/${study.StudyCode
|
||||||
|
}/IMAGE/${fileName}`,
|
||||||
|
url: this.OSSclientConfig.basePath + instance.Path,
|
||||||
|
IsEncapsulated: instance.IsEncapsulated
|
||||||
|
}
|
||||||
|
} else if (this.IsReadingTaskViewInOrder === 0) {
|
||||||
obj = {
|
obj = {
|
||||||
name: `${data.TaskBlindName}/${this.$fd(
|
name: `${data.TaskBlindName}/${this.$fd(
|
||||||
'IsDicom',
|
'IsDicom',
|
||||||
true
|
true
|
||||||
)}/${fileName}`,
|
)}/IMAGE/${fileName}`,
|
||||||
url: this.OSSclientConfig.basePath + instance.Path,
|
url: this.OSSclientConfig.basePath + instance.Path,
|
||||||
|
IsEncapsulated: instance.IsEncapsulated
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
files.push(obj)
|
files.push(obj)
|
||||||
@@ -338,7 +401,16 @@ export default {
|
|||||||
)}/${study.StudyCode}/${item.FileName}`,
|
)}/${study.StudyCode}/${item.FileName}`,
|
||||||
url: this.OSSclientConfig.basePath + item.Path,
|
url: this.OSSclientConfig.basePath + item.Path,
|
||||||
}
|
}
|
||||||
if (this.IsReadingTaskViewInOrder === 0) {
|
if (this.IsImageSegment) {
|
||||||
|
obj = {
|
||||||
|
name: `${data.SubjectCode}/${data.VisitName}/${this.$fd(
|
||||||
|
'IsDicom',
|
||||||
|
false
|
||||||
|
)}/${study.StudyCode}/${item.FileName}`,
|
||||||
|
url: this.OSSclientConfig.basePath + item.Path,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (this.IsReadingTaskViewInOrder === 0) {
|
||||||
obj = {
|
obj = {
|
||||||
name: `${data.TaskBlindName}/${this.$fd(
|
name: `${data.TaskBlindName}/${this.$fd(
|
||||||
'IsDicom',
|
'IsDicom',
|
||||||
@@ -368,6 +440,9 @@ export default {
|
|||||||
},
|
},
|
||||||
handleOpenDialog(item) {
|
handleOpenDialog(item) {
|
||||||
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}`
|
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}`
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.VisitName}`
|
||||||
|
}
|
||||||
if (item.IsDicom) {
|
if (item.IsDicom) {
|
||||||
this.modelList = item.DicomStudyList
|
this.modelList = item.DicomStudyList
|
||||||
} else {
|
} else {
|
||||||
@@ -377,6 +452,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.modelTaskId = item.VisitTaskId
|
this.modelTaskId = item.VisitTaskId
|
||||||
|
this.modelSubjectVisitId = item.SourceSubjectVisitId
|
||||||
this.IsDicom = item.IsDicom
|
this.IsDicom = item.IsDicom
|
||||||
this.model_cfg.visible = true
|
this.model_cfg.visible = true
|
||||||
},
|
},
|
||||||
@@ -405,9 +481,16 @@ export default {
|
|||||||
}
|
}
|
||||||
let trialId = this.$route.query.trialId
|
let trialId = this.$route.query.trialId
|
||||||
var token = getToken()
|
var token = getToken()
|
||||||
const routeData = this.$router.resolve({
|
let routeData = null
|
||||||
path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${row.SourceSubjectVisitId}&TokenKey=${token}&isReading=true`,
|
if (!this.IsImageSegment && (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20)) {
|
||||||
})
|
routeData = this.$router.resolve({
|
||||||
|
path: `/showNoneDicoms?trialId=${trialId}&isImageSegmentLabel=${false}&visitTaskId=${row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&TokenKey=${token}&isReading=true`,
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
routeData = this.$router.resolve({
|
||||||
|
path: `/showNoneDicoms?trialId=${trialId}&visitTaskId=${row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&TokenKey=${token}&isReading=true`,
|
||||||
|
})
|
||||||
|
}
|
||||||
this.open = window.open(routeData.href, '_blank')
|
this.open = window.open(routeData.href, '_blank')
|
||||||
},
|
},
|
||||||
// 预览阅片影像
|
// 预览阅片影像
|
||||||
|
|||||||
@@ -283,6 +283,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.visitTaskId) {
|
if (this.visitTaskId) {
|
||||||
this.form.VisitTaskId = this.visitTaskId
|
this.form.VisitTaskId = this.visitTaskId
|
||||||
|
this.form.QuestionType = 6
|
||||||
}
|
}
|
||||||
if (this.SubjectVisitId) {
|
if (this.SubjectVisitId) {
|
||||||
this.form.SubjectVisitId = this.SubjectVisitId
|
this.form.SubjectVisitId = this.SubjectVisitId
|
||||||
|
|||||||
@@ -0,0 +1,239 @@
|
|||||||
|
<template>
|
||||||
|
<div :id="key" class="readingChart" v-show="visible" :style="{
|
||||||
|
'z-index': zIndex
|
||||||
|
}">
|
||||||
|
<div ref="chartContainer" style="width: 490px; height: 290px;" v-loading="loading"></div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getReportsChartData } from "@/api/reading"
|
||||||
|
let echarts = require('echarts/lib/echarts');
|
||||||
|
|
||||||
|
// 按需引入图表
|
||||||
|
// require('echarts/lib/chart/bar');
|
||||||
|
require('echarts/lib/chart/line');
|
||||||
|
// require('echarts/lib/chart/pie');
|
||||||
|
// require('echarts/lib/chart/scatter');
|
||||||
|
|
||||||
|
// 按需引入组件
|
||||||
|
require('echarts/lib/component/tooltip');
|
||||||
|
require('echarts/lib/component/title');
|
||||||
|
require('echarts/lib/component/legend');
|
||||||
|
require('echarts/lib/component/grid');
|
||||||
|
require('echarts/lib/component/dataZoom');
|
||||||
|
export default {
|
||||||
|
name: "readingChart",
|
||||||
|
props: {
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
zIndex: 9,
|
||||||
|
chart: null,
|
||||||
|
loading: false,
|
||||||
|
key: 'readingChart'
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(event, obj, zIndex = 9) {
|
||||||
|
this.loading = true
|
||||||
|
this.zIndex = zIndex
|
||||||
|
let { key } = obj
|
||||||
|
if (key) {
|
||||||
|
this.key = key
|
||||||
|
}
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.visible = true
|
||||||
|
let readingChart = document.querySelector(`#${this.key}`);
|
||||||
|
let chaY = document.body.clientHeight - event.clientY;
|
||||||
|
let chaX = document.body.clientWidth - event.clientX;
|
||||||
|
if (chaY < 250) {
|
||||||
|
readingChart.style.top = event.clientY - 220 + "px";
|
||||||
|
} else {
|
||||||
|
readingChart.style.top = event.clientY + "px";
|
||||||
|
}
|
||||||
|
if (chaX < 500) {
|
||||||
|
readingChart.style.left = event.clientX - 520 + "px";
|
||||||
|
} else {
|
||||||
|
readingChart.style.left = event.clientX + 15 + "px";
|
||||||
|
}
|
||||||
|
this.getInfo(obj)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async getInfo(data) {
|
||||||
|
try {
|
||||||
|
let { VisitTaskId = null, TrialId = null, QuestionId = null, QuestionName = null, TableQuestionId = null, RowIndex = null, ReportChartTypeEnum = null } = data
|
||||||
|
let params = {
|
||||||
|
VisitTaskId, TrialId, QuestionId, TableQuestionId, RowIndex, ReportChartTypeEnum
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
let res = await getReportsChartData(params)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
let LatestScanDateList = res.Result.LatestScanDateList.map(item => item.split(" ")[0])
|
||||||
|
let obj = {
|
||||||
|
title: QuestionName,
|
||||||
|
xAxisData: LatestScanDateList || [],
|
||||||
|
series: [],
|
||||||
|
unit: this.$fd("ValueUnit", res.Result.Unit),
|
||||||
|
visitName: res.Result.VisitTaskNameList,
|
||||||
|
min: null,
|
||||||
|
max: null
|
||||||
|
}
|
||||||
|
res.Result.ChartDataList.forEach((item) => {
|
||||||
|
let arr = []
|
||||||
|
item.Value.forEach((d, index) => {
|
||||||
|
// arr.push([LatestScanDateList[index], d])
|
||||||
|
arr.push(d)
|
||||||
|
})
|
||||||
|
obj.series.push({
|
||||||
|
name: item.Name,
|
||||||
|
data: arr,
|
||||||
|
type: 'line'
|
||||||
|
})
|
||||||
|
});
|
||||||
|
// if (Array.isArray(res.Result.LatestScanDateList) && res.Result.LatestScanDateList.length >= 2) {
|
||||||
|
// let hours = moment(res.Result.LatestScanDateList[res.Result.LatestScanDateList.length - 1]).diff(moment(res.Result.LatestScanDateList[0]), 'hours');
|
||||||
|
// let days = moment(res.Result.LatestScanDateList[res.Result.LatestScanDateList.length - 1]).diff(moment(res.Result.LatestScanDateList[0]), 'days');
|
||||||
|
// let months = moment(res.Result.LatestScanDateList[res.Result.LatestScanDateList.length - 1]).diff(moment(res.Result.LatestScanDateList[0]), 'months');
|
||||||
|
// console.log(hours, 'hours')
|
||||||
|
// console.log(days, 'days')
|
||||||
|
// console.log(months, 'months')
|
||||||
|
// if (hours < 24) {
|
||||||
|
// obj.min = moment(res.Result.LatestScanDateList[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
// obj.max = moment(res.Result.LatestScanDateList[0]).format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
// }
|
||||||
|
// if (days >= 1 && days <= 7) {
|
||||||
|
// obj.min = moment(res.Result.LatestScanDateList[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
// obj.max = moment(res.Result.LatestScanDateList[0]).add(7, 'days').format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
// }
|
||||||
|
// if (days > 7 && days < 30) {
|
||||||
|
// obj.min = moment(res.Result.LatestScanDateList[0]).startOf('month').format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
// obj.max = moment(res.Result.LatestScanDateList[0]).endOf('month').format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
// }
|
||||||
|
// if (months >= 1 && months <= 3) {
|
||||||
|
// obj.min = moment(res.Result.LatestScanDateList[0]).startOf('month').format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
// obj.max = moment(res.Result.LatestScanDateList[0]).add(4, 'months').startOf('month').format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
// }
|
||||||
|
// if (months > 3 && months <= 6) {
|
||||||
|
// obj.min = moment(res.Result.LatestScanDateList[0]).startOf('month').format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
// obj.max = moment(res.Result.LatestScanDateList[0]).add(7, 'months').startOf('month').format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
// }
|
||||||
|
// if (months > 6 && months <= 12) {
|
||||||
|
// obj.min = moment(res.Result.LatestScanDateList[0]).startOf('month').format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
// obj.max = moment(res.Result.LatestScanDateList[0]).add(13, 'months').startOf('month').format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
// }
|
||||||
|
// if (months > 12) {
|
||||||
|
// obj.min = moment(res.Result.LatestScanDateList[0]).startOf('month').format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
// obj.max = moment(res.Result.LatestScanDateList[res.Result.LatestScanDateList.length - 1]).add(1, 'months').startOf('month').format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// console.log(obj)
|
||||||
|
this.initChart(obj)
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.loading = false
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
foo() {
|
||||||
|
this.visible = false
|
||||||
|
this.$emit("foo");
|
||||||
|
this.dispose()
|
||||||
|
},
|
||||||
|
initChart(obj) {
|
||||||
|
this.chart = echarts.init(this.$refs.chartContainer);
|
||||||
|
// ...图表配置
|
||||||
|
const option = {
|
||||||
|
title: {
|
||||||
|
text: obj.title,
|
||||||
|
textStyle: {
|
||||||
|
color: "#fff"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'axis',
|
||||||
|
// formatter: function (params) {
|
||||||
|
// let index = obj.xAxisData.findIndex(item => item === params[0].value[0])
|
||||||
|
// let result = obj.visitName[index] + ' ' + params[0].value[0] + '<br>'; // 显示类目名(如日期)
|
||||||
|
// params.forEach(function (item) {
|
||||||
|
// result += item.marker + ' ' + item.seriesName + ': ' + item.value[1] + '<br>'; // 显示每个系列的图例、系列名和值
|
||||||
|
// });
|
||||||
|
// return result;
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
xAxis: {
|
||||||
|
// type: 'time',
|
||||||
|
// data: obj.xAxisData,
|
||||||
|
data: obj.visitName,
|
||||||
|
axisLine: { // 设置 x 轴线颜色
|
||||||
|
lineStyle: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
axisLabel: { // 设置 x 轴文字颜色
|
||||||
|
textStyle: {
|
||||||
|
color: '#fff'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// splitLine: {
|
||||||
|
// show: false // 隐藏网格线
|
||||||
|
// },
|
||||||
|
// min: obj.min,
|
||||||
|
// max: obj.max
|
||||||
|
},
|
||||||
|
yAxis: {
|
||||||
|
name: obj.unit,
|
||||||
|
type: 'value',
|
||||||
|
axisLabel: {
|
||||||
|
textStyle: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
axisLine: {
|
||||||
|
lineStyle: {
|
||||||
|
color: '#fff',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
series: obj.series
|
||||||
|
};
|
||||||
|
// 4. 使用配置项渲染图表
|
||||||
|
this.chart.setOption(option);
|
||||||
|
},
|
||||||
|
resize() {
|
||||||
|
if (this.chart) {
|
||||||
|
this.chart.resize()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dispose() {
|
||||||
|
if (this.chart) {
|
||||||
|
this.chart.dispose()
|
||||||
|
this.chart = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.readingChart {
|
||||||
|
min-width: 500px;
|
||||||
|
max-width: 500px;
|
||||||
|
font-size: 14px;
|
||||||
|
display: inline-block;
|
||||||
|
background: #000;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
border-radius: 4px;
|
||||||
|
position: fixed;
|
||||||
|
padding: 10px 6px;
|
||||||
|
list-style-type: none;
|
||||||
|
min-height: 300px;
|
||||||
|
max-height: 80vh;
|
||||||
|
// overflow: hidden;
|
||||||
|
// overflow-y: auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,134 @@
|
|||||||
|
<template>
|
||||||
|
<div id="timeTag" :style="`color:${suggestionTextColor};background-color: inherit;`">{{ time }}</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import moment from 'moment'
|
||||||
|
export default {
|
||||||
|
name: "timeTag",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
time: '',
|
||||||
|
timer: null,
|
||||||
|
suggestionTextColor: '#909399',
|
||||||
|
resizeObserver: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getTime()
|
||||||
|
},
|
||||||
|
async mounted() {
|
||||||
|
this.resizeObserver = new ResizeObserver(entries => {
|
||||||
|
entries.forEach(entry => {
|
||||||
|
// 获取元素的新尺寸
|
||||||
|
// const { width, height } = entry.contentRect;
|
||||||
|
// console.log(`元素宽度:${width}px, 高度:${height}px`);
|
||||||
|
// 在此可以将宽高值保存到 data 中
|
||||||
|
// this.elementWidth = width;
|
||||||
|
// this.elementHeight = height;
|
||||||
|
this.dragDoc()
|
||||||
|
});
|
||||||
|
});
|
||||||
|
const body = document.getElementsByTagName('body')[0]
|
||||||
|
// 开始监听指定元素
|
||||||
|
this.resizeObserver.observe(body);
|
||||||
|
this.dragDoc()
|
||||||
|
this.setColor()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getTime() {
|
||||||
|
if (this.timer) {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
|
this.timer = setInterval(async () => {
|
||||||
|
this.time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss Z z')
|
||||||
|
}, 1000)
|
||||||
|
},
|
||||||
|
dragDoc() {
|
||||||
|
const box = document.querySelector('#timeTag')
|
||||||
|
const body = document.getElementsByTagName('body')[0]
|
||||||
|
let maxLeft = body.offsetWidth - box.offsetWidth
|
||||||
|
let maxTop = body.offsetHeight - box.offsetHeight - 30
|
||||||
|
box.style.cssText += `left:${maxLeft}px;top:7px;`
|
||||||
|
const sty = (function () {
|
||||||
|
if (window.document.currentStyle) {
|
||||||
|
return (dom, attr) => dom.currentStyle[attr]
|
||||||
|
} else {
|
||||||
|
return (dom, attr) => getComputedStyle(dom, false)[attr]
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
|
||||||
|
box.onmousedown = (e) => {
|
||||||
|
// 鼠标按下,计算当前元素距离可视区的距离
|
||||||
|
const disX = e.clientX - box.offsetLeft
|
||||||
|
const disY = e.clientY - box.offsetTop
|
||||||
|
|
||||||
|
// 获取到的值带px 正则匹配替换
|
||||||
|
let styL = sty(box, 'left')
|
||||||
|
let styT = sty(box, 'top')
|
||||||
|
|
||||||
|
// 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
|
||||||
|
if (styL.includes('%')) {
|
||||||
|
styL = +document.body.clientWidth * (+styL.replace(/\%/g, '') / 100)
|
||||||
|
styT = +document.body.clientHeight * (+styT.replace(/\%/g, '') / 100)
|
||||||
|
} else {
|
||||||
|
styL = +styL.replace(/\px/g, '')
|
||||||
|
styT = +styT.replace(/\px/g, '')
|
||||||
|
}
|
||||||
|
const oldMousemove = document.onmousemove
|
||||||
|
|
||||||
|
document.onmousemove = function (e) {
|
||||||
|
oldMousemove(e)
|
||||||
|
// 通过事件委托,计算移动的距离
|
||||||
|
let left = e.clientX - disX
|
||||||
|
let top = e.clientY - disY
|
||||||
|
if (left < 0) {
|
||||||
|
left = 0
|
||||||
|
}
|
||||||
|
if (left > maxLeft) {
|
||||||
|
left = maxLeft
|
||||||
|
}
|
||||||
|
if (top < 0) {
|
||||||
|
top = 0
|
||||||
|
}
|
||||||
|
if (top > maxTop) {
|
||||||
|
top = maxTop
|
||||||
|
}
|
||||||
|
// 移动当前元素
|
||||||
|
box.style.cssText += `;left:${left}px;top:${top}px;`
|
||||||
|
}
|
||||||
|
|
||||||
|
document.onmouseup = function (e) {
|
||||||
|
document.onmousemove = oldMousemove
|
||||||
|
document.onmouseup = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
setColor() {
|
||||||
|
this.suggestionTextColor = "#909399"
|
||||||
|
let pathList = ['/showvisitdicoms', '/showdicom', '/readingDicoms', '/petct', '/noneDicomReading']
|
||||||
|
if (pathList.includes(window.location.pathname)) {
|
||||||
|
this.suggestionTextColor = "#fff"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
destroyed() {
|
||||||
|
if (this.timer) {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
|
if (this.resizeObserver) {
|
||||||
|
this.resizeObserver.disconnect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
#timeTag {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 99999;
|
||||||
|
cursor: move;
|
||||||
|
width: 195px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -10,9 +10,11 @@
|
|||||||
<!--检查列表-->
|
<!--检查列表-->
|
||||||
<el-table :data="list" style="width: 100%" height="300" :loading="loading">
|
<el-table :data="list" style="width: 100%" height="300" :loading="loading">
|
||||||
<!--受试者-->
|
<!--受试者-->
|
||||||
<el-table-column prop="SubjectCode" :label="$t('upload:dicom:table:subjectCode')" />
|
<el-table-column prop="SubjectCode" :label="$t('upload:dicom:table:subjectCode')" sortable />
|
||||||
|
<!--访视名称-->
|
||||||
|
<el-table-column prop="VisitName" :label="$t('download:table:VisitName')" v-if="IsImageSegment" sortable />
|
||||||
<!--任务名称-->
|
<!--任务名称-->
|
||||||
<el-table-column prop="TaskBlindName" :label="$t('upload:dicom:table:taskBlindName')" />
|
<el-table-column prop="TaskBlindName" :label="$t('upload:dicom:table:taskBlindName')" v-else sortable />
|
||||||
<!--原始检查数-->
|
<!--原始检查数-->
|
||||||
<el-table-column prop="OrginalStudyList" :label="$t('upload:dicom:table:orginalStudyListNum')">
|
<el-table-column prop="OrginalStudyList" :label="$t('upload:dicom:table:orginalStudyListNum')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -299,7 +301,8 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :IsDicom="true" :bodyPart="bodyPart"
|
<study-view v-if="model_cfg.visible" :model_cfg="model_cfg" :IsDicom="true" :bodyPart="bodyPart"
|
||||||
:modelList="modelList" :isUpload="openIsUpload" :TrialModality="TrialModality" @getList="getList" />
|
:subjectVisitId="openSubjectVisitId" :modelList="modelList" :isUpload="openIsUpload"
|
||||||
|
:visitTaskId="openVisitTaskId" :TrialModality="TrialModality" @getList="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -363,12 +366,17 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: 0,
|
default: 0,
|
||||||
},
|
},
|
||||||
|
IsImageSegment: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'study-view': studyView,
|
'study-view': studyView,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
list: [],
|
list: [],
|
||||||
StudyInstanceUidList: [],
|
StudyInstanceUidList: [],
|
||||||
SopInstanceUidList: [],
|
SopInstanceUidList: [],
|
||||||
@@ -406,17 +414,17 @@ export default {
|
|||||||
subjectVisitId: null,
|
subjectVisitId: null,
|
||||||
errStudyUidList: [],
|
errStudyUidList: [],
|
||||||
open: null,
|
open: null,
|
||||||
bodyPart: [],
|
bodyPart: {},
|
||||||
openIsUpload: false,
|
openIsUpload: false,
|
||||||
|
openSubjectVisitId: null,
|
||||||
|
openVisitTaskId: null,
|
||||||
TrialModality: [],
|
TrialModality: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.trialId = this.$route.query.trialId
|
this.trialId = this.$route.query.trialId
|
||||||
this.bodyPart = await this.$getBodyPart(this.$route.query.trialId)
|
this.bodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
|
||||||
|
this.getList()
|
||||||
this.uploadQueues = []
|
this.uploadQueues = []
|
||||||
this.OSSclient.close()
|
this.OSSclient.close()
|
||||||
},
|
},
|
||||||
@@ -441,6 +449,12 @@ export default {
|
|||||||
if (this.TaskId) {
|
if (this.TaskId) {
|
||||||
params.VisitTaskId = this.TaskId
|
params.VisitTaskId = this.TaskId
|
||||||
}
|
}
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
params.IsImageSegmentLabel = true
|
||||||
|
}
|
||||||
|
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
|
||||||
|
params.IsImageSegmentLabel = false
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await getSubjectImageUploadList(params)
|
let res = await getSubjectImageUploadList(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -456,7 +470,7 @@ export default {
|
|||||||
data.SubjectId = item.SubejctId
|
data.SubjectId = item.SubejctId
|
||||||
data.VisitTaskId = item.VisitTaskId
|
data.VisitTaskId = item.VisitTaskId
|
||||||
data.SourceSubjectVisitId = item.SourceSubjectVisitId
|
data.SourceSubjectVisitId = item.SourceSubjectVisitId
|
||||||
this.subjectVisitId = item.SourceSubjectVisitId
|
// this.subjectVisitId = item.SourceSubjectVisitId
|
||||||
this.StudyInstanceUidList.push(data)
|
this.StudyInstanceUidList.push(data)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -490,6 +504,7 @@ export default {
|
|||||||
if (confirm !== 'confirm') return
|
if (confirm !== 'confirm') return
|
||||||
let params = {
|
let params = {
|
||||||
VisitTaskId: item.VisitTaskId,
|
VisitTaskId: item.VisitTaskId,
|
||||||
|
SubjectVisitId: item.SourceSubjectVisitId || item.SubjectVisitId,
|
||||||
IsDicom: true,
|
IsDicom: true,
|
||||||
}
|
}
|
||||||
let res = await deleteTaskStudy(params)
|
let res = await deleteTaskStudy(params)
|
||||||
@@ -522,7 +537,9 @@ export default {
|
|||||||
// 打开弹窗
|
// 打开弹窗
|
||||||
handleOpenDialog(item, list, isUpload = false) {
|
handleOpenDialog(item, list, isUpload = false) {
|
||||||
this.openIsUpload = isUpload
|
this.openIsUpload = isUpload
|
||||||
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}`
|
this.openSubjectVisitId = item.SubjectVisitId || item.SourceSubjectVisitId
|
||||||
|
this.openVisitTaskId = item.VisitTaskId
|
||||||
|
this.model_cfg.title = `${item.SubjectCode || ''} > ${this.IsImageSegment ? item.VisitName : item.TaskBlindName}`
|
||||||
this.modelList = item[list]
|
this.modelList = item[list]
|
||||||
this.model_cfg.visible = true
|
this.model_cfg.visible = true
|
||||||
},
|
},
|
||||||
@@ -538,6 +555,9 @@ export default {
|
|||||||
if (this.VisitTaskId) {
|
if (this.VisitTaskId) {
|
||||||
data.VisitTaskId = this.VisitTaskId
|
data.VisitTaskId = this.VisitTaskId
|
||||||
}
|
}
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
data.IsImageSegmentLabel = true
|
||||||
|
}
|
||||||
let res = await verifyIRStudyAllowUpload(data)
|
let res = await verifyIRStudyAllowUpload(data)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
return res.Result
|
return res.Result
|
||||||
@@ -564,8 +584,9 @@ export default {
|
|||||||
confirmMessage = null
|
confirmMessage = null
|
||||||
for (let i = 0; i < checkFiles.length; i++) {
|
for (let i = 0; i < checkFiles.length; i++) {
|
||||||
let item = checkFiles[i]
|
let item = checkFiles[i]
|
||||||
var dicom = await parseDicom(item, 'StudyInstanceUid')
|
var dicom = await parseDicom(item, ['StudyInstanceUid', 'Modality'])
|
||||||
if (!dicom.StudyInstanceUid) continue
|
if (!dicom.StudyInstanceUid) continue
|
||||||
|
if (this.IsImageSegment && dicom.Modality !== 'IVUS') continue
|
||||||
let has = true,
|
let has = true,
|
||||||
has2 = false,
|
has2 = false,
|
||||||
has3 = false
|
has3 = false
|
||||||
@@ -619,8 +640,8 @@ export default {
|
|||||||
if (this.errStudyUidList && this.errStudyUidList.length > 0) {
|
if (this.errStudyUidList && this.errStudyUidList.length > 0) {
|
||||||
for (let i = 0; i < checkFiles.length; i++) {
|
for (let i = 0; i < checkFiles.length; i++) {
|
||||||
let item = checkFiles[i]
|
let item = checkFiles[i]
|
||||||
var dicom = await parseDicom(item, 'StudyInstanceUid')
|
var dicom = await parseDicom(item, ['StudyInstanceUid', 'Modality'])
|
||||||
if (!!~this.errStudyUidList.indexOf(dicom.StudyInstanceUid)) {
|
if (!!~this.errStudyUidList.indexOf(dicom.StudyInstanceUid) || (this.IsImageSegment && dicom.Modality !== 'IVUS')) {
|
||||||
this.hasOtherStudy = true
|
this.hasOtherStudy = true
|
||||||
checkFiles.splice(i, 1)
|
checkFiles.splice(i, 1)
|
||||||
i--
|
i--
|
||||||
@@ -646,6 +667,7 @@ export default {
|
|||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
var validFilesCount = 0
|
var validFilesCount = 0
|
||||||
|
scope.uploadQueues = []
|
||||||
for (var i = 0; i < checkFiles.length; ++i) {
|
for (var i = 0; i < checkFiles.length; ++i) {
|
||||||
; (function (index) {
|
; (function (index) {
|
||||||
p = p.then(function () {
|
p = p.then(function () {
|
||||||
@@ -731,6 +753,15 @@ export default {
|
|||||||
fileList: [],
|
fileList: [],
|
||||||
dicomInfo: {
|
dicomInfo: {
|
||||||
studyId: data.string('x00200010'),
|
studyId: data.string('x00200010'),
|
||||||
|
Manufacturer: data.string('x00080070') || '',
|
||||||
|
ManufacturerModelName: data.string('x000801090') || '',
|
||||||
|
DeviceSerialNumber: data.string('x00181000') || '',
|
||||||
|
DeviceUID: data.string('x00181002') || '',
|
||||||
|
SoftwareVersions: data.string('x00181020') || '',
|
||||||
|
PatientWeight: data.string('x00101030') || '',
|
||||||
|
|
||||||
|
DicomStudyDate: data.string('x00080020'),
|
||||||
|
DicomStudyTime: data.string('x00080030'),
|
||||||
studyUid: studyUid,
|
studyUid: studyUid,
|
||||||
patientId: data.string('x00100020'),
|
patientId: data.string('x00100020'),
|
||||||
patientName: patientNameStr,
|
patientName: patientNameStr,
|
||||||
@@ -841,6 +872,11 @@ export default {
|
|||||||
)
|
)
|
||||||
seriesItem = {
|
seriesItem = {
|
||||||
seriesUid: seriesUid,
|
seriesUid: seriesUid,
|
||||||
|
RadiopharmaceuticalInformationSequence: data.string('x00540016') || "",
|
||||||
|
AcquisitionDate: data.string('x00080022') || "",
|
||||||
|
|
||||||
|
DicomSeriesDate: data.string('x00080021'),
|
||||||
|
DicomSeriesTime: data.string('x00080031'),
|
||||||
seriesNumber: data.intString('x00200011') || 1,
|
seriesNumber: data.intString('x00200011') || 1,
|
||||||
modality: data.string('x00080060') || '',
|
modality: data.string('x00080060') || '',
|
||||||
description: seriesDescriptionStr,
|
description: seriesDescriptionStr,
|
||||||
@@ -879,7 +915,25 @@ export default {
|
|||||||
instanceTime = time ? `${date} ${time}` : `${date} 00:00:00`
|
instanceTime = time ? `${date} ${time}` : `${date} 00:00:00`
|
||||||
}
|
}
|
||||||
instanceItem = {
|
instanceItem = {
|
||||||
|
PhotometricInterpretation: data.string('x00280004') || '',
|
||||||
|
BitsAllocated: data.uint16('x00280100') || '',
|
||||||
|
PixelRepresentation: data.uint16('x00280103') || '',
|
||||||
|
RescaleIntercept: data.string('x00281052') || '',
|
||||||
|
RescaleSlope: data.string('x00281053') || '',
|
||||||
|
ImagePositionPatient: data.string('x00200032') || '',
|
||||||
|
ImageOrientationPatient: data.string('x00200037') || '',
|
||||||
|
SequenceOfUltrasoundRegions: data.string('x00186011') || '',
|
||||||
|
FrameTime: data.string('x00181063') || '',
|
||||||
|
CorrectedImage: data.string('x00280051') || '',
|
||||||
|
Units: data.string('x00541001') || '',
|
||||||
|
DecayCorrection: data.string('x00541102') || '',
|
||||||
|
EncapsulatedDocument: data.string('x00420011') || '',
|
||||||
|
|
||||||
instanceUid: instanceUid,
|
instanceUid: instanceUid,
|
||||||
|
SOPClassUID: data.string('x00080016'),
|
||||||
|
TransferSytaxUID: data.string('x00020010'),
|
||||||
|
MediaStorageSOPInstanceUID: instanceUid,
|
||||||
|
MediaStorageSOPClassUID: data.string('x00080016'),
|
||||||
instanceNumber: data.intString('x00200013') || 1,
|
instanceNumber: data.intString('x00200013') || 1,
|
||||||
frameCount: data.intString('x00280008') || 1,
|
frameCount: data.intString('x00280008') || 1,
|
||||||
instanceTime: instanceTime,
|
instanceTime: instanceTime,
|
||||||
@@ -887,7 +941,7 @@ export default {
|
|||||||
imageColumns: data.uint16('x00280011') || 0,
|
imageColumns: data.uint16('x00280011') || 0,
|
||||||
sliceLocation: data.intString('x00201041') || 0,
|
sliceLocation: data.intString('x00201041') || 0,
|
||||||
sliceThickness: data.string('x00180050') || '',
|
sliceThickness: data.string('x00180050') || '',
|
||||||
numberOfFrames: data.intString('x00280008') || 0,
|
numberOfFrames: data.intString('x00280008') || 1,
|
||||||
pixelSpacing: data.string('x00280030') || '',
|
pixelSpacing: data.string('x00280030') || '',
|
||||||
imagerPixelSpacing: data.string('x00181164') || '',
|
imagerPixelSpacing: data.string('x00181164') || '',
|
||||||
frameOfReferenceUID: data.string('x00200052') || '',
|
frameOfReferenceUID: data.string('x00200052') || '',
|
||||||
@@ -1027,10 +1081,25 @@ export default {
|
|||||||
var scope = this
|
var scope = this
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
try {
|
try {
|
||||||
|
let subjectVisitId = null;
|
||||||
|
if (scope.VisitTaskId) {
|
||||||
|
scope.StudyInstanceUidList.forEach(item => {
|
||||||
|
if (item.VisitTaskId === scope.VisitTaskId) {
|
||||||
|
subjectVisitId = item.SourceSubjectVisitId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
scope.StudyInstanceUidList.forEach(item => {
|
||||||
|
if (item.StudyInstanceUid === scope.uploadQueues[index].dicomInfo.studyUid) {
|
||||||
|
subjectVisitId = item.SourceSubjectVisitId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (!subjectVisitId) return reject('subjectVisitId is notFind')
|
||||||
preArchiveDicomStudy({
|
preArchiveDicomStudy({
|
||||||
trialId: scope.trialId,
|
trialId: scope.trialId,
|
||||||
subjectId: scope.SubjectId,
|
subjectId: scope.SubjectId,
|
||||||
subjectVisitId: scope.subjectVisitId,
|
subjectVisitId: subjectVisitId,
|
||||||
fileSize: scope.uploadQueues[index].dicomInfo.fileSize,
|
fileSize: scope.uploadQueues[index].dicomInfo.fileSize,
|
||||||
fileCount: scope.uploadQueues[index].dicomInfo.fileCount,
|
fileCount: scope.uploadQueues[index].dicomInfo.fileCount,
|
||||||
IsDicomReUpload:
|
IsDicomReUpload:
|
||||||
@@ -1046,7 +1115,7 @@ export default {
|
|||||||
dicomInfo.seriesNum = seriesNum
|
dicomInfo.seriesNum = seriesNum
|
||||||
dicomInfo.fileNum = fileNum
|
dicomInfo.fileNum = fileNum
|
||||||
dicomInfo.subjectId = scope.SubjectId
|
dicomInfo.subjectId = scope.SubjectId
|
||||||
dicomInfo.subjectVisitId = scope.subjectVisitId
|
dicomInfo.subjectVisitId = subjectVisitId
|
||||||
let t = setInterval(() => {
|
let t = setInterval(() => {
|
||||||
dicomUploadInProgress({
|
dicomUploadInProgress({
|
||||||
trialId: scope.trialId,
|
trialId: scope.trialId,
|
||||||
@@ -1066,7 +1135,7 @@ export default {
|
|||||||
let params = {
|
let params = {
|
||||||
trialId: scope.trialId,
|
trialId: scope.trialId,
|
||||||
subjectId: scope.SubjectId,
|
subjectId: scope.SubjectId,
|
||||||
subjectVisitId: scope.subjectVisitId,
|
subjectVisitId: subjectVisitId,
|
||||||
studyMonitorId: res.Result,
|
studyMonitorId: res.Result,
|
||||||
failedFileCount: 0,
|
failedFileCount: 0,
|
||||||
RecordPath: null,
|
RecordPath: null,
|
||||||
@@ -1088,7 +1157,16 @@ export default {
|
|||||||
acquisitionNumber: dicomInfo.acquisitionNumber,
|
acquisitionNumber: dicomInfo.acquisitionNumber,
|
||||||
triggerTime: dicomInfo.triggerTime,
|
triggerTime: dicomInfo.triggerTime,
|
||||||
bodyPartExamined: '',
|
bodyPartExamined: '',
|
||||||
|
DicomStudyDate: dicomInfo.DicomStudyDate,
|
||||||
|
DicomStudyTime: dicomInfo.DicomStudyTime,
|
||||||
seriesList: [],
|
seriesList: [],
|
||||||
|
|
||||||
|
Manufacturer: dicomInfo.Manufacturer,
|
||||||
|
ManufacturerModelName: dicomInfo.ManufacturerModelName,
|
||||||
|
DeviceSerialNumber: dicomInfo.DeviceSerialNumber,
|
||||||
|
DeviceUID: dicomInfo.DeviceUID,
|
||||||
|
SoftwareVersions: dicomInfo.SoftwareVersions,
|
||||||
|
PatientWeight: dicomInfo.PatientWeight,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
let arr = []
|
let arr = []
|
||||||
@@ -1112,6 +1190,10 @@ export default {
|
|||||||
instanceList.push({
|
instanceList.push({
|
||||||
studyInstanceUid: dicomInfo.studyUid,
|
studyInstanceUid: dicomInfo.studyUid,
|
||||||
seriesInstanceUid: v.seriesUid,
|
seriesInstanceUid: v.seriesUid,
|
||||||
|
SOPClassUID: o.SOPClassUID,
|
||||||
|
TransferSytaxUID: o.TransferSytaxUID,
|
||||||
|
MediaStorageSOPInstanceUID: o.MediaStorageSOPInstanceUID,
|
||||||
|
MediaStorageSOPClassUID: o.MediaStorageSOPClassUID,
|
||||||
sopInstanceUid: o.instanceUid,
|
sopInstanceUid: o.instanceUid,
|
||||||
instanceNumber: o.instanceNumber,
|
instanceNumber: o.instanceNumber,
|
||||||
instanceTime: o.instanceTime,
|
instanceTime: o.instanceTime,
|
||||||
@@ -1127,6 +1209,20 @@ export default {
|
|||||||
windowWidth: o.windowWidth,
|
windowWidth: o.windowWidth,
|
||||||
path: o.myPath,
|
path: o.myPath,
|
||||||
FileSize: o.FileSize,
|
FileSize: o.FileSize,
|
||||||
|
|
||||||
|
PhotometricInterpretation: o.PhotometricInterpretation,
|
||||||
|
BitsAllocated: o.BitsAllocated,
|
||||||
|
PixelRepresentation: o.PixelRepresentation,
|
||||||
|
RescaleIntercept: o.RescaleIntercept,
|
||||||
|
RescaleSlope: o.RescaleSlope,
|
||||||
|
ImagePositionPatient: o.ImagePositionPatient,
|
||||||
|
ImageOrientationPatient: o.ImageOrientationPatient,
|
||||||
|
SequenceOfUltrasoundRegions: o.SequenceOfUltrasoundRegions,
|
||||||
|
FrameTime: o.FrameTime,
|
||||||
|
CorrectedImage: o.CorrectedImage,
|
||||||
|
Units: o.Units,
|
||||||
|
DecayCorrection: o.DecayCorrection,
|
||||||
|
EncapsulatedDocument: o.EncapsulatedDocument,
|
||||||
})
|
})
|
||||||
Record.Uploaded.push(name)
|
Record.Uploaded.push(name)
|
||||||
dicomInfo.failedFileCount++
|
dicomInfo.failedFileCount++
|
||||||
@@ -1140,6 +1236,16 @@ export default {
|
|||||||
o.instanceUid +
|
o.instanceUid +
|
||||||
params.trialId
|
params.trialId
|
||||||
)}`
|
)}`
|
||||||
|
if (scope.IsImageSegment) {
|
||||||
|
path = `/${params.trialId}/Image/${params.subjectId
|
||||||
|
}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.visitTaskId
|
||||||
|
}/${scope.getGuid(
|
||||||
|
dicomInfo.studyUid +
|
||||||
|
v.seriesUid +
|
||||||
|
o.instanceUid +
|
||||||
|
params.trialId
|
||||||
|
)}`
|
||||||
|
}
|
||||||
if (scope.isClose) return
|
if (scope.isClose) return
|
||||||
let res = await dcmUpload(
|
let res = await dcmUpload(
|
||||||
{
|
{
|
||||||
@@ -1173,6 +1279,9 @@ export default {
|
|||||||
o.imageRows
|
o.imageRows
|
||||||
)
|
)
|
||||||
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
|
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
|
||||||
|
if (scope.IsImageSegment) {
|
||||||
|
thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
|
||||||
|
}
|
||||||
let OSSclient = scope.OSSclient
|
let OSSclient = scope.OSSclient
|
||||||
let seriesRes = await OSSclient.put(
|
let seriesRes = await OSSclient.put(
|
||||||
thumbnailPath,
|
thumbnailPath,
|
||||||
@@ -1193,6 +1302,10 @@ export default {
|
|||||||
studyInstanceUid: dicomInfo.studyUid,
|
studyInstanceUid: dicomInfo.studyUid,
|
||||||
seriesInstanceUid: v.seriesUid,
|
seriesInstanceUid: v.seriesUid,
|
||||||
sopInstanceUid: o.instanceUid,
|
sopInstanceUid: o.instanceUid,
|
||||||
|
SOPClassUID: o.SOPClassUID,
|
||||||
|
TransferSytaxUID: o.TransferSytaxUID,
|
||||||
|
MediaStorageSOPInstanceUID: o.MediaStorageSOPInstanceUID,
|
||||||
|
MediaStorageSOPClassUID: o.MediaStorageSOPClassUID,
|
||||||
instanceNumber: o.instanceNumber,
|
instanceNumber: o.instanceNumber,
|
||||||
instanceTime: o.instanceTime,
|
instanceTime: o.instanceTime,
|
||||||
imageRows: o.imageRows,
|
imageRows: o.imageRows,
|
||||||
@@ -1207,6 +1320,20 @@ export default {
|
|||||||
windowWidth: o.windowWidth,
|
windowWidth: o.windowWidth,
|
||||||
path: scope.$getObjectName(res.url),
|
path: scope.$getObjectName(res.url),
|
||||||
FileSize: o.FileSize,
|
FileSize: o.FileSize,
|
||||||
|
|
||||||
|
PhotometricInterpretation: o.PhotometricInterpretation,
|
||||||
|
BitsAllocated: o.BitsAllocated,
|
||||||
|
PixelRepresentation: o.PixelRepresentation,
|
||||||
|
RescaleIntercept: o.RescaleIntercept,
|
||||||
|
RescaleSlope: o.RescaleSlope,
|
||||||
|
ImagePositionPatient: o.ImagePositionPatient,
|
||||||
|
ImageOrientationPatient: o.ImageOrientationPatient,
|
||||||
|
SequenceOfUltrasoundRegions: o.SequenceOfUltrasoundRegions,
|
||||||
|
FrameTime: o.FrameTime,
|
||||||
|
CorrectedImage: o.CorrectedImage,
|
||||||
|
Units: o.Units,
|
||||||
|
DecayCorrection: o.DecayCorrection,
|
||||||
|
EncapsulatedDocument: o.EncapsulatedDocument,
|
||||||
})
|
})
|
||||||
o.myPath = scope.$getObjectName(res.url)
|
o.myPath = scope.$getObjectName(res.url)
|
||||||
Record.Uploaded.push(name)
|
Record.Uploaded.push(name)
|
||||||
@@ -1238,6 +1365,8 @@ export default {
|
|||||||
seriesInstanceUid: v.seriesUid,
|
seriesInstanceUid: v.seriesUid,
|
||||||
seriesNumber: v.seriesNumber,
|
seriesNumber: v.seriesNumber,
|
||||||
seriesTime: v.seriesTime,
|
seriesTime: v.seriesTime,
|
||||||
|
DicomSeriesDate: v.DicomSeriesDate,
|
||||||
|
DicomSeriesTime: v.DicomSeriesTime,
|
||||||
sliceThickness: v.sliceThickness,
|
sliceThickness: v.sliceThickness,
|
||||||
imagePositionPatient: v.imagePositionPatient,
|
imagePositionPatient: v.imagePositionPatient,
|
||||||
imageOrientationPatient: v.imageOrientationPatient,
|
imageOrientationPatient: v.imageOrientationPatient,
|
||||||
@@ -1253,11 +1382,17 @@ export default {
|
|||||||
bodyPartExamined: dicomInfo.bodyPart,
|
bodyPartExamined: dicomInfo.bodyPart,
|
||||||
instanceList: instanceList,
|
instanceList: instanceList,
|
||||||
ImageResizePath: ImageResizePath,
|
ImageResizePath: ImageResizePath,
|
||||||
|
|
||||||
|
RadiopharmaceuticalInformationSequence: v.RadiopharmaceuticalInformationSequence,
|
||||||
|
AcquisitionDate: v.AcquisitionDate,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let text = JSON.stringify(Record)
|
let text = JSON.stringify(Record)
|
||||||
let logJsonBlob = scope.generateTxtFile(text)
|
let logJsonBlob = scope.generateTxtFile(text)
|
||||||
let logJsonObjectName = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
|
let logJsonObjectName = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
|
||||||
|
if (scope.IsImageSegment) {
|
||||||
|
logJsonObjectName = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
|
||||||
|
}
|
||||||
let logRes
|
let logRes
|
||||||
try {
|
try {
|
||||||
logRes = await scope.OSSclient.put(
|
logRes = await scope.OSSclient.put(
|
||||||
@@ -1286,6 +1421,9 @@ export default {
|
|||||||
v.instanceList[0].imageRows
|
v.instanceList[0].imageRows
|
||||||
)
|
)
|
||||||
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
|
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
|
||||||
|
if (scope.IsImageSegment) {
|
||||||
|
thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/AnnotationImage/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
|
||||||
|
}
|
||||||
let OSSclient = scope.OSSclient
|
let OSSclient = scope.OSSclient
|
||||||
try {
|
try {
|
||||||
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
||||||
@@ -1303,6 +1441,9 @@ export default {
|
|||||||
if (scope.isClose) return false
|
if (scope.isClose) return false
|
||||||
console.log(params)
|
console.log(params)
|
||||||
params.VisitTaskId = dicomInfo.visitTaskId
|
params.VisitTaskId = dicomInfo.visitTaskId
|
||||||
|
if (scope.IsImageSegment) {
|
||||||
|
params.IsImageSegmentLabel = true
|
||||||
|
}
|
||||||
addOrUpdateArchiveTaskStudy(params)
|
addOrUpdateArchiveTaskStudy(params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (dicomInfo.failedFileCount === dicomInfo.fileCount) {
|
if (dicomInfo.failedFileCount === dicomInfo.fileCount) {
|
||||||
@@ -1397,7 +1538,7 @@ export default {
|
|||||||
var token = getToken()
|
var token = getToken()
|
||||||
let trialId = this.$route.query.trialId
|
let trialId = this.$route.query.trialId
|
||||||
const routeData = this.$router.resolve({
|
const routeData = this.$router.resolve({
|
||||||
path: `/showvisitdicoms?page=upload&trialId=${trialId}&visitTaskId=${row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&isReading=1&TokenKey=${token}`,
|
path: `/showvisitdicoms?page=upload&trialId=${trialId}&visitTaskId=${this.IsImageSegment ? 'undefined' : row.VisitTaskId}&subjectVisitId=${row.SourceSubjectVisitId}&isReading=1&TokenKey=${token}`,
|
||||||
})
|
})
|
||||||
this.open = window.open(routeData.href, '_blank')
|
this.open = window.open(routeData.href, '_blank')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,40 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog :visible.sync="visible" :fullscreen="true" :close-on-click-modal="false" :before-close="beforeClose"
|
||||||
:visible.sync="visible"
|
:append-to-body="true" class="uploadDicomAndNonedicom">
|
||||||
:fullscreen="true"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:before-close="beforeClose"
|
|
||||||
:append-to-body="true"
|
|
||||||
class="uploadDicomAndNonedicom"
|
|
||||||
>
|
|
||||||
<span slot="title">{{ title }}</span>
|
<span slot="title">{{ title }}</span>
|
||||||
<el-tabs type="border-card" v-model="activeName">
|
<el-tabs type="border-card" v-model="activeName">
|
||||||
<el-tab-pane
|
<el-tab-pane :label="$t('uploadDicomAndNonedicom:label:dicom')" name="dicom">
|
||||||
:label="$t('uploadDicomAndNonedicom:label:dicom')"
|
<dicomFile v-if="activeName === 'dicom'" :SubjectId="SubjectId" :SubjectCode="SubjectCode"
|
||||||
name="dicom"
|
:Criterion="Criterion" :TaskId="VisitTaskId" :isUpload.sync="isUpload"
|
||||||
>
|
:isReadingTaskViewInOrder="isReadingTaskViewInOrder" :IsImageSegment="IsImageSegment" />
|
||||||
<dicomFile
|
|
||||||
v-if="activeName === 'dicom'"
|
|
||||||
:SubjectId="SubjectId"
|
|
||||||
:SubjectCode="SubjectCode"
|
|
||||||
:Criterion="Criterion"
|
|
||||||
:TaskId="VisitTaskId"
|
|
||||||
:isUpload.sync="isUpload"
|
|
||||||
:isReadingTaskViewInOrder="isReadingTaskViewInOrder"
|
|
||||||
/>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane
|
<el-tab-pane :label="$t('uploadDicomAndNonedicom:label:nonedicom')" name="nonedicom">
|
||||||
:label="$t('uploadDicomAndNonedicom:label:nonedicom')"
|
<nonedicomFile v-if="activeName === 'nonedicom'" :SubjectId="SubjectId" :SubjectCode="SubjectCode"
|
||||||
name="nonedicom"
|
:Criterion="Criterion" :VisitTaskId="VisitTaskId" :isUpload.sync="isUpload"
|
||||||
>
|
:IsImageSegment="IsImageSegment" />
|
||||||
<nonedicomFile
|
|
||||||
v-if="activeName === 'nonedicom'"
|
|
||||||
:SubjectId="SubjectId"
|
|
||||||
:SubjectCode="SubjectCode"
|
|
||||||
:Criterion="Criterion"
|
|
||||||
:VisitTaskId="VisitTaskId"
|
|
||||||
:isUpload.sync="isUpload"
|
|
||||||
/>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -74,6 +51,10 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: 0,
|
default: 0,
|
||||||
},
|
},
|
||||||
|
IsImageSegment: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -84,6 +65,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.title = `Upload Images:${this.SubjectCode}(${this.Criterion.TrialReadingCriterionName})`
|
this.title = `Upload Images:${this.SubjectCode}(${this.Criterion.TrialReadingCriterionName})`
|
||||||
|
if (this.IsImageSegment) this.title = `Upload Images:${this.SubjectCode}`
|
||||||
store.dispatch('trials/setUnLock', true)
|
store.dispatch('trials/setUnLock', true)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -103,11 +85,13 @@ export default {
|
|||||||
::v-deep.el-tabs--left .el-tabs__header.is-left {
|
::v-deep.el-tabs--left .el-tabs__header.is-left {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uploadDicomAndNonedicom {
|
.uploadDicomAndNonedicom {
|
||||||
::v-deep.el-tabs--border-card > .el-tabs__header .el-tabs__item {
|
::v-deep.el-tabs--border-card>.el-tabs__header .el-tabs__item {
|
||||||
color: #909399;
|
color: #909399;
|
||||||
}
|
}
|
||||||
::v-deep.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
|
|
||||||
|
::v-deep.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
|
||||||
color: #428bca;
|
color: #428bca;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-right-color: #dcdfe6;
|
border-right-color: #dcdfe6;
|
||||||
|
|||||||
@@ -4,21 +4,31 @@
|
|||||||
<span>{{ $t('upload:nonedicom:title') }}</span>
|
<span>{{ $t('upload:nonedicom:title') }}</span>
|
||||||
<div class="tip">
|
<div class="tip">
|
||||||
<i class="el-icon-warning-outline"></i>
|
<i class="el-icon-warning-outline"></i>
|
||||||
<div v-html="$t('upload:nonedicom:tip:message')"></div>
|
<div v-html="$t('upload:nonedicom:tip:message').replace(
|
||||||
|
'xxx',
|
||||||
|
relationInfo.ImageFormatList.join('、')
|
||||||
|
)"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--检查列表-->
|
<!--检查列表 @sort-change="handleSortByColumn"-->
|
||||||
<el-table :data="list" style="width: 100%" v-adaptive="{ bottomOffset: 60 }" :loading="loading"
|
<el-table :data="list" style="width: 100%" v-adaptive="{ bottomOffset: 60 }" :loading="loading"
|
||||||
@sort-change="handleSortByColumn" :default-sort="{ prop: 'TaskBlindName', order: 'descending' }">
|
:default-sort="{ prop: 'TaskBlindName', order: 'descending' }">
|
||||||
<!--受试者-->
|
<!--受试者 sortable="custom"-->
|
||||||
<el-table-column prop="SubjectCode" :label="$t('upload:nonedicom:table:subject')" />
|
<el-table-column prop="SubjectCode" :label="$t('upload:nonedicom:table:subject')" />
|
||||||
|
<!--访视名称-->
|
||||||
|
<el-table-column prop="VisitName" :label="$t('upload:nonedicom:table:VisitName')" sortable
|
||||||
|
v-if="IsImageSegment" />
|
||||||
<!--任务名称-->
|
<!--任务名称-->
|
||||||
<el-table-column prop="TaskBlindName" :label="$t('upload:nonedicom:table:taskName')" sortable="custom" />
|
<el-table-column prop="TaskBlindName" :label="$t('upload:nonedicom:table:taskName')" sortable v-else />
|
||||||
<!--检查类型-->
|
<!--检查类型-->
|
||||||
<el-table-column prop="Modality" :label="$t('upload:nonedicom:table:molityType')" sortable="custom">
|
<el-table-column prop="Modality" :label="$t('upload:nonedicom:table:molityType')" sortable>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--检查部位-->
|
<!--检查部位-->
|
||||||
<el-table-column prop="BodyPart" :label="$t('upload:nonedicom:table:bodyPart')" sortable="custom" />
|
<el-table-column prop="BodyPart" :label="$t('upload:nonedicom:table:bodyPart')" sortable>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ getBodyPart(scope.row.BodyPart, scope.row.BodyPartForEditOther) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!--原文件数-->
|
<!--原文件数-->
|
||||||
<el-table-column prop="FileCount" :label="$t('upload:nonedicom:table:fileCount')">
|
<el-table-column prop="FileCount" :label="$t('upload:nonedicom:table:fileCount')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -124,7 +134,10 @@
|
|||||||
<!-- 多文件上传 -->
|
<!-- 多文件上传 -->
|
||||||
<form id="inputForm" ref="uploadForm">
|
<form id="inputForm" ref="uploadForm">
|
||||||
<el-divider content-position="left">{{
|
<el-divider content-position="left">{{
|
||||||
$t('trials:uploadNonDicoms:label:fileType')
|
$t('trials:uploadNonDicoms:label:fileType').replace(
|
||||||
|
'xxx',
|
||||||
|
relationInfo.ImageFormatList.join('、')
|
||||||
|
)
|
||||||
}}</el-divider>
|
}}</el-divider>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="upload" style="margin-right: 10px">
|
<div class="upload" style="margin-right: 10px">
|
||||||
@@ -215,8 +228,8 @@ let defaultSearchData = () => {
|
|||||||
SubjectId: null,
|
SubjectId: null,
|
||||||
TrialReadingCriterionId: null,
|
TrialReadingCriterionId: null,
|
||||||
SubjectCode: null,
|
SubjectCode: null,
|
||||||
Asc: false,
|
// Asc: false,
|
||||||
SortField: 'TaskBlindName',
|
// SortField: 'TaskBlindName',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
@@ -244,6 +257,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
IsImageSegment: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -262,6 +279,10 @@ export default {
|
|||||||
currentRow: {},
|
currentRow: {},
|
||||||
studyMonitorId: null,
|
studyMonitorId: null,
|
||||||
open: null,
|
open: null,
|
||||||
|
BodyPart: {},
|
||||||
|
relationInfo: {
|
||||||
|
ImageFormatList: []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -289,7 +310,8 @@ export default {
|
|||||||
store.dispatch('trials/setUnLock', this.btnLoading)
|
store.dispatch('trials/setUnLock', this.btnLoading)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
async created() {
|
||||||
|
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
@@ -305,11 +327,22 @@ export default {
|
|||||||
if (this.VisitTaskId) {
|
if (this.VisitTaskId) {
|
||||||
this.searchData.VisitTaskId = this.VisitTaskId
|
this.searchData.VisitTaskId = this.VisitTaskId
|
||||||
}
|
}
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
this.searchData.IsImageSegmentLabel = true
|
||||||
|
}
|
||||||
|
else if (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20) {
|
||||||
|
this.searchData.IsImageSegmentLabel = false
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await getIRUploadTaskNoneDicomStudyList(this.searchData)
|
let res = await getIRUploadTaskNoneDicomStudyList(this.searchData)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.list = res.Result
|
this.list = res.Result
|
||||||
|
this.relationInfo = res.OtherInfo
|
||||||
|
this.faccept = []
|
||||||
|
this.relationInfo.ImageFormatList.forEach((item) => {
|
||||||
|
this.faccept.push(`.${item}`)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -473,16 +506,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 排序
|
// 排序
|
||||||
handleSortByColumn(column) {
|
// handleSortByColumn(column) {
|
||||||
if (column.order === 'ascending') {
|
// if (column.order === 'ascending') {
|
||||||
this.searchData.Asc = true
|
// this.searchData.Asc = true
|
||||||
} else {
|
// } else {
|
||||||
this.searchData.Asc = false
|
// this.searchData.Asc = false
|
||||||
}
|
// }
|
||||||
this.searchData.SortField = column.prop
|
// this.searchData.SortField = column.prop
|
||||||
this.searchData.PageIndex = 1
|
// this.searchData.PageIndex = 1
|
||||||
this.getList()
|
// this.getList()
|
||||||
},
|
// },
|
||||||
// 获取待上传文件信息
|
// 获取待上传文件信息
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.selectArr = selection
|
this.selectArr = selection
|
||||||
@@ -528,9 +561,15 @@ export default {
|
|||||||
let file = this.fileList.filter((item) => item.id === arr[index].id)[0]
|
let file = this.fileList.filter((item) => item.id === arr[index].id)[0]
|
||||||
file.status = 1
|
file.status = 1
|
||||||
let path = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId
|
let path = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId
|
||||||
}/${this.currentRow.VisitTaskId}/${this.$guid()}${file.name
|
}/${this.currentRow.SourceSubjectVisitId}/${this.currentRow.VisitTaskId}/${this.$guid()}${file.name
|
||||||
.substring(file.name.lastIndexOf('.'))
|
.substring(file.name.lastIndexOf('.'))
|
||||||
.toLocaleLowerCase()}`
|
.toLocaleLowerCase()}`
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
path = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId
|
||||||
|
}/${this.currentRow.SourceSubjectVisitId}/AnnotationImage/${this.currentRow.VisitTaskId}/${this.$guid()}${file.name
|
||||||
|
.substring(file.name.lastIndexOf('.'))
|
||||||
|
.toLocaleLowerCase()}`
|
||||||
|
}
|
||||||
file.curPath = path
|
file.curPath = path
|
||||||
const fileData = await this.fileToBlob(file.file)
|
const fileData = await this.fileToBlob(file.file)
|
||||||
let res = await this.fileToOss(path, fileData, file)
|
let res = await this.fileToOss(path, fileData, file)
|
||||||
@@ -614,6 +653,9 @@ export default {
|
|||||||
params.RecordPath = RecordPath.path
|
params.RecordPath = RecordPath.path
|
||||||
params.FailedFileCount = RecordPath.Record.Failed.length
|
params.FailedFileCount = RecordPath.Record.Failed.length
|
||||||
}
|
}
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
params.IsImageSegmentLabel = true
|
||||||
|
}
|
||||||
uploadNoneDicomFile(params)
|
uploadNoneDicomFile(params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (!isReLoad) {
|
if (!isReLoad) {
|
||||||
@@ -652,7 +694,10 @@ export default {
|
|||||||
})
|
})
|
||||||
let text = JSON.stringify(Record)
|
let text = JSON.stringify(Record)
|
||||||
let logJsonBlob = this.generateTxtFile(text)
|
let logJsonBlob = this.generateTxtFile(text)
|
||||||
let logJsonObjectName = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId}/${this.currentRow.VisitTaskId}/${this.studyMonitorId}.txt`
|
let logJsonObjectName = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId}/${this.currentRow.SourceSubjectVisitId}/${this.currentRow.VisitTaskId}/${this.studyMonitorId}.txt`
|
||||||
|
if (this.IsImageSegment) {
|
||||||
|
logJsonObjectName = `/${this.$route.query.trialId}/TaskImage/${this.currentRow.SubjectId}/${this.currentRow.SourceSubjectVisitId}/AnnotationImage/${this.currentRow.VisitTaskId}/${this.studyMonitorId}.txt`
|
||||||
|
}
|
||||||
let logRes
|
let logRes
|
||||||
try {
|
try {
|
||||||
logRes = await this.OSSclient.put(logJsonObjectName, logJsonBlob)
|
logRes = await this.OSSclient.put(logJsonObjectName, logJsonBlob)
|
||||||
@@ -674,6 +719,26 @@ export default {
|
|||||||
let blob = new Blob(['\ufeff', text], { type: 'text/plain' })
|
let blob = new Blob(['\ufeff', text], { type: 'text/plain' })
|
||||||
return blob
|
return blob
|
||||||
},
|
},
|
||||||
|
getBodyPart(bodyPart, other) {
|
||||||
|
if (!bodyPart && !other) return ''
|
||||||
|
var separator = ','
|
||||||
|
if (bodyPart.indexOf('|') > -1) {
|
||||||
|
separator = '|'
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
}
|
||||||
|
var arr = bodyPart.split(separator)
|
||||||
|
var newArr = arr.map((i) => {
|
||||||
|
return this.$fd('Bodypart', i.trim(), 'Code', this.BodyPart, 'Name')
|
||||||
|
})
|
||||||
|
if (other) {
|
||||||
|
newArr.push(other)
|
||||||
|
}
|
||||||
|
newArr = newArr.filter(Boolean)
|
||||||
|
return newArr.join(' | ')
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,120 +2,54 @@
|
|||||||
<div v-if="model_cfg.visible">
|
<div v-if="model_cfg.visible">
|
||||||
<base-model :config="model_cfg">
|
<base-model :config="model_cfg">
|
||||||
<div slot="dialog-body">
|
<div slot="dialog-body">
|
||||||
|
<el-button v-if="!isUpload && !isDownload" type='primary' size="small" style="float:right;" @click="preview">
|
||||||
|
{{ $t("common:button:preview") }}
|
||||||
|
</el-button>
|
||||||
<el-table :data="modelList" style="width: 100%" height="300">
|
<el-table :data="modelList" style="width: 100%" height="300">
|
||||||
<!--检查编号-->
|
<!--检查编号-->
|
||||||
<el-table-column
|
<el-table-column prop="StudyCode" :label="$t('trials:uploadImage:table:StudyCode')" />
|
||||||
prop="StudyCode"
|
|
||||||
:label="$t('trials:uploadImage:table:StudyCode')"
|
|
||||||
/>
|
|
||||||
<!--检查类型-->
|
<!--检查类型-->
|
||||||
<el-table-column
|
<el-table-column prop="ModalityForEdit" :label="$t('trials:uploadImage:table:ModalityForEdit')"
|
||||||
prop="ModalityForEdit"
|
v-if="IsDicom" />
|
||||||
:label="$t('trials:uploadImage:table:ModalityForEdit')"
|
|
||||||
v-if="IsDicom"
|
|
||||||
/>
|
|
||||||
<!--检查模态-->
|
<!--检查模态-->
|
||||||
<el-table-column
|
<el-table-column prop="Modalities" :label="$t('trials:uploadImage:table:Modalities')" v-if="IsDicom" />
|
||||||
prop="Modalities"
|
|
||||||
:label="$t('trials:uploadImage:table:Modalities')"
|
|
||||||
v-if="IsDicom"
|
|
||||||
/>
|
|
||||||
<!--检查部位-->
|
<!--检查部位-->
|
||||||
<el-table-column
|
<el-table-column prop="BodyPartForEdit" :label="$t('trials:uploadImage:table:BodyPartForEdit')"
|
||||||
prop="BodyPartForEdit"
|
v-if="IsDicom">
|
||||||
:label="$t('trials:uploadImage:table:BodyPartForEdit')"
|
|
||||||
v-if="IsDicom"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{
|
<span>{{ getBodyPart(scope.row.BodyPartForEdit, scope.row.BodyPartForEditOther) }}</span>
|
||||||
$fd(
|
|
||||||
'Bodypart',
|
|
||||||
scope.row.BodyPartForEdit,
|
|
||||||
'Code',
|
|
||||||
{ Bodypart: bodyPart },
|
|
||||||
'Name'
|
|
||||||
)
|
|
||||||
}}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--序列数量-->
|
<!--序列数量-->
|
||||||
<el-table-column
|
<el-table-column prop="ReadingSeriesCount" :label="$t('trials:uploadImage:table:SeriesCount')"
|
||||||
prop="ReadingSeriesCount"
|
v-if="IsDicom" />
|
||||||
:label="$t('trials:uploadImage:table:SeriesCount')"
|
|
||||||
v-if="IsDicom"
|
|
||||||
/>
|
|
||||||
<!--图像数量-->
|
<!--图像数量-->
|
||||||
<el-table-column
|
<el-table-column prop="ReadingInstanceCount" :label="$t('trials:uploadImage:table:InstanceCount')"
|
||||||
prop="ReadingInstanceCount"
|
v-if="IsDicom" />
|
||||||
:label="$t('trials:uploadImage:table:InstanceCount')"
|
|
||||||
v-if="IsDicom"
|
|
||||||
/>
|
|
||||||
<!--检查时间-->
|
<!--检查时间-->
|
||||||
<el-table-column
|
<el-table-column prop="StudyTime" :label="$t('trials:uploadImage:table:StudyTime')" v-if="IsDicom"
|
||||||
prop="StudyTime"
|
min-width="130" />
|
||||||
:label="$t('trials:uploadImage:table:StudyTime')"
|
|
||||||
v-if="IsDicom"
|
|
||||||
min-width="130"
|
|
||||||
/>
|
|
||||||
<!--检查模态-->
|
<!--检查模态-->
|
||||||
<el-table-column
|
<el-table-column prop="Modality" :label="$t('trials:uploadImage:table:Modalities')" v-if="!IsDicom" />
|
||||||
prop="Modality"
|
|
||||||
:label="$t('trials:uploadImage:table:Modalities')"
|
|
||||||
v-if="!IsDicom"
|
|
||||||
/>
|
|
||||||
<!--检查部位-->
|
<!--检查部位-->
|
||||||
<el-table-column
|
<el-table-column prop="BodyPart" :label="$t('trials:uploadImage:table:BodyPartForEdit')" v-if="!IsDicom">
|
||||||
prop="BodyPart"
|
|
||||||
:label="$t('trials:uploadImage:table:BodyPartForEdit')"
|
|
||||||
v-if="!IsDicom"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{
|
<span>{{ getBodyPart(scope.row.BodyPart, scope.row.BodyPartForEditOther) }}</span>
|
||||||
$fd(
|
|
||||||
'Bodypart',
|
|
||||||
scope.row.BodyPart,
|
|
||||||
'Code',
|
|
||||||
{ Bodypart: bodyPart },
|
|
||||||
'Name'
|
|
||||||
)
|
|
||||||
}}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--文件数量-->
|
<!--文件数量-->
|
||||||
<el-table-column
|
<el-table-column prop="ReadingFileCount" :label="$t('trials:uploadImage:table:FileCount')" v-if="!IsDicom" />
|
||||||
prop="ReadingFileCount"
|
|
||||||
:label="$t('trials:uploadImage:table:FileCount')"
|
|
||||||
v-if="!IsDicom"
|
|
||||||
/>
|
|
||||||
<!--检查时间-->
|
<!--检查时间-->
|
||||||
<el-table-column
|
<el-table-column prop="ImageDate" :label="$t('trials:uploadImage:table:StudyTime')" v-if="!IsDicom"
|
||||||
prop="ImageDate"
|
min-width="130" />
|
||||||
:label="$t('trials:uploadImage:table:StudyTime')"
|
<el-table-column :label="$t('common:action:action')" fixed="right" width="80" v-if="isUpload">
|
||||||
v-if="!IsDicom"
|
|
||||||
min-width="130"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
:label="$t('common:action:action')"
|
|
||||||
fixed="right"
|
|
||||||
width="80"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!--预览--->
|
<!--预览--->
|
||||||
<el-button
|
<!-- <el-button circle icon="el-icon-view" :title="$t('trials:uploadImage:button:preview')" v-if="!isUpload"
|
||||||
circle
|
@click.stop="preview(scope.row)" /> -->
|
||||||
icon="el-icon-view"
|
|
||||||
:title="$t('trials:uploadImage:button:preview')"
|
|
||||||
v-if="!isUpload"
|
|
||||||
@click.stop="preview(scope.row)"
|
|
||||||
/>
|
|
||||||
<!--编辑--->
|
<!--编辑--->
|
||||||
<el-button
|
<el-button circle icon="el-icon-edit-outline" :title="$t('trials:uploadImage:button:edit')"
|
||||||
circle
|
@click.stop="openEdit(scope.row)" />
|
||||||
icon="el-icon-edit-outline"
|
|
||||||
:title="$t('trials:uploadImage:button:edit')"
|
|
||||||
v-else
|
|
||||||
@click.stop="openEdit(scope.row)"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -124,42 +58,20 @@
|
|||||||
<!--新增检查部位-->
|
<!--新增检查部位-->
|
||||||
<base-model v-if="editModality_model.visible" :config="editModality_model">
|
<base-model v-if="editModality_model.visible" :config="editModality_model">
|
||||||
<template slot="dialog-body">
|
<template slot="dialog-body">
|
||||||
<el-form
|
<el-form ref="editModalityform" :inline="true" :model="form" class="demo-form-inline" :rules="rules">
|
||||||
ref="editModalityform"
|
<el-form-item :label="$t('trials:uploadImage:form:ModalityForEdit')" prop="Modality" label-width="150px">
|
||||||
:inline="true"
|
|
||||||
:model="form"
|
|
||||||
class="demo-form-inline"
|
|
||||||
:rules="rules"
|
|
||||||
>
|
|
||||||
<el-form-item
|
|
||||||
:label="$t('trials:uploadImage:form:ModalityForEdit')"
|
|
||||||
prop="Modality"
|
|
||||||
label-width="150px"
|
|
||||||
>
|
|
||||||
<el-select v-model="form.Modality" placeholder="">
|
<el-select v-model="form.Modality" placeholder="">
|
||||||
<el-option
|
<el-option v-for="item in TrialModality" :key="item" :label="item" :value="item">
|
||||||
v-for="item in TrialModality"
|
|
||||||
:key="item"
|
|
||||||
:label="item"
|
|
||||||
:value="item"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="dialog-footer">
|
<template slot="dialog-footer">
|
||||||
<el-button
|
<el-button type="primary" @click="updateTaskStudyModality" :loading="loading">
|
||||||
type="primary"
|
|
||||||
@click="updateTaskStudyModality"
|
|
||||||
:loading="loading"
|
|
||||||
>
|
|
||||||
{{ $t('common:button:confirm') }}
|
{{ $t('common:button:confirm') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button @click="editModality_model.visible = false" :loading="loading">
|
||||||
@click="editModality_model.visible = false"
|
|
||||||
:loading="loading"
|
|
||||||
>
|
|
||||||
{{ $t('common:button:cancel') }}
|
{{ $t('common:button:cancel') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -180,9 +92,9 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
bodyPart: {
|
bodyPart: {
|
||||||
type: Array,
|
type: Object,
|
||||||
default: () => {
|
default: () => {
|
||||||
return []
|
return {}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
modelList: {
|
modelList: {
|
||||||
@@ -200,16 +112,33 @@ export default {
|
|||||||
visitTaskId: {
|
visitTaskId: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
subjectVisitId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
IsDicom: {
|
IsDicom: {
|
||||||
required: true,
|
required: true,
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
isUpload: {
|
isUpload: {
|
||||||
required: true,
|
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
IsImageSegment: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
isDownload: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
Criterion: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'base-model': baseModel,
|
'base-model': baseModel,
|
||||||
@@ -236,6 +165,7 @@ export default {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
|
BodyPart: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -244,15 +174,23 @@ export default {
|
|||||||
let routeData = null
|
let routeData = null
|
||||||
if (this.IsDicom) {
|
if (this.IsDicom) {
|
||||||
var token = getToken()
|
var token = getToken()
|
||||||
|
let trialId = this.$route.query.trialId
|
||||||
routeData = this.$router.resolve({
|
routeData = this.$router.resolve({
|
||||||
path: `/showdicom?studyId=${row.Id}&TokenKey=${token}&type=Study&visitTaskId=${this.visitTaskId}&isReading=true`,
|
path: `/showvisitdicoms?trialId=${trialId}&visitTaskId=${this.visitTaskId}&subjectVisitId=${this.subjectVisitId}&isReading=1&TokenKey=${token}`,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let trialId = this.$route.query.trialId
|
let trialId = this.$route.query.trialId
|
||||||
var token = getToken()
|
var token = getToken()
|
||||||
routeData = this.$router.resolve({
|
if (!this.IsImageSegment && (this.Criterion.CriterionType == 19 || this.Criterion.CriterionType == 20)) {
|
||||||
path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${row.SourceSubjectVisitId}&studyId=${row.Id}&TokenKey=${token}&isReading=true`,
|
routeData = this.$router.resolve({
|
||||||
})
|
path: `/showNoneDicoms?trialId=${trialId}&isImageSegmentLabel=${false}&visitTaskId=${this.visitTaskId}&subjectVisitId=${this.subjectVisitId}&TokenKey=${token}&isReading=true`,
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
routeData = this.$router.resolve({
|
||||||
|
path: `/showNoneDicoms?trialId=${trialId}&visitTaskId=${this.visitTaskId}&subjectVisitId=${this.subjectVisitId}&TokenKey=${token}&isReading=true`,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
window.open(routeData.href, '_blank')
|
window.open(routeData.href, '_blank')
|
||||||
},
|
},
|
||||||
@@ -284,8 +222,28 @@ export default {
|
|||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getBodyPart(bodyPart, other) {
|
||||||
|
if (!bodyPart && !other) return ''
|
||||||
|
var separator = ','
|
||||||
|
if (bodyPart.indexOf('|') > -1) {
|
||||||
|
separator = '|'
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
}
|
||||||
|
var arr = bodyPart.split(separator)
|
||||||
|
console.log(this.bodyPart)
|
||||||
|
var newArr = arr.map((i) => {
|
||||||
|
return this.$fd('Bodypart', i.trim(), 'Code', this.bodyPart, 'Name')
|
||||||
|
})
|
||||||
|
if (other) {
|
||||||
|
newArr.push(other)
|
||||||
|
}
|
||||||
|
newArr = newArr.filter(Boolean)
|
||||||
|
return newArr.join(' | ')
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped></style>
|
||||||
</style>
|
|
||||||
@@ -32,7 +32,7 @@ export default {
|
|||||||
ResetImageQualityControlQuestion: 112, // 重置影像质控问题
|
ResetImageQualityControlQuestion: 112, // 重置影像质控问题
|
||||||
CreateReviewTask: 113, // 生成复核任务
|
CreateReviewTask: 113, // 生成复核任务
|
||||||
ReviewImageQualityControlQuestion: 219, // 复核质控问题
|
ReviewImageQualityControlQuestion: 219, // 复核质控问题
|
||||||
|
CorrectImageExaminationInformation: 220, // 更正影像检查信息
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762494352859" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22987" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M896 832a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192a128 128 0 0 1 128-128h512a128 128 0 0 1 128 128v640zM192 768v64a64 64 0 0 0 56.512 63.552L256 896h512a64 64 0 0 0 63.552-56.512L832 832v-64H192z m448-640H512v206.912l64-38.4 64 38.464V128z m-448 576h640V192a64 64 0 0 0-56.512-63.552L768 128h-64v263.488a32 32 0 0 1-48.448 27.456L576 371.2l-79.552 47.744A32 32 0 0 1 448 391.424V128H256a64 64 0 0 0-63.552 56.512L192 192v512z" fill="#e6e6e6" p-id="22988"></path></svg>
|
||||||
|
After Width: | Height: | Size: 812 B |
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1766048712120" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6026" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M924.520311 484.074997c7.439436 0 13.884218 2.726088 19.336394 8.16496 5.437849 5.452175 8.16496 11.897981 8.16496 19.336394 0 7.452739-2.726088 13.898545-8.16496 19.336394-5.452175 5.452175-11.897981 8.16496-19.336394 8.16496l-83.363639 0c-3.437286 40.110533-13.617136 77.777411-30.508851 113.012913-16.906042 35.236526-38.673811 66.175165-65.315588 92.816942s-57.58144 48.422849-92.816942 65.315588c-35.236526 16.906042-72.915683 26.790156-113.012913 29.650297l0 84.223217c0 7.439436-2.726088 13.884218-8.16496 19.336394-5.451152 5.437849-11.896958 8.16496-19.336394 8.16496-7.452739 0-13.898545-2.726088-19.336394-8.16496-5.452175-5.452175-8.16496-11.897981-8.16496-19.336394l0-84.223217c-40.110533-2.860141-77.777411-12.743232-113.012913-29.650297-35.236526-16.892739-66.175165-38.673811-92.816942-65.315588s-48.422849-57.58144-65.315588-92.816942c-16.906042-35.236526-27.071565-72.90238-30.508851-113.012913L99.479689 539.077705c-7.452739 0-13.898545-2.711761-19.336394-8.16496-5.452175-5.437849-8.16496-11.883655-8.16496-19.336394 0-7.439436 2.712785-13.884218 8.16496-19.336394 5.437849-5.437849 11.883655-8.16496 19.336394-8.16496l83.363639 0c3.437286-40.09723 13.602809-77.777411 30.508851-113.012913 16.892739-35.236526 38.673811-66.175165 65.315588-92.816942s57.58144-48.409546 92.816942-65.315588c35.236526-16.892739 72.90238-26.77583 113.012913-29.650297L484.497623 99.05604c0-7.439436 2.712785-13.885242 8.16496-19.336394 5.437849-5.437849 11.883655-8.16496 19.336394-8.16496 7.440459 0 13.885242 2.726088 19.336394 8.16496 5.437849 5.452175 8.16496 11.896958 8.16496 19.336394l0 84.223217c40.098253 2.874467 77.777411 12.757558 113.012913 29.650297 35.236526 16.906042 66.175165 38.673811 92.816942 65.315588s48.409546 57.58144 65.315588 92.816942c16.892739 35.236526 27.071565 72.916706 30.508851 113.012913L924.520311 484.074997zM484.498646 238.281965c-32.657794 2.874467-63.167668 11.320836-91.527576 25.352411-28.360931 14.046924-53.431933 31.946596-75.198679 53.713342-21.781072 21.781072-39.680744 46.837748-53.713342 75.198679-14.045901 28.360931-22.49227 58.869782-25.352411 91.527576L484.498646 484.073974 484.498646 238.281965zM238.70459 539.077705c2.860141 32.657794 11.30651 63.166645 25.352411 91.527576 14.032598 28.360931 31.933293 53.431933 53.713342 75.198679 21.766746 21.781072 46.837748 39.680744 75.198679 53.713342 28.360931 14.046924 58.869782 22.49227 91.527576 25.352411L484.496599 539.077705 238.70459 539.077705zM539.501354 484.074997l245.793032 0c-2.874467-32.657794-11.320836-63.167668-25.352411-91.527576-14.046924-28.360931-31.946596-53.417607-53.713342-75.198679-21.780049-21.766746-46.837748-39.667441-75.198679-53.713342-28.360931-14.032598-58.869782-22.478967-91.527576-25.352411L539.502377 484.074997zM539.501354 784.870738c32.657794-2.860141 63.167668-11.30651 91.527576-25.352411 28.360931-14.032598 53.41863-31.93227 75.198679-53.713342 21.766746-21.766746 39.667441-46.837748 53.713342-75.198679 14.032598-28.360931 22.478967-58.869782 25.352411-91.527576L539.501354 539.078729 539.501354 784.870738z" p-id="6027" fill="#ffffff"></path></svg>
|
||||||
|
After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 5.2 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762485648235" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10985" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M543.378286 515.949714V104.521143a31.451429 31.451429 0 0 0-62.976 0v411.501714a125.44 125.44 0 0 0 0.292571 242.834286 31.670857 31.670857 0 0 0-0.292571 3.949714v156.745143a31.451429 31.451429 0 0 0 62.902857 0v-156.745143a31.597714 31.597714 0 0 0-0.219429-3.876571 125.513143 125.513143 0 0 0 0.292572-242.980572z m12.946285 165.814857a62.683429 62.683429 0 1 1-88.649142-88.722285 62.683429 62.683429 0 0 1 88.649142 88.722285zM229.522286 202.459429a31.597714 31.597714 0 0 0 0.292571-3.949715V104.594286a31.305143 31.305143 0 1 0-62.610286 0v93.988571c0 1.389714 0 2.706286 0.146286 4.022857a125.44 125.44 0 0 0 0 242.907429 31.670857 31.670857 0 0 0-0.146286 3.876571v470.235429a31.305143 31.305143 0 1 0 62.610286 0V449.316571a31.597714 31.597714 0 0 0-0.292571-3.803428 125.44 125.44 0 0 0 0-243.053714z m13.312 165.888a62.683429 62.683429 0 1 1-88.649143-88.722286 62.683429 62.683429 0 0 1 88.649143 88.722286zM950.857143 324.022857c0-58.587429-40.228571-107.739429-94.500572-121.563428a31.670857 31.670857 0 0 0 0.146286-3.949715V104.594286a31.305143 31.305143 0 0 0-62.610286 0v93.988571c0 1.389714 0.146286 2.706286 0.292572 4.022857a125.44 125.44 0 0 0 0 242.907429 31.670857 31.670857 0 0 0-0.292572 3.949714v470.162286a31.305143 31.305143 0 1 0 62.610286 0V449.389714c0-1.316571 0-2.56-0.146286-3.876571A125.513143 125.513143 0 0 0 950.857143 324.022857z m-81.042286 44.324572a62.683429 62.683429 0 1 1-88.649143-88.722286 62.683429 62.683429 0 0 1 88.649143 88.722286z" p-id="10986" fill="#e6e6e6"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1764830990216" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5566" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M192 170.666667a21.333333 21.333333 0 0 0-21.333333 21.333333v640a21.333333 21.333333 0 0 0 21.333333 21.333333h640a21.333333 21.333333 0 0 0 21.333333-21.333333v-640a21.333333 21.333333 0 0 0-21.333333-21.333333h-640zM85.333333 192A106.666667 106.666667 0 0 1 192 85.333333h640A106.666667 106.666667 0 0 1 938.666667 192v640a106.666667 106.666667 0 0 1-106.666667 106.666667h-640A106.666667 106.666667 0 0 1 85.333333 832v-640z" fill="#ffffff" p-id="5567"></path><path d="M173.653333 170.666667c-1.621333 5.034667-2.986667 12.373333-2.986666 21.333333v640c0 8.96 1.365333 16.298667 2.986666 21.333333h292.693334c1.621333-5.034667 2.986667-12.373333 2.986666-21.333333v-640c0-8.96-1.365333-16.298667-2.986666-21.333333H173.653333zM99.157333 127.658667C107.306667 111.530667 126.293333 85.333333 160 85.333333h320c33.706667 0 52.736 26.197333 60.8 42.325334 9.301333 18.688 13.866667 41.472 13.866667 64.341333v640c0 22.869333-4.565333 45.653333-13.866667 64.341333-8.106667 16.128-27.093333 42.325333-60.8 42.325334h-320c-33.706667 0-52.736-26.197333-60.8-42.325334C89.856 877.653333 85.333333 854.869333 85.333333 832v-640c0-22.869333 4.522667-45.653333 13.866667-64.341333z" fill="#ffffff" p-id="5568"></path><path d="M170.666667 170.666667v298.666666h298.666666V170.666667H170.666667z m-85.333334-10.666667C85.333333 118.784 118.784 85.333333 160 85.333333h320c41.216 0 74.666667 33.450667 74.666667 74.666667v320A74.666667 74.666667 0 0 1 480 554.666667h-320A74.666667 74.666667 0 0 1 85.333333 480v-320z" fill="#ffffff" p-id="5569"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763446648844" class="icon" viewBox="0 0 1321 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3570" xmlns:xlink="http://www.w3.org/1999/xlink" width="258.0078125" height="200"><path d="M1187.981 845.871H200.885V120.065C200.885 91.032 177.659 62 142.82 62s-58.064 23.226-58.064 58.065v783.87c0 29.033 23.225 58.065 58.064 58.065h1045.161c29.033 0 58.065-23.226 58.065-58.065s-29.032-58.064-58.065-58.064z" fill="#1296db" p-id="3571"></path><path d="M287.981 317.484L555.078 485.87c11.613 5.806 17.42 5.806 29.032 5.806 17.42 0 34.84-5.806 46.452-23.225l185.806-255.484 191.613 145.161c23.226 17.42 58.065 11.613 75.484-11.613 17.42-23.226 11.613-58.064-11.613-75.484L839.594 96.84c-23.226-17.42-58.064-11.613-75.484 11.613L572.497 363.935 346.046 224.581c-23.226-17.42-58.065-5.807-75.484 17.419s-5.806 58.065 17.42 75.484z m29.033 505.161c29.032 0 58.064-23.226 58.064-58.064V532.323c0-29.033-23.226-58.065-58.064-58.065s-58.065 23.226-58.065 58.065v238.064c5.807 29.032 29.032 52.258 58.065 52.258zM502.82 619.42v150.968c0 29.032 23.226 58.065 58.065 58.065s58.064-23.226 58.064-58.065V619.42c0-29.032-23.226-58.064-58.064-58.064s-58.065 29.032-58.065 58.064z" fill="#1296db" p-id="3572"></path><path d="M740.885 416.194v354.193c0 29.032 23.225 58.065 58.064 58.065s58.065-23.226 58.065-58.065V416.194c0-29.033-23.226-58.065-58.065-58.065s-58.064 29.032-58.064 58.065z m296.129 92.903c-29.033 0-58.065 23.226-58.065 58.064v203.226c0 29.032 23.226 58.065 58.065 58.065s58.064-23.226 58.064-58.065V567.161c0-29.032-29.032-58.064-58.064-58.064z" fill="#1296db" p-id="3573"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -1608,7 +1608,7 @@ Enroll: Enrolled Confirmation`,
|
|||||||
'trials:notice:table:appendix': `Attachment`,
|
'trials:notice:table:appendix': `Attachment`,
|
||||||
'trials:notice:table:isRead': `Readed`,
|
'trials:notice:table:isRead': `Readed`,
|
||||||
'trials:notice:action:detail': `Details`,
|
'trials:notice:action:detail': `Details`,
|
||||||
'login:title:system': `IRC Imaging System`,
|
'login:title:system': `EIC lmaging Trial Management System`,
|
||||||
'login:form:userName': `User ID`,
|
'login:form:userName': `User ID`,
|
||||||
'login:form:password': `Password`,
|
'login:form:password': `Password`,
|
||||||
'login:button:login': `Login`,
|
'login:button:login': `Login`,
|
||||||
@@ -1672,7 +1672,7 @@ Enroll: Enrolled Confirmation`,
|
|||||||
'trials:tab:trials': `My Trials`,
|
'trials:tab:trials': `My Trials`,
|
||||||
'trials:trials:title:back': `Return`,
|
'trials:trials:title:back': `Return`,
|
||||||
'trials:trials:title:backTrialList': `Return to trial list`,
|
'trials:trials:title:backTrialList': `Return to trial list`,
|
||||||
'trials:trials:title:eics': `IRC Imaging System`,
|
'trials:trials:title:eics': `EIC lmaging Trial Management System`,
|
||||||
'trials:tab:reading': `Reads`,
|
'trials:tab:reading': `Reads`,
|
||||||
'trials:tab:pendingReadingTasks': `Pending`,
|
'trials:tab:pendingReadingTasks': `Pending`,
|
||||||
'trials:pendingReadingTasks:table:subjectCode': `Subject ID`,
|
'trials:pendingReadingTasks:table:subjectCode': `Subject ID`,
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ export default {
|
|||||||
.right-menu {
|
.right-menu {
|
||||||
// float: right;
|
// float: right;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
line-height: 50px;
|
line-height: 65px;
|
||||||
// position: relative;
|
// position: relative;
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
@@ -3,14 +3,16 @@
|
|||||||
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow">
|
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow">
|
||||||
<app-link v-if="!onlyOneChild.hidden" :to="resolvePath(onlyOneChild.path)">
|
<app-link v-if="!onlyOneChild.hidden" :to="resolvePath(onlyOneChild.path)">
|
||||||
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}" @click="handleClick(onlyOneChild.meta.title)">
|
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}" @click="handleClick(onlyOneChild.meta.title)">
|
||||||
<item :icon="onlyOneChild.meta ? (onlyOneChild.meta.icon||(item.meta&&item.meta.icon)) : null" :title="onlyOneChild.meta ? onlyOneChild.meta.title : null" />
|
<!-- :title="onlyOneChild.meta ? onlyOneChild.meta.title : null" -->
|
||||||
|
<item :icon="onlyOneChild.meta ? (onlyOneChild.meta.icon||(item.meta&&item.meta.icon)) : null" :title="onlyOneChild.meta.i18n ? $t(onlyOneChild.meta.i18n) : null" />
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</app-link>
|
</app-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-submenu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body>
|
<el-submenu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.title" />
|
<!-- :title="item.meta.title" -->
|
||||||
|
<item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.i18n ? $t(item.meta.i18n) : null" />
|
||||||
</template>
|
</template>
|
||||||
<sidebar-item
|
<sidebar-item
|
||||||
v-for="child in item.children"
|
v-for="child in item.children"
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dropdown
|
<el-dropdown
|
||||||
style="height:50px;line-height: 60px;"
|
style="height:50px;line-height: 65px;"
|
||||||
@command="handleSetLanguage"
|
@command="handleSetLanguage"
|
||||||
>
|
>
|
||||||
|
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
<svg-icon icon-class="language" style="font-size:25px;margin:0 10px;" />
|
<svg-icon icon-class="language" style="font-size:20px;margin:0 10px;" />
|
||||||
<!-- {{ language==='zh'?'语言:中文':'Language: English' }} -->
|
<!-- {{ language==='zh'?'语言:中文':'Language: English' }} -->
|
||||||
<!-- <i class="el-icon-arrow-down el-icon--right" /> -->
|
<!-- <i class="el-icon-arrow-down el-icon--right" /> -->
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -26,8 +26,9 @@ Vue.use(VueClipboard)
|
|||||||
import permission from './utils/permission'
|
import permission from './utils/permission'
|
||||||
Vue.use(permission)
|
Vue.use(permission)
|
||||||
|
|
||||||
import { formatSize } from "./utils"
|
import { formatSize, guidToColor } from "./utils"
|
||||||
Vue.prototype.$FormatSize = formatSize
|
Vue.prototype.$FormatSize = formatSize
|
||||||
|
Vue.prototype.$GuidToColor = guidToColor
|
||||||
|
|
||||||
import Viewer from 'v-viewer'
|
import Viewer from 'v-viewer'
|
||||||
import './assets/css/viewer.css'
|
import './assets/css/viewer.css'
|
||||||
@@ -61,6 +62,8 @@ import Onlyoffice from '@/components/Preview_onlyoffice/index'
|
|||||||
Vue.use(Onlyoffice)
|
Vue.use(Onlyoffice)
|
||||||
import Video from '@/components/Preview_video/index'
|
import Video from '@/components/Preview_video/index'
|
||||||
Vue.use(Video)
|
Vue.use(Video)
|
||||||
|
import AGR from '@/components/AGR/index'
|
||||||
|
Vue.use(AGR)
|
||||||
import MFA from '@/components/MFA/index'
|
import MFA from '@/components/MFA/index'
|
||||||
Vue.use(MFA)
|
Vue.use(MFA)
|
||||||
import FB from '@/components/feedBack/index'
|
import FB from '@/components/feedBack/index'
|
||||||
@@ -202,6 +205,7 @@ async function VueInit() {
|
|||||||
// 获取版本信息
|
// 获取版本信息
|
||||||
let PublishInfo = await getCurrentPublishInfo();
|
let PublishInfo = await getCurrentPublishInfo();
|
||||||
Vue.prototype.$version = PublishInfo.Result;
|
Vue.prototype.$version = PublishInfo.Result;
|
||||||
|
Vue.prototype.$companyInfo = PublishInfo.OtherInfo;
|
||||||
// 获取检查部位
|
// 获取检查部位
|
||||||
Vue.prototype.$getBodyPart = (id) => {
|
Vue.prototype.$getBodyPart = (id) => {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
@@ -275,6 +279,20 @@ async function VueInit() {
|
|||||||
}
|
}
|
||||||
return companyName;
|
return companyName;
|
||||||
}
|
}
|
||||||
|
Vue.prototype.$reg = () => {
|
||||||
|
if (localStorage.getItem('CompanyInfo')) {
|
||||||
|
let { EmailRegexStr } = JSON.parse(localStorage.getItem('CompanyInfo'))
|
||||||
|
if (EmailRegexStr) {
|
||||||
|
return { EmailRegexStr }
|
||||||
|
}
|
||||||
|
} else if (Vue.prototype.$companyInfo) {
|
||||||
|
let { EmailRegexStr } = Vue.prototype.$companyInfo
|
||||||
|
if (EmailRegexStr) {
|
||||||
|
return { EmailRegexStr }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return { EmailRegexStr: '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$' };
|
||||||
|
}
|
||||||
Vue.prototype.$updateDictionary = function () {
|
Vue.prototype.$updateDictionary = function () {
|
||||||
Vue.prototype.$d = function (code) {
|
Vue.prototype.$d = function (code) {
|
||||||
var dictInfo = res.Result
|
var dictInfo = res.Result
|
||||||
@@ -316,7 +334,7 @@ async function VueInit() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo'))
|
let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo'))
|
||||||
if (CompanyInfo && CompanyInfo.SystemShortName) {
|
if (CompanyInfo && CompanyInfo.SystemShortName && text.toUpperCase() !== "CIRCLE") {
|
||||||
let test = new RegExp('IRC', 'ig')
|
let test = new RegExp('IRC', 'ig')
|
||||||
text = text.replace(test, CompanyInfo.SystemShortName)
|
text = text.replace(test, CompanyInfo.SystemShortName)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,12 @@ export const constantRoutes = [
|
|||||||
name: 'emailRecompose',
|
name: 'emailRecompose',
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/user-recompose',
|
||||||
|
component: () => import('@/views/email-recompose/index'),
|
||||||
|
name: 'userRecompose',
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/joinVerify',
|
path: '/joinVerify',
|
||||||
component: () => import('@/views/joinVerify/index'),
|
component: () => import('@/views/joinVerify/index'),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
title: 'IRC Imaging System',
|
title: 'EIC lmaging Trial Management System',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean} true | false
|
* @type {boolean} true | false
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ const getters = {
|
|||||||
paymentHistoryQuery: state => state.financials.paymentHistoryQuery,
|
paymentHistoryQuery: state => state.financials.paymentHistoryQuery,
|
||||||
revenusQuery: state => state.financials.revenusQuery,
|
revenusQuery: state => state.financials.revenusQuery,
|
||||||
visitTaskList: state => state.reading.visitTaskList,
|
visitTaskList: state => state.reading.visitTaskList,
|
||||||
|
BodyPart: state => state.reading.BodyPart,
|
||||||
organList: state => state.reading.organList,
|
organList: state => state.reading.organList,
|
||||||
seriesStack: state => state.reading.seriesStack,
|
seriesStack: state => state.reading.seriesStack,
|
||||||
activeHangingAgreement: state => state.reading.activeHangingAgreement,
|
activeHangingAgreement: state => state.reading.activeHangingAgreement,
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ function filterAsyncRouter(asyncRouterMap = [], lastRouter = false, type = false
|
|||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
route.meta = eval('(' + route.Meta + ')')
|
route.meta = eval('(' + route.Meta + ')')
|
||||||
route.meta.icon = route.MenuIcon
|
route.meta.icon = route.MenuIcon
|
||||||
|
route.meta.i18n = route.LanguageMark
|
||||||
delete route.Meta
|
delete route.Meta
|
||||||
}
|
}
|
||||||
delete route.MenuIcon
|
delete route.MenuIcon
|
||||||
|
|||||||
@@ -32,13 +32,21 @@ const getDefaultState = () => {
|
|||||||
lastCanvasTaskId: '',
|
lastCanvasTaskId: '',
|
||||||
imageQuality: null,
|
imageQuality: null,
|
||||||
imageQualityIssues: null,
|
imageQualityIssues: null,
|
||||||
currentLoadIns: []
|
currentLoadIns: [],
|
||||||
|
BodyPart: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function getQuestions(questions) {
|
function getQuestions(questions) {
|
||||||
const criterionType = parseInt(localStorage.getItem('CriterionType'))
|
const criterionType = parseInt(localStorage.getItem('CriterionType'))
|
||||||
questions.forEach(item => {
|
questions.forEach(item => {
|
||||||
if ((item.Type === 'table' || item.Type === 'basicTable') && item.TableQuestions && item.TableQuestions.Answers.length > 0) {
|
if ((item.Type === 'table' || item.Type === 'basicTable') && item.TableQuestions && item.TableQuestions.Answers.length > 0) {
|
||||||
|
item.TableQuestions.Questions.forEach(question => {
|
||||||
|
if (question.Type === 'select' && question.OptionTypeEnum === 1) {
|
||||||
|
item.TableQuestions.Answers.forEach((answer) => {
|
||||||
|
answer[question.Id] = answer[question.Id] ? JSON.parse(answer[question.Id]) : []
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
item.TableQuestions.Answers.forEach(answerObj => {
|
item.TableQuestions.Answers.forEach(answerObj => {
|
||||||
answerObj.isDicomReading = answerObj.IsDicomReading === 'True'
|
answerObj.isDicomReading = answerObj.IsDicomReading === 'True'
|
||||||
|
|
||||||
@@ -171,6 +179,45 @@ function getQuestionAnswer(questions, questionMark, answers) {
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function getQuerys(e) {
|
||||||
|
if (!e) return "";
|
||||||
|
var t = {},
|
||||||
|
r = [],
|
||||||
|
n = "",
|
||||||
|
a = "";
|
||||||
|
try {
|
||||||
|
var i = [];
|
||||||
|
if (e.indexOf("?") >= 0 && (i = e.substring(e.indexOf("?") + 1, e.length).split("&")), i.length > 0) for (var o in i) n = (r = i[o].split("="))[0],
|
||||||
|
a = r[1],
|
||||||
|
t[n] = a
|
||||||
|
} catch (s) {
|
||||||
|
t = {}
|
||||||
|
}
|
||||||
|
return t
|
||||||
|
}
|
||||||
|
async function getBodyPart(bodyPart, other) {
|
||||||
|
if (!bodyPart && !other) return ''
|
||||||
|
var separator = ','
|
||||||
|
if (bodyPart.indexOf('|') > -1) {
|
||||||
|
separator = '|'
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
} else if (bodyPart.indexOf(',') > -1) {
|
||||||
|
separator = ','
|
||||||
|
}
|
||||||
|
let BodyPart = {}
|
||||||
|
let query = getQuerys(window.location.href)
|
||||||
|
BodyPart.Bodypart = await Vue.prototype.$getBodyPart(query.trialId)
|
||||||
|
var arr = bodyPart.split(separator)
|
||||||
|
var newArr = arr.map((i) => {
|
||||||
|
return Vue.prototype.$fd('Bodypart', i.trim(), 'Code', BodyPart, 'Name')
|
||||||
|
})
|
||||||
|
if (other) {
|
||||||
|
newArr.push(other)
|
||||||
|
}
|
||||||
|
newArr = newArr.filter(Boolean)
|
||||||
|
return newArr
|
||||||
|
}
|
||||||
// function getKeySeriesInfo(keyInstance, series) {
|
// function getKeySeriesInfo(keyInstance, series) {
|
||||||
// const obj = {}
|
// const obj = {}
|
||||||
// const set = new Set()
|
// const set = new Set()
|
||||||
@@ -850,6 +897,20 @@ const actions = {
|
|||||||
var studyList = []
|
var studyList = []
|
||||||
var keyImages = []
|
var keyImages = []
|
||||||
getReadingVisitStudyList(obj.trialId, obj.subjectVisitId, obj.visitTaskId).then(res => {
|
getReadingVisitStudyList(obj.trialId, obj.subjectVisitId, obj.visitTaskId).then(res => {
|
||||||
|
try {
|
||||||
|
state.BodyPart = []
|
||||||
|
res.Result.forEach(async item => {
|
||||||
|
let arr = await getBodyPart(item.BodyPartForEdit, item.BodyPartForEditOther)
|
||||||
|
state.BodyPart.push({
|
||||||
|
StudyId: item.StudyId,
|
||||||
|
StudyCode: item.StudyCode,
|
||||||
|
BodyPart: arr,
|
||||||
|
Modalities: item.Modalities
|
||||||
|
})
|
||||||
|
})
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
const i = res.Result.findIndex(i => i.IsCriticalSequence)
|
const i = res.Result.findIndex(i => i.IsCriticalSequence)
|
||||||
if (i > -1) {
|
if (i > -1) {
|
||||||
const seriesList = res.Result[i].SeriesList && res.Result[i].SeriesList
|
const seriesList = res.Result[i].SeriesList && res.Result[i].SeriesList
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ const getDefaultState = () => {
|
|||||||
unlock: false,
|
unlock: false,
|
||||||
config: {},
|
config: {},
|
||||||
uploadTip: '0.00KB/s',
|
uploadTip: '0.00KB/s',
|
||||||
uploadSize: '',
|
downloadTip: '0.00KB/s',
|
||||||
|
downloadSize: '',
|
||||||
timer: null,
|
timer: null,
|
||||||
whiteList: [],
|
whiteList: [],
|
||||||
checkTaskId: null
|
checkTaskId: null
|
||||||
|
|||||||
@@ -276,6 +276,14 @@ const actions = {
|
|||||||
async logout({ commit, state }) {
|
async logout({ commit, state }) {
|
||||||
try {
|
try {
|
||||||
removeToken() // must remove token first
|
removeToken() // must remove token first
|
||||||
|
let data = {
|
||||||
|
IdentityUserId: zzSessionStorage.getItem('identityUserId')
|
||||||
|
}
|
||||||
|
if (zzSessionStorage.getItem('userId') && zzSessionStorage.getItem('userId') !== 'undefined') {
|
||||||
|
data.UserRoleId = zzSessionStorage.getItem('userId')
|
||||||
|
} else {
|
||||||
|
data.UserRoleId = null
|
||||||
|
}
|
||||||
await loginOut({
|
await loginOut({
|
||||||
UserRoleId: zzSessionStorage.getItem('userId'),
|
UserRoleId: zzSessionStorage.getItem('userId'),
|
||||||
IdentityUserId: zzSessionStorage.getItem('identityUserId'),
|
IdentityUserId: zzSessionStorage.getItem('identityUserId'),
|
||||||
|
|||||||
@@ -357,4 +357,18 @@ body .el-table th.gutter {
|
|||||||
|
|
||||||
.el-message-box__wrapper {
|
.el-message-box__wrapper {
|
||||||
z-index: 9999 !important;
|
z-index: 9999 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.svg-readingChart {
|
||||||
|
width: 28px !important;
|
||||||
|
height: 30px !important;
|
||||||
|
margin-left: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.svg-readingChart-mini {
|
||||||
|
width: 18px !important;
|
||||||
|
height: 20px !important;
|
||||||
|
vertical-align: -0.4em !important;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,346 @@
|
|||||||
|
class FileNameSorter {
|
||||||
|
/**
|
||||||
|
* 判断是否为纯数字字符串
|
||||||
|
* @param {any} value - 要检查的值
|
||||||
|
* @returns {boolean} 是否为纯数字
|
||||||
|
*/
|
||||||
|
static isPureNumber(value) {
|
||||||
|
if (typeof value !== 'string') return false;
|
||||||
|
return /^\d+$/.test(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取排序键值
|
||||||
|
* @param {any} item - 要排序的项目
|
||||||
|
* @returns {Array} 排序键值数组
|
||||||
|
*/
|
||||||
|
static getSortKey(item) {
|
||||||
|
const str = String(item);
|
||||||
|
const isNumber = this.isPureNumber(str);
|
||||||
|
|
||||||
|
// 排序优先级: [类型优先级, 数字值/字符串值]
|
||||||
|
if (isNumber) {
|
||||||
|
// 纯数字: 类型优先级为0, 使用数字值排序
|
||||||
|
return [0, BigInt(str)];
|
||||||
|
} else {
|
||||||
|
// 非纯数字: 类型优先级为1, 使用字符串排序
|
||||||
|
return [1, str.toLowerCase()];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件名排序
|
||||||
|
* @param {Array} arr - 要排序的数组
|
||||||
|
* @param {Object} options - 排序选项
|
||||||
|
* @returns {Array} 排序后的数组
|
||||||
|
*/
|
||||||
|
static sortFileNames(arr, options = {}) {
|
||||||
|
if (!Array.isArray(arr)) {
|
||||||
|
throw new TypeError('输入必须是一个数组');
|
||||||
|
}
|
||||||
|
|
||||||
|
const {
|
||||||
|
direction = 'asc', // 'asc' 升序, 'desc' 降序
|
||||||
|
caseSensitive = false, // 是否区分大小写
|
||||||
|
trim = true, // 是否去除前后空格
|
||||||
|
key = null
|
||||||
|
} = options;
|
||||||
|
|
||||||
|
// 创建数组的副本
|
||||||
|
const result = [...arr];
|
||||||
|
|
||||||
|
return result.sort((a, b) => {
|
||||||
|
let aStr = key ? String(a[key]).split(".")[0] : String(a);
|
||||||
|
let bStr = key ? String(b[key]).split(".")[0] : String(b);
|
||||||
|
// 处理空格
|
||||||
|
if (trim) {
|
||||||
|
aStr = aStr.trim();
|
||||||
|
bStr = bStr.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理大小写
|
||||||
|
if (!caseSensitive) {
|
||||||
|
aStr = aStr.toLowerCase();
|
||||||
|
bStr = bStr.toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取排序键值
|
||||||
|
const aKey = this.getSortKey(aStr);
|
||||||
|
const bKey = this.getSortKey(bStr);
|
||||||
|
|
||||||
|
// 比较类型优先级
|
||||||
|
if (aKey[0] !== bKey[0]) {
|
||||||
|
// 纯数字(0) < 非纯数字(1)
|
||||||
|
return direction === 'asc' ? aKey[0] - bKey[0] : bKey[0] - aKey[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
// 相同类型下的比较
|
||||||
|
if (aKey[0] === 0) {
|
||||||
|
// 都是纯数字,按数字大小比较
|
||||||
|
if (aKey[1] < bKey[1]) return direction === 'asc' ? -1 : 1;
|
||||||
|
if (aKey[1] > bKey[1]) return direction === 'asc' ? 1 : -1;
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
// 都是非纯数字,按字符串比较
|
||||||
|
if (aStr < bStr) return direction === 'asc' ? -1 : 1;
|
||||||
|
if (aStr > bStr) return direction === 'asc' ? 1 : -1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自然排序 - 处理文件名中的数字序列
|
||||||
|
* 例如: file1, file2, file10
|
||||||
|
* @param {Array} arr - 要排序的数组
|
||||||
|
* @param {Object} options - 排序选项
|
||||||
|
* @returns {Array} 排序后的数组
|
||||||
|
*/
|
||||||
|
static naturalSort(arr, options = {}) {
|
||||||
|
const {
|
||||||
|
direction = 'asc',
|
||||||
|
caseSensitive = false
|
||||||
|
} = options;
|
||||||
|
|
||||||
|
return [...arr].sort((a, b) => {
|
||||||
|
const aStr = String(a);
|
||||||
|
const bStr = String(b);
|
||||||
|
|
||||||
|
// 检查是否都是纯数字
|
||||||
|
const aIsPureNumber = this.isPureNumber(aStr);
|
||||||
|
const bIsPureNumber = this.isPureNumber(bStr);
|
||||||
|
|
||||||
|
// 如果一个纯数字,一个非纯数字
|
||||||
|
if (aIsPureNumber && !bIsPureNumber) {
|
||||||
|
return direction === 'asc' ? -1 : 1;
|
||||||
|
}
|
||||||
|
if (!aIsPureNumber && bIsPureNumber) {
|
||||||
|
return direction === 'asc' ? 1 : -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 都是纯数字,按数字比较
|
||||||
|
if (aIsPureNumber && bIsPureNumber) {
|
||||||
|
const aNum = BigInt(aStr);
|
||||||
|
const bNum = BigInt(bStr);
|
||||||
|
|
||||||
|
if (aNum < bNum) return direction === 'asc' ? -1 : 1;
|
||||||
|
if (aNum > bNum) return direction === 'asc' ? 1 : -1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 都是非纯数字,使用自然排序算法
|
||||||
|
return this.naturalCompare(aStr, bStr, direction, caseSensitive);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自然比较算法
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
static naturalCompare(a, b, direction = 'asc', caseSensitive = false) {
|
||||||
|
let aStr = caseSensitive ? a : a.toLowerCase();
|
||||||
|
let bStr = caseSensitive ? b : b.toLowerCase();
|
||||||
|
|
||||||
|
const regex = /(\d+|\D+)/g;
|
||||||
|
const aParts = aStr.match(regex) || [];
|
||||||
|
const bParts = bStr.match(regex) || [];
|
||||||
|
|
||||||
|
const maxLength = Math.max(aParts.length, bParts.length);
|
||||||
|
|
||||||
|
for (let i = 0; i < maxLength; i++) {
|
||||||
|
const aPart = aParts[i] || '';
|
||||||
|
const bPart = bParts[i] || '';
|
||||||
|
|
||||||
|
const aIsNumber = /^\d+$/.test(aPart);
|
||||||
|
const bIsNumber = /^\d+$/.test(bPart);
|
||||||
|
|
||||||
|
// 如果都是数字,按数字比较
|
||||||
|
if (aIsNumber && bIsNumber) {
|
||||||
|
const aNum = BigInt(aPart);
|
||||||
|
const bNum = BigInt(bPart);
|
||||||
|
|
||||||
|
if (aNum < bNum) return direction === 'asc' ? -1 : 1;
|
||||||
|
if (aNum > bNum) return direction === 'asc' ? 1 : -1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 都是文本,按字符串比较
|
||||||
|
if (aPart < bPart) return direction === 'asc' ? -1 : 1;
|
||||||
|
if (aPart > bPart) return direction === 'asc' ? 1 : -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组排序 - 将纯数字和非纯数字分开显示
|
||||||
|
* @param {Array} arr - 要排序的数组
|
||||||
|
* @param {Object} options - 排序选项
|
||||||
|
* @returns {Array} 排序后的数组
|
||||||
|
*/
|
||||||
|
static groupSort(arr, options = {}) {
|
||||||
|
const {
|
||||||
|
direction = 'asc',
|
||||||
|
groupOrder = 'numbers-first' // 'numbers-first' 或 'names-first'
|
||||||
|
} = options;
|
||||||
|
|
||||||
|
// 分组
|
||||||
|
const numbers = [];
|
||||||
|
const names = [];
|
||||||
|
|
||||||
|
arr.forEach(item => {
|
||||||
|
const str = String(item);
|
||||||
|
if (this.isPureNumber(str)) {
|
||||||
|
numbers.push(item);
|
||||||
|
} else {
|
||||||
|
names.push(item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// 对各组排序
|
||||||
|
const sortedNumbers = this.sortFileNames(numbers, { direction });
|
||||||
|
const sortedNames = this.sortFileNames(names, { direction });
|
||||||
|
|
||||||
|
// 按指定顺序合并
|
||||||
|
if (groupOrder === 'numbers-first') {
|
||||||
|
return [...sortedNumbers, ...sortedNames];
|
||||||
|
} else {
|
||||||
|
return [...sortedNames, ...sortedNumbers];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件扩展名排序 - 先按扩展名排序,再按文件名排序
|
||||||
|
* @param {Array} arr - 要排序的数组
|
||||||
|
* @param {Object} options - 排序选项
|
||||||
|
* @returns {Array} 排序后的数组
|
||||||
|
*/
|
||||||
|
static sortByExtension(arr, options = {}) {
|
||||||
|
const {
|
||||||
|
direction = 'asc',
|
||||||
|
extensionsFirst = false // 扩展名优先还是文件名优先
|
||||||
|
} = options;
|
||||||
|
|
||||||
|
return [...arr].sort((a, b) => {
|
||||||
|
const aStr = String(a);
|
||||||
|
const bStr = String(b);
|
||||||
|
|
||||||
|
// 分离文件名和扩展名
|
||||||
|
const getFileParts = (str) => {
|
||||||
|
const lastDotIndex = str.lastIndexOf('.');
|
||||||
|
if (lastDotIndex > 0) {
|
||||||
|
return {
|
||||||
|
name: str.substring(0, lastDotIndex),
|
||||||
|
ext: str.substring(lastDotIndex + 1)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return { name: str, ext: '' };
|
||||||
|
};
|
||||||
|
|
||||||
|
const aParts = getFileParts(aStr);
|
||||||
|
const bParts = getFileParts(bStr);
|
||||||
|
|
||||||
|
let compareResult;
|
||||||
|
|
||||||
|
if (extensionsFirst) {
|
||||||
|
// 先比较扩展名
|
||||||
|
compareResult = this.sortFileNames([aParts.ext, bParts.ext], { direction })[0] === aParts.ext ? -1 : 1;
|
||||||
|
if (compareResult !== 0) return compareResult;
|
||||||
|
|
||||||
|
// 扩展名相同,再比较文件名
|
||||||
|
return this.sortFileNames([aParts.name, bParts.name], { direction })[0] === aParts.name ? -1 : 1;
|
||||||
|
} else {
|
||||||
|
// 先比较文件名
|
||||||
|
compareResult = this.sortFileNames([aParts.name, bParts.name], { direction })[0] === aParts.name ? -1 : 1;
|
||||||
|
if (compareResult !== 0) return compareResult;
|
||||||
|
|
||||||
|
// 文件名相同,再比较扩展名
|
||||||
|
return this.sortFileNames([aParts.ext, bParts.ext], { direction })[0] === aParts.ext ? -1 : 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测试和演示函数
|
||||||
|
*/
|
||||||
|
static demonstrate() {
|
||||||
|
const testData = [
|
||||||
|
'100',
|
||||||
|
'23',
|
||||||
|
'1',
|
||||||
|
'003',
|
||||||
|
'file.txt',
|
||||||
|
'10',
|
||||||
|
'5',
|
||||||
|
'alpha',
|
||||||
|
'beta',
|
||||||
|
'gamma',
|
||||||
|
'00100',
|
||||||
|
'zebra',
|
||||||
|
'apple',
|
||||||
|
'banana',
|
||||||
|
'123',
|
||||||
|
'file10.txt',
|
||||||
|
'file2.txt',
|
||||||
|
'File1.txt',
|
||||||
|
'file20.txt',
|
||||||
|
'image.jpg',
|
||||||
|
'document.pdf',
|
||||||
|
'data.xlsx'
|
||||||
|
];
|
||||||
|
|
||||||
|
console.log('=== 文件名排序演示 ===\n');
|
||||||
|
|
||||||
|
console.log('原始数据:');
|
||||||
|
console.log(testData);
|
||||||
|
|
||||||
|
console.log('\n1. 基本排序 (纯数字 < 非纯数字):');
|
||||||
|
const basicSorted = this.sortFileNames(testData);
|
||||||
|
console.log(basicSorted);
|
||||||
|
|
||||||
|
console.log('\n2. 自然排序 (智能数字识别):');
|
||||||
|
const naturalSorted = this.naturalSort(testData);
|
||||||
|
console.log(naturalSorted);
|
||||||
|
|
||||||
|
console.log('\n3. 分组排序 (数字组和文件组):');
|
||||||
|
const groupSorted = this.groupSort(testData);
|
||||||
|
console.log(groupSorted);
|
||||||
|
|
||||||
|
console.log('\n4. 降序排序:');
|
||||||
|
const descSorted = this.sortFileNames(testData, { direction: 'desc' });
|
||||||
|
console.log(descSorted);
|
||||||
|
|
||||||
|
console.log('\n5. 按扩展名排序:');
|
||||||
|
const extSorted = this.sortByExtension(testData);
|
||||||
|
console.log(extSorted);
|
||||||
|
|
||||||
|
console.log('\n6. 大小写敏感排序:');
|
||||||
|
const caseSensitiveSorted = this.sortFileNames(testData, { caseSensitive: true });
|
||||||
|
console.log(caseSensitiveSorted);
|
||||||
|
|
||||||
|
// 验证排序规则
|
||||||
|
console.log('\n=== 排序规则验证 ===');
|
||||||
|
const validationData = ['100', '23', 'file.txt', '1', 'alpha', '003', '10'];
|
||||||
|
console.log('验证数据:', validationData);
|
||||||
|
console.log('排序结果:', this.sortFileNames(validationData));
|
||||||
|
console.log('规则验证:');
|
||||||
|
console.log(' - 纯数字: 1, 3(003), 10, 23, 100 (按数字大小)');
|
||||||
|
console.log(' - 非纯数字: alpha, file.txt (按字母顺序)');
|
||||||
|
console.log(' - 非纯数字 > 纯数字');
|
||||||
|
|
||||||
|
return {
|
||||||
|
basic: basicSorted,
|
||||||
|
natural: naturalSorted,
|
||||||
|
group: groupSorted,
|
||||||
|
descending: descSorted,
|
||||||
|
byExtension: extSorted,
|
||||||
|
caseSensitive: caseSensitiveSorted
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof module !== 'undefined' && module.exports) {
|
||||||
|
module.exports = FileNameSorter;
|
||||||
|
} else if (typeof window !== 'undefined') {
|
||||||
|
window.FileNameSorter = FileNameSorter;
|
||||||
|
}
|
||||||
@@ -15,6 +15,7 @@ export const anonymization = function (file, config) {
|
|||||||
let dataset = dcmjs.data.DicomMessage.readFile(buffer)
|
let dataset = dcmjs.data.DicomMessage.readFile(buffer)
|
||||||
for (var i = 0; i < AnonymizeFixedList.length; i++) {
|
for (var i = 0; i < AnonymizeFixedList.length; i++) {
|
||||||
let AnonymizeFixed = AnonymizeFixedList[i]
|
let AnonymizeFixed = AnonymizeFixedList[i]
|
||||||
|
if (!dataset.dict.hasOwnProperty(`${AnonymizeFixed.Group + AnonymizeFixed.Element}`)) continue
|
||||||
if (dataset.dict[AnonymizeFixed.Group + AnonymizeFixed.Element]) {
|
if (dataset.dict[AnonymizeFixed.Group + AnonymizeFixed.Element]) {
|
||||||
dataset.dict[AnonymizeFixed.Group + AnonymizeFixed.Element].Value[0] = AnonymizeFixed.ReplaceValue
|
dataset.dict[AnonymizeFixed.Group + AnonymizeFixed.Element].Value[0] = AnonymizeFixed.ReplaceValue
|
||||||
} else {
|
} else {
|
||||||
@@ -28,6 +29,7 @@ export const anonymization = function (file, config) {
|
|||||||
}
|
}
|
||||||
for (var i = 0; i < AnonymizeNotFixedList.length; i++) {
|
for (var i = 0; i < AnonymizeNotFixedList.length; i++) {
|
||||||
let AnonymizeNotFixed = AnonymizeNotFixedList[i]
|
let AnonymizeNotFixed = AnonymizeNotFixedList[i]
|
||||||
|
// if (!dataset.dict.hasOwnProperty(`${AnonymizeNotFixed.Group + AnonymizeNotFixed.Element}`)) continue
|
||||||
if (AnonymizeNotFixed.Group + AnonymizeNotFixed.Element === '00100020') {
|
if (AnonymizeNotFixed.Group + AnonymizeNotFixed.Element === '00100020') {
|
||||||
console.log(`${DicomStoreInfo.TrialCode}_${DicomStoreInfo.SubjectCode}`)
|
console.log(`${DicomStoreInfo.TrialCode}_${DicomStoreInfo.SubjectCode}`)
|
||||||
if (dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element]) {
|
if (dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element]) {
|
||||||
@@ -42,7 +44,7 @@ export const anonymization = function (file, config) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element]) {
|
if (dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element]) {
|
||||||
dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element].Value[0] = DicomStoreInfo[AnonymizeNotFixed.ReplaceValue] ? DicomStoreInfo[AnonymizeNotFixed.ReplaceValue].toString() : ''
|
dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element].Value[0] = DicomStoreInfo[AnonymizeNotFixed.ReplaceValue] || Number(DicomStoreInfo[AnonymizeNotFixed.ReplaceValue]) === 0 ? DicomStoreInfo[AnonymizeNotFixed.ReplaceValue].toString() : ''
|
||||||
} else {
|
} else {
|
||||||
dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element] = {
|
dataset.dict[AnonymizeNotFixed.Group + AnonymizeNotFixed.Element] = {
|
||||||
vr: AnonymizeNotFixed.ValueRepresentation,
|
vr: AnonymizeNotFixed.ValueRepresentation,
|
||||||
@@ -53,9 +55,9 @@ export const anonymization = function (file, config) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(dataset)
|
|
||||||
try {
|
try {
|
||||||
let newDicomFile = dataset.write()
|
let newDicomFile = dataset.write() // fragmentMultiframe 原始数据是否进行分割
|
||||||
const bufferArray = new Uint8Array(newDicomFile)
|
const bufferArray = new Uint8Array(newDicomFile)
|
||||||
const blob = new Blob([bufferArray], { type: 'application/octet-stream' })
|
const blob = new Blob([bufferArray], { type: 'application/octet-stream' })
|
||||||
resolve({ blob, pixelDataElement })
|
resolve({ blob, pixelDataElement })
|
||||||
|
|||||||
@@ -8508,6 +8508,8 @@
|
|||||||
var binaryStream;
|
var binaryStream;
|
||||||
var _writeOptions$fragmen = writeOptions.fragmentMultiframe,
|
var _writeOptions$fragmen = writeOptions.fragmentMultiframe,
|
||||||
fragmentMultiframe = _writeOptions$fragmen === void 0 ? true : _writeOptions$fragmen;
|
fragmentMultiframe = _writeOptions$fragmen === void 0 ? true : _writeOptions$fragmen;
|
||||||
|
var _writeOptions$offset = writeOptions.startOffset,
|
||||||
|
isNeedStartOffset = _writeOptions$offset === void 0 ? true : _writeOptions$offset;
|
||||||
value = value === null || value === undefined ? [] : value;
|
value = value === null || value === undefined ? [] : value;
|
||||||
|
|
||||||
if (isEncapsulated) {
|
if (isEncapsulated) {
|
||||||
@@ -8535,7 +8537,9 @@
|
|||||||
for (i = 0; i < frames; i++) {
|
for (i = 0; i < frames; i++) {
|
||||||
var _needsPadding = Boolean(value[i].byteLength & 1);
|
var _needsPadding = Boolean(value[i].byteLength & 1);
|
||||||
|
|
||||||
startOffset.push(binaryStream.size);
|
if (isNeedStartOffset) {
|
||||||
|
startOffset.push(binaryStream.size);
|
||||||
|
}
|
||||||
var frameBuffer = value[i],
|
var frameBuffer = value[i],
|
||||||
frameStream = new ReadBufferStream(frameBuffer);
|
frameStream = new ReadBufferStream(frameBuffer);
|
||||||
var fragmentsLength = 1;
|
var fragmentsLength = 1;
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import FingerprintJS from '@fingerprintjs/fingerprintjs';
|
||||||
|
|
||||||
|
export const customAgent = () => {
|
||||||
|
return new Promise(async resolve => {
|
||||||
|
const fpPromise = await FingerprintJS.load({
|
||||||
|
monitoring: false
|
||||||
|
});
|
||||||
|
const result = await fpPromise.get({
|
||||||
|
products: ['fonts', 'screen', 'canvas'],
|
||||||
|
extendedData: true,
|
||||||
|
debug: false
|
||||||
|
})
|
||||||
|
// const filteredComponents = Object.fromEntries(
|
||||||
|
// Object.entries(result.components)
|
||||||
|
// .filter(([key, value]) => value.confidence > 0.5)
|
||||||
|
// );
|
||||||
|
|
||||||
|
resolve({
|
||||||
|
...result,
|
||||||
|
});
|
||||||
|
// fpPromise
|
||||||
|
// .then(fp => fp.get({
|
||||||
|
// products: ['fonts', 'screen', 'canvas'],
|
||||||
|
// extendedData: true,
|
||||||
|
// debug: true
|
||||||
|
// }))
|
||||||
|
// .then(result => {
|
||||||
|
// // 自定义数据转换
|
||||||
|
|
||||||
|
// });
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import defaultSettings from '@/settings'
|
import defaultSettings from '@/settings'
|
||||||
|
|
||||||
const title = defaultSettings.title || 'IRC Imaging System'
|
const title = defaultSettings.title || 'EIC lmaging Trial Management System'
|
||||||
|
|
||||||
export default function getPageTitle(pageTitle) {
|
export default function getPageTitle(pageTitle) {
|
||||||
if (pageTitle) {
|
if (pageTitle) {
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ export function getNetWorkSpeed() {
|
|||||||
totalBytes = totalBytes / 1024;
|
totalBytes = totalBytes / 1024;
|
||||||
unit = "MB/s";
|
unit = "MB/s";
|
||||||
}
|
}
|
||||||
store.state.trials.uploadTip = totalBytes.toFixed(3) + unit;
|
store.state.trials.downloadTip = totalBytes.toFixed(3) + unit;
|
||||||
}
|
}
|
||||||
if (timeList.length >= 5) {
|
if (timeList.length >= 5) {
|
||||||
delete bytesReceivedPerSecond[timeList[0]]
|
delete bytesReceivedPerSecond[timeList[0]]
|
||||||
@@ -189,11 +189,117 @@ export function workSpeedclose(isForce = false) {
|
|||||||
if (timer) {
|
if (timer) {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
timer = null;
|
timer = null;
|
||||||
store.state.trials.uploadTip = '0KB/s'
|
store.state.trials.downloadTip = '0KB/s'
|
||||||
store.state.trials.uploadSize = ''
|
store.state.trials.downloadSize = ''
|
||||||
}
|
}
|
||||||
bytesReceivedPerSecond = {};
|
bytesReceivedPerSecond = {};
|
||||||
lastPercentage = 0;
|
lastPercentage = 0;
|
||||||
imageId = null;
|
imageId = null;
|
||||||
percentageById = {};
|
percentageById = {};
|
||||||
|
}
|
||||||
|
function readDirectoryEntries(directoryReader) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
let entries = [];
|
||||||
|
function readBatch() {
|
||||||
|
directoryReader.readEntries(
|
||||||
|
(results) => {
|
||||||
|
if (results.length) {
|
||||||
|
entries = entries.concat(results);
|
||||||
|
readBatch();
|
||||||
|
} else {
|
||||||
|
resolve(entries);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
(error) => reject(error)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
readBatch();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export async function readEntry(entry) {
|
||||||
|
const files = [];
|
||||||
|
|
||||||
|
// 如果是文件夹,创建读取器并递归读取其内容
|
||||||
|
if (entry.isDirectory) {
|
||||||
|
const directoryReader = entry.createReader();
|
||||||
|
const entries = await readDirectoryEntries(directoryReader)
|
||||||
|
// 递归读取文件夹内的每一项
|
||||||
|
for (const subEntry of entries) {
|
||||||
|
const subFiles = await readEntry(subEntry);
|
||||||
|
files.push(...subFiles);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 如果是文件,则将其转换为File对象
|
||||||
|
else if (entry.isFile) {
|
||||||
|
const file = await new Promise((resolve, reject) => {
|
||||||
|
entry.file(resolve, reject); // entry.file()是异步的
|
||||||
|
});
|
||||||
|
files.push(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
// 使用FNV-1a哈希算法确保相同GUID产生相同结果
|
||||||
|
function fnv1aHash(str) {
|
||||||
|
const FNV_OFFSET_BASIS = 2166136261;
|
||||||
|
const FNV_PRIME = 16777619;
|
||||||
|
|
||||||
|
let hash = FNV_OFFSET_BASIS;
|
||||||
|
for (let i = 0; i < str.length; i++) {
|
||||||
|
hash ^= str.charCodeAt(i);
|
||||||
|
hash = (hash * FNV_PRIME) >>> 0; // 使用无符号右移确保结果为无符号32位整数
|
||||||
|
}
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
// RGB转十六进制
|
||||||
|
function rgbToHex(r, g, b) {
|
||||||
|
return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).toUpperCase();
|
||||||
|
}
|
||||||
|
// HSL转RGB函数
|
||||||
|
function hslToRgb(h, s, l) {
|
||||||
|
let r, g, b;
|
||||||
|
|
||||||
|
if (s === 0) {
|
||||||
|
r = g = b = l; // 灰色
|
||||||
|
} else {
|
||||||
|
const hue2rgb = (p, q, t) => {
|
||||||
|
if (t < 0) t += 1;
|
||||||
|
if (t > 1) t -= 1;
|
||||||
|
if (t < 1 / 6) return p + (q - p) * 6 * t;
|
||||||
|
if (t < 1 / 2) return q;
|
||||||
|
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
|
||||||
|
return p;
|
||||||
|
};
|
||||||
|
|
||||||
|
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
||||||
|
const p = 2 * l - q;
|
||||||
|
|
||||||
|
r = hue2rgb(p, q, h + 1 / 3);
|
||||||
|
g = hue2rgb(p, q, h);
|
||||||
|
b = hue2rgb(p, q, h - 1 / 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
return { r, g, b };
|
||||||
|
}
|
||||||
|
export function guidToColor(guid) {
|
||||||
|
// 移除GUID中的连字符和花括号(如果有)
|
||||||
|
let cleanGuid = guid.replace(/[{}()-]/g, '');
|
||||||
|
// 计算GUID的哈希值
|
||||||
|
const hash = fnv1aHash(cleanGuid);
|
||||||
|
|
||||||
|
// 使用哈希值生成HLS颜色(确保高区分度)
|
||||||
|
// 将哈希值映射到0-1之间
|
||||||
|
const h = (hash & 0xFFFF) / 0xFFFF; // 使用前16位作为色相
|
||||||
|
const s = ((hash >> 16) & 0xFF) / 0xFF * 0.6 + 0.4; // 饱和度在0.4-1.0之间
|
||||||
|
const l = ((hash >> 24) & 0xFF) / 0xFF * 0.4 + 0.4; // 亮度在0.3-0.7之间,避免太暗或太亮
|
||||||
|
|
||||||
|
// 返回RGB对象
|
||||||
|
let rgb = hslToRgb(h, s, l);
|
||||||
|
let obj = {
|
||||||
|
r: Math.round(rgb.r * 255),
|
||||||
|
g: Math.round(rgb.g * 255),
|
||||||
|
b: Math.round(rgb.b * 255)
|
||||||
|
}
|
||||||
|
let str = rgbToHex(obj.r, obj.g, obj.b)
|
||||||
|
return str;
|
||||||
}
|
}
|
||||||
@@ -5,8 +5,10 @@ import router from '@/router'
|
|||||||
import WHITELIST from "./whiteList"
|
import WHITELIST from "./whiteList"
|
||||||
import moment from 'moment-timezone';
|
import moment from 'moment-timezone';
|
||||||
import { encryptConfig } from "@/utils/encrypt"
|
import { encryptConfig } from "@/utils/encrypt"
|
||||||
|
import SystemInfo from "@/utils/systemInfo";
|
||||||
const ROUTER = require('@/router');
|
const ROUTER = require('@/router');
|
||||||
axios.defaults.withCredentials = false
|
axios.defaults.withCredentials = false
|
||||||
|
const systemInfo = new SystemInfo();
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: '/api',
|
baseURL: '/api',
|
||||||
// baseURL: process.env.NODE_ENV === 'prod' ? "https://api.irc.extimaging.com" : '/api',
|
// baseURL: process.env.NODE_ENV === 'prod' ? "https://api.irc.extimaging.com" : '/api',
|
||||||
@@ -26,6 +28,40 @@ service.interceptors.request.use(
|
|||||||
var language = zzSessionStorage.getItem('lang')
|
var language = zzSessionStorage.getItem('lang')
|
||||||
config.headers['Accept-Language'] = language === 'en' ? 'en-US,en;q=0.5' : 'zh-CN,zh;q=0.9'
|
config.headers['Accept-Language'] = language === 'en' ? 'en-US,en;q=0.5' : 'zh-CN,zh;q=0.9'
|
||||||
config.headers['TimeZoneId'] = moment.tz.guess()
|
config.headers['TimeZoneId'] = moment.tz.guess()
|
||||||
|
const allInfo = systemInfo.getAllInfo();
|
||||||
|
let obj = {
|
||||||
|
browser: {
|
||||||
|
name: allInfo.browser.name,
|
||||||
|
version: allInfo.browser.version,
|
||||||
|
},
|
||||||
|
platform: allInfo.platform,
|
||||||
|
os: {
|
||||||
|
name: allInfo.os.name,
|
||||||
|
version: allInfo.os.version
|
||||||
|
},
|
||||||
|
hardware: {
|
||||||
|
logicalCores: allInfo.hardware.logicalCores,
|
||||||
|
deviceMemory: allInfo.hardware.deviceMemory
|
||||||
|
},
|
||||||
|
webgl: {
|
||||||
|
version: allInfo.webgl.version,
|
||||||
|
renderer: allInfo.webgl.renderer,
|
||||||
|
vendor: allInfo.webgl.vendor,
|
||||||
|
shadingLanguage: allInfo.webgl.shadingLanguage,
|
||||||
|
gpuType: {
|
||||||
|
type: allInfo.webgl.gpuType.type,
|
||||||
|
discrete: allInfo.webgl.gpuType.discrete,
|
||||||
|
},
|
||||||
|
performance: {
|
||||||
|
tier: allInfo.webgl.performance.tier,
|
||||||
|
},
|
||||||
|
extensions: {
|
||||||
|
length: allInfo.webgl.extensions.length,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let guid = await systemInfo.generateGuid(obj)
|
||||||
|
config.headers['BrowserFingerprint'] = guid
|
||||||
if (config.ENCRYPT) {
|
if (config.ENCRYPT) {
|
||||||
try {
|
try {
|
||||||
config = await encryptConfig(config)
|
config = await encryptConfig(config)
|
||||||
|
|||||||
@@ -0,0 +1,88 @@
|
|||||||
|
async function queryWindowManagement() {
|
||||||
|
return await navigator.permissions.query({ name: 'window-management' });;
|
||||||
|
}
|
||||||
|
async function getPermission() {
|
||||||
|
const permission = await queryWindowManagement();
|
||||||
|
console.log(permission.state, 'permission.state')
|
||||||
|
if (permission.state === "granted") { // 已经授权
|
||||||
|
return true
|
||||||
|
} else if (permission.state === "prompt") { // 询问是否授权
|
||||||
|
// 请求授权
|
||||||
|
if (navigator.permissions.request) {
|
||||||
|
navigator.permissions.request({ name: 'window-management' })
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} else if (permission.state === "denied") {
|
||||||
|
// 权限被拒绝
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getScreen() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
let multiScreen = []
|
||||||
|
if (window.getScreenDetails) {
|
||||||
|
let getScreensProsime1 = window.getScreenDetails();
|
||||||
|
getScreensProsime1.then((c) => {
|
||||||
|
if (c instanceof Array) {
|
||||||
|
multiScreen = c
|
||||||
|
} else if (c instanceof Object) {
|
||||||
|
multiScreen = c.screens
|
||||||
|
} else {
|
||||||
|
multiScreen = []
|
||||||
|
}
|
||||||
|
resolve(multiScreen)
|
||||||
|
}).catch((err) => {
|
||||||
|
reject(err)
|
||||||
|
});
|
||||||
|
} else if (window.getScreens) {
|
||||||
|
let getScreensProsime = window.getScreens();
|
||||||
|
getScreensProsime.then((c) => {
|
||||||
|
if (c instanceof Array) {
|
||||||
|
multiScreen = c
|
||||||
|
} else if (c instanceof Object) {
|
||||||
|
multiScreen = c.screens
|
||||||
|
} else {
|
||||||
|
multiScreen = []
|
||||||
|
}
|
||||||
|
resolve(multiScreen)
|
||||||
|
}).catch((err) => {
|
||||||
|
reject(err)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
export async function openWindow(url, name, Skip = false) {
|
||||||
|
// 判断浏览器是否兼容
|
||||||
|
// 高版本的谷歌,edge不支持跨屏,需要降低浏览器版本86.0版
|
||||||
|
if (!window.getScreens && !window.getScreenDetails) {
|
||||||
|
console.log('你的浏览器版本不支持多屏展示功能!');
|
||||||
|
return window.open(url, name);
|
||||||
|
}
|
||||||
|
let permission = await getPermission()
|
||||||
|
if (!permission) {
|
||||||
|
// alert('使用多屏功能请先进行授权')
|
||||||
|
if (Skip) {
|
||||||
|
return window.open(url, name);
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
let multiScreen = await getScreen()
|
||||||
|
console.log(multiScreen, 'multiScreen')
|
||||||
|
// 判断是否2个屏幕
|
||||||
|
if (multiScreen.length < 2) {
|
||||||
|
console.log('请接入多个显示屏!');
|
||||||
|
return window.open(url, name);
|
||||||
|
}
|
||||||
|
console.log(screen, 'screen')
|
||||||
|
// 获取当前屏幕availLeft信息和所有信息比对,取另一个屏幕数据
|
||||||
|
let currentAvailLeft = screen.availLeft ? screen.availLeft : '0'
|
||||||
|
let newCurr = multiScreen.find((t) => t.availLeft != currentAvailLeft)
|
||||||
|
console.log(newCurr, 'newCurr')
|
||||||
|
let fulls = ''
|
||||||
|
for (let key in newCurr) {
|
||||||
|
fulls += `${key}=${(newCurr[key] || newCurr[key] === 0) ? newCurr[key] : 0},`
|
||||||
|
}
|
||||||
|
console.log(fulls, 'fulls')
|
||||||
|
return window.open(url, name, fulls);
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import streamSaver from "streamsaver";
|
import streamSaver from "streamsaver";
|
||||||
import "streamsaver/examples/zip-stream.js";
|
import "./zip-stream.js";
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import dcmjs from './dcmUpload/dcmjs'
|
||||||
streamSaver.mitm = `${window.location.origin}/mitm.html?version=2.0.0`
|
streamSaver.mitm = `${window.location.origin}/mitm.html?version=2.0.0`
|
||||||
// 下载文件并压缩
|
// 下载文件并压缩
|
||||||
function zipFiles(zipName, files) {
|
function zipFiles(zipName, files) {
|
||||||
@@ -19,7 +20,10 @@ function zipFiles(zipName, files) {
|
|||||||
if (fileInfo.done) {//迭代终止
|
if (fileInfo.done) {//迭代终止
|
||||||
ctrl.close();
|
ctrl.close();
|
||||||
} else {
|
} else {
|
||||||
let { name, url } = fileInfo.value;
|
let { name, url, IsEncapsulated = false } = fileInfo.value;
|
||||||
|
if (IsEncapsulated) {
|
||||||
|
url = await downloadFileToUrl(url)
|
||||||
|
}
|
||||||
// url = decodeUtf8(url); // 待定,可能做过特殊处理
|
// url = decodeUtf8(url); // 待定,可能做过特殊处理
|
||||||
return fetch(url).then(res => {
|
return fetch(url).then(res => {
|
||||||
ctrl.enqueue({
|
ctrl.enqueue({
|
||||||
@@ -99,6 +103,24 @@ function decodeUtf8(bytes) {
|
|||||||
str2.pop();
|
str2.pop();
|
||||||
return str2.join("/") + '/' + name;
|
return str2.join("/") + '/' + name;
|
||||||
}
|
}
|
||||||
|
// 下载文件进行修改并输出本地url
|
||||||
|
function downloadFileToUrl(url) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const xhr = new XMLHttpRequest();
|
||||||
|
xhr.open('GET', url);
|
||||||
|
xhr.responseType = 'arraybuffer';
|
||||||
|
xhr.onload = function () {
|
||||||
|
const arraybuffer = xhr.response;
|
||||||
|
let dataset = dcmjs.data.DicomMessage.readFile(arraybuffer)
|
||||||
|
let newDicomFile = dataset.write({ fragmentMultiframe: false, startOffset: false }) // fragmentMultiframe 原始数据是否进行分割
|
||||||
|
const bufferArray = new Uint8Array(newDicomFile)
|
||||||
|
const blob = new Blob([bufferArray], { type: 'application/octet-stream' })
|
||||||
|
const href = URL.createObjectURL(blob)
|
||||||
|
resolve(href)
|
||||||
|
};
|
||||||
|
xhr.send();
|
||||||
|
})
|
||||||
|
}
|
||||||
export async function downLoadFile(file, name, type = 'file') {
|
export async function downLoadFile(file, name, type = 'file') {
|
||||||
if (type === 'zip') return await zipFiles(name, file);
|
if (type === 'zip') return await zipFiles(name, file);
|
||||||
return await updateFile(file, name)
|
return await updateFile(file, name)
|
||||||
|
|||||||
@@ -0,0 +1,686 @@
|
|||||||
|
// 浏览器信息检测
|
||||||
|
class SystemInfo {
|
||||||
|
constructor() {
|
||||||
|
this.info = {
|
||||||
|
browser: this.getBrowserInfo(),
|
||||||
|
os: this.getOSInfo(),
|
||||||
|
hardware: this.getHardwareInfo(),
|
||||||
|
webgl: this.getWebGLInfo()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取浏览器信息
|
||||||
|
getBrowserInfo() {
|
||||||
|
const ua = navigator.userAgent;
|
||||||
|
let browser = {
|
||||||
|
name: 'Unknown',
|
||||||
|
version: 'Unknown',
|
||||||
|
fullVersion: navigator.appVersion
|
||||||
|
};
|
||||||
|
|
||||||
|
// 检测浏览器类型
|
||||||
|
if (ua.includes('Firefox')) {
|
||||||
|
browser.name = 'Firefox';
|
||||||
|
browser.version = this.extractVersion(ua, 'Firefox');
|
||||||
|
} else if (ua.includes('Chrome') && !ua.includes('Edg') && !ua.includes('OPR')) {
|
||||||
|
browser.name = 'Chrome';
|
||||||
|
browser.version = this.extractVersion(ua, 'Chrome');
|
||||||
|
} else if (ua.includes('Safari') && !ua.includes('Chrome')) {
|
||||||
|
browser.name = 'Safari';
|
||||||
|
browser.version = this.extractVersion(ua, 'Version');
|
||||||
|
} else if (ua.includes('Edg')) {
|
||||||
|
browser.name = 'Edge';
|
||||||
|
browser.version = this.extractVersion(ua, 'Edg');
|
||||||
|
} else if (ua.includes('OPR') || ua.includes('Opera')) {
|
||||||
|
browser.name = 'Opera';
|
||||||
|
browser.version = this.extractVersion(ua, 'OPR') || this.extractVersion(ua, 'Opera');
|
||||||
|
} else if (ua.includes('Trident') || ua.includes('MSIE')) {
|
||||||
|
browser.name = 'Internet Explorer';
|
||||||
|
browser.version = this.extractVersion(ua, 'MSIE') || this.extractVersion(ua, 'rv:');
|
||||||
|
}
|
||||||
|
|
||||||
|
return browser;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 提取版本号
|
||||||
|
extractVersion(userAgent, browserName) {
|
||||||
|
const match = userAgent.match(new RegExp(`${browserName}/([0-9]+(\\.[0-9]+)?)`));
|
||||||
|
return match ? match[1] : 'Unknown';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取操作系统信息
|
||||||
|
getOSInfo() {
|
||||||
|
const ua = navigator.userAgent;
|
||||||
|
let os = {
|
||||||
|
name: 'Unknown',
|
||||||
|
version: 'Unknown',
|
||||||
|
architecture: this.getArchitecture()
|
||||||
|
};
|
||||||
|
|
||||||
|
if (ua.includes('Windows')) {
|
||||||
|
os.name = 'Windows';
|
||||||
|
if (ua.includes('Windows NT 10.0')) os.version = '10';
|
||||||
|
else if (ua.includes('Windows NT 6.3')) os.version = '8.1';
|
||||||
|
else if (ua.includes('Windows NT 6.2')) os.version = '8';
|
||||||
|
else if (ua.includes('Windows NT 6.1')) os.version = '7';
|
||||||
|
else if (ua.includes('Windows NT 6.0')) os.version = 'Vista';
|
||||||
|
else if (ua.includes('Windows NT 5.1')) os.version = 'XP';
|
||||||
|
} else if (ua.includes('Mac OS X')) {
|
||||||
|
os.name = 'macOS';
|
||||||
|
const match = ua.match(/Mac OS X (\d+[._]\d+)/);
|
||||||
|
if (match) os.version = match[1].replace('_', '.');
|
||||||
|
} else if (ua.includes('Linux')) {
|
||||||
|
os.name = 'Linux';
|
||||||
|
} else if (ua.includes('Android')) {
|
||||||
|
os.name = 'Android';
|
||||||
|
const match = ua.match(/Android ([0-9.]+)/);
|
||||||
|
if (match) os.version = match[1];
|
||||||
|
} else if (ua.includes('like Mac')) {
|
||||||
|
os.name = 'iOS';
|
||||||
|
const match = ua.match(/OS (\d+[_]\d+)/);
|
||||||
|
if (match) os.version = match[1].replace('_', '.');
|
||||||
|
}
|
||||||
|
|
||||||
|
return os;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取系统架构
|
||||||
|
getArchitecture() {
|
||||||
|
if (navigator.userAgent.includes('x64') || navigator.userAgent.includes('x86_64')) {
|
||||||
|
return '64-bit';
|
||||||
|
} else if (navigator.userAgent.includes('x86') || navigator.userAgent.includes('i686')) {
|
||||||
|
return '32-bit';
|
||||||
|
} else if (navigator.userAgent.includes('ARM')) {
|
||||||
|
return 'ARM';
|
||||||
|
} else if (navigator.userAgent.includes('Win64')) {
|
||||||
|
return '64-bit';
|
||||||
|
}
|
||||||
|
return 'Unknown';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取硬件信息
|
||||||
|
getHardwareInfo() {
|
||||||
|
return {
|
||||||
|
logicalCores: navigator.hardwareConcurrency || 'Unknown',
|
||||||
|
deviceMemory: navigator.deviceMemory ? `${navigator.deviceMemory} GB` : 'Unknown',
|
||||||
|
maxTouchPoints: navigator.maxTouchPoints || 0
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取WebGL和显卡信息
|
||||||
|
getWebGLInfo() {
|
||||||
|
const webglInfo = {
|
||||||
|
webgl1: this.getWebGLContextInfo('webgl'),
|
||||||
|
webgl2: this.getWebGLContextInfo('webgl2'),
|
||||||
|
supported: false,
|
||||||
|
renderer: 'Unknown',
|
||||||
|
vendor: 'Unknown',
|
||||||
|
version: 'Unknown',
|
||||||
|
shadingLanguage: 'Unknown',
|
||||||
|
extensions: []
|
||||||
|
};
|
||||||
|
|
||||||
|
const canvas = document.createElement('canvas');
|
||||||
|
let gl = null;
|
||||||
|
|
||||||
|
// 尝试获取WebGL2上下文
|
||||||
|
try {
|
||||||
|
gl = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl2');
|
||||||
|
} catch (e) {
|
||||||
|
console.log('WebGL2 not supported:', e.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 如果WebGL2不可用,尝试WebGL1
|
||||||
|
if (!gl) {
|
||||||
|
try {
|
||||||
|
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
|
||||||
|
} catch (e) {
|
||||||
|
console.log('WebGL not supported:', e.message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gl) {
|
||||||
|
webglInfo.supported = true;
|
||||||
|
|
||||||
|
// 获取显卡信息
|
||||||
|
const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
|
||||||
|
if (debugInfo) {
|
||||||
|
webglInfo.renderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) || 'Unknown';
|
||||||
|
webglInfo.vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL) || 'Unknown';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取WebGL版本信息
|
||||||
|
webglInfo.version = gl.getParameter(gl.VERSION) || 'Unknown';
|
||||||
|
webglInfo.shadingLanguage = gl.getParameter(gl.SHADING_LANGUAGE_VERSION) || 'Unknown';
|
||||||
|
|
||||||
|
// 获取支持的扩展
|
||||||
|
try {
|
||||||
|
webglInfo.extensions = gl.getSupportedExtensions() || [];
|
||||||
|
} catch (e) {
|
||||||
|
console.log('无法获取WebGL扩展:', e.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查GPU性能级别
|
||||||
|
webglInfo.performance = this.getGPUPerformanceInfo(gl);
|
||||||
|
|
||||||
|
// 检查内存信息(如果支持)
|
||||||
|
webglInfo.memoryInfo = this.getGPUMemoryInfo(gl);
|
||||||
|
|
||||||
|
// 检查是否使用集成显卡
|
||||||
|
if (webglInfo.renderer) {
|
||||||
|
webglInfo.gpuType = this.detectGPUType(webglInfo.renderer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return webglInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取WebGL上下文的具体信息
|
||||||
|
getWebGLContextInfo(contextType) {
|
||||||
|
const canvas = document.createElement('canvas');
|
||||||
|
let gl = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
gl = canvas.getContext(contextType) ||
|
||||||
|
canvas.getContext(`experimental-${contextType}`);
|
||||||
|
} catch (e) {
|
||||||
|
return { supported: false, error: e.message };
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!gl) {
|
||||||
|
return { supported: false };
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
supported: true,
|
||||||
|
context: gl
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取GPU性能信息
|
||||||
|
getGPUPerformanceInfo(gl) {
|
||||||
|
const info = { tier: 'unknown', features: [] };
|
||||||
|
|
||||||
|
// 检查是否支持高性能特性
|
||||||
|
try {
|
||||||
|
// 检查帧缓冲
|
||||||
|
if (gl.checkFramebufferStatus) {
|
||||||
|
info.features.push('framebuffer');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查浮点纹理
|
||||||
|
const floatExt = gl.getExtension('OES_texture_float') ||
|
||||||
|
gl.getExtension('EXT_color_buffer_float');
|
||||||
|
if (floatExt) info.features.push('float_textures');
|
||||||
|
|
||||||
|
// 检查多重采样
|
||||||
|
const msaaExt = gl.getExtension('WEBGL_multisampled_render_to_texture');
|
||||||
|
if (msaaExt) info.features.push('msaa');
|
||||||
|
|
||||||
|
// 检查实例化渲染
|
||||||
|
const instancingExt = gl.getExtension('ANGLE_instanced_arrays') ||
|
||||||
|
gl.getExtension('WEBGL_draw_buffers');
|
||||||
|
if (instancingExt) info.features.push('instancing');
|
||||||
|
|
||||||
|
// 尝试检测性能级别(基于支持的扩展)
|
||||||
|
if (info.features.includes('float_textures') &&
|
||||||
|
info.features.includes('msaa') &&
|
||||||
|
info.features.includes('instancing')) {
|
||||||
|
info.tier = 'high';
|
||||||
|
} else if (info.features.length >= 2) {
|
||||||
|
info.tier = 'medium';
|
||||||
|
} else {
|
||||||
|
info.tier = 'low';
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.log('获取GPU性能信息失败:', e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取GPU内存信息
|
||||||
|
getGPUMemoryInfo(gl) {
|
||||||
|
const memoryInfo = { estimatedMemory: 'Unknown' };
|
||||||
|
|
||||||
|
// 尝试通过扩展获取内存信息
|
||||||
|
try {
|
||||||
|
// 检查是否支持内存信息扩展
|
||||||
|
const memoryExt = gl.getExtension('WEBGL_debug_renderer_info');
|
||||||
|
if (memoryExt) {
|
||||||
|
// 一些浏览器会通过UNMASKED_RENDERER_WEBGL暴露内存信息
|
||||||
|
const renderer = gl.getParameter(memoryExt.UNMASKED_RENDERER_WEBGL);
|
||||||
|
if (renderer) {
|
||||||
|
// 尝试从渲染器字符串中提取内存信息
|
||||||
|
const match = renderer.match(/(\d+)\s*MB|(\d+)\s*GB|VRAM\s*:\s*(\d+)/i);
|
||||||
|
if (match) {
|
||||||
|
memoryInfo.estimatedMemory = match[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 通过创建大纹理测试内存
|
||||||
|
memoryInfo.maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
|
||||||
|
memoryInfo.maxRenderbufferSize = gl.getParameter(gl.MAX_RENDERBUFFER_SIZE);
|
||||||
|
} catch (e) {
|
||||||
|
// 静默失败
|
||||||
|
}
|
||||||
|
|
||||||
|
return memoryInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检测GPU类型
|
||||||
|
detectGPUType(renderer) {
|
||||||
|
const r = renderer.toLowerCase();
|
||||||
|
|
||||||
|
if (r.includes('nvidia') || r.includes('geforce') || r.includes('gtx') || r.includes('rtx')) {
|
||||||
|
return { type: 'NVIDIA', discrete: true };
|
||||||
|
} else if (r.includes('amd') || r.includes('radeon') || r.includes('rx')) {
|
||||||
|
return { type: 'AMD', discrete: true };
|
||||||
|
} else if (r.includes('intel') || r.includes('hd graphics') || r.includes('iris') || r.includes('uhd')) {
|
||||||
|
return { type: 'Intel', discrete: false };
|
||||||
|
} else if (r.includes('apple') || r.includes('apple gpu') || r.includes('apple m')) {
|
||||||
|
return { type: 'Apple Silicon', discrete: false };
|
||||||
|
} else if (r.includes('mali') || r.includes('adreno') || r.includes('powervr')) {
|
||||||
|
return { type: 'Mobile GPU', discrete: false };
|
||||||
|
} else if (r.includes('microsoft') || r.includes('basic')) {
|
||||||
|
return { type: 'Software Renderer', discrete: false };
|
||||||
|
}
|
||||||
|
|
||||||
|
return { type: 'Unknown', discrete: false };
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取屏幕信息
|
||||||
|
getScreenInfo() {
|
||||||
|
return {
|
||||||
|
width: window.screen.width,
|
||||||
|
height: window.screen.height,
|
||||||
|
colorDepth: window.screen.colorDepth,
|
||||||
|
pixelDepth: window.screen.pixelDepth,
|
||||||
|
devicePixelRatio: window.devicePixelRatio || 1,
|
||||||
|
orientation: window.screen.orientation ? window.screen.orientation.type : 'unknown'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取所有系统信息
|
||||||
|
getAllInfo() {
|
||||||
|
return {
|
||||||
|
...this.info,
|
||||||
|
screen: this.getScreenInfo(),
|
||||||
|
userAgent: navigator.userAgent,
|
||||||
|
platform: navigator.platform,
|
||||||
|
language: navigator.language,
|
||||||
|
languages: navigator.languages,
|
||||||
|
cookiesEnabled: navigator.cookieEnabled,
|
||||||
|
online: navigator.onLine,
|
||||||
|
javaEnabled: navigator.javaEnabled ? navigator.javaEnabled() : false,
|
||||||
|
pdfViewerEnabled: navigator.pdfViewerEnabled || false,
|
||||||
|
doNotTrack: navigator.doNotTrack || 'unknown',
|
||||||
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||||
|
dateTimeFormat: new Date().toString()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// 格式化输出
|
||||||
|
formatAsText() {
|
||||||
|
const info = this.getAllInfo();
|
||||||
|
let output = '========== 系统信息 ==========\n\n';
|
||||||
|
|
||||||
|
// 浏览器信息
|
||||||
|
output += '=== 浏览器信息 ===\n';
|
||||||
|
output += `浏览器: ${info.browser.name} ${info.browser.version}\n`;
|
||||||
|
output += `完整版本: ${info.browser.fullVersion}\n`;
|
||||||
|
output += `用户代理: ${info.userAgent}\n\n`;
|
||||||
|
|
||||||
|
// 操作系统信息
|
||||||
|
output += '=== 操作系统信息 ===\n';
|
||||||
|
output += `系统: ${info.os.name} ${info.os.version}\n`;
|
||||||
|
output += `架构: ${info.os.architecture}\n`;
|
||||||
|
output += `平台: ${info.platform}\n\n`;
|
||||||
|
|
||||||
|
// 硬件信息
|
||||||
|
output += '=== 硬件信息 ===\n';
|
||||||
|
output += `逻辑核心数: ${info.hardware.logicalCores}\n`;
|
||||||
|
output += `设备内存: ${info.hardware.deviceMemory}\n`;
|
||||||
|
output += `最大触摸点数: ${info.hardware.maxTouchPoints}\n\n`;
|
||||||
|
|
||||||
|
// 屏幕信息
|
||||||
|
output += '=== 屏幕信息 ===\n';
|
||||||
|
output += `分辨率: ${info.screen.width} × ${info.screen.height}\n`;
|
||||||
|
output += `设备像素比: ${info.screen.devicePixelRatio}\n`;
|
||||||
|
output += `颜色深度: ${info.screen.colorDepth} 位\n`;
|
||||||
|
output += `像素深度: ${info.screen.pixelDepth} 位\n`;
|
||||||
|
output += `方向: ${info.screen.orientation}\n\n`;
|
||||||
|
|
||||||
|
// WebGL信息
|
||||||
|
output += '=== WebGL 信息 ===\n';
|
||||||
|
output += `WebGL 支持: ${info.webgl.supported ? '是' : '否'}\n`;
|
||||||
|
|
||||||
|
if (info.webgl.supported) {
|
||||||
|
output += `WebGL 版本: ${info.webgl.version}\n`;
|
||||||
|
output += `显卡型号: ${info.webgl.renderer}\n`;
|
||||||
|
output += `显卡厂商: ${info.webgl.vendor}\n`;
|
||||||
|
output += `着色语言: ${info.webgl.shadingLanguage}\n`;
|
||||||
|
|
||||||
|
if (info.webgl.gpuType) {
|
||||||
|
output += `GPU 类型: ${info.webgl.gpuType.type}\n`;
|
||||||
|
output += `独立显卡: ${info.webgl.gpuType.discrete ? '是' : '否'}\n`;
|
||||||
|
}
|
||||||
|
|
||||||
|
output += `性能等级: ${info.webgl.performance.tier}\n`;
|
||||||
|
output += `支持特性: ${info.webgl.performance.features.join(', ')}\n`;
|
||||||
|
|
||||||
|
if (info.webgl.memoryInfo.estimatedMemory !== 'Unknown') {
|
||||||
|
output += `显存估计: ${info.webgl.memoryInfo.estimatedMemory}\n`;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (info.webgl.memoryInfo.maxTextureSize) {
|
||||||
|
output += `最大纹理尺寸: ${info.webgl.memoryInfo.maxTextureSize}\n`;
|
||||||
|
}
|
||||||
|
|
||||||
|
output += `WebGL 扩展数: ${info.webgl.extensions.length}\n`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 其他信息
|
||||||
|
output += '\n=== 其他信息 ===\n';
|
||||||
|
output += `语言: ${info.language}\n`;
|
||||||
|
output += `支持语言: ${info.languages.join(', ')}\n`;
|
||||||
|
output += `时区: ${info.timezone}\n`;
|
||||||
|
output += `Cookie 支持: ${info.cookiesEnabled ? '是' : '否'}\n`;
|
||||||
|
output += `在线状态: ${info.online ? '在线' : '离线'}\n`;
|
||||||
|
output += `Java 支持: ${info.javaEnabled ? '是' : '否'}\n`;
|
||||||
|
output += `PDF 查看器: ${info.pdfViewerEnabled ? '支持' : '不支持'}\n`;
|
||||||
|
output += `Do Not Track: ${info.doNotTrack}\n`;
|
||||||
|
output += `当前时间: ${info.dateTimeFormat}\n`;
|
||||||
|
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建HTML显示
|
||||||
|
createInfoHTML() {
|
||||||
|
const info = this.getAllInfo();
|
||||||
|
let html = `
|
||||||
|
<div class="system-info">
|
||||||
|
<h2>系统信息</h2>
|
||||||
|
|
||||||
|
<div class="info-section">
|
||||||
|
<h3>🌐 浏览器信息</h3>
|
||||||
|
<table>
|
||||||
|
<tr><td>浏览器</td><td>${info.browser.name} ${info.browser.version}</td></tr>
|
||||||
|
<tr><td>用户代理</td><td><code>${info.userAgent}</code></td></tr>
|
||||||
|
<tr><td>平台</td><td>${info.platform}</td></tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="info-section">
|
||||||
|
<h3>💻 操作系统</h3>
|
||||||
|
<table>
|
||||||
|
<tr><td>系统</td><td>${info.os.name} ${info.os.version}</td></tr>
|
||||||
|
<tr><td>架构</td><td>${info.os.architecture}</td></tr>
|
||||||
|
<tr><td>语言</td><td>${info.language}</td></tr>
|
||||||
|
<tr><td>时区</td><td>${info.timezone}</td></tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="info-section">
|
||||||
|
<h3>🖥️ 硬件信息</h3>
|
||||||
|
<table>
|
||||||
|
<tr><td>CPU 核心数</td><td>${info.hardware.logicalCores}</td></tr>
|
||||||
|
<tr><td>设备内存</td><td>${info.hardware.deviceMemory}</td></tr>
|
||||||
|
<tr><td>屏幕分辨率</td><td>${info.screen.width} × ${info.screen.height}</td></tr>
|
||||||
|
<tr><td>设备像素比</td><td>${info.screen.devicePixelRatio}</td></tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
if (info.webgl.supported) {
|
||||||
|
html += `
|
||||||
|
<div class="info-section">
|
||||||
|
<h3>🎮 WebGL & 显卡信息</h3>
|
||||||
|
<table>
|
||||||
|
<tr><td>WebGL 支持</td><td>✅ 已支持</td></tr>
|
||||||
|
<tr><td>WebGL 版本</td><td>${info.webgl.version}</td></tr>
|
||||||
|
<tr><td>显卡型号</td><td><strong>${info.webgl.renderer}</strong></td></tr>
|
||||||
|
<tr><td>显卡厂商</td><td>${info.webgl.vendor}</td></tr>
|
||||||
|
<tr><td>GPU 类型</td><td>${info.webgl.gpuType.type} ${info.webgl.gpuType.discrete ? '(独立显卡)' : '(集成显卡)'}</td></tr>
|
||||||
|
<tr><td>着色语言</td><td>${info.webgl.shadingLanguage}</td></tr>
|
||||||
|
<tr><td>性能等级</td><td><span class="perf-${info.webgl.performance.tier}">${info.webgl.performance.tier}</span></td></tr>
|
||||||
|
<tr><td>WebGL 扩展数</td><td>${info.webgl.extensions.length} 个</td></tr>
|
||||||
|
`;
|
||||||
|
|
||||||
|
if (info.webgl.memoryInfo.estimatedMemory !== 'Unknown') {
|
||||||
|
html += `<tr><td>显存估计</td><td>${info.webgl.memoryInfo.estimatedMemory}</td></tr>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
html += `</table></div>`;
|
||||||
|
} else {
|
||||||
|
html += `
|
||||||
|
<div class="info-section">
|
||||||
|
<h3>🎮 WebGL & 显卡信息</h3>
|
||||||
|
<p style="color: red;">❌ WebGL 不支持</p>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
html += `</div>`;
|
||||||
|
|
||||||
|
return html;
|
||||||
|
}
|
||||||
|
deepSortObject(obj) {
|
||||||
|
if (obj === null || typeof obj !== 'object') {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(obj)) {
|
||||||
|
return obj.map(deepSortObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
const sorted = {};
|
||||||
|
Object.keys(obj).sort().forEach(key => {
|
||||||
|
sorted[key] = this.deepSortObject(obj[key]);
|
||||||
|
});
|
||||||
|
|
||||||
|
return sorted;
|
||||||
|
}
|
||||||
|
|
||||||
|
getCanonicalString(obj) {
|
||||||
|
if (typeof obj !== 'object' || obj === null) {
|
||||||
|
return JSON.stringify(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
const sorted = this.deepSortObject(obj);
|
||||||
|
return JSON.stringify(sorted);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 简单哈希函数
|
||||||
|
simpleHash(str) {
|
||||||
|
let hash = 0;
|
||||||
|
for (let i = 0; i < str.length; i++) {
|
||||||
|
const char = str.charCodeAt(i);
|
||||||
|
hash = ((hash << 5) - hash) + char;
|
||||||
|
hash = hash & hash;
|
||||||
|
}
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 简单SHA-256模拟
|
||||||
|
simpleSHA256(str) {
|
||||||
|
let hash = 0;
|
||||||
|
for (let i = 0; i < str.length; i++) {
|
||||||
|
const char = str.charCodeAt(i);
|
||||||
|
hash = ((hash << 5) - hash) + char;
|
||||||
|
hash = hash & hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
const hashArray = [];
|
||||||
|
for (let i = 0; i < 8; i++) {
|
||||||
|
hashArray[i] = (hash + i * 2654435761) >>> 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return hashArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 格式化哈希为GUID
|
||||||
|
formatHashAsGuid(hashArray) {
|
||||||
|
const hexParts = hashArray.map(h => h.toString(16).padStart(8, '0'));
|
||||||
|
return `${hexParts[0]}${hexParts[1].substring(0, 4)}-${hexParts[1].substring(4)}-${hexParts[2].substring(0, 4)}-${hexParts[3].substring(0, 4)}-${hexParts[3].substring(4)}${hexParts[4]}${hexParts[5]}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 1. 确定性哈希算法
|
||||||
|
objectToGuidDeterministic(obj) {
|
||||||
|
const canonicalString = this.getCanonicalString(obj);
|
||||||
|
const hash = this.simpleSHA256(canonicalString);
|
||||||
|
return this.formatHashAsGuid(hash).toUpperCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2. 伪随机算法
|
||||||
|
getSeedFromObject(obj) {
|
||||||
|
const str = JSON.stringify(obj);
|
||||||
|
return this.simpleHash(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
createSeededRandom(seed) {
|
||||||
|
let state = seed;
|
||||||
|
return function () {
|
||||||
|
state = (state * 1664525 + 1013904223) >>> 0;
|
||||||
|
return (state & 0x3FFFFFFF) / 0x3FFFFFFF;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
generateVersion4Guid(randomFn) {
|
||||||
|
let guid = '';
|
||||||
|
|
||||||
|
for (let i = 0; i < 32; i++) {
|
||||||
|
if (i === 8 || i === 12 || i === 16 || i === 20) {
|
||||||
|
guid += '-';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (i === 12) {
|
||||||
|
guid += '4';
|
||||||
|
} else if (i === 16) {
|
||||||
|
const variant = Math.floor(randomFn() * 4);
|
||||||
|
guid += (8 + variant).toString(16).toUpperCase();
|
||||||
|
} else {
|
||||||
|
const randomHex = Math.floor(randomFn() * 16).toString(16);
|
||||||
|
guid += randomHex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return guid.toUpperCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
objectToGuidPseudorandom(obj) {
|
||||||
|
const seed = this.getSeedFromObject(obj);
|
||||||
|
const prng = this.createSeededRandom(seed);
|
||||||
|
return this.generateVersion4Guid(prng);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3. Crypto API算法(同步版本)
|
||||||
|
objectToGuidCryptoSync(obj) {
|
||||||
|
try {
|
||||||
|
const str = this.getCanonicalString(obj);
|
||||||
|
let hash = 0;
|
||||||
|
for (let i = 0; i < str.length; i++) {
|
||||||
|
const char = str.charCodeAt(i);
|
||||||
|
hash = ((hash << 5) - hash) + char;
|
||||||
|
hash = hash & hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
const bytes = new Array(16);
|
||||||
|
for (let i = 0; i < 16; i++) {
|
||||||
|
bytes[i] = (hash + i * 2654435761) & 0xFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
bytes[6] = (bytes[6] & 0x0F) | 0x40;
|
||||||
|
bytes[8] = (bytes[8] & 0x3F) | 0x80;
|
||||||
|
|
||||||
|
return bytes.map(b => b.toString(16).padStart(2, '0'))
|
||||||
|
.join('')
|
||||||
|
.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5')
|
||||||
|
.toUpperCase();
|
||||||
|
} catch (error) {
|
||||||
|
return this.objectToGuidDeterministic(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 4. 组合算法
|
||||||
|
combineComponents(deterministicHash, namespaceHash, timestamp, randomComponent) {
|
||||||
|
const hashDigits = deterministicHash.replace(/-/g, '');
|
||||||
|
const bytes = new Array(16);
|
||||||
|
|
||||||
|
for (let i = 0; i < 16; i++) {
|
||||||
|
const hashByte = parseInt(hashDigits.substr(i * 2, 2), 16) || 0;
|
||||||
|
const nsByte = (namespaceHash >> (i * 2)) & 0xFF;
|
||||||
|
const timeByte = (timestamp >> (i * 2)) & 0xFF;
|
||||||
|
const randomByte = parseInt(randomComponent.substr(i % 8, 1), 16) || 0;
|
||||||
|
|
||||||
|
bytes[i] = (hashByte ^ nsByte ^ timeByte ^ randomByte) & 0xFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
bytes[6] = (bytes[6] & 0x0F) | 0x40;
|
||||||
|
bytes[8] = (bytes[8] & 0x3F) | 0x80;
|
||||||
|
|
||||||
|
return bytes.map(b => b.toString(16).padStart(2, '0'))
|
||||||
|
.join('')
|
||||||
|
.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5')
|
||||||
|
.toUpperCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
objectToGuidCombined(obj, namespace = '') {
|
||||||
|
const deterministicHash = this.objectToGuidDeterministic(obj);
|
||||||
|
const namespaceHash = namespace ? this.simpleHash(namespace) : 0;
|
||||||
|
const timestamp = Date.now();
|
||||||
|
const randomComponent = Math.random().toString(16).substr(2, 8);
|
||||||
|
|
||||||
|
return this.combineComponents(deterministicHash, namespaceHash, timestamp, randomComponent);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 主生成函数
|
||||||
|
async generateGuid(inputText, inputType, algorithmType = 'deterministic') {
|
||||||
|
let obj;
|
||||||
|
try {
|
||||||
|
if (inputType === 'json') {
|
||||||
|
obj = JSON.parse(inputText);
|
||||||
|
} else {
|
||||||
|
obj = inputText
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
|
let guid;
|
||||||
|
let algorithmName;
|
||||||
|
try {
|
||||||
|
switch (algorithmType) {
|
||||||
|
case 'deterministic':
|
||||||
|
guid = this.objectToGuidDeterministic(obj);
|
||||||
|
algorithmName = '确定性哈希算法';
|
||||||
|
break;
|
||||||
|
case 'pseudorandom':
|
||||||
|
guid = this.objectToGuidPseudorandom(obj);
|
||||||
|
algorithmName = '伪随机算法';
|
||||||
|
break;
|
||||||
|
case 'crypto':
|
||||||
|
guid = this.objectToGuidCryptoSync(obj);
|
||||||
|
algorithmName = 'Crypto API算法';
|
||||||
|
break;
|
||||||
|
case 'combined':
|
||||||
|
guid = this.objectToGuidCombined(obj, 'example-namespace');
|
||||||
|
algorithmName = '组合算法';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
guid = '未知算法';
|
||||||
|
algorithmName = '未知';
|
||||||
|
}
|
||||||
|
return guid;
|
||||||
|
} catch (error) {
|
||||||
|
return error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof module !== 'undefined' && module.exports) {
|
||||||
|
module.exports = SystemInfo;
|
||||||
|
} else if (typeof window !== 'undefined') {
|
||||||
|
window.SystemInfo = SystemInfo;
|
||||||
|
}
|
||||||
@@ -0,0 +1,382 @@
|
|||||||
|
class Crc32 {
|
||||||
|
constructor() {
|
||||||
|
this.crc = -1
|
||||||
|
}
|
||||||
|
|
||||||
|
append(data) {
|
||||||
|
var crc = this.crc | 0; var table = this.table
|
||||||
|
for (var offset = 0, len = data.length | 0; offset < len; offset++) {
|
||||||
|
crc = (crc >>> 8) ^ table[(crc ^ data[offset]) & 0xFF]
|
||||||
|
}
|
||||||
|
this.crc = crc
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return ~this.crc
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Crc32.prototype.table = (() => {
|
||||||
|
var i; var j; var t; var table = []
|
||||||
|
for (i = 0; i < 256; i++) {
|
||||||
|
t = i
|
||||||
|
for (j = 0; j < 8; j++) {
|
||||||
|
t = (t & 1)
|
||||||
|
? (t >>> 1) ^ 0xEDB88320
|
||||||
|
: t >>> 1
|
||||||
|
}
|
||||||
|
table[i] = t
|
||||||
|
}
|
||||||
|
return table
|
||||||
|
})()
|
||||||
|
|
||||||
|
const getDataHelper = byteLength => {
|
||||||
|
var uint8 = new Uint8Array(byteLength)
|
||||||
|
return {
|
||||||
|
array: uint8,
|
||||||
|
view: new DataView(uint8.buffer)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const ZIP_SIGNATURE_LOCAL = 0x04034b50
|
||||||
|
const ZIP_SIGNATURE_CENTRAL = 0x02014b50
|
||||||
|
const ZIP_SIGNATURE_EOCD = 0x06054b50
|
||||||
|
const ZIP_SIGNATURE_ZIP64_EOCD = 0x06064b50
|
||||||
|
const ZIP_SIGNATURE_ZIP64_LOCATOR = 0x07064b50
|
||||||
|
|
||||||
|
const ZIP64_MAGIC = 0xFFFFFFFF
|
||||||
|
|
||||||
|
function u16(view, offset, value) { view.setUint16(offset, value, true) }
|
||||||
|
function u32(view, offset, value) { view.setUint32(offset, value >>> 0, true) }
|
||||||
|
|
||||||
|
function concatUint8(chunks, total) {
|
||||||
|
const out = new Uint8Array(total)
|
||||||
|
let off = 0
|
||||||
|
for (const c of chunks) {
|
||||||
|
out.set(c, off)
|
||||||
|
off += c.length
|
||||||
|
}
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
|
function createWriter(underlyingSource) {
|
||||||
|
const files = Object.create(null)
|
||||||
|
const filenames = []
|
||||||
|
const encoder = new TextEncoder() // 保持UTF-8编码
|
||||||
|
|
||||||
|
let offset = 0 // bytes written to output so far
|
||||||
|
let activeZipIndex = 0
|
||||||
|
let ctrl
|
||||||
|
let activeZipObject
|
||||||
|
let closed = false
|
||||||
|
|
||||||
|
function processNextChunk() {
|
||||||
|
if (!activeZipObject) return
|
||||||
|
|
||||||
|
// directory entry: just local header + immediate footer
|
||||||
|
if (activeZipObject.directory) {
|
||||||
|
if (!activeZipObject.headerWritten) {
|
||||||
|
activeZipObject.writeLocalHeader()
|
||||||
|
activeZipObject.headerWritten = true
|
||||||
|
}
|
||||||
|
if (!activeZipObject.footerWritten) {
|
||||||
|
activeZipObject.writeDataDescriptor() // will be zeros
|
||||||
|
activeZipObject.footerWritten = true
|
||||||
|
next()
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!activeZipObject.reader) {
|
||||||
|
if (!activeZipObject.fileLike || !activeZipObject.fileLike.stream) {
|
||||||
|
next()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
activeZipObject.crc = new Crc32()
|
||||||
|
activeZipObject.reader = activeZipObject.fileLike.stream().getReader()
|
||||||
|
activeZipObject.writeLocalHeader()
|
||||||
|
activeZipObject.headerWritten = true
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
return activeZipObject.reader.read().then(({ done, value }) => {
|
||||||
|
if (done) {
|
||||||
|
activeZipObject.writeDataDescriptor()
|
||||||
|
activeZipObject.footerWritten = true
|
||||||
|
next()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const chunk = value instanceof Uint8Array ? value : new Uint8Array(value)
|
||||||
|
activeZipObject.crc.append(chunk)
|
||||||
|
activeZipObject.uncompressedLength += chunk.length
|
||||||
|
activeZipObject.compressedLength += chunk.length
|
||||||
|
ctrl.enqueue(chunk)
|
||||||
|
offset += chunk.length
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function next() {
|
||||||
|
activeZipIndex++
|
||||||
|
activeZipObject = files[filenames[activeZipIndex]]
|
||||||
|
if (activeZipObject) {
|
||||||
|
processNextChunk()
|
||||||
|
} else if (closed) {
|
||||||
|
closeZip()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function dosDateTime(date) {
|
||||||
|
const dt = new Date(date)
|
||||||
|
const time = ((dt.getHours() << 11) | (dt.getMinutes() << 5) | (dt.getSeconds() / 2)) & 0xFFFF
|
||||||
|
const d = (((dt.getFullYear() - 1980) << 9) | ((dt.getMonth() + 1) << 5) | dt.getDate()) & 0xFFFF
|
||||||
|
return { time, date: d }
|
||||||
|
}
|
||||||
|
|
||||||
|
const zipWriter = {
|
||||||
|
enqueue(fileLike) {
|
||||||
|
if (closed) throw new TypeError('Cannot enqueue after close()')
|
||||||
|
|
||||||
|
let name = String(fileLike.name || '').trim()
|
||||||
|
if (!name) throw new Error('Missing file name')
|
||||||
|
|
||||||
|
if (fileLike.directory && !name.endsWith('/')) name += '/'
|
||||||
|
if (files[name]) throw new Error('File already exists.')
|
||||||
|
|
||||||
|
const nameBuf = encoder.encode(name) // 保持UTF-8编码
|
||||||
|
const commentBuf = encoder.encode(fileLike.comment || '')
|
||||||
|
const { time, date } = dosDateTime(typeof fileLike.lastModified === 'undefined' ? Date.now() : fileLike.lastModified)
|
||||||
|
|
||||||
|
const zipObject = (files[name] = {
|
||||||
|
fileLike,
|
||||||
|
directory: !!fileLike.directory,
|
||||||
|
nameBuf,
|
||||||
|
comment: commentBuf,
|
||||||
|
time,
|
||||||
|
date,
|
||||||
|
|
||||||
|
// tracked
|
||||||
|
offset: 0,
|
||||||
|
crc: null,
|
||||||
|
compressedLength: 0,
|
||||||
|
uncompressedLength: 0,
|
||||||
|
headerWritten: false,
|
||||||
|
footerWritten: false,
|
||||||
|
reader: null,
|
||||||
|
|
||||||
|
// whether sizes/offset require ZIP64
|
||||||
|
needsZip64() {
|
||||||
|
return (
|
||||||
|
this.uncompressedLength > ZIP64_MAGIC ||
|
||||||
|
this.compressedLength > ZIP64_MAGIC ||
|
||||||
|
this.offset > ZIP64_MAGIC
|
||||||
|
)
|
||||||
|
},
|
||||||
|
|
||||||
|
writeLocalHeader() {
|
||||||
|
this.offset = offset
|
||||||
|
|
||||||
|
// 关键修改:设置通用位标记,第11位(0x0800)表示文件名使用UTF-8编码
|
||||||
|
// 保留原0x0008(数据描述符存在),新增0x0800(UTF-8编码)
|
||||||
|
const generalPurposeBitFlag = 0x0808
|
||||||
|
const compressionMethod = 0 // store
|
||||||
|
const versionNeeded = this.needsZip64() ? 45 : 20 // 适配ZIP64
|
||||||
|
|
||||||
|
// We always use data descriptor; write zeros for crc/sizes in local header
|
||||||
|
const local = getDataHelper(30 + this.nameBuf.length)
|
||||||
|
u32(local.view, 0, ZIP_SIGNATURE_LOCAL)
|
||||||
|
u16(local.view, 4, versionNeeded)
|
||||||
|
u16(local.view, 6, generalPurposeBitFlag) // 应用UTF-8标记
|
||||||
|
u16(local.view, 8, compressionMethod)
|
||||||
|
u16(local.view, 10, this.time)
|
||||||
|
u16(local.view, 12, this.date)
|
||||||
|
u32(local.view, 14, 0)
|
||||||
|
u32(local.view, 18, 0)
|
||||||
|
u32(local.view, 22, 0)
|
||||||
|
u16(local.view, 26, this.nameBuf.length)
|
||||||
|
u16(local.view, 28, 0) // extra length
|
||||||
|
local.array.set(this.nameBuf, 30)
|
||||||
|
|
||||||
|
ctrl.enqueue(local.array)
|
||||||
|
offset += local.array.length
|
||||||
|
},
|
||||||
|
|
||||||
|
writeDataDescriptor() {
|
||||||
|
// data descriptor: optional signature + crc32 + sizes (32-bit or 64-bit)
|
||||||
|
const crc = this.crc ? this.crc.get() >>> 0 : 0
|
||||||
|
const useZip64 = this.needsZip64()
|
||||||
|
|
||||||
|
if (!useZip64) {
|
||||||
|
const dd = getDataHelper(16)
|
||||||
|
u32(dd.view, 0, 0x08074b50)
|
||||||
|
u32(dd.view, 4, crc)
|
||||||
|
u32(dd.view, 8, this.compressedLength)
|
||||||
|
u32(dd.view, 12, this.uncompressedLength)
|
||||||
|
ctrl.enqueue(dd.array)
|
||||||
|
offset += dd.array.length
|
||||||
|
} else {
|
||||||
|
// 24 bytes: sig + crc32 + compSize(8) + uncompSize(8)
|
||||||
|
const dd = getDataHelper(24)
|
||||||
|
u32(dd.view, 0, 0x08074b50)
|
||||||
|
u32(dd.view, 4, crc)
|
||||||
|
// BigInt writes
|
||||||
|
dd.view.setBigUint64(8, BigInt(this.compressedLength), true)
|
||||||
|
dd.view.setBigUint64(16, BigInt(this.uncompressedLength), true)
|
||||||
|
ctrl.enqueue(dd.array)
|
||||||
|
offset += dd.array.length
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
filenames.push(name)
|
||||||
|
|
||||||
|
if (!activeZipObject) {
|
||||||
|
activeZipObject = zipObject
|
||||||
|
processNextChunk()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
close() {
|
||||||
|
if (closed) throw new TypeError('Cannot close twice')
|
||||||
|
closed = true
|
||||||
|
if (!activeZipObject) closeZip()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeZip() {
|
||||||
|
// Build central directory in memory then enqueue once.
|
||||||
|
const cdChunks = []
|
||||||
|
let cdSize = 0
|
||||||
|
|
||||||
|
for (const name of filenames) {
|
||||||
|
const file = files[name]
|
||||||
|
const useZip64 = file.needsZip64()
|
||||||
|
|
||||||
|
const versionMadeBy = useZip64 ? 45 : 20
|
||||||
|
const versionNeeded = useZip64 ? 45 : 20
|
||||||
|
// 关键修改:中央目录也需要设置UTF-8标记
|
||||||
|
const generalPurposeBitFlag = 0x0808
|
||||||
|
const compressionMethod = 0
|
||||||
|
|
||||||
|
const crc = file.crc ? file.crc.get() >>> 0 : 0
|
||||||
|
const compressed32 = useZip64 ? ZIP64_MAGIC : file.compressedLength
|
||||||
|
const uncompressed32 = useZip64 ? ZIP64_MAGIC : file.uncompressedLength
|
||||||
|
const offset32 = useZip64 ? ZIP64_MAGIC : file.offset
|
||||||
|
|
||||||
|
// ZIP64 extra field if needed
|
||||||
|
let extra = new Uint8Array(0)
|
||||||
|
if (useZip64) {
|
||||||
|
// headerId(2)=0x0001, dataSize(2)=24, uncompressed(8), compressed(8), offset(8)
|
||||||
|
extra = new Uint8Array(4 + 24)
|
||||||
|
const ev = new DataView(extra.buffer)
|
||||||
|
u16(ev, 0, 0x0001)
|
||||||
|
u16(ev, 2, 24)
|
||||||
|
ev.setBigUint64(4, BigInt(file.uncompressedLength), true)
|
||||||
|
ev.setBigUint64(12, BigInt(file.compressedLength), true)
|
||||||
|
ev.setBigUint64(20, BigInt(file.offset), true)
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerLen = 46 + file.nameBuf.length + extra.length + file.comment.length
|
||||||
|
const cd = getDataHelper(headerLen)
|
||||||
|
|
||||||
|
u32(cd.view, 0, ZIP_SIGNATURE_CENTRAL)
|
||||||
|
u16(cd.view, 4, versionMadeBy)
|
||||||
|
u16(cd.view, 6, versionNeeded)
|
||||||
|
u16(cd.view, 8, generalPurposeBitFlag) // 中央目录应用UTF-8标记
|
||||||
|
u16(cd.view, 10, compressionMethod)
|
||||||
|
u16(cd.view, 12, file.time)
|
||||||
|
u16(cd.view, 14, file.date)
|
||||||
|
u32(cd.view, 16, crc)
|
||||||
|
u32(cd.view, 20, compressed32)
|
||||||
|
u32(cd.view, 24, uncompressed32)
|
||||||
|
u16(cd.view, 28, file.nameBuf.length)
|
||||||
|
u16(cd.view, 30, extra.length)
|
||||||
|
u16(cd.view, 32, file.comment.length)
|
||||||
|
u16(cd.view, 34, 0) // disk number start
|
||||||
|
u16(cd.view, 36, 0) // internal attrs
|
||||||
|
|
||||||
|
// external file attrs: mark directory
|
||||||
|
u32(cd.view, 38, file.directory ? 0x10 : 0)
|
||||||
|
|
||||||
|
u32(cd.view, 42, offset32)
|
||||||
|
|
||||||
|
cd.array.set(file.nameBuf, 46)
|
||||||
|
if (extra.length) cd.array.set(extra, 46 + file.nameBuf.length)
|
||||||
|
if (file.comment.length) cd.array.set(file.comment, 46 + file.nameBuf.length + extra.length)
|
||||||
|
|
||||||
|
cdChunks.push(cd.array)
|
||||||
|
cdSize += cd.array.length
|
||||||
|
}
|
||||||
|
|
||||||
|
const centralDirectoryOffset = offset
|
||||||
|
const centralDirectory = concatUint8(cdChunks, cdSize)
|
||||||
|
ctrl.enqueue(centralDirectory)
|
||||||
|
offset += centralDirectory.length
|
||||||
|
|
||||||
|
const entries = filenames.length
|
||||||
|
|
||||||
|
const needsZip64ForArchive =
|
||||||
|
entries > 0xFFFF ||
|
||||||
|
centralDirectoryOffset > ZIP64_MAGIC ||
|
||||||
|
cdSize > ZIP64_MAGIC ||
|
||||||
|
offset > ZIP64_MAGIC
|
||||||
|
|
||||||
|
const tailChunks = []
|
||||||
|
let tailSize = 0
|
||||||
|
|
||||||
|
if (needsZip64ForArchive) {
|
||||||
|
// ZIP64 EOCD
|
||||||
|
const zip64eocd = getDataHelper(56)
|
||||||
|
u32(zip64eocd.view, 0, ZIP_SIGNATURE_ZIP64_EOCD)
|
||||||
|
zip64eocd.view.setBigUint64(4, BigInt(44), true) // remaining size
|
||||||
|
u16(zip64eocd.view, 12, 45)
|
||||||
|
u16(zip64eocd.view, 14, 45)
|
||||||
|
u32(zip64eocd.view, 16, 0)
|
||||||
|
u32(zip64eocd.view, 20, 0)
|
||||||
|
zip64eocd.view.setBigUint64(24, BigInt(entries), true)
|
||||||
|
zip64eocd.view.setBigUint64(32, BigInt(entries), true)
|
||||||
|
zip64eocd.view.setBigUint64(40, BigInt(cdSize), true)
|
||||||
|
zip64eocd.view.setBigUint64(48, BigInt(centralDirectoryOffset), true)
|
||||||
|
|
||||||
|
// ZIP64 locator
|
||||||
|
const locator = getDataHelper(20)
|
||||||
|
u32(locator.view, 0, ZIP_SIGNATURE_ZIP64_LOCATOR)
|
||||||
|
u32(locator.view, 4, 0)
|
||||||
|
locator.view.setBigUint64(8, BigInt(centralDirectoryOffset + cdSize), true) // offset of zip64eocd
|
||||||
|
u32(locator.view, 16, 1)
|
||||||
|
|
||||||
|
tailChunks.push(zip64eocd.array, locator.array)
|
||||||
|
tailSize += zip64eocd.array.length + locator.array.length
|
||||||
|
}
|
||||||
|
|
||||||
|
// EOCD
|
||||||
|
const eocd = getDataHelper(22)
|
||||||
|
u32(eocd.view, 0, ZIP_SIGNATURE_EOCD)
|
||||||
|
u16(eocd.view, 4, 0)
|
||||||
|
u16(eocd.view, 6, 0)
|
||||||
|
u16(eocd.view, 8, Math.min(entries, 0xFFFF))
|
||||||
|
u16(eocd.view, 10, Math.min(entries, 0xFFFF))
|
||||||
|
u32(eocd.view, 12, needsZip64ForArchive ? ZIP64_MAGIC : cdSize)
|
||||||
|
u32(eocd.view, 16, needsZip64ForArchive ? ZIP64_MAGIC : centralDirectoryOffset)
|
||||||
|
u16(eocd.view, 20, 0) // comment length
|
||||||
|
|
||||||
|
tailChunks.push(eocd.array)
|
||||||
|
tailSize += eocd.array.length
|
||||||
|
|
||||||
|
ctrl.enqueue(concatUint8(tailChunks, tailSize))
|
||||||
|
ctrl.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
return new ReadableStream({
|
||||||
|
start: c => {
|
||||||
|
ctrl = c
|
||||||
|
underlyingSource.start && Promise.resolve(underlyingSource.start(zipWriter))
|
||||||
|
},
|
||||||
|
pull() {
|
||||||
|
return processNextChunk() || (
|
||||||
|
underlyingSource.pull &&
|
||||||
|
Promise.resolve(underlyingSource.pull(zipWriter))
|
||||||
|
)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
window.ZIP = createWriter
|
||||||
@@ -23,7 +23,11 @@ export default {
|
|||||||
|
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
resetPassword(this.userId).then(res => {
|
let data = {
|
||||||
|
BaseUrl: `${location.protocol}//${location.host}/login`,
|
||||||
|
IdentityUserId: this.userId
|
||||||
|
}
|
||||||
|
resetPassword(data).then(res => {
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: 'Reset password successfully',
|
message: 'Reset password successfully',
|
||||||
|
|||||||
@@ -179,7 +179,8 @@ export default {
|
|||||||
trigger: 'blur',
|
trigger: 'blur',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'email',
|
// type: 'email',
|
||||||
|
pattern: new RegExp(this.$reg().EmailRegexStr),
|
||||||
message: 'Please input the correct email address',
|
message: 'Please input the correct email address',
|
||||||
trigger: ['blur'],
|
trigger: ['blur'],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export default {
|
|||||||
this.currentTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
this.currentTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||||
},
|
},
|
||||||
handleTitleClick() {
|
handleTitleClick() {
|
||||||
if (!screenfull.enabled) {
|
if (!screenfull.isEnabled) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: 'Your browser can not work',
|
message: 'Your browser can not work',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
@@ -29,8 +29,12 @@
|
|||||||
:src="item.previewImageUrl"
|
:src="item.previewImageUrl"
|
||||||
fit="fill"
|
fit="fill"
|
||||||
/> -->
|
/> -->
|
||||||
<img class="image-preview" :src="item.previewImageUrl" crossorigin="anonymous" alt=""
|
<div class="imageBox" style="width: 72px;height:72px;">
|
||||||
style="width: 72px;height:72px;" fit="fill">
|
<img class="image-preview" :src="item.previewImageUrl" crossorigin="anonymous" alt=""
|
||||||
|
style="width: 72px;height:72px;" fit="fill" />
|
||||||
|
<i class="el-icon-refresh" :title="$t('tip:refreshImage')"
|
||||||
|
@click.stop="refreshImage(item)"></i>
|
||||||
|
</div>
|
||||||
<div class="viewernavitextwrapper">
|
<div class="viewernavitextwrapper">
|
||||||
<div style="padding: 1px 5px 1px 1px;display: flex;justify-content: space-between;">
|
<div style="padding: 1px 5px 1px 1px;display: flex;justify-content: space-between;">
|
||||||
<div v-if="item.keySeries" style="color:red">
|
<div v-if="item.keySeries" style="color:red">
|
||||||
@@ -83,33 +87,36 @@
|
|||||||
{{ item.description }}
|
{{ item.description }}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!item.keySeries" style="padding: 1px;">
|
<div v-if="!item.keySeries" style="padding: 1px;">
|
||||||
{{ item.imageloadedArr.length }}/{{ item.instanceCount }}
|
{{ item.imageloadedArr.length <= item.instanceCount ? item.imageloadedArr.length :
|
||||||
|
item.instanceCount }}/{{ item.instanceCount }} </div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div v-if="showDelete" style="display: flex;flex-direction: row;justify-content: space-between;"
|
||||||
<div v-if="showDelete" style="display: flex;flex-direction: row;justify-content: space-between;"
|
@click.stop="">
|
||||||
@click.stop="">
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span style="font-size: 12px;margin-right: 5px">{{ $t('trials:audit:table:isReading')
|
<span style="font-size: 12px;margin-right: 5px">{{ $t('trials:audit:table:isReading')
|
||||||
}}</span>
|
}}</span>
|
||||||
<el-switch v-model="item.isReading" size="mini" @change="changeReadingStatus($event, item)" />
|
<el-switch v-model="item.isReading" size="mini"
|
||||||
|
@change="changeReadingStatus($event, item)" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span style="font-size: 12px;margin-right: 5px">{{ $t('trials:audit:table:isDelete')
|
||||||
|
}}</span>
|
||||||
|
<el-switch v-model="item.isDeleted" size="mini"
|
||||||
|
@change="changeDeleteStatus($event, item)" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div
|
||||||
<span style="font-size: 12px;margin-right: 5px">{{ $t('trials:audit:table:isDelete') }}</span>
|
v-if="item.prefetchInstanceCount > 0 && item.prefetchInstanceCount < item.instanceCount * 100">
|
||||||
<el-switch v-model="item.isDeleted" size="mini" @change="changeDeleteStatus($event, item)" />
|
<el-progress
|
||||||
|
:percentage="parseInt((item.prefetchInstanceCount / item.instanceCount).toFixed(2))" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
v-if="item.prefetchInstanceCount > 0 && item.prefetchInstanceCount < item.instanceCount * 100">
|
|
||||||
<el-progress
|
|
||||||
:percentage="parseInt((item.prefetchInstanceCount / item.instanceCount).toFixed(2))" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
@@ -133,7 +140,7 @@ import * as cornerstone from 'cornerstone-core'
|
|||||||
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
|
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
|
||||||
import dicomViewer from '@/components/Dicom/DicomViewer'
|
import dicomViewer from '@/components/Dicom/DicomViewer'
|
||||||
import { getStudyInfo, getSeriesList } from '@/api/reading'
|
import { getStudyInfo, getSeriesList } from '@/api/reading'
|
||||||
import { getInstanceList, getPatientSeriesList, setSeriesStatus, setInstanceStatus } from '@/api/trials'
|
import { getInstanceList, getPatientSeriesList, setSeriesStatus, setInstanceStatus, updateImageResizePath } from '@/api/trials'
|
||||||
|
|
||||||
import requestPoolManager from '@/utils/request-pool'
|
import requestPoolManager from '@/utils/request-pool'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
@@ -194,7 +201,8 @@ export default {
|
|||||||
currentLoadIns: [],
|
currentLoadIns: [],
|
||||||
isFromCRCUpload: false,
|
isFromCRCUpload: false,
|
||||||
isReading: null,
|
isReading: null,
|
||||||
activeSeriesId: null
|
activeSeriesId: null,
|
||||||
|
isPacs: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: function () {
|
created: function () {
|
||||||
@@ -211,6 +219,9 @@ export default {
|
|||||||
if (this.$router.currentRoute.query.isReading) {
|
if (this.$router.currentRoute.query.isReading) {
|
||||||
this.isReading = this.$router.currentRoute.query.isReading
|
this.isReading = this.$router.currentRoute.query.isReading
|
||||||
}
|
}
|
||||||
|
if (this.$router.currentRoute.query.isPacs) {
|
||||||
|
this.isPacs = Boolean(this.$router.currentRoute.query.isPacs)
|
||||||
|
}
|
||||||
this.studyId = this.$router.currentRoute.query.studyId
|
this.studyId = this.$router.currentRoute.query.studyId
|
||||||
this.isFromCRCUpload = !!this.$router.currentRoute.query.isFromCRCUpload
|
this.isFromCRCUpload = !!this.$router.currentRoute.query.isFromCRCUpload
|
||||||
if (this.type === 'Series') {
|
if (this.type === 'Series') {
|
||||||
@@ -240,8 +251,68 @@ export default {
|
|||||||
workSpeedclose(true)
|
workSpeedclose(true)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async updateImageResizePath(data) {
|
||||||
|
try {
|
||||||
|
let res = await updateImageResizePath(data)
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$message.success(this.$t("message:tip:updateImageResizePath:success"))
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async refreshImage(item) {
|
||||||
|
let thumbnailPath = item.previewImageUrl.split(this.OSSclientConfig.basePath)[1]
|
||||||
|
let blob = await this.dicomToPng(item.imageIds[0])
|
||||||
|
let OSSclient = this.OSSclient
|
||||||
|
try {
|
||||||
|
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
||||||
|
if (seriesRes && seriesRes.url) {
|
||||||
|
let path = this.$getObjectName(seriesRes.url)
|
||||||
|
item.previewImageUrl = seriesRes.url
|
||||||
|
let data = {
|
||||||
|
seriesId: item.seriesId,
|
||||||
|
ImageResizePath: path
|
||||||
|
}
|
||||||
|
this.updateImageResizePath(data)
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dicomToPng(imageId) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
cornerstone.loadImage(imageId).then(async (image) => {
|
||||||
|
let width = image.columns, height = image.rows;
|
||||||
|
let canvas = document.createElement('canvas')
|
||||||
|
canvas.width = (width * 60) / height
|
||||||
|
canvas.height = 60
|
||||||
|
if (image) {
|
||||||
|
cornerstone.renderToCanvas(canvas, image)
|
||||||
|
// 将 Canvas 图像对象转换为 PNG 格式
|
||||||
|
let blob = await this.canvasToBlob(canvas)
|
||||||
|
resolve(blob)
|
||||||
|
} else {
|
||||||
|
resolve()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}).catch((reason) => {
|
||||||
|
reason()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
canvasToBlob(canvas) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
canvas.toBlob((blob) => {
|
||||||
|
resolve(blob)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
async loadStudy() {
|
async loadStudy() {
|
||||||
const data = await getStudyInfo(this.studyId)
|
let params = {}
|
||||||
|
if (this.isPacs) {
|
||||||
|
params.IsPacs = true
|
||||||
|
}
|
||||||
|
const data = await getStudyInfo(this.studyId, params)
|
||||||
if (data.IsSuccess) {
|
if (data.IsSuccess) {
|
||||||
if (data.Result) {
|
if (data.Result) {
|
||||||
this.studyCode = data.Result.StudyCode
|
this.studyCode = data.Result.StudyCode
|
||||||
@@ -250,6 +321,11 @@ export default {
|
|||||||
this.description = data.Result.Description
|
this.description = data.Result.Description
|
||||||
}
|
}
|
||||||
let isReading = !!this.isReading ? `?IsReading=true` : ''
|
let isReading = !!this.isReading ? `?IsReading=true` : ''
|
||||||
|
if (isReading && this.isPacs) {
|
||||||
|
isReading += `&IsPacs=true`
|
||||||
|
} else if (!isReading && this.isPacs) {
|
||||||
|
isReading = `?IsPacs=true`
|
||||||
|
}
|
||||||
const url = `/series/list/${this.studyId}${isReading}`
|
const url = `/series/list/${this.studyId}${isReading}`
|
||||||
this.getSeriesList(url)
|
this.getSeriesList(url)
|
||||||
}
|
}
|
||||||
@@ -300,7 +376,9 @@ export default {
|
|||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: item.IsExistMutiFrames,
|
isExistMutiFrames: item.IsExistMutiFrames,
|
||||||
isShowPopper: false
|
isShowPopper: false,
|
||||||
|
subjectCode: item.SubjectCode,
|
||||||
|
visitName: item.VisitName
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
@@ -360,7 +438,9 @@ export default {
|
|||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: item.IsExistMutiFrames,
|
isExistMutiFrames: item.IsExistMutiFrames,
|
||||||
isShowPopper: false
|
isShowPopper: false,
|
||||||
|
subjectCode: item.SubjectCode,
|
||||||
|
visitName: item.VisitName
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
@@ -430,7 +510,9 @@ export default {
|
|||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: isExistMutiFrames,
|
isExistMutiFrames: isExistMutiFrames,
|
||||||
isShowPopper: false
|
isShowPopper: false,
|
||||||
|
subjectCode: res.OtherInfo.SubjectCode,
|
||||||
|
visitName: res.OtherInfo.VisitName
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
if (this.seriesList.length > 0) {
|
if (this.seriesList.length > 0) {
|
||||||
@@ -516,7 +598,9 @@ export default {
|
|||||||
isReading: series.isReading,
|
isReading: series.isReading,
|
||||||
isDeleted: series.isDeleted,
|
isDeleted: series.isDeleted,
|
||||||
previewImageUrl: series.previewImageUrl,
|
previewImageUrl: series.previewImageUrl,
|
||||||
instanceCount: series.instanceCount
|
instanceCount: series.instanceCount,
|
||||||
|
subjectCode: series.SubjectCode,
|
||||||
|
visitName: series.VisitName
|
||||||
}
|
}
|
||||||
this.$refs.dicomViewer.loadImageStack(seriesInfo)
|
this.$refs.dicomViewer.loadImageStack(seriesInfo)
|
||||||
if (!series.loadStatus) {
|
if (!series.loadStatus) {
|
||||||
@@ -582,7 +666,9 @@ export default {
|
|||||||
keySeries: seriesInfo.KeySeries,
|
keySeries: seriesInfo.KeySeries,
|
||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isShowPopper: false
|
isShowPopper: false,
|
||||||
|
subjectCode: seriesInfo.SubjectCode,
|
||||||
|
visitName: seriesInfo.VisitName
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
if (this.seriesList.length > 0) {
|
if (this.seriesList.length > 0) {
|
||||||
@@ -861,13 +947,14 @@ export default {
|
|||||||
let file = this.seriesList[seriesIndex].instanceInfoList.find(item => item.ImageId === imageId)
|
let file = this.seriesList[seriesIndex].instanceInfoList.find(item => item.ImageId === imageId)
|
||||||
if (file && this.activeSeriesId === this.seriesList[seriesIndex].seriesId) {
|
if (file && this.activeSeriesId === this.seriesList[seriesIndex].seriesId) {
|
||||||
getNetWorkSpeed()
|
getNetWorkSpeed()
|
||||||
setNetWorkSpeedSize(percentComplete, e.detail.total, imageId)
|
setNetWorkSpeedSize(percentComplete, e.detail.total, imageId)
|
||||||
}
|
}
|
||||||
if (prefetchInstanceCount >= instanceCount * 100) {
|
if (prefetchInstanceCount >= instanceCount * 100) {
|
||||||
this.seriesList[seriesIndex].prefetchInstanceCount = instanceCount * 100
|
this.seriesList[seriesIndex].prefetchInstanceCount = instanceCount * 100
|
||||||
// 设置当前序列状态为已下载完成
|
// 设置当前序列状态为已下载完成
|
||||||
this.seriesList[seriesIndex].loadStatus = true
|
this.seriesList[seriesIndex].loadStatus = true
|
||||||
workSpeedclose()
|
workSpeedclose()
|
||||||
|
localStorage.setItem("QCRiskControl", 1)
|
||||||
if (!this.isFromCRCUpload) {
|
if (!this.isFromCRCUpload) {
|
||||||
this.loadAllImages()
|
this.loadAllImages()
|
||||||
}
|
}
|
||||||
@@ -878,7 +965,18 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="scss" scoped>
|
||||||
|
.imageBox {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
i {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.viewerContainer .el-tabs--border-card {
|
.viewerContainer .el-tabs--border-card {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -45,8 +45,12 @@
|
|||||||
style="position: relative;margin-bottom:5px;border-radius: 2px;border: 1px solid #404040;"
|
style="position: relative;margin-bottom:5px;border-radius: 2px;border: 1px solid #404040;"
|
||||||
series-type="current" @click="showSeriesImage($event, index, i, series)">
|
series-type="current" @click="showSeriesImage($event, index, i, series)">
|
||||||
<div class="viewernavigatorwrapper">
|
<div class="viewernavigatorwrapper">
|
||||||
<img class="image-preview" :src="series.previewImageUrl" crossorigin="anonymous" alt=""
|
<div class="imageBox" style="width: 72px;height:72px;">
|
||||||
style="width: 85px;height:85px;" fit="fill">
|
<img class="image-preview" :src="series.previewImageUrl" crossorigin="anonymous" alt=""
|
||||||
|
style="width: 72px;height:72px;" fit="fill" />
|
||||||
|
<i class="el-icon-refresh" :title="$t('tip:refreshImage')"
|
||||||
|
@click.stop="refreshImage(series)"></i>
|
||||||
|
</div>
|
||||||
<div class="viewernavitextwrapper">
|
<div class="viewernavitextwrapper">
|
||||||
<div style="padding: 1px 5px 1px 1px;display: flex;justify-content: space-between;">
|
<div style="padding: 1px 5px 1px 1px;display: flex;justify-content: space-between;">
|
||||||
<div>#{{ series.seriesNumber }}</div>
|
<div>#{{ series.seriesNumber }}</div>
|
||||||
@@ -113,35 +117,35 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<div style="padding: 1px;">
|
<div style="padding: 1px;">
|
||||||
{{ series.imageloadedArr.length }}/{{ series.instanceCount }}
|
{{ series.imageloadedArr.length <= series.instanceCount ? series.imageloadedArr.length :
|
||||||
|
series.instanceCount }}/{{ series.instanceCount }} </div>
|
||||||
|
<div />
|
||||||
</div>
|
</div>
|
||||||
<div />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div v-if="showDelete"
|
||||||
<div v-if="showDelete"
|
style="display: flex;flex-direction: row;justify-content: space-between;" @click.stop="">
|
||||||
style="display: flex;flex-direction: row;justify-content: space-between;" @click.stop="">
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span style="font-size: 12px;">{{ $t('trials:audit:table:isReading') }}</span>
|
<span style="font-size: 12px;">{{ $t('trials:audit:table:isReading') }}</span>
|
||||||
<el-switch v-model="series.isReading" size="mini"
|
<el-switch v-model="series.isReading" size="mini"
|
||||||
@change="changeReadingStatus($event, series)" />
|
@change="changeReadingStatus($event, series)" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span style="font-size: 12px;">{{ $t('trials:audit:table:isDelete') }}</span>
|
||||||
|
<el-switch v-model="series.isDeleted" size="mini"
|
||||||
|
@change="changeDeleteStatus($event, series)" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<!-- <div style="position: absolute;bottom: -10px;left: 0;width: 100%;">
|
||||||
<span style="font-size: 12px;">{{ $t('trials:audit:table:isDelete') }}</span>
|
|
||||||
<el-switch v-model="series.isDeleted" size="mini"
|
|
||||||
@change="changeDeleteStatus($event, series)" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- <div style="position: absolute;bottom: -10px;left: 0;width: 100%;">
|
|
||||||
<el-progress v-if="series.prefetchInstanceCount>0 && series.prefetchInstanceCount<series.instanceCount" :percentage="Number(series.prefetchInstanceCount/series.instanceCount)*100" />
|
<el-progress v-if="series.prefetchInstanceCount>0 && series.prefetchInstanceCount<series.instanceCount" :percentage="Number(series.prefetchInstanceCount/series.instanceCount)*100" />
|
||||||
</div> -->
|
</div> -->
|
||||||
<div
|
<div
|
||||||
v-if="series.prefetchInstanceCount > 0 && series.prefetchInstanceCount < series.instanceCount * 100">
|
v-if="series.prefetchInstanceCount > 0 && series.prefetchInstanceCount < series.instanceCount * 100">
|
||||||
<el-progress
|
<el-progress
|
||||||
:percentage="parseInt((series.prefetchInstanceCount / series.instanceCount).toFixed(2))" />
|
:percentage="parseInt((series.prefetchInstanceCount / series.instanceCount).toFixed(2))" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
|
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
@@ -184,8 +188,12 @@
|
|||||||
<div class="viewernavigatorwrapper"
|
<div class="viewernavigatorwrapper"
|
||||||
style="position: relative;border:1px solid #434343;" series-type="relation"
|
style="position: relative;border:1px solid #434343;" series-type="relation"
|
||||||
@click="showRelationSeriesImage($event, seriesItem, studyIndex, index)">
|
@click="showRelationSeriesImage($event, seriesItem, studyIndex, index)">
|
||||||
<img class="image-preview" :src="seriesItem.previewImageUrl" crossorigin="anonymous"
|
<div class="imageBox" style="width: 72px;height:72px;">
|
||||||
alt="" style="width: 85px;height:85px;" fit="fill">
|
<img class="image-preview" :src="seriesItem.previewImageUrl"
|
||||||
|
crossorigin="anonymous" alt="" style="width: 72px;height:72px;" fit="fill" />
|
||||||
|
<i class="el-icon-refresh" :title="$t('tip:refreshImage')"
|
||||||
|
@click.stop="refreshImage(item)"></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="viewernavitextwrapper">
|
<div class="viewernavitextwrapper">
|
||||||
<div
|
<div
|
||||||
@@ -273,7 +281,7 @@ import * as cornerstone from 'cornerstone-core'
|
|||||||
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
|
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
|
||||||
import dicomViewer from '@/components/Dicom/DicomViewer'
|
import dicomViewer from '@/components/Dicom/DicomViewer'
|
||||||
import { getVisitStudyList, getAllRelationStudyList, getSeriesList } from '@/api/reading'
|
import { getVisitStudyList, getAllRelationStudyList, getSeriesList } from '@/api/reading'
|
||||||
import { setSeriesStatus, setInstanceStatus } from '@/api/trials'
|
import { setSeriesStatus, setInstanceStatus, updateImageResizePath } from '@/api/trials'
|
||||||
import { getTaskUploadedDicomStudyList } from '@/api/reading'
|
import { getTaskUploadedDicomStudyList } from '@/api/reading'
|
||||||
import requestPoolManager from '@/utils/request-pool'
|
import requestPoolManager from '@/utils/request-pool'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
@@ -358,17 +366,76 @@ export default {
|
|||||||
workSpeedclose(true)
|
workSpeedclose(true)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async updateImageResizePath(data) {
|
||||||
|
try {
|
||||||
|
let res = await updateImageResizePath(data)
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$message.success(this.$t("message:tip:updateImageResizePath:success"))
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async refreshImage(item) {
|
||||||
|
let thumbnailPath = item.previewImageUrl.split(this.OSSclientConfig.basePath)[1]
|
||||||
|
let blob = await this.dicomToPng(item.imageIds[0])
|
||||||
|
let OSSclient = this.OSSclient
|
||||||
|
try {
|
||||||
|
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
||||||
|
if (seriesRes && seriesRes.url) {
|
||||||
|
let path = this.$getObjectName(seriesRes.url)
|
||||||
|
item.previewImageUrl = seriesRes.url
|
||||||
|
let data = {
|
||||||
|
seriesId: item.seriesId,
|
||||||
|
ImageResizePath: path
|
||||||
|
}
|
||||||
|
this.updateImageResizePath(data)
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dicomToPng(imageId) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
cornerstone.loadImage(imageId).then(async (image) => {
|
||||||
|
let width = image.columns, height = image.rows;
|
||||||
|
let canvas = document.createElement('canvas')
|
||||||
|
canvas.width = (width * 60) / height
|
||||||
|
canvas.height = 60
|
||||||
|
if (image) {
|
||||||
|
cornerstone.renderToCanvas(canvas, image)
|
||||||
|
// 将 Canvas 图像对象转换为 PNG 格式
|
||||||
|
let blob = await this.canvasToBlob(canvas)
|
||||||
|
resolve(blob)
|
||||||
|
} else {
|
||||||
|
resolve()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}).catch((reason) => {
|
||||||
|
reason()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
canvasToBlob(canvas) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
canvas.toBlob((blob) => {
|
||||||
|
resolve(blob)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取某个访视下所有的检查信息
|
// 获取某个访视下所有的检查信息
|
||||||
async getStudiesInfo() {
|
async getStudiesInfo() {
|
||||||
this.studyList = []
|
this.studyList = []
|
||||||
try {
|
try {
|
||||||
let res = null
|
let res = null
|
||||||
if (this.page === 'upload') {
|
if (this.page === 'upload') {
|
||||||
res = await getTaskUploadedDicomStudyList({ visitTaskId: this.visitTaskId })
|
res = await getTaskUploadedDicomStudyList({ visitTaskId: this.visitTaskId !== 'undefined' ? this.visitTaskId : null, subjectVisitId: this.subjectVisitId })
|
||||||
} else if (this.page === 'download') {
|
}
|
||||||
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId)
|
// else if (this.page === 'download') {
|
||||||
} else {
|
// res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId)
|
||||||
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading)
|
// }
|
||||||
|
else {
|
||||||
|
// res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading)
|
||||||
|
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId !== 'undefined' ? this.visitTaskId : null)
|
||||||
}
|
}
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
res.Result.forEach((study, studyIndex) => {
|
res.Result.forEach((study, studyIndex) => {
|
||||||
@@ -417,7 +484,9 @@ export default {
|
|||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: series.IsExistMutiFrames,
|
isExistMutiFrames: series.IsExistMutiFrames,
|
||||||
isShowPopper: false
|
isShowPopper: false,
|
||||||
|
subjectCode: series.SubjectCode,
|
||||||
|
visitName: series.VisitName
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
data.SeriesList = seriesList
|
data.SeriesList = seriesList
|
||||||
@@ -518,7 +587,9 @@ export default {
|
|||||||
isReading: series.isReading,
|
isReading: series.isReading,
|
||||||
isDeleted: series.isDeleted,
|
isDeleted: series.isDeleted,
|
||||||
previewImageUrl: series.previewImageUrl,
|
previewImageUrl: series.previewImageUrl,
|
||||||
instanceCount: series.instanceCount
|
instanceCount: series.instanceCount,
|
||||||
|
subjectCode: series.SubjectCode,
|
||||||
|
visitName: series.VisitName
|
||||||
}
|
}
|
||||||
this.$refs.dicomViewer.loadImageStack(seriesInfo)
|
this.$refs.dicomViewer.loadImageStack(seriesInfo)
|
||||||
if (!series.loadStatus) {
|
if (!series.loadStatus) {
|
||||||
@@ -792,7 +863,9 @@ export default {
|
|||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: item.IsExistMutiFrames,
|
isExistMutiFrames: item.IsExistMutiFrames,
|
||||||
isShowPopper: false
|
isShowPopper: false,
|
||||||
|
subjectCode: item.SubjectCode,
|
||||||
|
visitName: item.VisitName
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// scope.relationStudyList[index].seriesCount = seriesList.length
|
// scope.relationStudyList[index].seriesCount = seriesList.length
|
||||||
@@ -931,13 +1004,25 @@ export default {
|
|||||||
this.loadAllImages()
|
this.loadAllImages()
|
||||||
}
|
}
|
||||||
workSpeedclose()
|
workSpeedclose()
|
||||||
|
localStorage.setItem("QCRiskControl", 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="scss">
|
||||||
|
.imageBox {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
i {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.viewerContainer .el-tabs--border-card {
|
.viewerContainer .el-tabs--border-card {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ import ppt from '@/assets/file_icon/ppt.png'
|
|||||||
import pptx from '@/assets/file_icon/pptx.png'
|
import pptx from '@/assets/file_icon/pptx.png'
|
||||||
import xls from '@/assets/file_icon/xls.png'
|
import xls from '@/assets/file_icon/xls.png'
|
||||||
import xlsx from '@/assets/file_icon/xlsx.png'
|
import xlsx from '@/assets/file_icon/xlsx.png'
|
||||||
import mp4 from '@/assets/file_icon/xlsx.png'
|
import mp4 from '@/assets/file_icon/mp4.png'
|
||||||
import PreviewFile from '@/components/PreviewFile'
|
import PreviewFile from '@/components/PreviewFile'
|
||||||
import imageViewer from './image-viewer'
|
import imageViewer from './image-viewer'
|
||||||
import { getSystemDocumentAttachmentList } from '@/api/dictionary'
|
import { getSystemDocumentAttachmentList } from '@/api/dictionary'
|
||||||
@@ -106,6 +106,16 @@ export default {
|
|||||||
isTrial: {
|
isTrial: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
isExternal: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
ExternalList: {
|
||||||
|
type: Array,
|
||||||
|
default: () => {
|
||||||
|
return []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -122,7 +132,8 @@ export default {
|
|||||||
rowData: {},
|
rowData: {},
|
||||||
list: [],
|
list: [],
|
||||||
searchData: defaultSearchData(),
|
searchData: defaultSearchData(),
|
||||||
title: this.$t('dictionary:signature:fileList')
|
title: this.$t('dictionary:signature:fileList'),
|
||||||
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -131,6 +142,16 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
},
|
||||||
|
isExternal: {
|
||||||
|
handler() {
|
||||||
|
if (this.isExternal) {
|
||||||
|
this.list = this.ExternalList
|
||||||
|
this.rowData = this.list[0] || {}
|
||||||
|
this.title = this.$t('dictionary:signature:view')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -145,6 +166,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async getList() {
|
async getList() {
|
||||||
try {
|
try {
|
||||||
|
if (this.isExternal) return
|
||||||
if (!this.SystemDocumentId) return false
|
if (!this.SystemDocumentId) return false
|
||||||
this.loading = true
|
this.loading = true
|
||||||
if (!this.isTrial) {
|
if (!this.isTrial) {
|
||||||
|
|||||||
@@ -0,0 +1,269 @@
|
|||||||
|
<template>
|
||||||
|
<el-form ref="sysTemplateFrom" v-loading="loading" :model="form" label-width="140px" size="small" :rules="rules"
|
||||||
|
class="upload-temporary-file">
|
||||||
|
<div class="base-dialog-body">
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:code')" prop="Code">
|
||||||
|
<el-input v-model="form.Code" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')" prop="BusinessScenarioEnum">
|
||||||
|
<el-select v-model="form.BusinessScenarioEnum" style="width: 100%" size="small" filterable>
|
||||||
|
<el-option v-for="item of $d.Common_File_BusinessScenario" :key="item.id" :label="item.label"
|
||||||
|
:value="item.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:file')">
|
||||||
|
<div class="upload-container">
|
||||||
|
<el-upload class="upload-demo" action accept="" :before-upload="beforeUpload" :http-request="handleUploadFile"
|
||||||
|
:on-preview="handlePreview" :on-remove="handleRemoveFile" :show-file-list="true" :file-list="fileList"
|
||||||
|
:limit="1" :on-exceed="handleExceed" :disabled="(!form.FileTypeEnum && form.FileTypeEnum !== 0)">
|
||||||
|
<el-button size="small" type="primary" :disabled="(!form.FileTypeEnum && form.FileTypeEnum !== 0)"
|
||||||
|
:loading="btnLoading">Select</el-button>
|
||||||
|
<!-- <span slot="tip" style="margin-left: 10px" class="el-upload__tip">
|
||||||
|
(must be in xlsx/xls/doc/docx format)
|
||||||
|
</span> -->
|
||||||
|
</el-upload>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:name')" prop="Name">
|
||||||
|
<el-input v-model="form.Name" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:export:form:nameCN')" prop="NameCN">
|
||||||
|
<el-input v-model="form.NameCN" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="form.Id !== ''" :label="$t('dictionary:attachment:label:isDeleted')">
|
||||||
|
<el-radio-group v-model="form.IsDeleted">
|
||||||
|
<el-radio v-for="item of $d.YesOrNo" :label="item.value" :key="item.id">{{ item.label }}</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:description')">
|
||||||
|
<el-input v-model="form.Description" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" />
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="base-dialog-footer" style="text-align: right; margin-top: 10px">
|
||||||
|
<el-form-item style="text-align: right">
|
||||||
|
<el-button size="small" type="primary" :disabled="(!form.FileTypeEnum && form.FileTypeEnum !== 0)"
|
||||||
|
:loading="saveBtnLoading" @click="handleSave">{{ $t('common:button:save') }}</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
addOrUpdateCommonDocument,
|
||||||
|
uploadCommonDoc,
|
||||||
|
Upload,
|
||||||
|
} from '@/api/dictionary'
|
||||||
|
import { getBasicDataSelects } from '@/api/dictionary/dictionary'
|
||||||
|
export default {
|
||||||
|
name: 'TemplateForm',
|
||||||
|
props: {
|
||||||
|
data: {
|
||||||
|
type: Object,
|
||||||
|
default() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {
|
||||||
|
Id: '',
|
||||||
|
Code: '',
|
||||||
|
FileTypeEnum: 0,
|
||||||
|
BusinessScenarioEnum: null,
|
||||||
|
Name: '',
|
||||||
|
NameCN: '',
|
||||||
|
Path: '',
|
||||||
|
Description: '',
|
||||||
|
IsDeleted: false,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
Code: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
Name: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
NameCN: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
BusinessScenarioEnum: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
fileList: [],
|
||||||
|
btnLoading: false,
|
||||||
|
saveBtnLoading: false,
|
||||||
|
loading: false,
|
||||||
|
dictionaryList: {},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.initForm()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async initForm() {
|
||||||
|
await this.getDicData()
|
||||||
|
if (Object.keys(this.data).length > 0) {
|
||||||
|
if (this.data.Path) {
|
||||||
|
this.fileList = [
|
||||||
|
{
|
||||||
|
name: this.data.Name,
|
||||||
|
path: this.data.Path,
|
||||||
|
url: this.data.Path,
|
||||||
|
type: this.data.Type,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
for (const k in this.form) {
|
||||||
|
if (this.data.hasOwnProperty(k)) {
|
||||||
|
this.form[k] = this.data[k]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 获取文件类型下拉框
|
||||||
|
getDicData() {
|
||||||
|
this.loading = true
|
||||||
|
getBasicDataSelects(['Common_File_ModuleType', 'Common_File_Type'])
|
||||||
|
.then((res) => {
|
||||||
|
this.dictionaryList = { ...res.Result }
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
beforeUpload(file) {
|
||||||
|
// 检测文件类型是否符合要求
|
||||||
|
if (this.checkFileSuffix(file.name)) {
|
||||||
|
this.fileList = []
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$alert(this.$t('dictionary:attachment:export:alert:formatFile'))
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async handleUploadFile(param) {
|
||||||
|
this.loading = true
|
||||||
|
this.form.FileName = param.file.name
|
||||||
|
let extendName = param.file.name
|
||||||
|
.substring(param.file.name.lastIndexOf('.'))
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
let file = await this.fileToBlob(param.file)
|
||||||
|
let res = await this.OSSclient.put(`/System/Tools/${this.$guid()}${extendName}`, file)
|
||||||
|
this.form.Path = this.$getObjectName(res.url)
|
||||||
|
this.form.NameCN = param.file.name
|
||||||
|
this.fileList.push({
|
||||||
|
name: param.file.name,
|
||||||
|
path: this.form.Path,
|
||||||
|
fullPath: this.form.Path,
|
||||||
|
url: this.form.Path,
|
||||||
|
})
|
||||||
|
this.loading = false
|
||||||
|
this.btnLoading = false
|
||||||
|
// Upload(formData, 1).then((res) => {
|
||||||
|
// this.fileList.push({
|
||||||
|
// name: param.file.name,
|
||||||
|
// path: res.Result.FilePath,
|
||||||
|
// fullPath: res.Result.FullFilePath,
|
||||||
|
// url: res.Result.FilePath,
|
||||||
|
// })
|
||||||
|
|
||||||
|
// })
|
||||||
|
},
|
||||||
|
fileToBlob(file) {
|
||||||
|
// 创建 FileReader 对象
|
||||||
|
const reader = new FileReader()
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
// FileReader 添加 load 事件
|
||||||
|
reader.addEventListener('load', (e) => {
|
||||||
|
let blob
|
||||||
|
if (typeof e.target.result === 'object') {
|
||||||
|
blob = new Blob([e.target.result])
|
||||||
|
} else {
|
||||||
|
blob = e.target.result
|
||||||
|
}
|
||||||
|
resolve(blob)
|
||||||
|
})
|
||||||
|
// FileReader 以 ArrayBuffer 格式 读取 File 对象中数据
|
||||||
|
reader.readAsArrayBuffer(file)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSave() {
|
||||||
|
this.$refs.sysTemplateFrom.validate((valid) => {
|
||||||
|
if (!valid) return
|
||||||
|
if (!this.form.Name) {
|
||||||
|
this.$alert(this.$t('dictionary:attachment:message:msg1'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.saveBtnLoading = true
|
||||||
|
addOrUpdateCommonDocument(this.form)
|
||||||
|
.then((res) => {
|
||||||
|
this.saveBtnLoading = false
|
||||||
|
this.$emit('closeDialog')
|
||||||
|
this.$emit('getList')
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.saveBtnLoading = false
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleRemoveFile() {
|
||||||
|
this.fileList = []
|
||||||
|
this.form.Path = ''
|
||||||
|
this.form.NameCN = ''
|
||||||
|
this.form.Name = ''
|
||||||
|
},
|
||||||
|
handlePreview(file) {
|
||||||
|
if (file.fullPath) {
|
||||||
|
window.open(file.fullPath, '_blank')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleExceed(files, fileList) {
|
||||||
|
this.$message.warning(this.$t('upload:rule:maxFile1'))
|
||||||
|
},
|
||||||
|
checkFileSuffix(fileName) {
|
||||||
|
return true
|
||||||
|
var typeArr = ['xls', 'xlsx', 'doc', 'docx']
|
||||||
|
var extendName = fileName
|
||||||
|
.substring(fileName.lastIndexOf('.') + 1)
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
if (typeArr.indexOf(extendName) !== -1) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.upload-temporary-file {
|
||||||
|
.upload-container .el-upload--text {
|
||||||
|
border: none;
|
||||||
|
width: 80px;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-container .el-input--small {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-container .el-icon-circle-check {
|
||||||
|
color: #428bca;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account_item_clear {
|
||||||
|
.el-tag__close {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,238 @@
|
|||||||
|
<template>
|
||||||
|
<BaseContainer>
|
||||||
|
<template slot="search-container">
|
||||||
|
<el-form :inline="true" size="small">
|
||||||
|
<!-- 业务场景 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
|
||||||
|
<el-select v-model="searchData.BusinessScenarioEnum" style="width: 150px">
|
||||||
|
<el-option v-for="item of $d.Common_File_BusinessScenario" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- 文件名称 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:name')">
|
||||||
|
<el-input v-model="searchData.Name" style="width: 130px" clearable />
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item>
|
||||||
|
<!-- 查询 -->
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
|
{{ $t('common:button:search') }}
|
||||||
|
</el-button>
|
||||||
|
<!-- 重置 -->
|
||||||
|
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||||
|
{{ $t('common:button:reset') }}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-button type="primary" style="float: right" size="small" @click="handleAdd">
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
|
</el-button>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<template slot="main-container">
|
||||||
|
<el-table v-adaptive="{ bottomOffset: 60 }" v-loading="loading" :data="list" stripe height="100"
|
||||||
|
@sort-change="handleSortChange">
|
||||||
|
<el-table-column type="index" width="40" />
|
||||||
|
<el-table-column prop="Code" :label="$t('dictionary:attachment:label:code')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
<!-- 业务场景 -->
|
||||||
|
<el-table-column prop="BusinessScenarioEnum" :label="$t('dictionary:attachment:label:businessScenario')"
|
||||||
|
show-overflow-tooltip sortable="custom">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
$fd(
|
||||||
|
'Common_File_BusinessScenario',
|
||||||
|
scope.row.BusinessScenarioEnum
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- 文件名称 -->
|
||||||
|
<el-table-column prop="Name" :label="$t('dictionary:attachment:label:name')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
<el-table-column prop="NameCN" :label="$t('dictionary:attachment:upload:table:nameCN')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
<!-- 描述 -->
|
||||||
|
<el-table-column prop="Description" :label="$t('dictionary:attachment:label:description')"
|
||||||
|
show-overflow-tooltip />
|
||||||
|
<!-- 是否废除 -->
|
||||||
|
<el-table-column prop="IsDeleted" :label="$t('dictionary:attachment:label:isDeleted')" show-overflow-tooltip
|
||||||
|
sortable="custom">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
|
||||||
|
$fd('YesOrNo', scope.row.IsDeleted)
|
||||||
|
}}</el-tag>
|
||||||
|
<el-tag v-else type="primary">{{
|
||||||
|
$fd('YesOrNo', scope.row.IsDeleted)
|
||||||
|
}}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- 上传时间 -->
|
||||||
|
<el-table-column prop="UpdateTime" :label="$t('dictionary:attachment:label:updateTime')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
|
||||||
|
<el-table-column :label="$t('common:action:action')" width="300">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<!-- <el-button type="text" @click="PreviewFile(scope.row)">
|
||||||
|
{{ $t('common:button:preview') }}
|
||||||
|
</el-button> -->
|
||||||
|
<el-button type="text" @click="handleDownload(scope.row)">
|
||||||
|
{{ $t('common:button:download') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button type="text" @click="handleEdit(scope.row)">
|
||||||
|
{{ $t('common:button:edit') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button type="text" @click="handleDelete(scope.row)">
|
||||||
|
{{ $t('common:button:delete') }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<!-- 分页组件 -->
|
||||||
|
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||||
|
@pagination="getList" />
|
||||||
|
|
||||||
|
<!-- 新增/编辑 -->
|
||||||
|
<el-dialog v-if="editDialog.visible" :visible.sync="editDialog.visible" :close-on-click-modal="false"
|
||||||
|
:title="editDialog.title" width="600px" custom-class="base-dialog-wrapper">
|
||||||
|
<TemplateForm :data="currentRow" @closeDialog="closeDialog" @getList="getList" />
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
</BaseContainer>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getCommonDocumentList,
|
||||||
|
DownloadCommonDoc,
|
||||||
|
deleteCommonDocument,
|
||||||
|
} from '@/api/dictionary'
|
||||||
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
|
import Pagination from '@/components/Pagination'
|
||||||
|
import TemplateForm from './TemplateForm'
|
||||||
|
import { downLoadFile } from '@/utils/stream.js'
|
||||||
|
const FileTypeEnum = 0
|
||||||
|
const searchDataDefault = () => {
|
||||||
|
return {
|
||||||
|
FileTypeEnum: FileTypeEnum,
|
||||||
|
BusinessScenarioEnum: null,
|
||||||
|
Name: '',
|
||||||
|
PageIndex: 1,
|
||||||
|
PageSize: 20,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default {
|
||||||
|
name: 'ToolsTemplate',
|
||||||
|
components: { BaseContainer, Pagination, TemplateForm },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
searchData: searchDataDefault(),
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
currentRow: {},
|
||||||
|
editDialog: { title: '', visible: false },
|
||||||
|
loading: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
isEN() {
|
||||||
|
return this.$i18n.locale !== 'zh'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleDelete(row) {
|
||||||
|
// 确定删除该模版?
|
||||||
|
this.$confirm(this.$t('dictionary:attachment:message:msg1')).then(() => {
|
||||||
|
deleteCommonDocument(row.Id).then(() => {
|
||||||
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
}).catch(() => { })
|
||||||
|
},
|
||||||
|
PreviewFile(row) {
|
||||||
|
let basePath = window.location.origin
|
||||||
|
if (window.location.protocol !== 'https:') {
|
||||||
|
basePath = 'https://irc.test.extimaging.com'
|
||||||
|
}
|
||||||
|
let data = {
|
||||||
|
name: row.NameCN,
|
||||||
|
path: basePath + row.Path,
|
||||||
|
}
|
||||||
|
this.$emit('PreviewFile', data)
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true
|
||||||
|
getCommonDocumentList(this.searchData)
|
||||||
|
.then((res) => {
|
||||||
|
this.loading = false
|
||||||
|
this.list = res.Result.CurrentPageData
|
||||||
|
this.total = res.Result.TotalCount
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 新增
|
||||||
|
handleAdd() {
|
||||||
|
this.editDialog.title = this.$t('common:button:new')
|
||||||
|
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
||||||
|
this.editDialog.visible = true
|
||||||
|
},
|
||||||
|
// 下载
|
||||||
|
async handleDownload(row) {
|
||||||
|
try {
|
||||||
|
this.loading = true
|
||||||
|
let fileName = this.isEN ? row.Name : row.NameCN;
|
||||||
|
let type = fileName
|
||||||
|
.substring(fileName.lastIndexOf('.'))
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
if (!type) {
|
||||||
|
let extendName = row.Path
|
||||||
|
.substring(row.Path.lastIndexOf('.'))
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
fileName += extendName
|
||||||
|
}
|
||||||
|
let res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName)
|
||||||
|
this.loading = false
|
||||||
|
} catch (err) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 编辑
|
||||||
|
handleEdit(row) {
|
||||||
|
this.editDialog.title = this.$t('common:button:edit')
|
||||||
|
this.currentRow = { ...row }
|
||||||
|
this.editDialog.visible = true
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
handleReset() {
|
||||||
|
this.searchData = searchDataDefault()
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.editDialog.visible = false
|
||||||
|
},
|
||||||
|
// 排序
|
||||||
|
handleSortChange(column) {
|
||||||
|
if (column.order === 'ascending') {
|
||||||
|
this.searchData.Asc = true
|
||||||
|
} else {
|
||||||
|
this.searchData.Asc = false
|
||||||
|
}
|
||||||
|
this.searchData.SortField = column.prop
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .search {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,52 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="attachment-wrapper">
|
<div class="attachment-wrapper">
|
||||||
<el-tabs v-model="activeTab" @tab-click="clickTab">
|
<el-tabs v-model="activeTab" @tab-click="clickTab">
|
||||||
<el-tab-pane
|
<el-tab-pane v-for="item in $d.Common_File_Type" :key="item.value" :label="item.label" :name="String(item.value)">
|
||||||
v-for="item in $d.Common_File_Type"
|
<UploadTemplate v-if="activeTab === '1' && item.value == activeTab" @PreviewFile="PreviewFile" />
|
||||||
:key="item.value"
|
<ExportTemplate v-if="activeTab === '2' && item.value == activeTab" @PreviewFile="PreviewFile" />
|
||||||
:label="item.label"
|
|
||||||
:name="String(item.value)"
|
|
||||||
>
|
|
||||||
<UploadTemplate
|
|
||||||
v-if="activeTab === '1' && item.value == activeTab"
|
|
||||||
@PreviewFile="PreviewFile"
|
|
||||||
/>
|
|
||||||
<ExportTemplate
|
|
||||||
v-if="activeTab === '2' && item.value == activeTab"
|
|
||||||
@PreviewFile="PreviewFile"
|
|
||||||
/>
|
|
||||||
<EmailTemplate v-if="activeTab === '3' && item.value == activeTab" />
|
<EmailTemplate v-if="activeTab === '3' && item.value == activeTab" />
|
||||||
<CommonTemplate v-if="activeTab === '4' && item.value == activeTab" />
|
<CommonTemplate v-if="activeTab === '4' && item.value == activeTab" />
|
||||||
<SignatureTemplate
|
<SignatureTemplate v-if="activeTab === '5' && item.value == activeTab" />
|
||||||
v-if="activeTab === '5' && item.value == activeTab"
|
<ToolsTemplate v-if="activeTab === '0' && item.value == activeTab" />
|
||||||
/>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<!-- 预览 -->
|
<!-- 预览 -->
|
||||||
<el-dialog
|
<el-dialog v-if="Preview.visible" :visible.sync="Preview.visible" :close-on-click-modal="false" :fullscreen="true"
|
||||||
v-if="Preview.visible"
|
:title="Preview.title" width="600px" custom-class="base-dialog-wrapper">
|
||||||
:visible.sync="Preview.visible"
|
<vue-office-docx v-if="docxTypes.includes(Preview.type)" :src="Preview.path" style="height: calc(100vh - 70px)"
|
||||||
:close-on-click-modal="false"
|
@rendered="renderedHandler" @error="errorHandler" />
|
||||||
:fullscreen="true"
|
<vue-office-excel v-else-if="excelTypes.includes(Preview.type)" :src="Preview.path" :options="options"
|
||||||
:title="Preview.title"
|
style="height: calc(100vh - 70px)" @rendered="renderedHandler" @error="errorHandler" />
|
||||||
width="600px"
|
|
||||||
custom-class="base-dialog-wrapper"
|
|
||||||
>
|
|
||||||
<vue-office-docx
|
|
||||||
v-if="docxTypes.includes(Preview.type)"
|
|
||||||
:src="Preview.path"
|
|
||||||
style="height: calc(100vh - 70px)"
|
|
||||||
@rendered="renderedHandler"
|
|
||||||
@error="errorHandler"
|
|
||||||
/>
|
|
||||||
<vue-office-excel
|
|
||||||
v-else-if="excelTypes.includes(Preview.type)"
|
|
||||||
:src="Preview.path"
|
|
||||||
:options="options"
|
|
||||||
style="height: calc(100vh - 70px)"
|
|
||||||
@rendered="renderedHandler"
|
|
||||||
@error="errorHandler"
|
|
||||||
/>
|
|
||||||
<PreviewFile v-else :file-path="Preview.path" :file-type="Preview.type" />
|
<PreviewFile v-else :file-path="Preview.path" :file-type="Preview.type" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@@ -57,6 +27,7 @@ import ExportTemplate from './components/ExportTemplate'
|
|||||||
import EmailTemplate from './components/EmailTemplate'
|
import EmailTemplate from './components/EmailTemplate'
|
||||||
import CommonTemplate from './components/CommonTemplate'
|
import CommonTemplate from './components/CommonTemplate'
|
||||||
import SignatureTemplate from './components/SignatureTemplate'
|
import SignatureTemplate from './components/SignatureTemplate'
|
||||||
|
import ToolsTemplate from './components/ToolsTemplate'
|
||||||
import VueOfficeDocx from '@vue-office/docx'
|
import VueOfficeDocx from '@vue-office/docx'
|
||||||
import '@vue-office/docx/lib/index.css'
|
import '@vue-office/docx/lib/index.css'
|
||||||
import VueOfficeExcel from '@vue-office/excel'
|
import VueOfficeExcel from '@vue-office/excel'
|
||||||
@@ -73,6 +44,7 @@ export default {
|
|||||||
VueOfficeDocx,
|
VueOfficeDocx,
|
||||||
VueOfficeExcel,
|
VueOfficeExcel,
|
||||||
PreviewFile,
|
PreviewFile,
|
||||||
|
ToolsTemplate
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -142,16 +114,18 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tabs__header {
|
.el-tabs__header {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tabs__content {
|
.el-tabs__content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
.el-tab-pane {
|
.el-tab-pane {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="字典表名称:">
|
<el-form-item :label="$t('dic:all:label:code')">
|
||||||
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="字典分组:">
|
<el-form-item :label="$t('dic:all:label:group')">
|
||||||
<el-select v-model="searchData.ConfigTypeId" placeholder="字典分组" clearable size="small">
|
<el-select v-model="searchData.ConfigTypeId" clearable size="small">
|
||||||
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -29,7 +29,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" @click="handleAdd">新建</el-button>
|
<el-button type="primary" @click="handleAdd">
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -44,33 +46,33 @@
|
|||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="字典表名称"
|
:label="$t('dic:all:label:code')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ConfigType"
|
prop="ConfigType"
|
||||||
label="字典分组"
|
:label="$t('dic:all:label:group')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="描述"
|
:label="$t('dic:all:label:desc')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ShowOrder"
|
prop="ShowOrder"
|
||||||
label="显示顺序"
|
:label="$t('dic:all:label:showOrder')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="是否可用" width="100" fixed="right">
|
<el-table-column :label="$t('dic:all:label:isEnable')" width="100" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsEnable"
|
v-model="scope.row.IsEnable"
|
||||||
@@ -80,25 +82,25 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="200" fixed="right">
|
<el-table-column :label="$t('common:action:action')" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
{{ $t('common:action:edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleChild(scope.row)"
|
@click="handleChild(scope.row)"
|
||||||
>
|
>
|
||||||
子项
|
{{ $t('dic:all:label:childItem') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
{{ $t('common:button:delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -174,7 +176,7 @@ export default {
|
|||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateBasicDic(item).then(res => {
|
addOrUpdateBasicDic(item).then(res => {
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -182,12 +184,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row)
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', { DataTypeEnum: 3 })
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), { DataTypeEnum: 3 })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|||||||
@@ -4,32 +4,39 @@
|
|||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="mini" class="base-search-form" />
|
<el-form :inline="true" size="mini" class="base-search-form" />
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" size="mini" @click="handleAdd">新建</el-button>
|
<el-button type="primary" size="mini" @click="handleAdd">{{ $t('common:button:new') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" v-adaptive="{ bottomOffset: 45 }" :data="list" stripe size="small" height="100"
|
<el-table v-loading="loading" v-adaptive="{ bottomOffset: 45 }" :data="list" stripe size="small" height="100"
|
||||||
@sort-change="handleSortByColumn">
|
@sort-change="handleSortByColumn">
|
||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<el-table-column v-if="!~$route.path.indexOf('select')" prop="Code" label="字典键值" min-width="180"
|
<!-- 字典键值 -->
|
||||||
|
<el-table-column v-if="!~$route.path.indexOf('select')" prop="Code" :label="$t('dic:all:label:keyCode')" min-width="180"
|
||||||
show-overflow-tooltip sortable='custom' />
|
show-overflow-tooltip sortable='custom' />
|
||||||
<el-table-column prop="ValueCN" label="中文值" min-width="180" show-overflow-tooltip sortable='custom' />
|
<!-- 中文值 -->
|
||||||
<el-table-column prop="Value" label="英文值" min-width="180" show-overflow-tooltip sortable='custom' />
|
<el-table-column prop="ValueCN" :label="$t('dic:all:label:valueCN')" min-width="180" show-overflow-tooltip sortable='custom' />
|
||||||
<el-table-column prop="ChildGroup" label="分组" min-width="180" show-overflow-tooltip sortable='custom' />
|
<!-- 英文值 -->
|
||||||
<el-table-column prop="ShowOrder" label="显示顺序" min-width="180" show-overflow-tooltip sortable='custom' />
|
<el-table-column prop="Value" :label="$t('dic:all:label:valueEN')" min-width="180" show-overflow-tooltip sortable='custom' />
|
||||||
<el-table-column prop="Description" label="描述" min-width="180" show-overflow-tooltip sortable='custom' />
|
<!-- 分组 -->
|
||||||
<el-table-column label="是否可用" width="100" fixed="right">
|
<el-table-column prop="ChildGroup" :label="$t('dic:all:label:childGroup')" min-width="180" show-overflow-tooltip sortable='custom' />
|
||||||
|
<!-- 显示顺序 -->
|
||||||
|
<el-table-column prop="ShowOrder" :label="$t('dic:all:label:showOrder')" min-width="180" show-overflow-tooltip sortable='custom' />
|
||||||
|
<!-- 描述 -->
|
||||||
|
<el-table-column prop="Description" :label="$t('dic:all:label:desc')" min-width="180" show-overflow-tooltip sortable='custom' />
|
||||||
|
<!-- 是否可用 -->
|
||||||
|
<el-table-column :label="$t('dic:all:label:isEnable')" width="100" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch v-model="scope.row.IsEnable" :active-value="true" :inactive-value="false"
|
<el-switch v-model="scope.row.IsEnable" :active-value="true" :inactive-value="false"
|
||||||
@change="(event) => { return switchChange(event, scope.row) }" />
|
@change="(event) => { return switchChange(event, scope.row) }" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="150" fixed="right">
|
<el-table-column :label="$t('common:action:action')" width="150" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click="handleEdit(scope.row)">
|
<el-button type="text" @click="handleEdit(scope.row)">
|
||||||
编辑
|
{{ $t('common:action:edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="text" @click="handleDelete(scope.row)">
|
<el-button type="text" @click="handleDelete(scope.row)">
|
||||||
删除
|
{{ $t('common:button:delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -101,7 +108,7 @@ export default {
|
|||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateBasicDic(item).then(res => {
|
addOrUpdateBasicDic(item).then(res => {
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -109,12 +116,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryChildAddOrUpdateForm'].openDialog('DictionaryChild Edit', row, { DataTypeEnum: this.parent.DataTypeEnum })
|
this.$refs['DictionaryChildAddOrUpdateForm'].openDialog(this.$t('common:action:edit'), row, { DataTypeEnum: this.parent.DataTypeEnum })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryChildAddOrUpdateForm'].openDialog('DictionaryChild Add', {}, { ConfigTypeId: this.parent.ConfigTypeId, parentId: this.parent.Id, DataTypeEnum: this.parent.DataTypeEnum })
|
this.$refs['DictionaryChildAddOrUpdateForm'].openDialog(this.$t('common:button:new'), {}, { ConfigTypeId: this.parent.ConfigTypeId, parentId: this.parent.Id, DataTypeEnum: this.parent.DataTypeEnum })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|||||||
@@ -8,25 +8,25 @@
|
|||||||
label-width="120px"
|
label-width="120px"
|
||||||
size="small"
|
size="small"
|
||||||
>
|
>
|
||||||
<el-form-item label="Enum Value: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:keyCode')" prop="Code">
|
||||||
<el-input v-model="form.Code" />
|
<el-input v-model="form.Code" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Value: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:valueCN')" prop="Code">
|
||||||
<el-input v-model="form.ValueCN" />
|
<el-input v-model="form.ValueCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Value EN: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:valueEN')" prop="Code">
|
||||||
<el-input v-model="form.Value" />
|
<el-input v-model="form.Value" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="ChildGroup: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:childGroup')" prop="Code">
|
||||||
<el-input v-model="form.ChildGroup" />
|
<el-input v-model="form.ChildGroup" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="ShowOrder: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:showOrder')" prop="Code">
|
||||||
<el-input-number v-model="form.ShowOrder" :min="0" />
|
<el-input-number v-model="form.ShowOrder" :min="0" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Description: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:desc')" prop="Code">
|
||||||
<el-input v-model="form.Description" />
|
<el-input v-model="form.Description" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Is Enable: ">
|
<el-form-item :label="$t('dic:all:label:isEnable')">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.IsEnable"
|
v-model="form.IsEnable"
|
||||||
:active-value="true"
|
:active-value="true"
|
||||||
@@ -36,8 +36,12 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="dialog-footer">
|
<template slot="dialog-footer">
|
||||||
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">Cancel</el-button>
|
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">
|
||||||
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button>
|
{{ $t('common:button:cancel') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
|
||||||
|
{{ $t('common:button:save') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
</template>
|
</template>
|
||||||
@@ -90,7 +94,7 @@ export default {
|
|||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
addOrUpdateBasicDic(this.form).then(res => {
|
addOrUpdateBasicDic(this.form).then(res => {
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.model_cfg.visible = false
|
this.model_cfg.visible = false
|
||||||
this.$emit('getList')
|
this.$emit('getList')
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -7,8 +7,9 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
size="small"
|
size="small"
|
||||||
>
|
>
|
||||||
<el-form-item label="ConfigTypeId: " prop="Code">
|
<!-- 字典分组 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:group')" prop="Code">
|
||||||
<el-select v-model="form.ConfigTypeId" filterable style="width:100%;">
|
<el-select v-model="form.ConfigTypeId" filterable style="width:100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) of basicDicList"
|
v-for="(item,index) of basicDicList"
|
||||||
@@ -18,7 +19,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="TypeEnum: " prop="DataTypeEnum">
|
<!-- 类型 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:dataType')" prop="DataTypeEnum">
|
||||||
<el-select v-model="form.DataTypeEnum" filterable style="width:100%;">
|
<el-select v-model="form.DataTypeEnum" filterable style="width:100%;">
|
||||||
<el-option
|
<el-option
|
||||||
:label="`config`"
|
:label="`config`"
|
||||||
@@ -38,16 +40,19 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Code: " prop="Code">
|
<!-- 字典表名称 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:code')" prop="Code">
|
||||||
<el-input v-model="form.Code" />
|
<el-input v-model="form.Code" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--<el-form-item label="KeyName: " prop="Code">-->
|
<!--<el-form-item label="KeyName: " prop="Code">-->
|
||||||
<!--<el-input v-model="form.KeyName" />-->
|
<!--<el-input v-model="form.KeyName" />-->
|
||||||
<!--</el-form-item>-->
|
<!--</el-form-item>-->
|
||||||
<el-form-item label="ShowOrder: " prop="Code">
|
<!-- 显示顺序 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:showOrder')" prop="Code">
|
||||||
<el-input-number v-model="form.ShowOrder" :min="0" />
|
<el-input-number v-model="form.ShowOrder" :min="0" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Description: " prop="Code">
|
<!-- 描述 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:desc')" prop="Code">
|
||||||
<el-input v-model="form.Description" />
|
<el-input v-model="form.Description" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="Value: " prop="Code">
|
<!-- <el-form-item label="Value: " prop="Code">
|
||||||
@@ -56,7 +61,8 @@
|
|||||||
<el-form-item label="ValueCN: " prop="Code">
|
<el-form-item label="ValueCN: " prop="Code">
|
||||||
<el-input v-model="form.ValueCN" />
|
<el-input v-model="form.ValueCN" />
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item label="Is Enable: ">
|
<!-- 是否启用 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:isEnable')">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.IsEnable"
|
v-model="form.IsEnable"
|
||||||
:active-value="true"
|
:active-value="true"
|
||||||
@@ -66,8 +72,12 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="dialog-footer">
|
<template slot="dialog-footer">
|
||||||
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">Cancel</el-button>
|
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">
|
||||||
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button>
|
{{ $t('common:button:cancel') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
|
||||||
|
{{ $t('common:button:save') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
</template>
|
</template>
|
||||||
@@ -103,8 +113,8 @@ export default {
|
|||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
form: formDataDefault(),
|
form: formDataDefault(),
|
||||||
rules: {
|
rules: {
|
||||||
Code: [{ required: true, message: 'Please specify', trigger: 'blur' }],
|
Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }],
|
||||||
DataTypeEnum: [{ required: true, message: 'Please specify', trigger: 'blur' }]
|
DataTypeEnum: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true }
|
model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true }
|
||||||
}
|
}
|
||||||
@@ -132,7 +142,7 @@ export default {
|
|||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
addOrUpdateBasicDic(this.form).then(res => {
|
addOrUpdateBasicDic(this.form).then(res => {
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.model_cfg.visible = false
|
this.model_cfg.visible = false
|
||||||
this.$emit('getList')
|
this.$emit('getList')
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="字典表名称:">
|
<el-form-item :label="$t('dic:all:label:code')">
|
||||||
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="字典分组:">
|
<el-form-item :label="$t('dic:all:label:group')">
|
||||||
<el-select v-model="searchData.ConfigTypeId" placeholder="字典分组" clearable size="small">
|
<el-select v-model="searchData.ConfigTypeId" clearable size="small">
|
||||||
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -29,7 +29,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" @click="handleAdd">新建</el-button>
|
<el-button type="primary" @click="handleAdd">
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -44,33 +46,33 @@
|
|||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="字典表名称"
|
:label="$t('dic:all:label:code')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ConfigType"
|
prop="ConfigType"
|
||||||
label="字典分组"
|
:label="$t('dic:all:label:group')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="描述"
|
:label="$t('dic:all:label:desc')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ShowOrder"
|
prop="ShowOrder"
|
||||||
label="显示顺序"
|
:label="$t('dic:all:label:showOrder')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="是否可用" width="100" fixed="right">
|
<el-table-column :label="$t('dic:all:label:isEnable')" width="100" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsEnable"
|
v-model="scope.row.IsEnable"
|
||||||
@@ -80,25 +82,25 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="200" fixed="right">
|
<el-table-column :label="$t('common:action:action')" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
{{ $t('common:action:edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleChild(scope.row)"
|
@click="handleChild(scope.row)"
|
||||||
>
|
>
|
||||||
子项
|
{{ $t('dic:all:label:childItem') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
{{ $t('common:button:delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -174,7 +176,7 @@ export default {
|
|||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateBasicDic(item).then(res => {
|
addOrUpdateBasicDic(item).then(res => {
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -182,12 +184,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row)
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', { DataTypeEnum: 2 })
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), { DataTypeEnum: 2 })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|||||||
@@ -1,19 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-tabs v-model="activeTab" @tab-click="handleClick">
|
<el-tabs v-model="activeTab" @tab-click="handleClick">
|
||||||
<el-tab-pane label="全部" name="/dictionary/newDictionary/list">
|
<!-- 全部 -->
|
||||||
|
<el-tab-pane :label="$t('dic:label:all')" name="/dictionary/newDictionary/list">
|
||||||
<dictList v-if="activeTab == '/dictionary/newDictionary/list'" />
|
<dictList v-if="activeTab == '/dictionary/newDictionary/list'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="下拉框字典" name="/dictionary/newDictionary/select">
|
<!-- 下拉框字典 -->
|
||||||
|
<el-tab-pane :label="$t('dic:label:select')" name="/dictionary/newDictionary/select">
|
||||||
<dictSelect v-if="activeTab == '/dictionary/newDictionary/select'" />
|
<dictSelect v-if="activeTab == '/dictionary/newDictionary/select'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="枚举字典" name="/dictionary/newDictionary/enum">
|
<!-- 枚举字典 -->
|
||||||
|
<el-tab-pane :label="$t('dic:label:enum')" name="/dictionary/newDictionary/enum">
|
||||||
<dictEnum v-if="activeTab == '/dictionary/newDictionary/enum'" />
|
<dictEnum v-if="activeTab == '/dictionary/newDictionary/enum'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="布尔字典" name="/dictionary/newDictionary/bool">
|
<!-- 布尔字典 -->
|
||||||
|
<el-tab-pane :label="$t('dic:label:bool')" name="/dictionary/newDictionary/bool">
|
||||||
<dictBool v-if="activeTab == '/dictionary/newDictionary/bool'" />
|
<dictBool v-if="activeTab == '/dictionary/newDictionary/bool'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="字典类型配置" name="/dictionary/newDictionary/config">
|
<!-- 字典类型配置 -->
|
||||||
|
<el-tab-pane :label="$t('dic:label:config')" name="/dictionary/newDictionary/config">
|
||||||
<dictConfig v-if="activeTab == '/dictionary/newDictionary/config'" />
|
<dictConfig v-if="activeTab == '/dictionary/newDictionary/config'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
label-width="120px"
|
label-width="120px"
|
||||||
size="small"
|
size="small"
|
||||||
>
|
>
|
||||||
<el-form-item label="ConfigTypeId: " prop="Code">
|
<!-- 字典分组 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:group')" prop="Code">
|
||||||
<el-select v-model="form.ConfigTypeId" filterable style="width:100%;">
|
<el-select v-model="form.ConfigTypeId" filterable style="width:100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) of basicDicList"
|
v-for="(item,index) of basicDicList"
|
||||||
@@ -18,7 +19,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="DataTypeEnum: " prop="DataTypeEnum">
|
<!-- 类型 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:dataType')" prop="DataTypeEnum">
|
||||||
<el-select v-model="form.DataTypeEnum" filterable style="width:100%;">
|
<el-select v-model="form.DataTypeEnum" filterable style="width:100%;">
|
||||||
<el-option
|
<el-option
|
||||||
:label="`config`"
|
:label="`config`"
|
||||||
@@ -38,16 +40,19 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Code: " prop="Code">
|
<!-- 字典表名称 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:code')" prop="Code">
|
||||||
<el-input v-model="form.Code" />
|
<el-input v-model="form.Code" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--<el-form-item label="KeyName: " prop="Code">-->
|
<!--<el-form-item label="KeyName: " prop="Code">-->
|
||||||
<!--<el-input v-model="form.KeyName" />-->
|
<!--<el-input v-model="form.KeyName" />-->
|
||||||
<!--</el-form-item>-->
|
<!--</el-form-item>-->
|
||||||
<el-form-item label="ShowOrder: " prop="Code">
|
<!-- 显示顺序 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:showOrder')" prop="Code">
|
||||||
<el-input-number v-model="form.ShowOrder" :min="0" />
|
<el-input-number v-model="form.ShowOrder" :min="0" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Description: " prop="Code">
|
<!-- 描述 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:desc')" prop="Code">
|
||||||
<el-input v-model="form.Description" />
|
<el-input v-model="form.Description" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="Value: " prop="Code">
|
<!-- <el-form-item label="Value: " prop="Code">
|
||||||
@@ -56,7 +61,8 @@
|
|||||||
<el-form-item label="ValueCN: " prop="Code">
|
<el-form-item label="ValueCN: " prop="Code">
|
||||||
<el-input v-model="form.ValueCN" />
|
<el-input v-model="form.ValueCN" />
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item label="Is Enable: ">
|
<!-- 是否启用 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:isEnable')">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.IsEnable"
|
v-model="form.IsEnable"
|
||||||
:active-value="true"
|
:active-value="true"
|
||||||
@@ -66,8 +72,12 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="dialog-footer">
|
<template slot="dialog-footer">
|
||||||
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">Cancel</el-button>
|
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">
|
||||||
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button>
|
{{ $t('common:button:cancel') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
|
||||||
|
{{ $t('common:button:save') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
</template>
|
</template>
|
||||||
@@ -103,8 +113,8 @@ export default {
|
|||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
form: formDataDefault(),
|
form: formDataDefault(),
|
||||||
rules: {
|
rules: {
|
||||||
Code: [{ required: true, message: 'Please specify', trigger: 'blur' }],
|
Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }],
|
||||||
DataTypeEnum: [{ required: true, message: 'Please specify', trigger: 'blur' }]
|
DataTypeEnum: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true }
|
model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true }
|
||||||
}
|
}
|
||||||
@@ -130,7 +140,7 @@ export default {
|
|||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
addOrUpdateBasicDic(this.form).then(res => {
|
addOrUpdateBasicDic(this.form).then(res => {
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.model_cfg.visible = false
|
this.model_cfg.visible = false
|
||||||
this.$emit('getList')
|
this.$emit('getList')
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -3,15 +3,18 @@
|
|||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="字典表名称:">
|
<!-- 字典表名称 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:code')">
|
||||||
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="字典分组:">
|
<!-- 字典分组 -->
|
||||||
<el-select v-model="searchData.ConfigTypeId" placeholder="字典分组" clearable size="small">
|
<el-form-item :label="$t('dic:all:label:group')">
|
||||||
|
<el-select v-model="searchData.ConfigTypeId" clearable size="small">
|
||||||
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="关键字:">
|
<!-- 关键字 -->
|
||||||
|
<el-form-item :label="$t('dic:all:label:keyWord')">
|
||||||
<el-input v-model="searchData.KeyInfo" clearable style="width:120px;" />
|
<el-input v-model="searchData.KeyInfo" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@@ -32,8 +35,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" @click="handleAdd">新建</el-button>
|
<!-- 新建 -->
|
||||||
<el-button type="primary" @click="handleBatchAdd">批量新建</el-button>
|
<el-button type="primary" @click="handleAdd">
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
|
</el-button>
|
||||||
|
<!-- 批量新建 -->
|
||||||
|
<el-button type="primary" @click="handleBatchAdd">
|
||||||
|
{{ $t('common:button:batchNew') }}
|
||||||
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -46,16 +55,18 @@
|
|||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
|
<!-- 字典表名称 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="字典表名称"
|
:label="$t('dic:all:label:code')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<!-- 类型 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="DataTypeEnum"
|
prop="DataTypeEnum"
|
||||||
label="类型"
|
:label="$t('dic:all:label:dataType')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
@@ -64,28 +75,32 @@
|
|||||||
{{ DataTypeEnumList[scope.row.DataTypeEnum] }}
|
{{ DataTypeEnumList[scope.row.DataTypeEnum] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<!-- 字典分组 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ConfigType"
|
prop="ConfigType"
|
||||||
label="字典分组"
|
:label="$t('dic:all:label:group')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<!-- 描述 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="描述"
|
:label="$t('dic:all:label:desc')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<!-- 显示顺序 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ShowOrder"
|
prop="ShowOrder"
|
||||||
label="显示顺序"
|
:label="$t('dic:all:label:showOrder')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="是否可用" width="100" fixed="right">
|
<!-- 是否可用 -->
|
||||||
|
<el-table-column :label="$t('dic:all:label:isEnable')" width="100" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsEnable"
|
v-model="scope.row.IsEnable"
|
||||||
@@ -95,25 +110,28 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="300" fixed="right">
|
<el-table-column :label="$t('common:action:action')" width="300" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<!-- 编辑 -->
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
{{ $t('common:action:edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- 子项 -->
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleChild(scope.row)"
|
@click="handleChild(scope.row)"
|
||||||
>
|
>
|
||||||
子项
|
{{ $t('dic:all:label:childItem') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- 删除 -->
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
{{ $t('common:button:delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -201,17 +219,17 @@ export default {
|
|||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row)
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', {})
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), {})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleBatchAdd() {
|
handleBatchAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['batchAddForm'].openDialog('批量新建', {})
|
this.$refs['batchAddForm'].openDialog(this.$t('common:button:batchNew'), {})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="字典表名称:">
|
<el-form-item :label="$t('dic:all:label:code')">
|
||||||
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="字典分组:">
|
<el-form-item :label="$t('dic:all:label:group')">
|
||||||
<el-select v-model="searchData.ConfigTypeId" placeholder="字典分组" clearable size="small">
|
<el-select v-model="searchData.ConfigTypeId" clearable size="small">
|
||||||
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
<el-option v-for="item of basicDicList" :key="item.Id" :value="item.Id" :label="item.Code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -29,8 +29,13 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" @click="handleSetting">配置字典分组</el-button>
|
<!-- 配置字典分组 -->
|
||||||
<el-button type="primary" @click="handleAdd">新建</el-button>
|
<el-button type="primary" @click="handleSetting">
|
||||||
|
{{ $t('dic:select:button:setting') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button type="primary" @click="handleAdd">
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -45,33 +50,33 @@
|
|||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="字典表名称"
|
:label="$t('dic:all:label:code')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ConfigType"
|
prop="ConfigType"
|
||||||
label="字典分组"
|
:label="$t('dic:all:label:group')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="描述"
|
:label="$t('dic:all:label:desc')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ShowOrder"
|
prop="ShowOrder"
|
||||||
label="显示顺序"
|
:label="$t('dic:all:label:showOrder')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="是否可用" width="100" fixed="right">
|
<el-table-column :label="$t('dic:all:label:isEnable')" width="100" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsEnable"
|
v-model="scope.row.IsEnable"
|
||||||
@@ -81,25 +86,25 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="300" fixed="right">
|
<el-table-column :label="$t('common:action:action')" width="300" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
{{ $t('common:action:edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleChild(scope.row)"
|
@click="handleChild(scope.row)"
|
||||||
>
|
>
|
||||||
子项
|
{{ $t('dic:all:label:childItem') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
{{ $t('common:button:delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -175,7 +180,7 @@ export default {
|
|||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateBasicDic(item).then(res => {
|
addOrUpdateBasicDic(item).then(res => {
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -183,12 +188,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row)
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', { DataTypeEnum: 1 })
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), { DataTypeEnum: 1 })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
label-width="150px"
|
label-width="150px"
|
||||||
size="small"
|
size="small"
|
||||||
>
|
>
|
||||||
<el-form-item label="Dictionary Type: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:group')"" prop="Code">
|
||||||
<el-input v-model="form.Code" />
|
<el-input v-model="form.Code" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Description: " prop="Code">
|
<el-form-item :label="$t('dic:all:label:desc')">
|
||||||
<el-input v-model="form.Description" />
|
<el-input v-model="form.Description" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Is Enable: ">
|
<el-form-item :label="$t('dic:all:label:isEnable')">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.IsEnable"
|
v-model="form.IsEnable"
|
||||||
:active-value="true"
|
:active-value="true"
|
||||||
@@ -24,8 +24,12 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="dialog-footer">
|
<template slot="dialog-footer">
|
||||||
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">Cancel</el-button>
|
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">
|
||||||
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button>
|
{{ $t('common:button:cancel') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
|
||||||
|
{{ $t('common:button:save') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
</template>
|
</template>
|
||||||
@@ -52,7 +56,7 @@ export default {
|
|||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
form: formDataDefault(),
|
form: formDataDefault(),
|
||||||
rules: {
|
rules: {
|
||||||
Code: [{ required: true, message: 'Please specify', trigger: 'blur' }]
|
Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
model_cfg: { visible: false, showClose: true, width: '600px', title: '' }
|
model_cfg: { visible: false, showClose: true, width: '600px', title: '' }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="Code:">
|
<el-form-item :label="$t('dic:all:label:group')">
|
||||||
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
<el-input v-model="searchData.Code" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="KeyName:">
|
<el-form-item :label="$t('dic:all:label:keyWord')">
|
||||||
<el-input v-model="searchData.KeyName" clearable style="width:120px;" />
|
<el-input v-model="searchData.KeyName" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@@ -27,7 +27,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" @click="handleAdd">New</el-button>
|
<el-button type="primary" @click="handleAdd">
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -41,15 +43,15 @@
|
|||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="Dictionary Type"
|
:label="$t('dic:all:label:group')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="Description"
|
:label="$t('dic:all:label:desc')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="Is Enable" width="100" fixed="right">
|
<el-table-column :label="$t('dic:all:label:isEnable')" width="100" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsEnable"
|
v-model="scope.row.IsEnable"
|
||||||
@@ -59,19 +61,19 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="Action" width="200" fixed="right">
|
<el-table-column :label="$t('common:action:action')" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
{{ $t('common:action:edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
{{ $t('common:button:delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -115,7 +117,7 @@ export default {
|
|||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateBasicDic(item).then(res => {
|
addOrUpdateBasicDic(item).then(res => {
|
||||||
this.$message.success('Saved successfully!')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -123,12 +125,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row)
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', {})
|
this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), {})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|||||||
@@ -0,0 +1,194 @@
|
|||||||
|
<template>
|
||||||
|
<el-form ref="sysAgreementFrom" v-loading="loading" :model="form" label-width="140px" size="small" :rules="rules"
|
||||||
|
class="upload-temporary-file">
|
||||||
|
<div class="base-dialog-body">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:UserAgreementTypeEnum')" prop="UserAgreementTypeEnum"
|
||||||
|
style="width: 48%">
|
||||||
|
<el-select v-model="form.UserAgreementTypeEnum" style="width: 100%" size="small" filterable>
|
||||||
|
<el-option v-for="item of $d.UserAgreementType" :key="item.id" :label="item.label" :value="item.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:FileName')" prop="FileName" style="width: 48%">
|
||||||
|
<el-input v-model="form.FileName" clearable style="width: 100%" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:FileVersion')" prop="FileVersion" style="width: 48%">
|
||||||
|
<el-input v-model="form.FileVersion" clearable style="width: 100%" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:UpdateDate')" prop="UpdateDate" style="width: 48%">
|
||||||
|
<el-date-picker v-model="form.UpdateDate" type="date"
|
||||||
|
:placeholder="$t('trials:seletctedReviews:table:selectionTime')" value-format="yyyy-MM-dd"
|
||||||
|
format="yyyy-MM-dd" clearable style="width: 100%;">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:EffectiveDate')" prop="EffectiveDate" style="width: 48%">
|
||||||
|
<el-date-picker v-model="form.EffectiveDate" type="date"
|
||||||
|
:placeholder="$t('trials:seletctedReviews:table:selectionTime')" value-format="yyyy-MM-dd"
|
||||||
|
format="yyyy-MM-dd" clearable style="width: 100%;">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:FileContent')" prop="FileContent">
|
||||||
|
<div class="html_temp">
|
||||||
|
<prism-editor class="my-editor" v-model="form.FileContent" :highlight="highlighter" :line-numbers="true"
|
||||||
|
style="width: 50%;max-height: 350px;"></prism-editor>
|
||||||
|
<div v-html="form.FileContent" style="width: 45%;" class="content"></div>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:FileContentEn')" prop="FileEnContent">
|
||||||
|
<div class="html_temp">
|
||||||
|
<prism-editor class="my-editor" v-model="form.FileEnContent" :highlight="highlighter" :line-numbers="true"
|
||||||
|
style="width: 50%;max-height: 350px;"></prism-editor>
|
||||||
|
<div v-html="form.FileEnContent" style="width: 45%;" class="content"></div>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="base-dialog-footer" style="text-align: right; margin-top: 10px">
|
||||||
|
<el-form-item style="text-align: right">
|
||||||
|
<el-button size="small" type="primary" :loading="saveBtnLoading" @click="handleSave">{{ $t('common:button:save')
|
||||||
|
}}</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
addOrUpdateUserAgreement,
|
||||||
|
} from '@/api/dictionary'
|
||||||
|
|
||||||
|
import { PrismEditor } from 'vue-prism-editor';
|
||||||
|
import 'vue-prism-editor/dist/prismeditor.min.css';
|
||||||
|
import { highlight, languages } from 'prismjs/components/prism-core';
|
||||||
|
import 'prismjs/components/prism-clike';
|
||||||
|
import 'prismjs/components/prism-javascript';
|
||||||
|
import 'prismjs/themes/prism.css';
|
||||||
|
export default {
|
||||||
|
name: 'TemplateForm',
|
||||||
|
props: {
|
||||||
|
data: {
|
||||||
|
type: Object,
|
||||||
|
default() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
components: { PrismEditor },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {
|
||||||
|
Id: '',
|
||||||
|
UserAgreementTypeEnum: '',
|
||||||
|
FileName: '',
|
||||||
|
FileVersion: null,
|
||||||
|
FileContent: '\n\n\n\n',
|
||||||
|
FileEnContent: `\n\n\n\n`,
|
||||||
|
UpdateDate: '',
|
||||||
|
EffectiveDate: '',
|
||||||
|
IsCurrentVersion: false
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
UserAgreementTypeEnum: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
FileName: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
FileVersion: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
FileContent: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
FileEnContent: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
UpdateDate: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
EffectiveDate: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
saveBtnLoading: false,
|
||||||
|
loading: false,
|
||||||
|
dictionaryList: {},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.initForm()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
highlighter(code) {
|
||||||
|
return highlight(code, languages.js);
|
||||||
|
},
|
||||||
|
async initForm() {
|
||||||
|
if (Object.keys(this.data).length > 0) {
|
||||||
|
for (const k in this.form) {
|
||||||
|
if (this.data.hasOwnProperty(k)) {
|
||||||
|
this.form[k] = this.data[k]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSave() {
|
||||||
|
this.$refs.sysAgreementFrom.validate((valid) => {
|
||||||
|
if (!valid) return
|
||||||
|
this.saveBtnLoading = true
|
||||||
|
addOrUpdateUserAgreement(this.form)
|
||||||
|
.then((res) => {
|
||||||
|
this.saveBtnLoading = false
|
||||||
|
this.$emit('closeDialog')
|
||||||
|
this.$emit('getList')
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.saveBtnLoading = false
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.html_temp {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.my-editor {
|
||||||
|
border: 1px solid #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.base-dialog-body {
|
||||||
|
max-height: calc(100% - 60px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-temporary-file {
|
||||||
|
overflow-y: auto;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
max-height: 350px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,313 @@
|
|||||||
|
<template>
|
||||||
|
<BaseContainer>
|
||||||
|
<template slot="search-container">
|
||||||
|
<el-form :inline="true" size="small">
|
||||||
|
<!-- 文件类型 -->
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:UserAgreementTypeEnum')">
|
||||||
|
<el-select v-model="searchData.UserAgreementTypeEnum" style="width: 150px">
|
||||||
|
<el-option v-for="item of $d.UserAgreementType" :key="item.value" :label="item.label" :value="item.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- 文件名称 -->
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:FileName')">
|
||||||
|
<el-input v-model="searchData.FileName" style="width: 130px" clearable />
|
||||||
|
</el-form-item>
|
||||||
|
<!-- 版本 -->
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:FileVersion')">
|
||||||
|
<el-input v-model="searchData.FileVersion" style="width: 130px" clearable />
|
||||||
|
</el-form-item>
|
||||||
|
<!--更新日期-->
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:UpdateDate')">
|
||||||
|
<el-date-picker v-model="UpdateDate" @change="changeTimeList('UpdateDate')" value-format="yyyy-MM-dd"
|
||||||
|
type="daterange">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<!--生效日期-->
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:EffectiveDate')">
|
||||||
|
<el-date-picker v-model="EffectiveDate" @change="changeTimeList('EffectiveDate')" value-format="yyyy-MM-dd"
|
||||||
|
type="daterange">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- 当前版本 -->
|
||||||
|
<el-form-item :label="$t('dictionary:agreement:table:IsCurrentVersion')">
|
||||||
|
<el-select v-model="searchData.IsCurrentVersion" style="width: 150px">
|
||||||
|
<el-option v-for="item of $d.YesOrNo" :key="item.value" :label="item.label" :value="item.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<!-- 查询 -->
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
|
{{ $t('common:button:search') }}
|
||||||
|
</el-button>
|
||||||
|
<!-- 重置 -->
|
||||||
|
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||||
|
{{ $t('common:button:reset') }}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-button type="primary" style="float: right" size="small" @click="handleAdd">
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
|
</el-button>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<template slot="main-container">
|
||||||
|
<el-table v-adaptive="{ bottomOffset: 60 }" v-loading="loading" :data="list" stripe height="100"
|
||||||
|
@sort-change="handleSortChange">
|
||||||
|
<el-table-column type="index" width="40" />
|
||||||
|
<!-- 文件类型 -->
|
||||||
|
<el-table-column prop="UserAgreementTypeEnum" :label="$t('dictionary:agreement:table:UserAgreementTypeEnum')"
|
||||||
|
show-overflow-tooltip sortable="custom">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
$fd(
|
||||||
|
'UserAgreementType',
|
||||||
|
scope.row.UserAgreementTypeEnum
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- 文件名称 -->
|
||||||
|
<el-table-column prop="FileName" :label="$t('dictionary:agreement:table:FileName')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
<!-- 版本 -->
|
||||||
|
<el-table-column prop="FileVersion" :label="$t('dictionary:agreement:table:FileVersion')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
<!--内容-->
|
||||||
|
<el-table-column prop="FileContent" :label="$t('dictionary:agreement:table:FileContent')">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" size="small" @click.stop="view(scope.row)">{{ $t('dictionary:agreement:button:view')
|
||||||
|
}}</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- 更新日期 -->
|
||||||
|
<el-table-column prop="UpdateDate" :label="$t('dictionary:agreement:table:UpdateDate')" show-overflow-tooltip
|
||||||
|
sortable="custom">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.UpdateDate ? scope.row.UpdateDate.split(' ')[0] : '' }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- 生效日期 -->
|
||||||
|
<el-table-column prop="EffectiveDate" :label="$t('dictionary:agreement:table:EffectiveDate')"
|
||||||
|
show-overflow-tooltip sortable="custom">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.EffectiveDate ? scope.row.EffectiveDate.split(' ')[0] : '' }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- 当前版本 -->
|
||||||
|
<el-table-column prop="IsCurrentVersion" :label="$t('dictionary:agreement:table:IsCurrentVersion')"
|
||||||
|
show-overflow-tooltip sortable="custom">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
$fd(
|
||||||
|
'YesOrNo',
|
||||||
|
scope.row.IsCurrentVersion
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- 创建日期 -->
|
||||||
|
<el-table-column prop="CreateTime" :label="$t('dictionary:agreement:table:CreateTime')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
<!-- 修改日期 -->
|
||||||
|
<el-table-column prop="UpdateTime" :label="$t('dictionary:agreement:table:UpdateTime')" show-overflow-tooltip
|
||||||
|
sortable="custom" />
|
||||||
|
|
||||||
|
<el-table-column :label="$t('common:action:action')" width="300">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" :disabled="scope.row.IsCurrentVersion" @click="setCurrentVersion(scope.row)">
|
||||||
|
{{ $t('dictionary:agreement:button:setCurrentVersion') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button type="text" @click="handleEdit(scope.row)">
|
||||||
|
{{ $t('common:button:edit') }}
|
||||||
|
</el-button>
|
||||||
|
<!-- <el-button type="text" @click="handleDelete(scope.row)">
|
||||||
|
{{ $t('common:button:delete') }}
|
||||||
|
</el-button> -->
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<!-- 分页组件 -->
|
||||||
|
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||||
|
@pagination="getList" />
|
||||||
|
|
||||||
|
<!-- 新增/编辑 -->
|
||||||
|
<el-dialog v-if="editDialog.visible" :visible.sync="editDialog.visible" :close-on-click-modal="false"
|
||||||
|
:title="editDialog.title" custom-class="base-dialog-wrapper" :fullscreen="true">
|
||||||
|
<TemplateForm :data="currentRow" @closeDialog="closeDialog" @getList="getList" />
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
</BaseContainer>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getUserAgreementList,
|
||||||
|
deleteUserAgreement,
|
||||||
|
setCurrentVersion
|
||||||
|
} from '@/api/dictionary'
|
||||||
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
|
import Pagination from '@/components/Pagination'
|
||||||
|
import TemplateForm from './TemplateForm'
|
||||||
|
const searchDataDefault = () => {
|
||||||
|
return {
|
||||||
|
StartEffectiveDate: null,
|
||||||
|
EndEffectiveDate: null,
|
||||||
|
FileName: null,
|
||||||
|
FileVersion: null,
|
||||||
|
IsCurrentVersion: null,
|
||||||
|
StartUpdateDate: null,
|
||||||
|
EndUpdateDate: null,
|
||||||
|
UserAgreementTypeEnum: null,
|
||||||
|
Asc: false,
|
||||||
|
SortField: "",
|
||||||
|
PageIndex: 1,
|
||||||
|
PageSize: 20,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default {
|
||||||
|
name: 'Agreement',
|
||||||
|
components: { BaseContainer, Pagination, TemplateForm },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
searchData: searchDataDefault(),
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
currentRow: {},
|
||||||
|
editDialog: { title: '', visible: false },
|
||||||
|
loading: false,
|
||||||
|
UpdateDate: [],
|
||||||
|
EffectiveDate: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
isEN() {
|
||||||
|
return this.$i18n.locale !== 'zh'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async setCurrentVersion(row) {
|
||||||
|
try {
|
||||||
|
let data = {
|
||||||
|
Id: row.Id
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
let res = await setCurrentVersion(data)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.loading = false
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
view(row) {
|
||||||
|
this.$AGR({
|
||||||
|
Id: row.Id,
|
||||||
|
IsEn_Us: this.isEN
|
||||||
|
})
|
||||||
|
},
|
||||||
|
changeTimeList(key) {
|
||||||
|
if (this[key]) {
|
||||||
|
this.searchData[`Start${key}`] = this[key][0]
|
||||||
|
this.searchData[`End${key}`] = this[key][1]
|
||||||
|
} else {
|
||||||
|
this.searchData.BeginCreateTime = null
|
||||||
|
this.searchData.EndCreateTime = null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleDelete(row) {
|
||||||
|
// 确定删除该模版?
|
||||||
|
this.$confirm(this.$t('dictionary:agreement:message:msg1')).then(() => {
|
||||||
|
deleteUserAgreement(row.Id).then(() => {
|
||||||
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
}).catch(() => { })
|
||||||
|
},
|
||||||
|
PreviewFile(row) {
|
||||||
|
let basePath = window.location.origin
|
||||||
|
if (window.location.protocol !== 'https:') {
|
||||||
|
basePath = 'https://irc.test.extimaging.com'
|
||||||
|
}
|
||||||
|
let data = {
|
||||||
|
name: row.NameCN,
|
||||||
|
path: basePath + row.Path,
|
||||||
|
}
|
||||||
|
this.$emit('PreviewFile', data)
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true
|
||||||
|
getUserAgreementList(this.searchData)
|
||||||
|
.then((res) => {
|
||||||
|
this.loading = false
|
||||||
|
this.list = res.Result.CurrentPageData
|
||||||
|
this.total = res.Result.TotalCount
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 新增
|
||||||
|
handleAdd() {
|
||||||
|
this.editDialog.title = this.$t('common:button:new')
|
||||||
|
this.currentRow = {}
|
||||||
|
this.editDialog.visible = true
|
||||||
|
},
|
||||||
|
// 下载
|
||||||
|
async handleDownload(row) {
|
||||||
|
try {
|
||||||
|
this.loading = true
|
||||||
|
let fileName = this.isEN ? row.Name : row.NameCN;
|
||||||
|
let type = fileName
|
||||||
|
.substring(fileName.lastIndexOf('.'))
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
if (!type) {
|
||||||
|
let extendName = row.Path
|
||||||
|
.substring(row.Path.lastIndexOf('.'))
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
fileName += extendName
|
||||||
|
}
|
||||||
|
let res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName)
|
||||||
|
this.loading = false
|
||||||
|
} catch (err) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 编辑
|
||||||
|
handleEdit(row) {
|
||||||
|
this.editDialog.title = this.$t('common:button:edit')
|
||||||
|
this.currentRow = { ...row }
|
||||||
|
this.editDialog.visible = true
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
handleReset() {
|
||||||
|
this.searchData = searchDataDefault()
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.editDialog.visible = false
|
||||||
|
},
|
||||||
|
// 排序
|
||||||
|
handleSortChange(column) {
|
||||||
|
if (column.order === 'ascending') {
|
||||||
|
this.searchData.Asc = true
|
||||||
|
} else {
|
||||||
|
this.searchData.Asc = false
|
||||||
|
}
|
||||||
|
this.searchData.SortField = column.prop
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .search {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -6,12 +6,13 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getExploreRecommentInfo } from "@/api/dictionary";
|
import { getExploreRecommentInfo } from "@/api/dictionary";
|
||||||
|
import SystemInfo from "@/utils/systemInfo";
|
||||||
export default {
|
export default {
|
||||||
name: "browserTip",
|
name: "browserTip",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {},
|
form: {},
|
||||||
tip: this.$t("browser:tip:changeBorwser"),
|
tip: '',
|
||||||
visible: false,
|
visible: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -36,6 +37,7 @@ export default {
|
|||||||
// console.log(type, No);
|
// console.log(type, No);
|
||||||
if (type !== "Chrome" && type !== "Edge") {
|
if (type !== "Chrome" && type !== "Edge") {
|
||||||
this.tip = this.$t("browser:tip:changeBorwser");
|
this.tip = this.$t("browser:tip:changeBorwser");
|
||||||
|
this.getSystemInfo()
|
||||||
return (this.visible = true);
|
return (this.visible = true);
|
||||||
}
|
}
|
||||||
let res = await this.getInfo();
|
let res = await this.getInfo();
|
||||||
@@ -51,12 +53,30 @@ export default {
|
|||||||
this.tip += "、";
|
this.tip += "、";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.getSystemInfo()
|
||||||
return (this.visible = true);
|
return (this.visible = true);
|
||||||
}
|
}
|
||||||
|
this.getSystemInfo()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getSystemInfo() {
|
||||||
|
const systemInfo = new SystemInfo();
|
||||||
|
const allInfo = systemInfo.getAllInfo();
|
||||||
|
let deviceMemory = allInfo.hardware.deviceMemory; // 设备内存
|
||||||
|
let { width, height } = allInfo.screen; // 分辨率
|
||||||
|
// let discrete = allInfo.webgl.gpuType.discrete; // 是否独立显卡
|
||||||
|
// let estimatedMemory = allInfo.webgl.memoryInfo.estimatedMemory; // 显卡内存
|
||||||
|
// parseFloat(deviceMemory) < 16 ||
|
||||||
|
if (width < 1920 || height < 1080) {
|
||||||
|
if (this.tip) {
|
||||||
|
this.tip += `<br/>`
|
||||||
|
}
|
||||||
|
this.tip += `<span>${this.$t("browser:tip:Configuration")}</span>`
|
||||||
|
this.visible = true
|
||||||
|
}
|
||||||
|
},
|
||||||
getExplore() {
|
getExplore() {
|
||||||
var Sys = {};
|
var Sys = {};
|
||||||
var ua = navigator.userAgent.toLowerCase();
|
var ua = navigator.userAgent.toLowerCase();
|
||||||
@@ -64,18 +84,18 @@ export default {
|
|||||||
(s = ua.match(/rv:([\d.]+)\) like gecko/))
|
(s = ua.match(/rv:([\d.]+)\) like gecko/))
|
||||||
? (Sys.ie = s[1])
|
? (Sys.ie = s[1])
|
||||||
: (s = ua.match(/msie ([\d\.]+)/))
|
: (s = ua.match(/msie ([\d\.]+)/))
|
||||||
? (Sys.ie = s[1])
|
? (Sys.ie = s[1])
|
||||||
: (s = ua.match(/edg\/([\d\.]+)/) || ua.match(/edge\/([\d\.]+)/))
|
: (s = ua.match(/edg\/([\d\.]+)/) || ua.match(/edge\/([\d\.]+)/))
|
||||||
? (Sys.edge = s[1])
|
? (Sys.edge = s[1])
|
||||||
: (s = ua.match(/firefox\/([\d\.]+)/))
|
: (s = ua.match(/firefox\/([\d\.]+)/))
|
||||||
? (Sys.firefox = s[1])
|
? (Sys.firefox = s[1])
|
||||||
: (s = ua.match(/(?:opera|opr).([\d\.]+)/))
|
: (s = ua.match(/(?:opera|opr).([\d\.]+)/))
|
||||||
? (Sys.opera = s[1])
|
? (Sys.opera = s[1])
|
||||||
: (s = ua.match(/chrome\/([\d\.]+)/))
|
: (s = ua.match(/chrome\/([\d\.]+)/))
|
||||||
? (Sys.chrome = s[1])
|
? (Sys.chrome = s[1])
|
||||||
: (s = ua.match(/version\/([\d\.]+).*safari/))
|
: (s = ua.match(/version\/([\d\.]+).*safari/))
|
||||||
? (Sys.safari = s[1])
|
? (Sys.safari = s[1])
|
||||||
: 0;
|
: 0;
|
||||||
// 根据关系进行判断
|
// 根据关系进行判断
|
||||||
if (Sys.ie) return "IE: " + Sys.ie;
|
if (Sys.ie) return "IE: " + Sys.ie;
|
||||||
if (Sys.edge) return "Edge: " + Sys.edge;
|
if (Sys.edge) return "Edge: " + Sys.edge;
|
||||||
@@ -100,6 +120,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
color: #555;
|
color: #555;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: red;
|
color: red;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
:data="list"
|
:data="list"
|
||||||
stripe
|
stripe
|
||||||
height="100"
|
height="100"
|
||||||
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<!-- Group -->
|
<!-- Group -->
|
||||||
@@ -50,6 +51,7 @@
|
|||||||
prop="Group"
|
prop="Group"
|
||||||
:label="$t('template:anonymization:label:group')"
|
:label="$t('template:anonymization:label:group')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Element -->
|
<!-- Element -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -57,24 +59,28 @@
|
|||||||
:label="$t('template:anonymization:label:element')"
|
:label="$t('template:anonymization:label:element')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Tag Description -->
|
<!-- Tag Description -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescription"
|
prop="TagDescription"
|
||||||
:label="$t('template:anonymization:label:tagDescription')"
|
:label="$t('template:anonymization:label:tagDescription')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Tag DescriptionCN -->
|
<!-- Tag DescriptionCN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescriptionCN"
|
prop="TagDescriptionCN"
|
||||||
:label="$t('template:anonymization:label:tagDescriptionCN')"
|
:label="$t('template:anonymization:label:tagDescriptionCN')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Value Representation -->
|
<!-- Value Representation -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ValueRepresentation"
|
prop="ValueRepresentation"
|
||||||
:label="$t('template:anonymization:label:valueRepresentation')"
|
:label="$t('template:anonymization:label:valueRepresentation')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Is Fixed -->
|
<!-- Is Fixed -->
|
||||||
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
|
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
|
||||||
@@ -92,6 +98,7 @@
|
|||||||
prop="ReplaceValue"
|
prop="ReplaceValue"
|
||||||
:label="$t('template:anonymization:label:valueReplace')"
|
:label="$t('template:anonymization:label:valueReplace')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Is Enable -->
|
<!-- Is Enable -->
|
||||||
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
|
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
|
||||||
@@ -139,7 +146,9 @@ const searchDataDefault = () => {
|
|||||||
IsAdd: false,
|
IsAdd: false,
|
||||||
TagDescriptionCN: '',
|
TagDescriptionCN: '',
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 500
|
PageSize: 500,
|
||||||
|
Asc: false,
|
||||||
|
SortField: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
@@ -159,6 +168,17 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 排序
|
||||||
|
handleSortByColumn(column) {
|
||||||
|
if (column.order === 'ascending') {
|
||||||
|
this.searchData.Asc = true
|
||||||
|
} else {
|
||||||
|
this.searchData.Asc = false
|
||||||
|
}
|
||||||
|
this.searchData.SortField = column.prop
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateSystemAnonymization(item).then(res => {
|
addOrUpdateSystemAnonymization(item).then(res => {
|
||||||
|
|||||||
@@ -3,27 +3,22 @@
|
|||||||
<!-- 器官 -->
|
<!-- 器官 -->
|
||||||
<el-tab-pane :label="$t('dictionary:template:basicData:organs')" name="organs">
|
<el-tab-pane :label="$t('dictionary:template:basicData:organs')" name="organs">
|
||||||
|
|
||||||
<OrgansTbl
|
<OrgansTbl :criterion-id="criterionId" :is-complete-config="isCompleteConfig" />
|
||||||
:criterion-id="criterionId"
|
|
||||||
:is-complete-config="isCompleteConfig"
|
|
||||||
/>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- 疗效评估 -->
|
<!-- 疗效评估 -->
|
||||||
<el-tab-pane :label="$t('dictionary:template:basicData:efficacyAssessment')" name="efficacyAssessment">
|
<el-tab-pane :label="$t('dictionary:template:basicData:efficacyAssessment')" name="efficacyAssessment">
|
||||||
<EfficacyAssessment
|
<EfficacyAssessment v-if="tabs.includes('efficacyAssessment')" :criterion-id="criterionId"
|
||||||
v-if="tabs.includes('efficacyAssessment')"
|
:criterion-type="criterionType" :is-complete-config="isCompleteConfig" />
|
||||||
:criterion-id="criterionId"
|
|
||||||
:criterion-type="criterionType"
|
|
||||||
:is-complete-config="isCompleteConfig"
|
|
||||||
/>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- 标准字典 -->
|
<!-- 标准字典 -->
|
||||||
<el-tab-pane :label="$t('dictionary:template:basicData:criterionDictionary')" name="criterionDictionary">
|
<el-tab-pane :label="$t('dictionary:template:basicData:criterionDictionary')" name="criterionDictionary">
|
||||||
<CriterionDictionary
|
<CriterionDictionary v-if="tabs.includes('criterionDictionary')" :criterion-id="criterionId"
|
||||||
v-if="tabs.includes('criterionDictionary')"
|
:is-complete-config="isCompleteConfig" />
|
||||||
:criterion-id="criterionId"
|
</el-tab-pane>
|
||||||
:is-complete-config="isCompleteConfig"
|
<!-- 关键文件 -->
|
||||||
/>
|
<el-tab-pane :label="$t('dictionary:template:basicData:keyDocument')" name="keyDocument">
|
||||||
|
<KeyDocument v-if="tabs.includes('keyDocument')" :criterion-id="criterionId"
|
||||||
|
:is-complete-config="isCompleteConfig" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,9 +26,10 @@
|
|||||||
import OrgansTbl from './OrgansTbl'
|
import OrgansTbl from './OrgansTbl'
|
||||||
import EfficacyAssessment from './EfficacyAssessment'
|
import EfficacyAssessment from './EfficacyAssessment'
|
||||||
import CriterionDictionary from './CriterionDictionary'
|
import CriterionDictionary from './CriterionDictionary'
|
||||||
|
import KeyDocument from './KeyDocument'
|
||||||
export default {
|
export default {
|
||||||
name: 'CriterionsBaseData',
|
name: 'CriterionsBaseData',
|
||||||
components: { OrgansTbl, EfficacyAssessment, CriterionDictionary },
|
components: { OrgansTbl, EfficacyAssessment, CriterionDictionary, KeyDocument },
|
||||||
props: {
|
props: {
|
||||||
criterionId: {
|
criterionId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="position: relative">
|
<div style="position: relative">
|
||||||
<el-form size="small" :inline="true" style="position: relative;">
|
<el-form size="small" :inline="true" style="position: relative;">
|
||||||
<!-- 阅片规则 -->
|
<!-- 阅片规则 -->
|
||||||
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:readingRules') }}</el-divider>
|
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:readingRules') }}</el-divider>
|
||||||
<!-- 是否必须全局阅片 -->
|
<!-- 是否必须全局阅片 -->
|
||||||
@@ -8,68 +8,38 @@
|
|||||||
{{ $fd('YesOrNo', IsMustGlobalReading) }}
|
{{ $fd('YesOrNo', IsMustGlobalReading) }}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 配置 -->
|
<!-- 配置 -->
|
||||||
<el-button
|
<el-button size="mini" type="primary" style="position: absolute;right: 10px;top: 15px"
|
||||||
size="mini"
|
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" @click="handleAdd(1)">
|
||||||
type="primary"
|
|
||||||
style="position: absolute;right: 10px;top: 15px"
|
|
||||||
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
|
|
||||||
@click="handleAdd(1)"
|
|
||||||
>
|
|
||||||
{{ $t('dictionary:template:globalConfig:config') }}
|
{{ $t('dictionary:template:globalConfig:config') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-form size="small" :inline="true" style="position: relative">
|
<el-form size="small" :inline="true" style="position: relative">
|
||||||
<!-- 名称 -->
|
<!-- 名称 -->
|
||||||
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:name') }}</el-divider>
|
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:name') }}</el-divider>
|
||||||
<!-- 配置 -->
|
<!-- 配置 -->
|
||||||
<el-button
|
<el-button size="mini" type="primary" style="position: absolute;right: 10px;top: 15px"
|
||||||
size="mini"
|
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" @click="handleAdd(2)">
|
||||||
type="primary"
|
|
||||||
style="position: absolute;right: 10px;top: 15px"
|
|
||||||
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
|
|
||||||
@click="handleAdd(2)"
|
|
||||||
>
|
|
||||||
{{ $t('dictionary:template:globalConfig:config') }}
|
{{ $t('dictionary:template:globalConfig:config') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 评估更新类型 -->
|
<!-- 评估更新类型 -->
|
||||||
<el-form-item :label="$t('dictionary:template:globalConfig:updateType')" style="width: 100%">
|
<el-form-item :label="$t('dictionary:template:globalConfig:updateType')" style="width: 100%">
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-table
|
<el-table v-loading="loading" style="width: 100%" :data="list" stripe>
|
||||||
v-loading="loading"
|
|
||||||
style="width: 100%"
|
|
||||||
:data="list"
|
|
||||||
stripe
|
|
||||||
>
|
|
||||||
<!-- 序号 -->
|
<!-- 序号 -->
|
||||||
<el-table-column
|
<el-table-column prop="" :label="$t('dictionary:template:globalConfig:order')" width="80">
|
||||||
prop=""
|
|
||||||
:label="$t('dictionary:template:globalConfig:order')"
|
|
||||||
width="80"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.$index + 1}}
|
{{ scope.$index + 1 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 中文值 -->
|
<!-- 中文值 -->
|
||||||
<el-table-column
|
<el-table-column prop="ValueCN" :label="$t('dictionary:template:globalConfig:valueCN')" show-overflow-tooltip>
|
||||||
prop="ValueCN"
|
|
||||||
:label="$t('dictionary:template:globalConfig:valueCN')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 英文值 -->
|
<!-- 英文值 -->
|
||||||
<el-table-column
|
<el-table-column prop="Value" :label="$t('dictionary:template:globalConfig:value')" show-overflow-tooltip>
|
||||||
prop="Value"
|
|
||||||
:label="$t('dictionary:template:globalConfig:value')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 是否基线评估 -->
|
<!-- 是否基线评估 -->
|
||||||
<el-table-column
|
<el-table-column prop="IsBaseLineUse" :label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
||||||
prop="IsBaseLineUse"
|
show-overflow-tooltip>
|
||||||
:label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-switch-->
|
<!-- <el-switch-->
|
||||||
<!-- @change="(v) => {BaseLineUseChange(v, scope.row)}"-->
|
<!-- @change="(v) => {BaseLineUseChange(v, scope.row)}"-->
|
||||||
@@ -81,92 +51,64 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 是否随访评估 -->
|
<!-- 是否随访评估 -->
|
||||||
<el-table-column
|
<el-table-column prop="IsFollowVisitUse" :label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
||||||
prop="IsFollowVisitUse"
|
show-overflow-tooltip>
|
||||||
:label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-switch-->
|
<!-- <el-switch-->
|
||||||
<!-- @change="(v) => {FollowVisitUseChange(v, scope.row)}"-->
|
<!-- @change="(v) => {FollowVisitUseChange(v, scope.row)}"-->
|
||||||
<!-- v-model="scope.row.IsFollowVisitUse"-->
|
<!-- v-model="scope.row.IsFollowVisitUse"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
<!-- </el-switch>-->
|
<!-- </el-switch>-->
|
||||||
<el-tag v-if="scope.row.IsFollowVisitUse" type="primary">{{ $fd('YesOrNo', scope.row.IsFollowVisitUse) }}</el-tag>
|
<el-tag v-if="scope.row.IsFollowVisitUse" type="primary">{{ $fd('YesOrNo', scope.row.IsFollowVisitUse)
|
||||||
|
}}</el-tag>
|
||||||
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsFollowVisitUse) }}</el-tag>
|
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsFollowVisitUse) }}</el-tag>
|
||||||
<!-- <span>{{$fd('YesOrNo', scope.row.IsFollowVisitUse)}}</span>-->
|
<!-- <span>{{$fd('YesOrNo', scope.row.IsFollowVisitUse)}}</span>-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form>
|
</el-form>
|
||||||
<base-model
|
<base-model :config="config">
|
||||||
:config="config"
|
|
||||||
>
|
|
||||||
<template slot="dialog-body">
|
<template slot="dialog-body">
|
||||||
<el-form size="small" :inline="true" label-width="130px">
|
<el-form size="small" :inline="true" label-width="130px">
|
||||||
<!-- 是否必须全局阅片 -->
|
<!-- 是否必须全局阅片 -->
|
||||||
<el-form-item :label="$t('dictionary:template:globalConfig:isMustGlobalReading')" v-if="config.configType === 1">
|
<el-form-item :label="$t('dictionary:template:globalConfig:isMustGlobalReading')"
|
||||||
|
v-if="config.configType === 1">
|
||||||
<el-radio-group v-model="form.IsMustGlobalReading">
|
<el-radio-group v-model="form.IsMustGlobalReading">
|
||||||
<el-radio v-for="item of $d.YesOrNo" :key="'form.IsMustGlobalReading' + item.value" :label="item.value">{{ item.label }}</el-radio>
|
<el-radio v-for="item of $d.YesOrNo" :key="'form.IsMustGlobalReading' + item.value" :label="item.value">{{
|
||||||
|
item.label }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 评估更新类型 -->
|
<!-- 评估更新类型 @selection-change="handleSelectionChange"-->
|
||||||
<el-form-item v-if="config.configType === 2" :label="$t('dictionary:template:globalConfig:updateType')" style="width: 100%">
|
<el-form-item v-if="config.configType === 2" :label="$t('dictionary:template:globalConfig:updateType')"
|
||||||
|
style="width: 100%">
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-table
|
<el-table v-if="config.configType === 2" v-loading="loading" ref="multipleTable" :data="GlobalAssessType"
|
||||||
v-if="config.configType === 2"
|
stripe>
|
||||||
v-loading="loading"
|
<!-- <el-table-column type="selection" width="55">
|
||||||
ref="multipleTable"
|
</el-table-column> -->
|
||||||
:data="GlobalAssessType"
|
|
||||||
stripe
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
width="55">
|
|
||||||
</el-table-column>
|
|
||||||
<!-- 中文值 -->
|
<!-- 中文值 -->
|
||||||
<el-table-column
|
<el-table-column prop="ValueCN" :label="$t('dictionary:template:globalConfig:valueCN')"
|
||||||
prop="ValueCN"
|
show-overflow-tooltip>
|
||||||
:label="$t('dictionary:template:globalConfig:valueCN')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 英文值 -->
|
<!-- 英文值 -->
|
||||||
<el-table-column
|
<el-table-column prop="Value" :label="$t('dictionary:template:globalConfig:value')" show-overflow-tooltip>
|
||||||
prop="Value"
|
|
||||||
:label="$t('dictionary:template:globalConfig:value')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 是否基线评估 -->
|
<!-- 是否基线评估 -->
|
||||||
<el-table-column
|
<el-table-column prop="IsBaseLineUse" :label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
||||||
prop="IsBaseLineUse"
|
show-overflow-tooltip>
|
||||||
:label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch v-model="scope.row.IsBaseLineUse" @change="() => $forceUpdate()">
|
||||||
v-model="scope.row.IsBaseLineUse"
|
|
||||||
@change="() => $forceUpdate()"
|
|
||||||
>
|
|
||||||
</el-switch>
|
</el-switch>
|
||||||
<span>{{$fd('YesOrNo', scope.row.IsBaseLineUse)}}</span>
|
<span>{{ $fd('YesOrNo', scope.row.IsBaseLineUse) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 是否随访评估 -->
|
<!-- 是否随访评估 -->
|
||||||
<el-table-column
|
<el-table-column prop="IsFollowVisitUse" :label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
||||||
prop="IsFollowVisitUse"
|
show-overflow-tooltip>
|
||||||
:label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch v-model="scope.row.IsFollowVisitUse" @change="() => $forceUpdate()">
|
||||||
v-model="scope.row.IsFollowVisitUse"
|
|
||||||
@change="() => $forceUpdate()"
|
|
||||||
>
|
|
||||||
</el-switch>
|
</el-switch>
|
||||||
<span>{{$fd('YesOrNo', scope.row.IsFollowVisitUse)}}</span>
|
<span>{{ $fd('YesOrNo', scope.row.IsFollowVisitUse) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -226,7 +168,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getSystemGlobalInfo()
|
this.getSystemGlobalInfo()
|
||||||
this.getCriterionDictionary()
|
// this.getCriterionDictionary()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getCriterionDictionary() {
|
getCriterionDictionary() {
|
||||||
@@ -241,12 +183,12 @@ export default {
|
|||||||
getSystemGlobalInfo({
|
getSystemGlobalInfo({
|
||||||
SystemCriterionId: this.criterionId
|
SystemCriterionId: this.criterionId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
this.GlobalAssessType = res.Result.DictionaryList
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
FollowVisitUseChange(v, row) {
|
FollowVisitUseChange(v, row) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
setDictionaryFollowVisitUse({Id:row.Id, IsFollowVisitUse: v}).then(res => {
|
setDictionaryFollowVisitUse({ Id: row.Id, IsFollowVisitUse: v }).then(res => {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@@ -255,7 +197,7 @@ export default {
|
|||||||
},
|
},
|
||||||
BaseLineUseChange(v, row) {
|
BaseLineUseChange(v, row) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
setDictionaryBaseLineUse({Id:row.Id, isBaseLineUse: v}).then(res => {
|
setDictionaryBaseLineUse({ Id: row.Id, isBaseLineUse: v }).then(res => {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@@ -273,6 +215,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
|
console.log(this.selectedList, 'this.selectedList')
|
||||||
this.selectedList = val
|
this.selectedList = val
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
@@ -295,18 +238,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.config.title = this.$t('dictionary:template:globalConfig:updateType')
|
this.config.title = this.$t('dictionary:template:globalConfig:updateType')
|
||||||
this.config.visible = true
|
this.config.visible = true
|
||||||
this.$nextTick(() => {
|
|
||||||
var a = this.$d.GlobalAssessType.filter(v => {
|
|
||||||
return !!this.list.find(v1 => {
|
|
||||||
if (v.id === v1.DictionaryId) {
|
|
||||||
v.IsBaseLineUse = v1.IsBaseLineUse
|
|
||||||
v.IsFollowVisitUse = v1.IsFollowVisitUse
|
|
||||||
}
|
|
||||||
return v1.DictionaryId === v.id
|
|
||||||
})
|
|
||||||
})
|
|
||||||
this.toggleSelection(a)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
@@ -319,11 +250,11 @@ export default {
|
|||||||
var params = {
|
var params = {
|
||||||
SystemCriterionId: this.criterionId,
|
SystemCriterionId: this.criterionId,
|
||||||
IsMustGlobalReading: this.form.IsMustGlobalReading,
|
IsMustGlobalReading: this.form.IsMustGlobalReading,
|
||||||
DictionaryList: this.config.configType === 1 ? this.list : this.selectedList.map(v => {
|
DictionaryList: this.config.configType === 1 ? this.list : this.GlobalAssessType.map(v => {
|
||||||
return {
|
return {
|
||||||
DictionaryId: v.id,
|
DictionaryId: v.DictionaryId,
|
||||||
IsBaseLineUse: v.IsBaseLineUse,
|
IsBaseLineUse: v.IsBaseLineUse ? v.IsBaseLineUse : false,
|
||||||
IsFollowVisitUse: v.IsFollowVisitUse,
|
IsFollowVisitUse: v.IsFollowVisitUse ? v.IsFollowVisitUse : false,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
@@ -342,5 +273,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
:data="list"
|
:data="list"
|
||||||
stripe
|
stripe
|
||||||
height="100"
|
height="100"
|
||||||
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<!-- Group -->
|
<!-- Group -->
|
||||||
@@ -50,6 +51,7 @@
|
|||||||
prop="Group"
|
prop="Group"
|
||||||
:label="$t('template:anonymization:label:group')"
|
:label="$t('template:anonymization:label:group')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Element -->
|
<!-- Element -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -57,24 +59,28 @@
|
|||||||
:label="$t('template:anonymization:label:element')"
|
:label="$t('template:anonymization:label:element')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Tag Description -->
|
<!-- Tag Description -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescription"
|
prop="TagDescription"
|
||||||
:label="$t('template:anonymization:label:tagDescription')"
|
:label="$t('template:anonymization:label:tagDescription')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Tag DescriptionCN -->
|
<!-- Tag DescriptionCN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescriptionCN"
|
prop="TagDescriptionCN"
|
||||||
:label="$t('template:anonymization:label:tagDescriptionCN')"
|
:label="$t('template:anonymization:label:tagDescriptionCN')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Value Representation -->
|
<!-- Value Representation -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ValueRepresentation"
|
prop="ValueRepresentation"
|
||||||
:label="$t('template:anonymization:label:valueRepresentation')"
|
:label="$t('template:anonymization:label:valueRepresentation')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Is Fixed -->
|
<!-- Is Fixed -->
|
||||||
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
|
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
|
||||||
@@ -92,6 +98,7 @@
|
|||||||
prop="ReplaceValue"
|
prop="ReplaceValue"
|
||||||
:label="$t('template:anonymization:label:valueReplace')"
|
:label="$t('template:anonymization:label:valueReplace')"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- Is Enable -->
|
<!-- Is Enable -->
|
||||||
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
|
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
|
||||||
@@ -138,7 +145,9 @@ const searchDataDefault = () => {
|
|||||||
TagDescriptionCN: '',
|
TagDescriptionCN: '',
|
||||||
IsAdd: true,
|
IsAdd: true,
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 500
|
PageSize: 500,
|
||||||
|
Asc: false,
|
||||||
|
SortField: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
@@ -158,6 +167,17 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 排序
|
||||||
|
handleSortByColumn(column) {
|
||||||
|
if (column.order === 'ascending') {
|
||||||
|
this.searchData.Asc = true
|
||||||
|
} else {
|
||||||
|
this.searchData.Asc = false
|
||||||
|
}
|
||||||
|
this.searchData.SortField = column.prop
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateSystemAnonymization(item).then(res => {
|
addOrUpdateSystemAnonymization(item).then(res => {
|
||||||
|
|||||||
@@ -0,0 +1,286 @@
|
|||||||
|
<template>
|
||||||
|
<BaseContainer>
|
||||||
|
<!-- 搜索框 -->
|
||||||
|
<template slot="search-container">
|
||||||
|
<el-form :inline="true" size="mini">
|
||||||
|
<el-form-item :label="$t('dictionary:template:keyDocList:FileName')">
|
||||||
|
<el-input clearable v-model="searchData.FileName"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">
|
||||||
|
{{ $t('common:button:search') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-refresh-left" size="mini" @click="handleReset">
|
||||||
|
{{ $t('common:button:reset') }}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<div class="upload">
|
||||||
|
<input directory accept=".pdf" type="file" name="uploadFolder" class="select-file" title=""
|
||||||
|
@change="beginScanFiles($event)" />
|
||||||
|
<div class="btn-select">
|
||||||
|
{{ $t('dictionary:template:basicData:button:selectFile') }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template slot="main-container">
|
||||||
|
<div class="drag" ref="drag" @dragover="handleDragover" @drop="handleDrop">
|
||||||
|
<el-table ref="keyDocList" v-loading="loading" v-adaptive="{ bottomOffset: 80 }" :data="list"
|
||||||
|
width="100%" style="width: 100%;min-width: 300px" stripe height="100"
|
||||||
|
@sort-change="handleSortByColumn">
|
||||||
|
<el-table-column type="index" min-width="90" />
|
||||||
|
<el-table-column prop="FileName" :label="$t('dictionary:template:keyDocList:FileName')"
|
||||||
|
show-overflow-tooltip />
|
||||||
|
<el-table-column prop="CreateTime" :label="$t('dictionary:template:keyDocList:CreateTime')"
|
||||||
|
show-overflow-tooltip />
|
||||||
|
<el-table-column :label="$t('common:action:action')" align="left" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button circle icon="el-icon-view"
|
||||||
|
:title="$t('dictionary:template:keyDocList:button:view')"
|
||||||
|
@click.stop="view(scope.row)" />
|
||||||
|
<el-button circle icon="el-icon-delete"
|
||||||
|
:title="$t('dictionary:template:keyDocList:button:del')" @click.stop="del(scope.row)" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 分页组件 -->
|
||||||
|
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||||
|
@pagination="getList" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</BaseContainer>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Upload } from '@/api/dictionary'
|
||||||
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
|
import Pagination from '@/components/Pagination'
|
||||||
|
import { getSystemCriterionKeyFileList, addOrUpdateSystemCriterionKeyFile, deleteSystemCriterionKeyFile } from '@/api/dictionary'
|
||||||
|
import { readEntry } from '@/utils/index'
|
||||||
|
const searchDataDefault = () => {
|
||||||
|
return {
|
||||||
|
FileName: '',
|
||||||
|
PageIndex: 1,
|
||||||
|
PageSize: 20,
|
||||||
|
Asc: false,
|
||||||
|
SortField: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default {
|
||||||
|
name: "KeyDocument",
|
||||||
|
components: { BaseContainer, Pagination },
|
||||||
|
props: {
|
||||||
|
criterionId: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
isCompleteConfig: {
|
||||||
|
type: Boolean,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
searchData: searchDataDefault(),
|
||||||
|
loading: false,
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleDragover(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
},
|
||||||
|
handleDrop(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
this.beginScanFiles(e, true)
|
||||||
|
},
|
||||||
|
beforeUpload(file) {
|
||||||
|
// 检测文件类型是否符合要求
|
||||||
|
if (this.checkFileSuffix(file.name)) {
|
||||||
|
this.fileList = [];
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
// this.$alert("必须是word/excel格式");
|
||||||
|
this.$alert(this.$t("dictionary:attachment:export:alert:formatFile"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async beginScanFiles(e, isDrop = false) {
|
||||||
|
try {
|
||||||
|
this.loading = true;
|
||||||
|
let files = []
|
||||||
|
if (isDrop) {
|
||||||
|
const items = e.dataTransfer.items;
|
||||||
|
const allFiles = []; // 用于存储所有找到的文件
|
||||||
|
|
||||||
|
// 遍历拖拽项
|
||||||
|
for (const item of items) {
|
||||||
|
const entry = item.webkitGetAsEntry(); // 获取文件系统入口
|
||||||
|
if (entry) {
|
||||||
|
const files = await readEntry(entry); // 递归读取入口内容
|
||||||
|
allFiles.push(...files);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
files = allFiles
|
||||||
|
} else {
|
||||||
|
files = [...e.target.files]
|
||||||
|
}
|
||||||
|
for (let i = 0; i < files.length; i++) {
|
||||||
|
let file = files[i]
|
||||||
|
if (!this.checkFileSuffix(file.name)) continue
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append("file", file);
|
||||||
|
let res = await Upload(formData, 5)
|
||||||
|
let data = {
|
||||||
|
FilePath: res.Result.FilePath,
|
||||||
|
FileName: file.name
|
||||||
|
}
|
||||||
|
await this.addKeyDoc(data)
|
||||||
|
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
checkFileSuffix(fileName) {
|
||||||
|
var index = fileName.lastIndexOf('.')
|
||||||
|
var suffix = fileName.substring(index + 1, fileName.length)
|
||||||
|
if ('.pdf'.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === -1) {
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async getList() {
|
||||||
|
try {
|
||||||
|
this.searchData.SystemCriterionId = this.criterionId
|
||||||
|
this.loading = true
|
||||||
|
let res = await getSystemCriterionKeyFileList(this.searchData)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.list = res.Result.CurrentPageData
|
||||||
|
this.total = res.Result.TotalCount
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.loading = false
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async addKeyDoc(row) {
|
||||||
|
try {
|
||||||
|
let { FileName, FilePath } = row
|
||||||
|
let data = {
|
||||||
|
FileName,
|
||||||
|
FilePath,
|
||||||
|
SystemCriterionId: this.criterionId
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
let res = await addOrUpdateSystemCriterionKeyFile(data)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.loading = false
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async del(row) {
|
||||||
|
try {
|
||||||
|
this.loading = true
|
||||||
|
let res = await deleteSystemCriterionKeyFile(row.Id)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
view(row) {
|
||||||
|
this.$preview({
|
||||||
|
path: row.FilePath,
|
||||||
|
type: 'pdf',
|
||||||
|
isLocal: true,
|
||||||
|
title: row.FileName,
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 查询
|
||||||
|
handleSearch() {
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
// 重置
|
||||||
|
handleReset() {
|
||||||
|
this.searchData = searchDataDefault()
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
// 排序
|
||||||
|
handleSortByColumn(column) {
|
||||||
|
if (column.order === 'ascending') {
|
||||||
|
this.searchData.Asc = true
|
||||||
|
} else {
|
||||||
|
this.searchData.Asc = false
|
||||||
|
}
|
||||||
|
this.searchData.SortField = column.prop
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.upload {
|
||||||
|
display: inline-block;
|
||||||
|
height: 30px;
|
||||||
|
width: 90px;
|
||||||
|
padding: 2px 10px;
|
||||||
|
line-height: 23px;
|
||||||
|
position: relative;
|
||||||
|
text-decoration: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: center;
|
||||||
|
background: #428bca;
|
||||||
|
border-color: #428bca;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
.select-file {
|
||||||
|
height: 30px;
|
||||||
|
width: 90px;
|
||||||
|
position: absolute;
|
||||||
|
overflow: hidden;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
opacity: 0;
|
||||||
|
font-size: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-select {
|
||||||
|
//给显示在页面上的按钮写样式
|
||||||
|
width: 90px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 24px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
pointer-events: none; //pointer-events:none用来控制该标签的点击穿透事件
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -30,13 +30,13 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('trials:auditRecord:table:criterion')"
|
:label="$t('trials:auditRecord:table:criterion')"
|
||||||
>
|
>
|
||||||
<el-select v-model="searchData.CriterionTypeEnum">
|
<el-select v-model="searchData.CriterionTypeEnum" clearable>
|
||||||
<el-option v-for="item of $d.CriterionType" :key="item.id" :value="item.value" :label="item.label" />
|
<el-option v-for="item of $d.CriterionType" :key="item.id" :value="item.value" :label="item.label" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 是否通用 -->
|
<!-- 是否通用 -->
|
||||||
<el-form-item :label="$t('dictionary:medicalAudit:label:IsGeneral')">
|
<el-form-item :label="$t('dictionary:medicalAudit:label:IsGeneral')">
|
||||||
<el-select v-model="searchData.IsGeneral">
|
<el-select v-model="searchData.IsGeneral" clearable>
|
||||||
<el-option v-for="item of $d.YesOrNo" :key="item.id" :value="item.value" :label="item.label" />
|
<el-option v-for="item of $d.YesOrNo" :key="item.id" :value="item.value" :label="item.label" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -51,6 +51,9 @@
|
|||||||
>
|
>
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button type="primary" @click="handleExport">
|
||||||
|
{{ $t('common:button:export') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
@@ -66,6 +69,7 @@
|
|||||||
:data="list"
|
:data="list"
|
||||||
stripe
|
stripe
|
||||||
height="100"
|
height="100"
|
||||||
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<!-- 序号 -->
|
<!-- 序号 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -79,6 +83,7 @@
|
|||||||
:label="$t('trials:MIMqcCfg:table:questionName')"
|
:label="$t('trials:MIMqcCfg:table:questionName')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- 审核问题 -->
|
<!-- 审核问题 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -86,6 +91,7 @@
|
|||||||
:label="$t('common:title:languageType')"
|
:label="$t('common:title:languageType')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="160"
|
min-width="160"
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('LanguageType', scope.row.LanguageType) }}
|
{{ $fd('LanguageType', scope.row.LanguageType) }}
|
||||||
@@ -97,6 +103,7 @@
|
|||||||
:label="$t('trials:qcCfg:table:type')"
|
:label="$t('trials:qcCfg:table:type')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('QcType', scope.row.Type) }}
|
{{ $fd('QcType', scope.row.Type) }}
|
||||||
@@ -108,6 +115,7 @@
|
|||||||
:label="$t('trials:qcCfg:table:typeValue')"
|
:label="$t('trials:qcCfg:table:typeValue')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- 任务类型 -->
|
<!-- 任务类型 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -115,6 +123,7 @@
|
|||||||
:label="$t('trials:medicalFeedbackCfg:title:taskType')"
|
:label="$t('trials:medicalFeedbackCfg:title:taskType')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.ReadingCategory === 1" type="primary">
|
<el-tag v-if="scope.row.ReadingCategory === 1" type="primary">
|
||||||
@@ -136,6 +145,7 @@
|
|||||||
:label="$t('trials:auditRecord:table:criterion')"
|
:label="$t('trials:auditRecord:table:criterion')"
|
||||||
min-width="160"
|
min-width="160"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
@@ -148,6 +158,7 @@
|
|||||||
:label="$t('dictionary:medicalAudit:label:IsGeneral')"
|
:label="$t('dictionary:medicalAudit:label:IsGeneral')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
@@ -161,6 +172,7 @@
|
|||||||
:label="$t('trials:qcCfg:table:parentQs')"
|
:label="$t('trials:qcCfg:table:parentQs')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- 父问题触发值 -->
|
<!-- 父问题触发值 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -168,12 +180,14 @@
|
|||||||
:label="$t('trials:qcCfg:table:parentTriggerValue')"
|
:label="$t('trials:qcCfg:table:parentTriggerValue')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="160"
|
min-width="160"
|
||||||
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!-- 是否必填 -->
|
<!-- 是否必填 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsRequired"
|
prop="IsRequired"
|
||||||
:label="$t('trials:qcCfg:table:isRequired')"
|
:label="$t('trials:qcCfg:table:isRequired')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('YesOrNo', scope.row.IsRequired) }}
|
{{ $fd('YesOrNo', scope.row.IsRequired) }}
|
||||||
@@ -184,6 +198,7 @@
|
|||||||
prop="IsEnable"
|
prop="IsEnable"
|
||||||
:label="$t('trials:qcCfg:table:isEnable')"
|
:label="$t('trials:qcCfg:table:isEnable')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('YesOrNo', scope.row.IsEnable) }}
|
{{ $fd('YesOrNo', scope.row.IsEnable) }}
|
||||||
@@ -215,7 +230,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getReadingMedicineSystemQuestionList, deleteReadingMedicineSystemQuestion } from '@/api/dictionary'
|
import { getReadingMedicineSystemQuestionList, deleteReadingMedicineSystemQuestion } from '@/api/dictionary'
|
||||||
|
import { GetReadingMedicineSystemQuestionList_Export } from '@/api/export'
|
||||||
import BoxContent from '@/components/BoxContent'
|
import BoxContent from '@/components/BoxContent'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import MedicalAuditForm from './MedicalAuditForm'
|
import MedicalAuditForm from './MedicalAuditForm'
|
||||||
@@ -228,7 +243,9 @@ const searchDataDefault = () => {
|
|||||||
LanguageType: null,
|
LanguageType: null,
|
||||||
Type: '',
|
Type: '',
|
||||||
CriterionTypeEnum: null,
|
CriterionTypeEnum: null,
|
||||||
IsGeneral: null
|
IsGeneral: null,
|
||||||
|
Asc: false,
|
||||||
|
SortField: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
@@ -248,6 +265,20 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async handleExport() {
|
||||||
|
await GetReadingMedicineSystemQuestionList_Export(this.searchData)
|
||||||
|
},
|
||||||
|
// 排序
|
||||||
|
handleSortByColumn(column) {
|
||||||
|
if (column.order === 'ascending') {
|
||||||
|
this.searchData.Asc = true
|
||||||
|
} else {
|
||||||
|
this.searchData.Asc = false
|
||||||
|
}
|
||||||
|
this.searchData.SortField = column.prop
|
||||||
|
this.searchData.PageIndex = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
// 获取受试者列表信息
|
// 获取受试者列表信息
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -1,155 +1,86 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-form
|
<el-form ref="tableQsForm" v-loading="loading" :model="form" size="small" :disabled="type === 'look'" :rules="rules"
|
||||||
ref="tableQsForm"
|
label-width="130px">
|
||||||
v-loading="loading"
|
|
||||||
:model="form"
|
|
||||||
size="small"
|
|
||||||
:disabled="type === 'look'"
|
|
||||||
:rules="rules"
|
|
||||||
label-width="130px"
|
|
||||||
>
|
|
||||||
<div class="base-dialog-body" style="height: 550px; display:flex;flex-direction: column;">
|
<div class="base-dialog-body" style="height: 550px; display:flex;flex-direction: column;">
|
||||||
<div style="height: 150px;">
|
<div style="height: 150px;">
|
||||||
<!-- 类型 -->
|
<!-- 类型 -->
|
||||||
<el-form-item :label="$t('trials:readingUnit:qsList:title:type')" prop="Type">
|
<el-form-item :label="$t('trials:readingUnit:qsList:title:type')" prop="Type">
|
||||||
<el-select
|
<el-select v-model="form.Type" @change="((val) => { qsTypeChange(val, form) })">
|
||||||
v-model="form.Type"
|
<el-option v-for="item of $d.Criterion_Question_Type"
|
||||||
@change="((val)=>{qsTypeChange(val, form)})"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.Criterion_Question_Type"
|
|
||||||
v-show="item.value !== 'class' && item.value !== 'group' && item.value !== 'table' && item.value !== 'basicTable'"
|
v-show="item.value !== 'class' && item.value !== 'group' && item.value !== 'table' && item.value !== 'basicTable'"
|
||||||
:key="item.value"
|
:key="item.value" :value="item.value" :label="item.label" />
|
||||||
:value="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 问题名称 -->
|
<!-- 问题名称 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type !== 'group'" :label="$t('trials:readingUnit:qsList:title:qsNameEn')"
|
||||||
v-if="form.Type !== 'group'"
|
prop="QuestionName" :rules="[
|
||||||
:label="$t('trials:readingUnit:qsList:title:qsNameEn')"
|
|
||||||
prop="QuestionName"
|
|
||||||
:rules="[
|
|
||||||
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
{ max: form.Type === 'summary' ? 300 : 100, message: `${this.$t('common:ruleMessage:maxLength')} ${form.Type === 'summary' ? 300 : 100}` }
|
{ max: form.Type === 'summary' ? 300 : 100, message: `${this.$t('common:ruleMessage:maxLength')} ${form.Type === 'summary' ? 300 : 100}` }
|
||||||
]"
|
]">
|
||||||
>
|
<el-input v-model="form.QuestionName" />
|
||||||
<el-input
|
|
||||||
v-model="form.QuestionName"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 问题名称(EN) -->
|
<!-- 问题名称(EN) -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type !== 'group'" :label="$t('trials:readingUnit:qsList:title:qsNameEn')"
|
||||||
v-if="form.Type !== 'group'"
|
prop="QuestionEnName" :rules="[
|
||||||
:label="$t('trials:readingUnit:qsList:title:qsNameEn')"
|
|
||||||
prop="QuestionEnName"
|
|
||||||
:rules="[
|
|
||||||
{ max: form.Type === 'summary' ? 300 : 100, message: `${this.$t('common:ruleMessage:maxLength')} ${form.Type === 'summary' ? 300 : 100}` }
|
{ max: form.Type === 'summary' ? 300 : 100, message: `${this.$t('common:ruleMessage:maxLength')} ${form.Type === 'summary' ? 300 : 100}` }
|
||||||
]"
|
]">
|
||||||
>
|
<el-input v-model="form.QuestionEnName" />
|
||||||
<el-input
|
|
||||||
v-model="form.QuestionEnName"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div style="flex: 1;overflow-y:auto;">
|
<div style="flex: 1;overflow-y:auto;">
|
||||||
<!-- 公有属性 -->
|
<!-- 公有属性 -->
|
||||||
<el-divider content-position="left">{{$t('trials:readingUnit:title:publicProperties')}}</el-divider>
|
<el-divider content-position="left">{{ $t('trials:readingUnit:title:publicProperties') }}</el-divider>
|
||||||
<!-- 是否显示 -->
|
<!-- 是否显示 -->
|
||||||
<el-form-item v-if="form.Type !== 'group'" :label="$t('trials:readingUnit:qsList:title:isShow')" prop="ShowQuestion">
|
<el-form-item v-if="form.Type !== 'group'" :label="$t('trials:readingUnit:qsList:title:isShow')"
|
||||||
<el-radio-group
|
prop="ShowQuestion">
|
||||||
v-model="form.ShowQuestion"
|
<el-radio-group v-model="form.ShowQuestion" @change="((val) => { isShowQuestionChange(val, form) })">
|
||||||
@change="((val)=>{isShowQuestionChange(val, form)})"
|
<el-radio v-for="item of $d.ShowQuestion" :key="`ShowQuestion${item.value}`" :label="item.value">
|
||||||
>
|
|
||||||
<el-radio
|
|
||||||
v-for="item of $d.ShowQuestion"
|
|
||||||
:key="`ShowQuestion${item.value}`"
|
|
||||||
:label="item.value"
|
|
||||||
>
|
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- 显示时依赖父问题 -->
|
<!-- 显示时依赖父问题 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type !== 'group' && form.ShowQuestion === 1"
|
||||||
v-if="form.Type !== 'group' && form.ShowQuestion===1"
|
:label="$t('trials:readingUnit:qsList:title:parentId')" prop="ParentId">
|
||||||
:label="$t('trials:readingUnit:qsList:title:parentId')"
|
<el-select v-model="form.ParentId" clearable @change="((val) => { parentQuestionChange(val, form) })">
|
||||||
prop="ParentId"
|
<el-option v-for="item of parentOptions" :key="`ParentId${item.QuestionId}`" :label="item.QuestionName"
|
||||||
>
|
:value="item.QuestionId" />
|
||||||
<el-select
|
|
||||||
v-model="form.ParentId"
|
|
||||||
clearable
|
|
||||||
@change="((val)=>{parentQuestionChange(val, form)})"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of parentOptions"
|
|
||||||
:key="`ParentId${item.QuestionId}`"
|
|
||||||
:label="item.QuestionName"
|
|
||||||
:value="item.QuestionId"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 显示时依赖父问题触发值 -->
|
<!-- 显示时依赖父问题触发值 -->
|
||||||
<el-form-item v-if="form.ParentId && form.ShowQuestion===1" :label="$t('trials:readingUnit:qsList:title:parentTriggerValueList')" prop="ParentTriggerValueList">
|
<el-form-item v-if="form.ParentId && form.ShowQuestion === 1"
|
||||||
|
:label="$t('trials:readingUnit:qsList:title:parentTriggerValueList')" prop="ParentTriggerValueList">
|
||||||
<el-select v-model="form.ParentTriggerValueList" clearable multiple>
|
<el-select v-model="form.ParentTriggerValueList" clearable multiple>
|
||||||
<el-option
|
<el-option v-for="item of parentTriggerValOptions" :key="item.id" :label="item.label"
|
||||||
v-for="item of parentTriggerValOptions"
|
:value="String(item.value)" />
|
||||||
:key="item.id"
|
|
||||||
:label="item.label"
|
|
||||||
:value="String(item.value)"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 是否必填 -->
|
<!-- 是否必填 -->
|
||||||
<el-form-item v-if="form.Type !== 'group' && form.Type !== 'table' && form.Type !== 'basicTable' && form.Type !== 'summary'" :label="$t('trials:readingUnit:qsList:title:isRequired')" prop="IsRequired">
|
<el-form-item
|
||||||
<el-radio-group
|
v-if="form.Type !== 'group' && form.Type !== 'table' && form.Type !== 'basicTable' && form.Type !== 'summary'"
|
||||||
v-model="form.IsRequired"
|
:label="$t('trials:readingUnit:qsList:title:isRequired')" prop="IsRequired">
|
||||||
:disabled="form.IsJudgeQuestion===true || form.ShowQuestion===2"
|
<el-radio-group v-model="form.IsRequired" :disabled="form.IsJudgeQuestion === true || form.ShowQuestion === 2"
|
||||||
@change="((val)=>{isRequiredChange(val, form)})"
|
@change="((val) => { isRequiredChange(val, form) })">
|
||||||
>
|
<el-radio v-for="item of $d.QuestionRequired" :key="`QuestionRequired${item.value}`" :label="item.value">
|
||||||
<el-radio
|
|
||||||
v-for="item of $d.QuestionRequired"
|
|
||||||
:key="`QuestionRequired${item.value}`"
|
|
||||||
:label="item.value"
|
|
||||||
>
|
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 必填依赖父问题 -->
|
<!-- 必填依赖父问题 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type !== 'group' && form.IsRequired === 1"
|
||||||
v-if="form.Type !== 'group' && form.IsRequired === 1"
|
:label="$t('trials:readingUnit:qsList:title:relevanceId')" prop="RelevanceId">
|
||||||
:label="$t('trials:readingUnit:qsList:title:relevanceId')"
|
<el-select v-model="form.RelevanceId" clearable @change="((val) => { relevanceQuestionChange(val, form) })">
|
||||||
prop="RelevanceId"
|
<el-option v-for="item of parentOptions" :key="`RelevanceId${item.QuestionId}`" :label="item.QuestionName"
|
||||||
>
|
:value="item.QuestionId" />
|
||||||
<el-select
|
|
||||||
v-model="form.RelevanceId"
|
|
||||||
clearable
|
|
||||||
@change="((val)=>{relevanceQuestionChange(val, form)})"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of parentOptions"
|
|
||||||
:key="`RelevanceId${item.QuestionId}`"
|
|
||||||
:label="item.QuestionName"
|
|
||||||
:value="item.QuestionId"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 必填触发值 -->
|
<!-- 必填触发值 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.RelevanceId && form.IsRequired === 1"
|
||||||
v-if="form.RelevanceId && form.IsRequired === 1"
|
:label="$t('trials:readingUnit:qsList:title:relevanceValueList')" prop="RelevanceValueList">
|
||||||
:label="$t('trials:readingUnit:qsList:title:relevanceValueList')"
|
|
||||||
prop="RelevanceValueList"
|
|
||||||
>
|
|
||||||
<el-select v-model="form.RelevanceValueList" clearable multiple>
|
<el-select v-model="form.RelevanceValueList" clearable multiple>
|
||||||
<el-option
|
<el-option v-for="item of reParentTriggerValOptions" :key="item.id" :label="item.label"
|
||||||
v-for="item of reParentTriggerValOptions"
|
:value="String(item.value)" />
|
||||||
:key="item.id"
|
|
||||||
:label="item.label"
|
|
||||||
:value="String(item.value)"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 导出标识 -->
|
<!-- 导出标识 -->
|
||||||
@@ -174,175 +105,106 @@
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<!-- 导出结果 -->
|
<!-- 导出结果 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:readingUnit:qsList:title:ExportResult')"
|
||||||
:label="$t('trials:readingUnit:qsList:title:ExportResult')"
|
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'">
|
||||||
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
|
|
||||||
>
|
|
||||||
<el-select v-model="form.ExportResult" multiple>
|
<el-select v-model="form.ExportResult" multiple>
|
||||||
<el-option
|
<el-option v-for="item in CriterionDictionaryList.ExportResult" :key="`ExportResult${item.value}`"
|
||||||
v-for="item in CriterionDictionaryList.ExportResult"
|
:value="parseInt(item.Code)" :label="$i18n.locale === 'zh' ? item.ValueCN : item.Value">
|
||||||
:key="`ExportResult${item.value}`"
|
|
||||||
:value="parseInt(item.Code)"
|
|
||||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 限制编辑 -->
|
<!-- 限制编辑 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:readingUnit:qsList:title:limitEdit')" v-if="form.Type !== 'summary'"
|
||||||
:label="$t('trials:readingUnit:qsList:title:limitEdit')"
|
prop="LimitEdit" :rules="[
|
||||||
v-if="form.Type !== 'summary'"
|
|
||||||
prop="LimitEdit"
|
|
||||||
:rules="[
|
|
||||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||||
]"
|
]">
|
||||||
>
|
|
||||||
<el-radio-group v-model="form.LimitEdit">
|
<el-radio-group v-model="form.LimitEdit">
|
||||||
<el-radio v-for="item of $d.LimitEdit" :key="item.value" :label="item.value">{{ item.label }}</el-radio>
|
<el-radio v-for="item of $d.LimitEdit" :key="item.value" :label="item.value">{{ item.label }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 问题标识 -->
|
<!-- 问题标识 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type !== 'group' && form.Type !== 'summary'"
|
||||||
v-if="form.Type !== 'group' && form.Type !== 'summary'"
|
:label="$t('dictionary:template:criterionConfig:table:questionMark')" prop="QuestionMark">
|
||||||
:label="$t('dictionary:template:criterionConfig:table:questionMark')"
|
<el-select v-model="form.QuestionMark" clearable>
|
||||||
prop="QuestionMark"
|
<el-option v-for="item of CriterionDictionaryList.QuestionMark" :key="item.Id" :value="parseInt(item.Code)"
|
||||||
>
|
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value" />
|
||||||
<el-select
|
|
||||||
v-model="form.QuestionMark"
|
|
||||||
clearable
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of CriterionDictionaryList.QuestionMark"
|
|
||||||
:key="item.Id"
|
|
||||||
:value="parseInt(item.Code)"
|
|
||||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 注释 -->
|
<!-- 注释 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:readingUnit:qsList:title:Remark')" prop="Remark">
|
||||||
:label="$t('trials:readingUnit:qsList:title:Remark')"
|
|
||||||
prop="Remark"
|
|
||||||
>
|
|
||||||
<el-input v-model="form.Remark" />
|
<el-input v-model="form.Remark" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 序号 -->
|
<!-- 序号 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:readingUnit:qsList:title:order')" prop="ShowOrder" :rules="[
|
||||||
:label="$t('trials:readingUnit:qsList:title:order')"
|
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||||
prop="ShowOrder"
|
]">
|
||||||
:rules="[
|
<el-input-number v-model="form.ShowOrder" controls-position="right" :min="0" />
|
||||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
|
||||||
]"
|
|
||||||
>
|
|
||||||
<el-input-number
|
|
||||||
v-model="form.ShowOrder"
|
|
||||||
controls-position="right"
|
|
||||||
:min="0"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 重复出现最大次数 -->
|
<!-- 重复出现最大次数 -->
|
||||||
<el-form-item :label="$t('dictionary:template:criterionConfig:table:maxRowCount')" v-if="form.Type !== 'summary' && form.Type !== 'screenshot' && form.Type !== 'upload'">
|
<el-form-item :label="$t('dictionary:template:criterionConfig:table:maxRowCount')"
|
||||||
<el-input-number
|
v-if="form.Type !== 'summary' && form.Type !== 'screenshot' && form.Type !== 'upload'">
|
||||||
v-model="form.MaxRowCount"
|
<el-input-number v-model="form.MaxRowCount" controls-position="right" :min="0" :max="10" />
|
||||||
controls-position="right"
|
|
||||||
:min="0"
|
|
||||||
:max="10"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 问题分类 -->
|
<!-- 问题分类 -->
|
||||||
<el-form-item :label="$t('dictionary:template:criterionConfig:table:questionClassify')" v-if="criterionType === 2">
|
<el-form-item :label="$t('dictionary:template:criterionConfig:table:questionClassify')"
|
||||||
|
v-if="criterionType === 2">
|
||||||
<el-select v-model="form.QuestionClassify" clearable>
|
<el-select v-model="form.QuestionClassify" clearable>
|
||||||
<el-option
|
<el-option v-for="item of $d.QuestionClassify" :key="item.id" :label="item.label" :value="item.value" />
|
||||||
v-for="item of $d.QuestionClassify"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 私有属性 -->
|
<!-- 私有属性 -->
|
||||||
<el-divider content-position="left">{{$t('trials:readingUnit:title:privateProperties')}}</el-divider>
|
<el-divider content-position="left">{{ $t('trials:readingUnit:title:privateProperties') }}</el-divider>
|
||||||
|
<!-- 下拉框单选或多选 -->
|
||||||
|
<el-form-item v-if="form.Type === 'select'" :label="$t('trials:readingUnit:qsList:title:MultipleSelect')"
|
||||||
|
prop="OptionTypeEnum" :rules="[
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify') }
|
||||||
|
]">
|
||||||
|
<el-radio-group v-model="form.OptionTypeEnum">
|
||||||
|
<el-radio v-for="item of $d.OptionType" :key="item.id" :label="item.value">
|
||||||
|
{{ item.label }}
|
||||||
|
</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
<!-- 选项类型 -->
|
<!-- 选项类型 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'select' || form.Type === 'radio' || form.Type === 'input'"
|
||||||
v-if="form.Type === 'select' || form.Type === 'radio' || form.Type === 'input'"
|
:label="$t('trials:readingUnit:label:QuestionGenre')" prop="TableQuestionType" :rules="[
|
||||||
:label="$t('trials:readingUnit:label:QuestionGenre')"
|
{ required: form.Type !== 'input', message: this.$t('common:ruleMessage:select') }
|
||||||
prop="TableQuestionType"
|
]">
|
||||||
:rules="[
|
<el-radio-group v-model="form.TableQuestionType" @change="((val) => { tableQuestionTypeChange(val, form) })">
|
||||||
{ required: form.Type !== 'input', message: this.$t('common:ruleMessage:select')}
|
<el-radio v-for="item of $d.TableQuestionType" :key="item.id" :label="item.value"
|
||||||
]"
|
:disabled="(form.Type === 'radio' && (item.value === 1 || item.value === 2)) || (form.Type === 'input' && (item.value === 0 || item.value === 3))">
|
||||||
>
|
|
||||||
<el-radio-group
|
|
||||||
v-model="form.TableQuestionType"
|
|
||||||
@change="((val)=>{tableQuestionTypeChange(val, form)})"
|
|
||||||
>
|
|
||||||
<el-radio
|
|
||||||
v-for="item of $d.TableQuestionType"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.value"
|
|
||||||
:disabled="(form.Type === 'radio' && (item.value===1 || item.value===2)) || (form.Type === 'input' && (item.value===0 || item.value===3))"
|
|
||||||
>
|
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 选项 -->
|
<!-- 选项 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.TableQuestionType === 0 || form.Type === 'class'"
|
||||||
v-if="form.TableQuestionType === 0 || form.Type === 'class'"
|
:label="$t('trials:qcCfg:table:typeValue')" prop="TypeValue">
|
||||||
:label="$t('trials:qcCfg:table:typeValue')"
|
<el-input v-model="form.TypeValue" :placeholder="$t('trials:qcCfg:message:typeValue')"
|
||||||
prop="TypeValue"
|
@change="typeValueChange" />
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="form.TypeValue"
|
|
||||||
:placeholder="$t('trials:qcCfg:message:typeValue')"
|
|
||||||
@change="typeValueChange"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 关联问题 -->
|
<!-- 关联问题 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.TableQuestionType === 2"
|
||||||
v-if="form.TableQuestionType === 2"
|
:label="$t('dictionary:template:criterionConfig:table:dependParentId')" prop="DependParentId">
|
||||||
:label="$t('dictionary:template:criterionConfig:table:dependParentId')"
|
<el-select v-model="form.DependParentId">
|
||||||
prop="DependParentId"
|
<el-option v-for="item of parentOptions" :key="`DependParentId${item.QuestionId}`"
|
||||||
>
|
:label="item.QuestionName" :value="item.QuestionId" />
|
||||||
<el-select
|
|
||||||
v-model="form.DependParentId"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of parentOptions"
|
|
||||||
:key="`DependParentId${item.QuestionId}`"
|
|
||||||
:label="item.QuestionName"
|
|
||||||
:value="item.QuestionId"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 关联字段 -->
|
<!-- 关联字段 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.TableQuestionType === 1 || !!form.DependParentId"
|
||||||
v-if="form.TableQuestionType === 1 || !!form.DependParentId"
|
:label="$t('dictionary:template:criterionConfig:table:dataTableColumn')" prop="DataTableColumn">
|
||||||
:label="$t('dictionary:template:criterionConfig:table:dataTableColumn')"
|
|
||||||
prop="DataTableColumn"
|
|
||||||
>
|
|
||||||
<el-select v-model="form.DataTableColumn">
|
<el-select v-model="form.DataTableColumn">
|
||||||
<el-option
|
<el-option v-for="item of CriterionDictionaryList.OrganColumn" :key="item.Id"
|
||||||
v-for="item of CriterionDictionaryList.OrganColumn"
|
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value" :value="item.Code" />
|
||||||
:key="item.Id"
|
|
||||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
|
||||||
:value="item.Code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 关联字典 -->
|
<!-- 关联字典 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.TableQuestionType === 3 || form.TableQuestionType === 2"
|
||||||
v-if="form.TableQuestionType === 3 || form.TableQuestionType === 2"
|
:label="$t('dictionary:template:criterionConfig:table:relatedDictionaryCode')" prop="DictionaryCode"
|
||||||
:label="$t('dictionary:template:criterionConfig:table:relatedDictionaryCode')"
|
:rules="[{ required: form.TableQuestionType === 3, message: '请选择', trigger: 'blur' }]">
|
||||||
prop="DictionaryCode"
|
|
||||||
:rules="[{ required: form.TableQuestionType === 3, message: '请选择', trigger: 'blur' }]"
|
|
||||||
>
|
|
||||||
<el-select v-model="form.DictionaryCode">
|
<el-select v-model="form.DictionaryCode">
|
||||||
<el-option
|
<el-option v-for="item of dicList" :key="item.Id" :label="item.Code" :value="item.Code" />
|
||||||
v-for="item of dicList"
|
|
||||||
:key="item.Id"
|
|
||||||
:label="item.Code"
|
|
||||||
:value="item.Code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 默认值 -->
|
<!-- 默认值 -->
|
||||||
@@ -354,35 +216,23 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value.toString()"
|
:value="item.value.toString()"
|
||||||
/> -->
|
/> -->
|
||||||
<el-option
|
<el-option v-for="item of highlightAnswers" :key="item.Id"
|
||||||
v-for="item of highlightAnswers"
|
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value" :value="item.Code" />
|
||||||
:key="item.Id"
|
|
||||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
|
||||||
:value="item.Code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 默认值 -->
|
<!-- 默认值 -->
|
||||||
<el-form-item v-if="form.TableQuestionType === 0" :label="$t('trials:readingUnit:qsList:title:defaultValue')">
|
<el-form-item v-if="form.TableQuestionType === 0" :label="$t('trials:readingUnit:qsList:title:defaultValue')">
|
||||||
<el-select v-model="form.DefaultValue" clearable>
|
<el-select v-model="form.DefaultValue" clearable>
|
||||||
<el-option
|
<el-option v-for="item of form.TypeValue ? form.TypeValue.split('|') : []" :key="item" :label="item"
|
||||||
v-for="item of form.TypeValue ? form.TypeValue.split('|') : []"
|
:value="item" />
|
||||||
:key="item"
|
|
||||||
:label="item"
|
|
||||||
:value="item"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 高亮标记值 -->
|
<!-- 高亮标记值 -->
|
||||||
<el-form-item v-if="form.Type === 'select' || form.Type === 'radio'" :label="$t('trials:readingUnit:qsList:title:highlightAnswers')" prop="HighlightAnswerList">
|
<el-form-item v-if="form.Type === 'select' || form.Type === 'radio' || form.Type === 'calculation'"
|
||||||
|
:label="$t('trials:readingUnit:qsList:title:highlightAnswers')" prop="HighlightAnswerList">
|
||||||
<el-select v-model="form.HighlightAnswerList" clearable multiple>
|
<el-select v-model="form.HighlightAnswerList" clearable multiple>
|
||||||
<template v-if="form.TypeValue">
|
<template v-if="form.TypeValue">
|
||||||
<el-option
|
<el-option v-for="item of form.TypeValue.split('|')" :key="item" :label="item" :value="item" />
|
||||||
v-for="item of form.TypeValue.split('|')"
|
|
||||||
:key="item"
|
|
||||||
:label="item"
|
|
||||||
:value="item"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="form.DictionaryCode">
|
<template v-else-if="form.DictionaryCode">
|
||||||
<!-- <el-option
|
<!-- <el-option
|
||||||
@@ -391,24 +241,16 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value.toString()"
|
:value="item.value.toString()"
|
||||||
/> -->
|
/> -->
|
||||||
<el-option
|
<el-option v-for="item of highlightAnswers" :key="item.Id"
|
||||||
v-for="item of highlightAnswers"
|
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value" :value="item.Code" />
|
||||||
:key="item.Id"
|
|
||||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
|
||||||
:value="item.Code"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 最大长度 -->
|
<!-- 最大长度 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'input' || form.Type === 'textarea'"
|
||||||
v-if="form.Type === 'input' || form.Type === 'textarea'"
|
:label="$t('trials:readingUnit:qsList:title:MaxAnswerLength')" prop="MaxAnswerLength" :rules="[
|
||||||
:label="$t('trials:readingUnit:qsList:title:MaxAnswerLength')"
|
|
||||||
prop="MaxAnswerLength"
|
|
||||||
:rules="[
|
|
||||||
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }
|
||||||
]"
|
]">
|
||||||
>
|
|
||||||
<el-input-number v-model="form.MaxAnswerLength" :min="0"></el-input-number>
|
<el-input-number v-model="form.MaxAnswerLength" :min="0"></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 是否复制前值 -->
|
<!-- 是否复制前值 -->
|
||||||
@@ -425,138 +267,82 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<!-- 数值类型 -->
|
<!-- 数值类型 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'number' || form.Type === 'calculation'"
|
||||||
v-if="form.Type === 'number' || form.Type === 'calculation'"
|
:label="$t('trials:readingUnit:qsList:title:valueType')" prop="ValueType" :rules="[
|
||||||
:label="$t('trials:readingUnit:qsList:title:valueType')"
|
|
||||||
prop="ValueType"
|
|
||||||
:rules="[
|
|
||||||
{ required: true, message: this.$t('common:ruleMessage:select') }
|
{ required: true, message: this.$t('common:ruleMessage:select') }
|
||||||
]"
|
]">
|
||||||
>
|
<el-radio-group v-model="form.ValueType">
|
||||||
<el-radio-group
|
<el-radio v-for="item of $d.ValueType" :key="item.id" :label="item.value">
|
||||||
v-model="form.ValueType"
|
|
||||||
>
|
|
||||||
<el-radio
|
|
||||||
v-for="item of $d.ValueType"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.value"
|
|
||||||
>
|
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- 单位 -->
|
<!-- 单位 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'number' || form.Type === 'calculation'"
|
||||||
v-if="form.Type === 'number' || form.Type === 'calculation'"
|
:label="$t('trials:readingUnit:qsList:title:unit')" prop="Unit" :rules="[
|
||||||
:label="$t('trials:readingUnit:qsList:title:unit')"
|
|
||||||
prop="Unit"
|
|
||||||
:rules="[
|
|
||||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||||
]"
|
]">
|
||||||
>
|
<el-radio-group v-model="form.Unit">
|
||||||
<el-radio-group
|
<el-radio v-for="item of $d.ValueUnit" :key="item.id" :label="item.value">
|
||||||
v-model="form.Unit"
|
|
||||||
>
|
|
||||||
<el-radio
|
|
||||||
v-for="item of $d.ValueUnit"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.value"
|
|
||||||
>
|
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- 图表展示-->
|
||||||
|
<el-form-item v-if="form.Type === 'number' || form.Type === 'calculation'"
|
||||||
|
:label="$t('trials:readingUnit:qsList:title:ShowChartTypeEnum')" prop="ShowChartTypeEnum">
|
||||||
|
<el-radio-group v-model="form.ShowChartTypeEnum">
|
||||||
|
<el-radio v-for="item of $d.ShowChartType" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
<!-- 最大上传个数 -->
|
<!-- 最大上传个数 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'upload'" :label="$t('trials:readingUnit:qsList:title:imageCount')"
|
||||||
v-if="form.Type === 'upload'"
|
prop="ImageCount">
|
||||||
:label="$t('trials:readingUnit:qsList:title:imageCount')"
|
<el-input-number v-model="form.ImageCount" controls-position="right" :min="0" :max="10" />
|
||||||
prop="ImageCount"
|
|
||||||
>
|
|
||||||
<el-input-number
|
|
||||||
v-model="form.ImageCount"
|
|
||||||
controls-position="right"
|
|
||||||
:min="0"
|
|
||||||
:max="10"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 文件类型 -->
|
<!-- 文件类型 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'upload'" :label="$t('trials:readingUnit:qsList:title:FileType')"
|
||||||
v-if="form.Type === 'upload'"
|
|
||||||
:label="$t('trials:readingUnit:qsList:title:FileType')"
|
|
||||||
prop="FileType"
|
prop="FileType"
|
||||||
:rules="[{ type: 'array', required: true, message: this.$t('common:ruleMessage:specify'), trigger: [ 'change'] }]"
|
:rules="[{ type: 'array', required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['change'] }]">
|
||||||
>
|
<el-checkbox-group v-model="form.FileType" @change="(v) => {
|
||||||
<el-checkbox-group
|
if (v && v.includes('-1')) {
|
||||||
v-model="form.FileType"
|
form.FileType = ['-1']
|
||||||
@change="(v) => {
|
}
|
||||||
if (v && v.includes('-1')) {
|
}">
|
||||||
form.FileType = ['-1']
|
<el-checkbox v-for="item of $d.fileType" :key="`fileType${item.value}`" :value="item.value + ''"
|
||||||
}
|
:label="item.value" :disabled="form.FileType && form.FileType.includes('-1') && item.value !== '-1'">
|
||||||
}"
|
|
||||||
>
|
|
||||||
<el-checkbox
|
|
||||||
v-for="item of $d.fileType"
|
|
||||||
:key="`fileType${item.value}`"
|
|
||||||
:value="item.value + ''"
|
|
||||||
:label="item.value"
|
|
||||||
:disabled="form.FileType && form.FileType.includes('-1') && item.value !== '-1'"
|
|
||||||
>
|
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 分类 -->
|
<!-- 分类 -->
|
||||||
<!-- 分类数据来源 -->
|
<!-- 分类数据来源 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'class'"
|
||||||
v-if="form.Type === 'class'"
|
:label="$t('dictionary:template:criterionConfig:table:classifyQuestion')" prop="ClassifyTableQuestionId">
|
||||||
:label="$t('dictionary:template:criterionConfig:table:classifyQuestion')"
|
|
||||||
prop="ClassifyTableQuestionId"
|
|
||||||
>
|
|
||||||
<el-select v-model="form.ClassifyTableQuestionId" clearable>
|
<el-select v-model="form.ClassifyTableQuestionId" clearable>
|
||||||
<el-option v-for="item of Questions" :key="item.Id" :label="item.QuestionName"
|
<el-option v-for="item of Questions" :key="item.Id" :label="item.QuestionName" :value="item.Id" />
|
||||||
:value="item.Id"/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 分类算法 -->
|
<!-- 分类算法 -->
|
||||||
<el-form-item
|
<el-form-item v-if="form.Type === 'class'"
|
||||||
v-if="form.Type === 'class'"
|
:label="$t('dictionary:template:criterionConfig:table:classifyAlgorithms')" prop="ClassifyAlgorithms">
|
||||||
:label="$t('dictionary:template:criterionConfig:table:classifyAlgorithms')"
|
|
||||||
prop="ClassifyAlgorithms"
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<el-table
|
<el-table ref="CalculateTable" :data="ClassifyAlgorithmsList" style="margin: 10px;width: 100%" size="small">
|
||||||
ref="CalculateTable"
|
|
||||||
:data="ClassifyAlgorithmsList"
|
|
||||||
style="margin: 10px;width: 100%"
|
|
||||||
size="small"
|
|
||||||
>
|
|
||||||
<!-- 运算类型 -->
|
<!-- 运算类型 -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('trials:readingUnit:label:label')" show-overflow-tooltip min-width="70">
|
||||||
:label="$t('trials:readingUnit:label:label')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="70"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.label }}
|
{{ scope.row.label }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 运算类型 -->
|
<!-- 运算类型 -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('trials:readingUnit:label:gt')" show-overflow-tooltip min-width="128">
|
||||||
:label="$t('trials:readingUnit:label:gt')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="128"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input-number v-model="scope.row.gt"></el-input-number>
|
<el-input-number v-model="scope.row.gt"></el-input-number>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 运算类型 -->
|
<!-- 运算类型 -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('trials:readingUnit:label:lt')" show-overflow-tooltip min-width="128">
|
||||||
:label="$t('trials:readingUnit:label:lt')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="128"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input-number v-model="scope.row.lt"></el-input-number>
|
<el-input-number v-model="scope.row.lt"></el-input-number>
|
||||||
</template>
|
</template>
|
||||||
@@ -569,11 +355,7 @@
|
|||||||
<div class="base-dialog-footer" style="text-align:right;margin-top:10px;">
|
<div class="base-dialog-footer" style="text-align:right;margin-top:10px;">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<!-- 取消 -->
|
<!-- 取消 -->
|
||||||
<el-button
|
<el-button size="small" type="primary" @click="close">
|
||||||
size="small"
|
|
||||||
type="primary"
|
|
||||||
@click="close"
|
|
||||||
>
|
|
||||||
{{ $t('common:button:cancel') }}
|
{{ $t('common:button:cancel') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 保存 -->
|
<!-- 保存 -->
|
||||||
@@ -666,7 +448,9 @@ export default {
|
|||||||
ClassifyAlgorithms: null,
|
ClassifyAlgorithms: null,
|
||||||
// ExportIdentification: 0,
|
// ExportIdentification: 0,
|
||||||
ExportResult: [],
|
ExportResult: [],
|
||||||
DefaultValue:null
|
DefaultValue: null,
|
||||||
|
ShowChartTypeEnum: 0,
|
||||||
|
OptionTypeEnum: 0
|
||||||
// IsEnable: true
|
// IsEnable: true
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
@@ -677,8 +461,8 @@ export default {
|
|||||||
// { max: 300, message: '最大长度为 300' }],
|
// { max: 300, message: '最大长度为 300' }],
|
||||||
|
|
||||||
TypeValue: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
TypeValue: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
{ validator: validateTypeVal, trigger: 'blur' },
|
{ validator: validateTypeVal, trigger: 'blur' },
|
||||||
{ max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200` }],
|
{ max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200` }],
|
||||||
ShowQuestion: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
|
ShowQuestion: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
|
||||||
IsRequired: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
|
IsRequired: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
|
||||||
ParentId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
|
ParentId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
|
||||||
@@ -776,7 +560,7 @@ export default {
|
|||||||
if (this.data.hasOwnProperty(k)) {
|
if (this.data.hasOwnProperty(k)) {
|
||||||
if (k === 'ClassifyAlgorithms' && this.data[k] !== undefined && this.data[k] !== '') {
|
if (k === 'ClassifyAlgorithms' && this.data[k] !== undefined && this.data[k] !== '') {
|
||||||
this.ClassifyAlgorithmsList = JSON.parse(this.data[k])
|
this.ClassifyAlgorithmsList = JSON.parse(this.data[k])
|
||||||
} else if(k === 'FileType'){
|
} else if (k === 'FileType') {
|
||||||
this.form[k] = this.data[k].split(',')
|
this.form[k] = this.data[k].split(',')
|
||||||
} else {
|
} else {
|
||||||
this.form[k] = this.data[k]
|
this.form[k] = this.data[k]
|
||||||
@@ -792,10 +576,10 @@ export default {
|
|||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
let dicCode = this.parentOptions[index].DictionaryCode
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
let res = await getCriterionDictionary({ ReadingCriterionId: this.criterionId, DictionaryCode: dicCode })
|
||||||
|
|
||||||
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
|
this.parentTriggerValOptions = res.Result[dicCode].map(i => {
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
return { id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code }
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
@@ -814,9 +598,9 @@ export default {
|
|||||||
if (this.parentOptions[i].QuestionGenre === 3) {
|
if (this.parentOptions[i].QuestionGenre === 3) {
|
||||||
// this.reParentTriggerValOptions = this.$d[this.parentOptions[i].DictionaryCode]
|
// this.reParentTriggerValOptions = this.$d[this.parentOptions[i].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[i].DictionaryCode
|
let dicCode = this.parentOptions[i].DictionaryCode
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
let res = await getCriterionDictionary({ ReadingCriterionId: this.criterionId, DictionaryCode: dicCode })
|
||||||
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
|
this.reParentTriggerValOptions = res.Result[dicCode].map(i => {
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
return { id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code }
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
@@ -903,12 +687,12 @@ export default {
|
|||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
let dicCode = this.parentOptions[index].DictionaryCode
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
let res = await getCriterionDictionary({ ReadingCriterionId: this.criterionId, DictionaryCode: dicCode })
|
||||||
|
|
||||||
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
|
this.parentTriggerValOptions = res.Result[dicCode].map(i => {
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
return { id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code }
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
||||||
@@ -929,10 +713,10 @@ export default {
|
|||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
// this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
let dicCode = this.parentOptions[index].DictionaryCode
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
let res = await getCriterionDictionary({ ReadingCriterionId: this.criterionId, DictionaryCode: dicCode })
|
||||||
|
|
||||||
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
|
this.reParentTriggerValOptions = res.Result[dicCode].map(i => {
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
return { id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code }
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
@@ -993,6 +777,8 @@ export default {
|
|||||||
// form.ExportIdentification = 0
|
// form.ExportIdentification = 0
|
||||||
form.ExportResult = []
|
form.ExportResult = []
|
||||||
form.DefaultValue = null
|
form.DefaultValue = null
|
||||||
|
form.ShowChartTypeEnum = 0
|
||||||
|
form.OptionTypeEnum = 0
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
@@ -1001,5 +787,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped></style>
|
||||||
</style>
|
|
||||||
|
|||||||