Compare commits
559 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e0321bae72 | |||
| 1e720e399d | |||
| 1368397da9 | |||
| c8c049b5d0 | |||
| 7fcbd7f983 | |||
| 779badb041 | |||
| ef5e5527fd | |||
| 52ac12d6b6 | |||
| 272c28a988 | |||
| 6b10d07e2a | |||
| 032e710890 | |||
| 032150904e | |||
| d91161a139 | |||
| bba2237337 | |||
| 707ca5602c | |||
| 3b03d6ba76 | |||
| 9277d48c85 | |||
| d753fbc2ab | |||
| 5678e3302b | |||
| c25cb097ab | |||
| 070db5158d | |||
| 121bf497bb | |||
| e2ffd76504 | |||
| cfbe3b4839 | |||
| 81bef8abe0 | |||
| 84b1263340 | |||
| 4016e71c37 | |||
| 3b0afd3913 | |||
| 3672892451 | |||
| c46ca18a42 | |||
| 0e0b5c2c4c | |||
| 5339e2df63 | |||
| 66d5591d50 | |||
| bfe2f1dbfb | |||
| 24806f57ed | |||
| b0ff8e7163 | |||
| c9ef6cd19f | |||
| 00cc5d5d27 | |||
| 25ddd422a3 | |||
| a060c1745d | |||
| 1a4bfe64f9 | |||
| 2fd6e1893b | |||
| dc0229810d | |||
| 08c911d4a0 | |||
| 08cdcffd82 | |||
| a5f16c866d | |||
| 3167c2bea7 | |||
| 26cca57f75 | |||
| ff88cbd6e2 | |||
| c4a498d953 | |||
| f58e2ff82f | |||
| 1696fb6294 | |||
| 3c81a8a678 | |||
| afcd1b82c0 | |||
| 96864b808c | |||
| 5ba2abb8f5 | |||
| dc0329032e | |||
| 4097389447 | |||
| cf39a84370 | |||
| aae2d6a1c5 | |||
| 10f4bf7480 | |||
| 57f0938efc | |||
| 615580331b | |||
| 4b4058b0da | |||
| f77820df79 | |||
| 398bc21666 | |||
| 7db8e231b6 | |||
| 581e2c3879 | |||
| ce030d23cd | |||
| f3c073286b | |||
| d5b342ddc6 | |||
| d616512a72 | |||
| bf57b75bed | |||
| 0d9a77f4a5 | |||
| 7f3da436c4 | |||
| 9e1cd5a099 | |||
| 639351c469 | |||
| fa173a32fb | |||
| b93ab130fb | |||
| c6a6029f38 | |||
| ca907a5196 | |||
| b4fe2a1c06 | |||
| 40061db7f7 | |||
| 513e9b018a | |||
| 0c7b4fbfdd | |||
| 74893a51c7 | |||
| 305b6ab294 | |||
| 920c95f611 | |||
| f73eabed03 | |||
| e99c77fb0d | |||
| ec37ca2d3e | |||
| 6a6a26feb7 | |||
| 5676bb6e57 | |||
| 200aa7c0f8 | |||
| bf4f0c7245 | |||
| 21dab27e0b | |||
| 7b90715953 | |||
| cb8bc506a7 | |||
| 7a69227888 | |||
| 0785219954 | |||
| b5f2cfeaff | |||
| 4164b24bd9 | |||
| 49b723ab01 | |||
| 0de49faed1 | |||
| 7f85302c1b | |||
| 4305f2536c | |||
| 55783de27f | |||
| 465ea59906 | |||
| 81fab97ee4 | |||
| 2c93ba2882 | |||
| f3a237b0bf | |||
| c0588661ce | |||
| 381acf8d76 | |||
| e6715a429b | |||
| 33ac08f4e4 | |||
| d117bac7f6 | |||
| 7051312855 | |||
| ff5a868377 | |||
| ea44f97985 | |||
| 156411fea3 | |||
| 822c2dc955 | |||
| d729c4d34e | |||
| a887e686a8 | |||
| 21cb32f1a9 | |||
| c74b482f0d | |||
| 1af302961b | |||
| e83ac6714d | |||
| fc98aa0312 | |||
| 278c051f51 | |||
| 5b8716f9ae | |||
| cfef89c703 | |||
| bf33f9d589 | |||
| d74da23d41 | |||
| cd630a70fb | |||
| 0b688bc33f | |||
| a602be255b | |||
| fb7891a2af | |||
| 620f0d92ca | |||
| 8f43c697c0 | |||
| 55769e906d | |||
| 4ad67e5501 | |||
| 1265cef6f9 | |||
| 86f5e2c782 | |||
| 5450188a6e | |||
| c8601f6f8f | |||
| 299481a124 | |||
| 5ca123e90b | |||
| af452bb04e | |||
| bc34ed5c25 | |||
| 1ef1d4f303 | |||
| fd67edcb0e | |||
| ecebeb2271 | |||
| ba26476c52 | |||
| 821475b7d6 | |||
| a0594cab96 | |||
| bcde358584 | |||
| 067162e1d7 | |||
| b5b5830b1f | |||
| fb1d87e84b | |||
| 6b42b4e88c | |||
| 2516be481d | |||
| 3aa66af253 | |||
| fa339dcdb0 | |||
| 541e309d1d | |||
| 949ec6d2d6 | |||
| 83b6c9f2cc | |||
| 996b691ef4 | |||
| 8bfaf7241a | |||
| 35bff089b7 | |||
| 6b1f8c26b2 | |||
| 5bffb48b99 | |||
| 858a650986 | |||
| 6b331ab6f6 | |||
| 00a7e8e609 | |||
| c686850292 | |||
| 887bb2534b | |||
| 3192ec7516 | |||
| 5f960348ed | |||
| d2757c6f9b | |||
| 734d6dc1a5 | |||
| be95951f40 | |||
| f4af0fc157 | |||
| 2090866521 | |||
| d61131ed61 | |||
| 20aee53a3f | |||
| 05c75c32cf | |||
| 2575e27d22 | |||
| e7dcdb33c4 | |||
| d4c1b75423 | |||
| d1159a09b4 | |||
| d69d8802cd | |||
| 6223eac81a | |||
| b453eede31 | |||
| e5330765af | |||
| 493b155678 | |||
| a2b2fd65af | |||
| 551cdf0ed3 | |||
| cadb3e8f7a | |||
| 4da35daa3c | |||
| 0f50ff6ded | |||
| 2f371f0435 | |||
| 245d4edca7 | |||
| 42d1c713bd | |||
| 65b81fc633 | |||
| 3a1d4ee15d | |||
| c0eab7e896 | |||
| 4ba4d7cf00 | |||
| bfe9817544 | |||
| f5fd1252c9 | |||
| 596ea8f658 | |||
| b24548dd8b | |||
| 4a479258f2 | |||
| 29d0cc7653 | |||
| 6de9cd26a4 | |||
| caf3f41465 | |||
| 8896737a9e | |||
| 1be46686a3 | |||
| 0cd07b76f8 | |||
| d74c0028f6 | |||
| ab5645f28a | |||
| efb88b7ad1 | |||
| 129548031c | |||
| 5dbddbea57 | |||
| 689782bf36 | |||
| 89fe4e4c00 | |||
| a582daf686 | |||
| 3e680d0033 | |||
| af343d43d8 | |||
| 4b9216229c | |||
| 2952762ce7 | |||
| 361aed4a0c | |||
| 19b419c29e | |||
| 7e9a9b62f6 | |||
| 3921f369c3 | |||
| 0ffe7ff1a7 | |||
| 5ec969c2f9 | |||
| dba4466ac2 | |||
| 9187bbe64f | |||
| a0f593a22f | |||
| 89f7aee973 | |||
| ced57cbfe4 | |||
| 99d099496e | |||
| d3afa7b676 | |||
| c08d701143 | |||
| a2d06ba72f | |||
| 148aa4908b | |||
| 53738c2da4 | |||
| 3513c08adf | |||
| 9eb3f2f322 | |||
| b16e351779 | |||
| b176ab0716 | |||
| c7eb323eaa | |||
| 7b3fe42654 | |||
| 21c96300ad | |||
| 8f46819b9a | |||
| 6e66dd8bbe | |||
| b209c6566b | |||
| f8bd826c9c | |||
| e3f6f9107d | |||
| f1c72c66e8 | |||
| 79caed3fd9 | |||
| e56440634e | |||
| ac657a162f | |||
| 9d362e13de | |||
| d04898dc28 | |||
| e0f42e815e | |||
| efe3d937b4 | |||
| 5cf6ab24bd | |||
| ff0ddeea9a | |||
| 42083afb8d | |||
| de1b22ff48 | |||
| 66cbbbbb75 | |||
| 3d89939a98 | |||
| ade4ab3e03 | |||
| a3550c44bd | |||
| 9e85e9705e | |||
| e1d5db8cf5 | |||
| 6f3381c267 | |||
| 0c52bde525 | |||
| 102089c16f | |||
| 6e1d07ee95 | |||
| 55ae6bac7e | |||
| 823ac2f085 | |||
| 73e0a13e91 | |||
| 7f179fb393 | |||
| 3441793bcb | |||
| dbe651fe98 | |||
| f54ff927ec | |||
| 535b37e830 | |||
| 13191c914e | |||
| 70735f2c47 | |||
| 8ad77f1679 | |||
| 3a76a7c24d | |||
| 5393ca571c | |||
| 4cef62ccba | |||
| 2772168c3b | |||
| 89be8d8a12 | |||
| 041266c250 | |||
| cbcb84a768 | |||
| 830718c228 | |||
| 6977ed3713 | |||
| 28ea52797e | |||
| 1348d5f864 | |||
| cd34ad7ef7 | |||
| 5af7e8dd3c | |||
| 455f808f49 | |||
| a0d5e58311 | |||
| 84dbcd49f0 | |||
| a4ec387814 | |||
| 3a6c3d451c | |||
| f396901731 | |||
| 0b00f4bc7e | |||
| e58695aeff | |||
| 65a9dd3cf1 | |||
| 63743dbbc1 | |||
| b5643d3774 | |||
| 4c1a770969 | |||
| 7ff0273c29 | |||
| 3f2a339cba | |||
| d3dd4ecffc | |||
| d636813210 | |||
| 66d09ca284 | |||
| e672e6bd18 | |||
| 9c964f11a1 | |||
| 0a473dcae3 | |||
| 85b3960f97 | |||
| b96f5b9910 | |||
| 31196e850e | |||
| c309410c04 | |||
| 0a671fb330 | |||
| febdfd7b4f | |||
| e1da0c9ea5 | |||
| 54be84c300 | |||
| 78c1b57770 | |||
| 39ce8fd355 | |||
| 130862518f | |||
| a129adbc4b | |||
| 3066781ee6 | |||
| df4880dc08 | |||
| 29e2a6ea65 | |||
| ae12c3d517 | |||
| cbe346a049 | |||
| c8c5ab72bb | |||
| 37dc4a960f | |||
| 05cf250c21 | |||
| b2ca803f94 | |||
| 2ff2f5106e | |||
| 67c2d47689 | |||
| 67a3c4f926 | |||
| 9ab7afa06f | |||
| e5a17d20b1 | |||
| 3c664e9ba6 | |||
| 50dd74b4ce | |||
| b22b9d338e | |||
| a13ef6e5d2 | |||
| 58141aaca9 | |||
| 17b868e7ed | |||
| bbc4da7b9e | |||
| c14079efe3 | |||
| ecf5119269 | |||
| b35ff2b7dc | |||
| bae5b9c51c | |||
| be5b9efa7b | |||
| efab56f6bd | |||
| a239bccc90 | |||
| 7dd15434bf | |||
| 437b4377ed | |||
| 7229bc65a9 | |||
| bf95ea96e2 | |||
| 013a657f78 | |||
| 8d4e9368c6 | |||
| d71fff7393 | |||
| d243d3cd11 | |||
| 221ad89fd4 | |||
| af42a3aec0 | |||
| b0529dca5f | |||
| 17ee60de81 | |||
| b9ef4fd3f3 | |||
| 252333ea5b | |||
| a5445804e2 | |||
| 0cabf49c43 | |||
| 5ee7ba9820 | |||
| 4f2419fe03 | |||
| 28bb98099c | |||
| 5963fc629d | |||
| 44feb21f63 | |||
| 343813158f | |||
| 5e80fe2c3f | |||
| 2e8095939b | |||
| b0dc5400aa | |||
| 7f18e717b7 | |||
| 6e66b77857 | |||
| 5328217853 | |||
| 0f4819f5db | |||
| 907371b693 | |||
| f65042a5c2 | |||
| 518ce72fd2 | |||
| ba54da2814 | |||
| d381b10bcd | |||
| d127637922 | |||
| 0e0c2ca55d | |||
| 98502230c3 | |||
| 2b987fb1ae | |||
| f1dee25987 | |||
| 8799431f7a | |||
| a8fe3d6073 | |||
| 3578882ec0 | |||
| d5c9298aab | |||
| 59df7214d4 | |||
| 6c50257972 | |||
| 58b8cf1391 | |||
| 1f6ee08a8b | |||
| c5fb53a05f | |||
| 24e05ebc3e | |||
| a78d848424 | |||
| 75f3b37c05 | |||
| ca4f2c4a8e | |||
| 4defa157ee | |||
| 13ba919484 | |||
| bf407a49fd | |||
| 3c50254a2d | |||
| 41ac3d562a | |||
| d790a95952 | |||
| 328359dfde | |||
| 1286cd1212 | |||
| f739563fe9 | |||
| 2f4ace45b8 | |||
| 407f0b85d2 | |||
| 3052b269e9 | |||
| a7c3bf09f8 | |||
| 65d9c7b711 | |||
| 3ca1e9d8ed | |||
| f27fda4a5f | |||
| 27352f572c | |||
| 47c6b30d4a | |||
| 91bd50d565 | |||
| d1ed8b39f0 | |||
| 3925652428 | |||
| 37f8f2fff1 | |||
| 32551e3faa | |||
| 43f99b02c4 | |||
| 9c22809bae | |||
| be9e78ec73 | |||
| d645df58c2 | |||
| 5d9adab706 | |||
| 291f9b5d66 | |||
| 5dedcbc2ef | |||
| 940a860352 | |||
| 9cd540d1ec | |||
| 9e8d537358 | |||
| 7882c9b631 | |||
| 5dd1935997 | |||
| 47d60769be | |||
| 8225eacb7e | |||
| 57a8bb4e24 | |||
| 36ffd8b371 | |||
| 7fc6f4494b | |||
| 9d3ba7eb57 | |||
| 7ed4dd7e24 | |||
| b233535d95 | |||
| 9bdb8f64b3 | |||
| f637f746cb | |||
| dec01d779d | |||
| 7363b0049d | |||
| a95a129dde | |||
| 177510643d | |||
| eeac5b76c4 | |||
| a17359a56e | |||
| 28c7cf7d67 | |||
| d9091fbb79 | |||
| 7e52005dab | |||
| 5866535fb5 | |||
| 862c6d64cc | |||
| 2c0c2e8111 | |||
| c24c98b334 | |||
| 97caeae753 | |||
| 6725f6e276 | |||
| 38ad4e72a2 | |||
| c9c4826274 | |||
| 4f1fdb185f | |||
| feb65ae0cd | |||
| 6ecce41b35 | |||
| 3a20586609 | |||
| b1d707a7dd | |||
| 51101748b8 | |||
| 5fb085b6d3 | |||
| 0aaea5a325 | |||
| e57d03a040 | |||
| 7a07172c23 | |||
| 4e06b5ef87 | |||
| 5e520a94c1 | |||
| c2be30632a | |||
| 443ee66e33 | |||
| 95f210a90d | |||
| 25336491ac | |||
| 581cd2c9c1 | |||
| f0b1d8f3c9 | |||
| 73f12173f5 | |||
| 2e30461e2e | |||
| 2d91053668 | |||
| 5b90b2d155 | |||
| 33f920e7bc | |||
| 45aa1ba24a | |||
| d47f0811cb | |||
| e336d90f45 | |||
| e723d345d7 | |||
| cb40a8e880 | |||
| b166818131 | |||
| dafc92d4b1 | |||
| 8cf047a854 | |||
| a9f8f3a1da | |||
| 48335b4c2a | |||
| 5784a4eb93 | |||
| 2f875d94c7 | |||
| 05c6a9a8fc | |||
| 9c5e3570b5 | |||
| 1be88b66af | |||
| 12e93fbd15 | |||
| ac33e9268d | |||
| 81d9f2ea7b | |||
| 9b47ae188c | |||
| de400c66d8 | |||
| 261d1468e7 | |||
| 080e858ae0 | |||
| 55d8db3369 | |||
| 056aa80097 | |||
| aeeb13d035 | |||
| d82e009206 | |||
| 0b09bcb702 | |||
| 30ee433de3 | |||
| 3783f3cea4 | |||
| 2aa98eb68b | |||
| 486e7db9f1 | |||
| b2f0923df2 | |||
| b64809a4d4 | |||
| 3a81bad5db | |||
| f8ddeb311c | |||
| 7c9207db57 | |||
| 174f4b0c4b | |||
| 53f0462108 | |||
| 6d7b991482 | |||
| cbec90d0bf | |||
| bc3f475954 | |||
| 4c652a91fc | |||
| f7e8d3b4dd | |||
| b30644ddd2 | |||
| 181a8bddf4 | |||
| 4b353bab8f | |||
| d9de0f22cf | |||
| 6cb544117c | |||
| 629816217c | |||
| ab527e2357 | |||
| b076c1edbd | |||
| fbbcad359c | |||
| 24500fc1a1 | |||
| e388ea2543 | |||
| 4b406f96fc | |||
| 4b31cf1196 | |||
| 4c1d1fb9b1 |
@@ -2,6 +2,9 @@
|
|||||||
ENV = 'prop'
|
ENV = 'prop'
|
||||||
NODE_ENV = 'prop'
|
NODE_ENV = 'prop'
|
||||||
|
|
||||||
|
# base public path
|
||||||
|
VUE_APP_BASE_PATH = '/'
|
||||||
|
|
||||||
# 是否开启登陆限制 true:是 false:否
|
# 是否开启登陆限制 true:是 false:否
|
||||||
VUE_APP_LOGIN_FOR_PERMISSION = true
|
VUE_APP_LOGIN_FOR_PERMISSION = true
|
||||||
|
|
||||||
|
|||||||
+153
-143
@@ -1,48 +1,58 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: 'babel-eslint',
|
parser: '@babel/eslint-parser',
|
||||||
sourceType: 'module'
|
sourceType: 'module'
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
"zzSessionStorage": true
|
'zzSessionStorage': true
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
node: true,
|
node: true,
|
||||||
es6: true
|
es6: true
|
||||||
},
|
},
|
||||||
extends: ["plugin:vue/recommended"],
|
extends: ['plugin:vue/recommended'],
|
||||||
|
|
||||||
// add your custom rules here
|
// add your custom rules here
|
||||||
//it is base on https://github.com/vuejs/eslint-config-vue
|
// it is base on https://github.com/vuejs/eslint-config-vue
|
||||||
rules: {
|
rules: {
|
||||||
"vue/max-attributes-per-line": [
|
// "rule-name": "off"
|
||||||
2,
|
// "vue/max-attributes-per-line": [
|
||||||
|
// 2,
|
||||||
|
// {
|
||||||
|
// singleline: 10,
|
||||||
|
// multiline: {
|
||||||
|
// max: 1,
|
||||||
|
// allowFirstLine: false
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
'vue/max-attributes-per-line': [
|
||||||
|
'error',
|
||||||
{
|
{
|
||||||
singleline: 10,
|
singleline: 10,
|
||||||
multiline: {
|
multiline: {
|
||||||
max: 1,
|
max: 1
|
||||||
allowFirstLine: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"vue/singleline-html-element-content-newline": "off",
|
'vue/singleline-html-element-content-newline': 'off',
|
||||||
"vue/multiline-html-element-content-newline": "off",
|
'vue/multiline-html-element-content-newline': 'off',
|
||||||
"vue/name-property-casing": ["error", "PascalCase"],
|
'vue/name-property-casing': ['error', 'PascalCase'],
|
||||||
"vue/no-v-html": "off",
|
'vue/no-v-html': 'off',
|
||||||
"accessor-pairs": 2,
|
'accessor-pairs': 2,
|
||||||
"arrow-spacing": [
|
'arrow-spacing': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
before: true,
|
before: true,
|
||||||
after: true
|
after: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"block-spacing": [2, "always"],
|
'block-spacing': [2, 'always'],
|
||||||
"brace-style": [
|
'brace-style': [
|
||||||
2,
|
2,
|
||||||
"1tbs",
|
'1tbs',
|
||||||
{
|
{
|
||||||
allowSingleLine: true
|
allowSingleLine: true
|
||||||
}
|
}
|
||||||
@@ -50,31 +60,31 @@ module.exports = {
|
|||||||
camelcase: [
|
camelcase: [
|
||||||
0,
|
0,
|
||||||
{
|
{
|
||||||
properties: "always"
|
properties: 'always'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"comma-dangle": [2, "never"],
|
'comma-dangle': [2, 'never'],
|
||||||
"comma-spacing": [
|
'comma-spacing': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
before: false,
|
before: false,
|
||||||
after: true
|
after: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"comma-style": [2, "last"],
|
'comma-style': [2, 'last'],
|
||||||
"constructor-super": 2,
|
'constructor-super': 2,
|
||||||
curly: [2, "multi-line"],
|
curly: [2, 'multi-line'],
|
||||||
"dot-location": [2, "property"],
|
'dot-location': [2, 'property'],
|
||||||
"eol-last": 2,
|
'eol-last': 2,
|
||||||
eqeqeq: ["error", "always", { null: "ignore" }],
|
eqeqeq: ['error', 'always', { null: 'ignore' }],
|
||||||
"generator-star-spacing": [
|
'generator-star-spacing': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
before: true,
|
before: true,
|
||||||
after: true
|
after: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"handle-callback-err": [2, "^(err|error)$"],
|
'handle-callback-err': [2, '^(err|error)$'],
|
||||||
indent: [
|
indent: [
|
||||||
2,
|
2,
|
||||||
2,
|
2,
|
||||||
@@ -82,197 +92,197 @@ module.exports = {
|
|||||||
SwitchCase: 1
|
SwitchCase: 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"jsx-quotes": [2, "prefer-single"],
|
'jsx-quotes': [2, 'prefer-single'],
|
||||||
"key-spacing": [
|
'key-spacing': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
beforeColon: false,
|
beforeColon: false,
|
||||||
afterColon: true
|
afterColon: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"keyword-spacing": [
|
'keyword-spacing': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
before: true,
|
before: true,
|
||||||
after: true
|
after: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"new-cap": [
|
'new-cap': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
newIsCap: true,
|
newIsCap: true,
|
||||||
capIsNew: false
|
capIsNew: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"new-parens": 2,
|
'new-parens': 2,
|
||||||
"no-array-constructor": 2,
|
'no-array-constructor': 2,
|
||||||
"no-caller": 2,
|
'no-caller': 2,
|
||||||
"no-console": "off",
|
'no-console': 'off',
|
||||||
"no-class-assign": 2,
|
'no-class-assign': 2,
|
||||||
"no-cond-assign": 2,
|
'no-cond-assign': 2,
|
||||||
"no-const-assign": 2,
|
'no-const-assign': 2,
|
||||||
"no-control-regex": 0,
|
'no-control-regex': 0,
|
||||||
"no-delete-var": 2,
|
'no-delete-var': 2,
|
||||||
"no-dupe-args": 2,
|
'no-dupe-args': 2,
|
||||||
"no-dupe-class-members": 2,
|
'no-dupe-class-members': 2,
|
||||||
"no-dupe-keys": 2,
|
'no-dupe-keys': 2,
|
||||||
"no-duplicate-case": 2,
|
'no-duplicate-case': 2,
|
||||||
"no-empty-character-class": 2,
|
'no-empty-character-class': 2,
|
||||||
"no-empty-pattern": 2,
|
'no-empty-pattern': 2,
|
||||||
"no-eval": 2,
|
'no-eval': 2,
|
||||||
"no-ex-assign": 2,
|
'no-ex-assign': 2,
|
||||||
"no-extend-native": 2,
|
'no-extend-native': 2,
|
||||||
"no-extra-bind": 2,
|
'no-extra-bind': 2,
|
||||||
"no-extra-boolean-cast": 2,
|
'no-extra-boolean-cast': 2,
|
||||||
"no-extra-parens": [2, "functions"],
|
'no-extra-parens': [2, 'functions'],
|
||||||
"no-fallthrough": 2,
|
'no-fallthrough': 2,
|
||||||
"no-floating-decimal": 2,
|
'no-floating-decimal': 2,
|
||||||
"no-func-assign": 2,
|
'no-func-assign': 2,
|
||||||
"no-implied-eval": 2,
|
'no-implied-eval': 2,
|
||||||
"no-inner-declarations": [2, "functions"],
|
'no-inner-declarations': [2, 'functions'],
|
||||||
"no-invalid-regexp": 2,
|
'no-invalid-regexp': 2,
|
||||||
"no-irregular-whitespace": 2,
|
'no-irregular-whitespace': 2,
|
||||||
"no-iterator": 2,
|
'no-iterator': 2,
|
||||||
"no-label-var": 2,
|
'no-label-var': 2,
|
||||||
"no-labels": [
|
'no-labels': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
allowLoop: false,
|
allowLoop: false,
|
||||||
allowSwitch: false
|
allowSwitch: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-lone-blocks": 2,
|
'no-lone-blocks': 2,
|
||||||
"no-mixed-spaces-and-tabs": 2,
|
'no-mixed-spaces-and-tabs': 2,
|
||||||
"no-multi-spaces": 2,
|
'no-multi-spaces': 2,
|
||||||
"no-multi-str": 2,
|
'no-multi-str': 2,
|
||||||
"no-multiple-empty-lines": [
|
'no-multiple-empty-lines': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
max: 1
|
max: 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-native-reassign": 2,
|
'no-native-reassign': 2,
|
||||||
"no-negated-in-lhs": 2,
|
'no-negated-in-lhs': 2,
|
||||||
"no-new-object": 2,
|
'no-new-object': 2,
|
||||||
"no-new-require": 2,
|
'no-new-require': 2,
|
||||||
"no-new-symbol": 2,
|
'no-new-symbol': 2,
|
||||||
"no-new-wrappers": 2,
|
'no-new-wrappers': 2,
|
||||||
"no-obj-calls": 2,
|
'no-obj-calls': 2,
|
||||||
"no-octal": 2,
|
'no-octal': 2,
|
||||||
"no-octal-escape": 2,
|
'no-octal-escape': 2,
|
||||||
"no-path-concat": 2,
|
'no-path-concat': 2,
|
||||||
"no-proto": 2,
|
'no-proto': 2,
|
||||||
"no-redeclare": 2,
|
'no-redeclare': 2,
|
||||||
"no-regex-spaces": 2,
|
'no-regex-spaces': 2,
|
||||||
"no-return-assign": [2, "except-parens"],
|
'no-return-assign': [2, 'except-parens'],
|
||||||
"no-self-assign": 2,
|
'no-self-assign': 2,
|
||||||
"no-self-compare": 2,
|
'no-self-compare': 2,
|
||||||
"no-sequences": 2,
|
'no-sequences': 2,
|
||||||
"no-shadow-restricted-names": 2,
|
'no-shadow-restricted-names': 2,
|
||||||
"no-spaced-func": 2,
|
'no-spaced-func': 2,
|
||||||
"no-sparse-arrays": 2,
|
'no-sparse-arrays': 2,
|
||||||
"no-this-before-super": 2,
|
'no-this-before-super': 2,
|
||||||
"no-throw-literal": 2,
|
'no-throw-literal': 2,
|
||||||
"no-trailing-spaces": 2,
|
'no-trailing-spaces': 2,
|
||||||
"no-undef": 2,
|
'no-undef': 2,
|
||||||
"no-undef-init": 2,
|
'no-undef-init': 2,
|
||||||
"no-unexpected-multiline": 2,
|
'no-unexpected-multiline': 2,
|
||||||
"no-unmodified-loop-condition": 2,
|
'no-unmodified-loop-condition': 2,
|
||||||
"no-unneeded-ternary": [
|
'no-unneeded-ternary': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
defaultAssignment: false
|
defaultAssignment: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-unreachable": 2,
|
'no-unreachable': 2,
|
||||||
"no-unsafe-finally": 2,
|
'no-unsafe-finally': 2,
|
||||||
"no-unused-vars": [
|
'no-unused-vars': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
vars: "all",
|
vars: 'all',
|
||||||
args: "none"
|
args: 'none'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-useless-call": 2,
|
'no-useless-call': 2,
|
||||||
"no-useless-computed-key": 2,
|
'no-useless-computed-key': 2,
|
||||||
"no-useless-constructor": 2,
|
'no-useless-constructor': 2,
|
||||||
"no-useless-escape": 0,
|
'no-useless-escape': 0,
|
||||||
"no-whitespace-before-property": 2,
|
'no-whitespace-before-property': 2,
|
||||||
"no-with": 2,
|
'no-with': 2,
|
||||||
"one-var": [
|
'one-var': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
initialized: "never"
|
initialized: 'never'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"operator-linebreak": [
|
'operator-linebreak': [
|
||||||
2,
|
2,
|
||||||
"after",
|
'after',
|
||||||
{
|
{
|
||||||
overrides: {
|
overrides: {
|
||||||
"?": "before",
|
'?': 'before',
|
||||||
":": "before"
|
':': 'before'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"padded-blocks": [2, "never"],
|
'padded-blocks': [2, 'never'],
|
||||||
quotes: [
|
quotes: [
|
||||||
2,
|
2,
|
||||||
"single",
|
'single',
|
||||||
{
|
{
|
||||||
avoidEscape: true,
|
avoidEscape: true,
|
||||||
allowTemplateLiterals: true
|
allowTemplateLiterals: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
semi: [2, "never"],
|
semi: [2, 'never'],
|
||||||
"semi-spacing": [
|
'semi-spacing': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
before: false,
|
before: false,
|
||||||
after: true
|
after: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"space-before-blocks": [2, "always"],
|
'space-before-blocks': [2, 'always'],
|
||||||
"space-before-function-paren": [2, "never"],
|
'space-before-function-paren': [2, 'never'],
|
||||||
"space-in-parens": [2, "never"],
|
'space-in-parens': [2, 'never'],
|
||||||
"space-infix-ops": 2,
|
'space-infix-ops': 2,
|
||||||
"space-unary-ops": [
|
'space-unary-ops': [
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
words: true,
|
words: true,
|
||||||
nonwords: false
|
nonwords: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"spaced-comment": [
|
'spaced-comment': [
|
||||||
2,
|
2,
|
||||||
"always",
|
'always',
|
||||||
{
|
{
|
||||||
markers: [
|
markers: [
|
||||||
"global",
|
'global',
|
||||||
"globals",
|
'globals',
|
||||||
"eslint",
|
'eslint',
|
||||||
"eslint-disable",
|
'eslint-disable',
|
||||||
"*package",
|
'*package',
|
||||||
"!",
|
'!',
|
||||||
","
|
','
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"template-curly-spacing": [2, "never"],
|
'template-curly-spacing': [2, 'never'],
|
||||||
"use-isnan": 2,
|
'use-isnan': 2,
|
||||||
"valid-typeof": 2,
|
'valid-typeof': 2,
|
||||||
"wrap-iife": [2, "any"],
|
'wrap-iife': [2, 'any'],
|
||||||
"yield-star-spacing": [2, "both"],
|
'yield-star-spacing': [2, 'both'],
|
||||||
yoda: [2, "never"],
|
yoda: [2, 'never'],
|
||||||
"prefer-const": 2,
|
'prefer-const': 2,
|
||||||
//"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
|
// "no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
|
||||||
"object-curly-spacing": [
|
'object-curly-spacing': [
|
||||||
2,
|
2,
|
||||||
"always",
|
'always',
|
||||||
{
|
{
|
||||||
objectsInObjects: false
|
objectsInObjects: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"array-bracket-spacing": [2, "never"]
|
'array-bracket-spacing': [2, 'never']
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|||||||
@@ -10516,7 +10516,7 @@ class BaseViewer {
|
|||||||
|
|
||||||
const pageNumber = this._currentPageNumber,
|
const pageNumber = this._currentPageNumber,
|
||||||
state = this.#scrollModePageState,
|
state = this.#scrollModePageState,
|
||||||
viewer = this.viewer;
|
viewmr = this.viewer;
|
||||||
viewer.textContent = "";
|
viewer.textContent = "";
|
||||||
state.pages.length = 0;
|
state.pages.length = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -5,3 +5,6 @@ npm install
|
|||||||
# 启动服务
|
# 启动服务
|
||||||
npm run dev
|
npm run dev
|
||||||
|
|
||||||
|
# v1.9.0修改
|
||||||
|
1. 角色修改,全局userId实际意义修改为userRoleId(用户角色id),新增identityUserId(新的用户id)
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -1,10 +1,12 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [
|
presets: [
|
||||||
'@vue/cli-plugin-babel/preset',
|
// '@vue/cli-plugin-babel/preset',
|
||||||
|
// ["@babel/preset-env", { "modules": false }]
|
||||||
'@babel/preset-env'
|
'@babel/preset-env'
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
'@babel/plugin-proposal-optional-chaining',
|
'@vue/babel-plugin-transform-vue-jsx'
|
||||||
'@babel/plugin-proposal-nullish-coalescing-operator'
|
// '@babel/plugin-proposal-optional-chaining',
|
||||||
|
// '@babel/plugin-proposal-nullish-coalescing-operator'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+20319
-16647
File diff suppressed because it is too large
Load Diff
+67
-69
@@ -14,23 +14,20 @@
|
|||||||
"i18n:en": "node i18nGenerate.js lang=en keyCol=5 valCol=7"
|
"i18n:en": "node i18nGenerate.js lang=en keyCol=5 valCol=7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.370.0",
|
"@aws-sdk/client-s3": "^3.701.0",
|
||||||
|
"@cornerstonejs/adapters": "^2.19.7",
|
||||||
"@cornerstonejs/calculate-suv": "^1.1.0",
|
"@cornerstonejs/calculate-suv": "^1.1.0",
|
||||||
"@cornerstonejs/core": "^1.27.4",
|
"@cornerstonejs/core": "^2.19.7",
|
||||||
"@cornerstonejs/dicom-image-loader": "^1.27.4",
|
"@cornerstonejs/dicom-image-loader": "^2.19.7",
|
||||||
"@cornerstonejs/streaming-image-volume-loader": "1.23.2",
|
"@cornerstonejs/tools": "^2.19.7",
|
||||||
"@cornerstonejs/tools": "^1.27.4",
|
"@icr/polyseg-wasm": "^0.4.0",
|
||||||
"@ffmpeg/core": "^0.10.0",
|
"@microsoft/signalr": "^8.0.7",
|
||||||
"@ffmpeg/ffmpeg": "^0.10.1",
|
"@riophae/vue-treeselect": "^0.4.0",
|
||||||
"@microsoft/signalr": "^6.0.8",
|
|
||||||
"@riophae/vue-treeselect": "0.4.0",
|
|
||||||
"@vue-office/docx": "^1.6.2",
|
"@vue-office/docx": "^1.6.2",
|
||||||
"@vue-office/excel": "^1.7.11",
|
"@vue-office/excel": "^1.7.11",
|
||||||
"@vue/composition-api": "^1.7.2",
|
"@vue/composition-api": "^1.7.2",
|
||||||
"ali-oss": "^6.17.1",
|
"ali-oss": "^6.17.1",
|
||||||
"axios": "0.18.1",
|
"axios": "^0.18.1",
|
||||||
"babel-eslint": "7.2.3",
|
|
||||||
"copy-webpack-plugin": "^4.5.2",
|
|
||||||
"core-js": "^3.8.3",
|
"core-js": "^3.8.3",
|
||||||
"cornerstone-core": "^2.6.1",
|
"cornerstone-core": "^2.6.1",
|
||||||
"cornerstone-math": "^0.1.10",
|
"cornerstone-math": "^0.1.10",
|
||||||
@@ -41,67 +38,68 @@
|
|||||||
"dicom-parser": "^1.8.9",
|
"dicom-parser": "^1.8.9",
|
||||||
"dicomedit": "^0.1.0",
|
"dicomedit": "^0.1.0",
|
||||||
"echarts": "^4.8.0",
|
"echarts": "^4.8.0",
|
||||||
"element-ui": "^2.15.8",
|
"element-ui": "^2.15.14",
|
||||||
"exceljs": "^4.1.0",
|
"exceljs": "^4.4.0",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"hammerjs": "^2.0.8",
|
"hammerjs": "^2.0.8",
|
||||||
"html2canvas": "^1.4.1",
|
"html2canvas": "^1.4.1",
|
||||||
"js-md5": "^0.7.3",
|
"js-md5": "^0.8.3",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"jszip": "^3.7.1",
|
"jszip": "^3.10.1",
|
||||||
"moment": "^2.27.0",
|
"minio": "^7.1.3",
|
||||||
"node-polyfill-webpack-plugin": "^2.0.1",
|
"moment": "^2.30.1",
|
||||||
"node-sass": "^4.14.1",
|
"moment-timezone": "^0.5.46",
|
||||||
"normalize.css": "7.0.0",
|
"node-xlsx": "^0.24.0",
|
||||||
"nprogress": "0.2.0",
|
"normalize.css": "^8.0.1",
|
||||||
"path-to-regexp": "2.4.0",
|
"nprogress": "^0.2.0",
|
||||||
"pdfobject": "^2.2.8",
|
"path-to-regexp": "^0.1.10",
|
||||||
"popper.js": "^1.16.1",
|
"pdfobject": "^2.3.0",
|
||||||
"qrcodejs2": "0.0.2",
|
"qrcodejs2": "^0.0.2",
|
||||||
"sass-loader": "^8.0.0",
|
"screenfull": "^6.0.2",
|
||||||
"screenfull": "^4.2.0",
|
"sortablejs": "^1.15.5",
|
||||||
"sortablejs": "^1.15.0",
|
|
||||||
"streamsaver": "^2.0.6",
|
"streamsaver": "^2.0.6",
|
||||||
"v-viewer": "^1.6.4",
|
"svg-sprite-loader": "^4.1.3",
|
||||||
|
"svgo": "^1.2.2",
|
||||||
|
"v-viewer": "^1.7.4",
|
||||||
"vcrontab": "^0.3.5",
|
"vcrontab": "^0.3.5",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.14",
|
||||||
"vue-clipboard2": "^0.3.1",
|
"vue-clipboard2": "^0.3.3",
|
||||||
"vue-contextmenujs": "^1.3.13",
|
"vue-contextmenujs": "^1.4.11",
|
||||||
"vue-count-to": "^1.0.13",
|
"vue-count-to": "^1.0.13",
|
||||||
"vue-demi": "^0.14.6",
|
"vue-demi": "^0.14.10",
|
||||||
"vue-i18n": "^8.7.0",
|
"vue-i18n": "^8.28.2",
|
||||||
"vue-pdf": "^4.3.0",
|
|
||||||
"vue-puzzle-vcode": "^1.1.10",
|
"vue-puzzle-vcode": "^1.1.10",
|
||||||
"vue-router": "3.0.6",
|
"vue-router": "^3.0.6",
|
||||||
"vue-seamless-scroll": "^1.1.21",
|
"vue-seamless-scroll": "^1.1.23",
|
||||||
"vuedraggable": "^2.24.3",
|
"vuedraggable": "^2.24.3",
|
||||||
"vuex": "3.1.0",
|
"vuex": "^3.1.0",
|
||||||
"webpack-aliyun-oss": "^0.4.9"
|
"webpack-aliyun-oss": "^0.3.13"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
"@babel/core": "^7.12.16",
|
||||||
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
"@babel/eslint-parser": "^7.12.16",
|
||||||
"@vue/cli-plugin-babel": "~4.5.4",
|
"@babel/plugin-transform-class-static-block": "^7.26.0",
|
||||||
"@vue/cli-plugin-eslint": "~4.5.4",
|
"@vue/babel-plugin-transform-vue-jsx": "^1.4.0",
|
||||||
"@vue/cli-service": "~4.5.4",
|
"@vue/cli-plugin-babel": "~5.0.0",
|
||||||
"autoprefixer": "^9.5.1",
|
"@vue/cli-plugin-eslint": "~5.0.0",
|
||||||
"aws-sdk": "^2.1532.0",
|
"@vue/cli-service": "~5.0.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"autoprefixer": "^10.4.20",
|
||||||
"chalk": "2.4.2",
|
"clean-webpack-plugin": "^4.0.0",
|
||||||
"connect": "3.6.6",
|
"copy-webpack-plugin": "^12.0.2",
|
||||||
"eslint": "^6.7.2",
|
"css-minimizer-webpack-plugin": "^7.0.0",
|
||||||
"eslint-plugin-vue": "^6.2.2",
|
"eslint": "^7.32.0",
|
||||||
"html-webpack-plugin": "3.2.0",
|
"eslint-plugin-vue": "^8.0.3",
|
||||||
"minio": "^7.1.3",
|
"html-webpack-plugin": "^5.6.3",
|
||||||
"moment-timezone": "^0.5.45",
|
"mini-css-extract-plugin": "^2.9.2",
|
||||||
"node-xlsx": "^0.21.0",
|
"node-polyfill-webpack-plugin": "^4.0.0",
|
||||||
"runjs": "^4.3.2",
|
"path-browserify": "^1.0.1",
|
||||||
"script-ext-html-webpack-plugin": "2.1.3",
|
"process": "^0.11.10",
|
||||||
"script-loader": "0.7.2",
|
"sass": "^1.63.2",
|
||||||
"serve-static": "^1.13.2",
|
"sass-loader": "^10.4.1",
|
||||||
"svg-sprite-loader": "4.1.3",
|
"terser-webpack-plugin": "^5.3.10",
|
||||||
"svgo": "1.2.2",
|
"vue-template-compiler": "^2.6.14",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"webpack": "^5.96.1",
|
||||||
|
"webpack-bundle-analyzer": "^4.10.2"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
@@ -109,19 +107,19 @@
|
|||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
"plugin:vue/essential"
|
"plugin:vue/essential",
|
||||||
|
"eslint:recommended"
|
||||||
],
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"parser": "babel-eslint"
|
"parser": "@babel/eslint-parser",
|
||||||
|
"requireConfigFile": false
|
||||||
},
|
},
|
||||||
"rules": {}
|
"rules": {}
|
||||||
},
|
},
|
||||||
"engines": {
|
|
||||||
"node": ">=8.9",
|
|
||||||
"npm": ">= 3.0.0"
|
|
||||||
},
|
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"> 1%",
|
"> 1%",
|
||||||
"last 2 versions"
|
"last 2 versions",
|
||||||
|
"not dead",
|
||||||
|
"not op_mini all"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -30,7 +30,6 @@
|
|||||||
</script>
|
</script>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<script>
|
<script>
|
||||||
console.log(2)
|
|
||||||
window.zzSessionStorage = {
|
window.zzSessionStorage = {
|
||||||
setItem: (item, value) => {
|
setItem: (item, value) => {
|
||||||
return sessionStorage.setItem(item, value)
|
return sessionStorage.setItem(item, value)
|
||||||
|
|||||||
+169
-42
@@ -23,12 +23,38 @@
|
|||||||
>
|
>
|
||||||
i18n
|
i18n
|
||||||
</div>
|
</div>
|
||||||
<el-drawer title="国际化" :visible.sync="drawer" direction="rtl" size="80%">
|
<el-drawer
|
||||||
<div style="width: 320px">
|
:title="$t('il8n:title')"
|
||||||
<el-form label-width="100px" @submit.native.prevent size="small">
|
:visible.sync="drawer"
|
||||||
<el-form-item label="关键字">
|
direction="rtl"
|
||||||
|
size="80%"
|
||||||
|
>
|
||||||
|
<div style="width: 800px">
|
||||||
|
<el-form
|
||||||
|
label-width="100px"
|
||||||
|
@submit.native.prevent
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
class="demo-form-inline"
|
||||||
|
>
|
||||||
|
<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-select
|
||||||
|
v-model="State"
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
@change="handleStateChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item of $d.InternationalizationKeyState"
|
||||||
|
:key="'InternationalizationKeyState' + item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -36,12 +62,14 @@
|
|||||||
v-adaptive="{ bottomOffset: 50 }"
|
v-adaptive="{ bottomOffset: 50 }"
|
||||||
height="100"
|
height="100"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="标签"
|
:label="$t('il8n:table:label')"
|
||||||
width="300"
|
width="300"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column-->
|
<!-- <el-table-column-->
|
||||||
@@ -53,7 +81,11 @@
|
|||||||
<!-- {{scope.row.Description}}-->
|
<!-- {{scope.row.Description}}-->
|
||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
<el-table-column prop="Value" label="英文">
|
<el-table-column
|
||||||
|
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"
|
v-model="scope.row.Value"
|
||||||
@@ -66,7 +98,11 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="ValueCN" label="中文">
|
<el-table-column
|
||||||
|
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"
|
v-model="scope.row.ValueCN"
|
||||||
@@ -79,12 +115,41 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="ValueCN"
|
||||||
|
:label="$t('il8n:table:state')"
|
||||||
|
sortable="custom"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-select
|
||||||
|
v-model="scope.row.State"
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
size="mini"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item of $d.InternationalizationKeyState"
|
||||||
|
:key="'InternationalizationKeyState' + item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="Version"
|
||||||
|
:label="$t('il8n:table:Version')"
|
||||||
|
sortable="custom"
|
||||||
|
>
|
||||||
|
</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>
|
<el-button size="mini" @click="drawer = false"
|
||||||
<el-button size="mini" type="primary" @click="handleSave"
|
>{{ $t('common:button:cancel') }}
|
||||||
>保存</el-button
|
</el-button>
|
||||||
>
|
<el-button size="mini" type="primary" @click="handleSave">{{
|
||||||
|
$t('common:button:save')
|
||||||
|
}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<feedBack v-if="$route.matched.length > 0" />
|
<feedBack v-if="$route.matched.length > 0" />
|
||||||
@@ -110,10 +175,13 @@ export default {
|
|||||||
show: false,
|
show: false,
|
||||||
key: null,
|
key: null,
|
||||||
arr: [],
|
arr: [],
|
||||||
|
il8nExternal: false,
|
||||||
|
State: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
||||||
|
Vue.prototype.$openI18n = this.openI18n
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
// '$route.query': {
|
// '$route.query': {
|
||||||
@@ -145,6 +213,23 @@ export default {
|
|||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
|
// 排序
|
||||||
|
handleSortByColumn(column) {
|
||||||
|
if (column.order === 'ascending') {
|
||||||
|
this.tableData.sort((a, b) =>
|
||||||
|
a[column.prop].localeCompare(b[column.prop])
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
this.tableData.sort((a, b) =>
|
||||||
|
b[column.prop].localeCompare(a[column.prop])
|
||||||
|
)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleStateChange() {
|
||||||
|
this.tableData.forEach((item) => {
|
||||||
|
item.State = this.State
|
||||||
|
})
|
||||||
|
},
|
||||||
changeValue(target, attr, e) {
|
changeValue(target, attr, e) {
|
||||||
this.$set(target, attr, e)
|
this.$set(target, attr, e)
|
||||||
},
|
},
|
||||||
@@ -154,9 +239,12 @@ export default {
|
|||||||
[],
|
[],
|
||||||
this.arr.filter(
|
this.arr.filter(
|
||||||
(v) =>
|
(v) =>
|
||||||
~v.Code.indexOf(this.key) ||
|
(v.Code &&
|
||||||
~v.Value.indexOf(this.key) ||
|
~v.Code.toLowerCase().indexOf(this.key.toLowerCase())) ||
|
||||||
~v.ValueCN.indexOf(this.key)
|
(v.Value &&
|
||||||
|
~v.Value.toLowerCase().indexOf(this.key.toLowerCase())) ||
|
||||||
|
(v.ValueCN &&
|
||||||
|
~v.ValueCN.toLowerCase().indexOf(this.key.toLowerCase()))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
@@ -164,39 +252,75 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$confirm('确定修改当前页面国际化内容?').then(() => {
|
this.$confirm('确定修改当前页面国际化内容?')
|
||||||
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
.then(() => {
|
||||||
async (res) => {
|
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
||||||
var zhMessages = {},
|
async (res) => {
|
||||||
enMessages = {}
|
var zhMessages = {},
|
||||||
var Internationalization = await getFrontInternationalizationList()
|
enMessages = {}
|
||||||
Vue.prototype.$tl = Internationalization.Result
|
var Internationalization =
|
||||||
this.tableData.forEach((v) => {
|
await getFrontInternationalizationList()
|
||||||
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
Vue.prototype.$tl = Internationalization.Result
|
||||||
// enMessages[v.Description + '_' + v.Code] = v.Value
|
this.tableData.forEach((v) => {
|
||||||
zhMessages[v.Code] = v.ValueCN
|
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
||||||
enMessages[v.Code] = v.Value
|
// enMessages[v.Description + '_' + v.Code] = v.Value
|
||||||
})
|
zhMessages[v.Code] = v.ValueCN
|
||||||
i18n.mergeLocaleMessage('zh', zhMessages)
|
enMessages[v.Code] = v.Value
|
||||||
i18n.mergeLocaleMessage('en', enMessages)
|
})
|
||||||
this.drawer = false
|
i18n.mergeLocaleMessage('zh', zhMessages)
|
||||||
this.$message.success('国际化修改成功')
|
i18n.mergeLocaleMessage('en', enMessages)
|
||||||
}
|
this.drawer = false
|
||||||
)
|
this.$message.success('国际化修改成功')
|
||||||
})
|
if (this.il8nExternal) {
|
||||||
|
this.$EventBus.$emit('il8nUpdate')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
openI18n() {
|
openI18n(ARRAY) {
|
||||||
this.tableData = []
|
this.tableData = []
|
||||||
|
this.il8nExternal = false
|
||||||
|
this.State = null
|
||||||
this.key = null
|
this.key = null
|
||||||
this.drawer = true
|
this.drawer = true
|
||||||
let arr = []
|
let arr = []
|
||||||
let tableData = this.$tl.map((v) => {
|
let tableData = []
|
||||||
let a = { ...v }
|
if (ARRAY && Array.isArray(ARRAY)) {
|
||||||
// if (!a.Description) {
|
this.il8nExternal = true
|
||||||
// a.Description = this.$route.path
|
let data = ARRAY.map((v) => {
|
||||||
// }
|
let a = { ...v }
|
||||||
return a
|
|
||||||
})
|
return a
|
||||||
|
})
|
||||||
|
tableData = data.map((item) => {
|
||||||
|
return {
|
||||||
|
Code: item.Code,
|
||||||
|
Description: item.Description,
|
||||||
|
FrontType: item.FrontType,
|
||||||
|
Module: item.Module,
|
||||||
|
Value: item.Value,
|
||||||
|
ValueCN: item.ValueCN,
|
||||||
|
State: item.State,
|
||||||
|
Version: item.Version,
|
||||||
|
InternationalizationType: item.InternationalizationType,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.tableData = Object.assign([], tableData)
|
||||||
|
this.arr = Object.assign([], tableData)
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
|
tableData = this.$tl.map((v) => {
|
||||||
|
let a = { ...v }
|
||||||
|
// if (!a.Description) {
|
||||||
|
// a.Description = this.$route.path
|
||||||
|
// }
|
||||||
|
return a
|
||||||
|
})
|
||||||
|
}
|
||||||
tableData = tableData.filter((v) => {
|
tableData = tableData.filter((v) => {
|
||||||
// return ~this.$path.indexOf(v.Description + '_' + v.Code)
|
// return ~this.$path.indexOf(v.Description + '_' + v.Code)
|
||||||
return ~this.$path.indexOf(v.Code)
|
return ~this.$path.indexOf(v.Code)
|
||||||
@@ -213,6 +337,9 @@ export default {
|
|||||||
Description: null,
|
Description: null,
|
||||||
Value: null,
|
Value: null,
|
||||||
ValueCN: null,
|
ValueCN: null,
|
||||||
|
State: 0,
|
||||||
|
Version: this.$version.Version,
|
||||||
|
InternationalizationType: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+37
-4
@@ -44,11 +44,19 @@ export function updateUser(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function updateUserBasicInfo(param) {
|
||||||
export function getUser(userId) {
|
|
||||||
return request({
|
return request({
|
||||||
url: `/user/getUser/${userId}`,
|
url: `/user/updateUserBasicInfo`,
|
||||||
method: 'get'
|
method: 'put',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getUser(params) {
|
||||||
|
return request({
|
||||||
|
url: `/user/getUser`,
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -317,3 +325,28 @@ export function useUserIDGetDoctorID(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 管理端修改用户角色
|
||||||
|
export function updateUserRoleInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: `/User/updateUserRoleInfo`,
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 管理端新增用户发送邮件
|
||||||
|
export function addNewUserSendEmail(data) {
|
||||||
|
return request({
|
||||||
|
url: `/User/addNewUserSendEmail`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 用户追溯
|
||||||
|
export function getUserJoinedTrialList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialMaintenance/getUserJoinedTrialList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
+252
-1
@@ -1069,4 +1069,255 @@ export function batchAddEnrollOrPdEmailConfig(params) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 文件记录-系统文件列表
|
||||||
|
export function getSysFileTypeList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/SysFileType/getSysFileTypeList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 文件记录-新增/编辑系统文件
|
||||||
|
export function addOrUpdateSysFileType(data) {
|
||||||
|
return request({
|
||||||
|
url: `/SysFileType/addOrUpdateSysFileType`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 文件记录-删除系统文件
|
||||||
|
export function deleteSysFileType(id) {
|
||||||
|
return request({
|
||||||
|
url: `/SysFileType/deleteSysFileType/${id}`,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-获取项目菜单
|
||||||
|
export function getTrialFileTypeData(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFileType/getTrialFileTypeData`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-修改项目菜单启用
|
||||||
|
export function setAuthorizedView(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFileType/setAuthorizedView`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-新增/修改项目菜单
|
||||||
|
export function addOrUpdateTrialFileType(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFileType/addOrUpdateTrialFileType`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-删除项目菜单
|
||||||
|
export function deleteTrialFileType(id) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFileType/deleteTrialFileType/${id}`,
|
||||||
|
method: 'delete',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-报告/文档列表
|
||||||
|
export function getTrialFinalRecordList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFinalRecord/getTrialFinalRecordList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-报告/文档授权
|
||||||
|
export function authorizedTrialFinalRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFinalRecord/authorizedTrialFinalRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-报告/文档新增/修改
|
||||||
|
export function addOrUpdateTrialFinalRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFinalRecord/addOrUpdateTrialFinalRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-删除报告/文档
|
||||||
|
export function deleteTrialFinalRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFinalRecord/deleteTrialFinalRecord/${id}`,
|
||||||
|
method: 'delete',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-一般文件记录列表
|
||||||
|
export function getTrialNormalRecordList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialNormalRecord/getTrialNormalRecordList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-一般文件记录授权
|
||||||
|
export function authorizedTTrialNormalRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialNormalRecord/authorizedTTrialNormalRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-一般文件记录批量新增
|
||||||
|
export function batchAddTrialNormalRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialNormalRecord/batchAddTrialNormalRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-一般文件记录新增/修改
|
||||||
|
export function addOrUpdateTrialNormalRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialNormalRecord/addOrUpdateTrialNormalRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-删除一般文件记录
|
||||||
|
export function deleteTrialNormalRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialNormalRecord/deleteTrialNormalRecord/${id}`,
|
||||||
|
method: 'delete',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-批量删除一般文件记录
|
||||||
|
export function deleteTrialNormalRecordList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialNormalRecord/deleteTrialNormalRecordList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-培训记录列表
|
||||||
|
export function getTrialTrianingRecordList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialTrianingRecord/getTrialTrianingRecordList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-培训记录新增/修改
|
||||||
|
export function addOrUpdateTrialTrianingRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialTrianingRecord/addOrUpdateTrialTrianingRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-培训记录批量新增/修改
|
||||||
|
export function batchAddTrialTrianingRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialTrianingRecord/batchAddTrialTrianingRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-删除培训记录
|
||||||
|
export function deleteTrialTrianingRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialTrianingRecord/deleteTrialTrianingRecord/${id}`,
|
||||||
|
method: 'delete',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-培训记录授权
|
||||||
|
export function authorizedTrialTrianingRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialTrianingRecord/authorizedTrialTrianingRecord`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-阅片人简历
|
||||||
|
export function getTrialDoctorList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/DoctorList/getTrialDoctorList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-上传同意入项记录
|
||||||
|
export function uploadTrialFileTypeFile(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFileType/uploadTrialFileTypeFile`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-获取上传同意入项记录
|
||||||
|
export function getTrialFileTypeFile(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFileType/getTrialFileTypeFile`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-删除上传同意入项记录
|
||||||
|
export function deleteTrialTypeFile(params) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialFileType/deleteTrialTypeFile`,
|
||||||
|
method: 'post',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-获取资质材料列表
|
||||||
|
export function getTrialAttachments(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Attachment/getTrialAttachments`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-修改资质材料稽查状态
|
||||||
|
export function setAuthorizedViewC(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Attachment/setAuthorizedView`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-上传资质材料
|
||||||
|
export function saveTrialAttachments(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Attachment/saveTrialAttachments`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-资质材料(获取医生列表)
|
||||||
|
export function getTrialDoctorListC(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Attachment/getTrialDoctorList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-修改资质材料
|
||||||
|
export function updateTrialAttachments(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Attachment/updateTrialAttachments`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目文档-删除资质材料
|
||||||
|
export function deleteAttachment(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Attachment/deleteAttachment`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -251,3 +251,37 @@ export function uploadOCTLipidAngleTemplate(param) {
|
|||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function saveTableQuestionMark(param, type) {
|
||||||
|
return request({
|
||||||
|
url: `/saveTableQuestionMark/${type}`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function deleteTableQuestionMark(param, type) {
|
||||||
|
return request({
|
||||||
|
url: `/deleteTableQuestionMark/${type}`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function submitTaskRowInfo(param, type) {
|
||||||
|
return request({
|
||||||
|
url: `/SubmitTaskRowInfo/${type}`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function deleteSingleTableQuestionMark(param, type) {
|
||||||
|
return request({
|
||||||
|
url: `/DeleteSingleTableQuestionMark/${type}`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+26
-2
@@ -304,9 +304,9 @@ export function addOrUpdateDoctorBasicInfoAndEmployment(param) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 新增或编辑概述
|
// 新增或编辑概述
|
||||||
export function updateGneralSituation(param) {
|
export function addOrUpdateGneralSituation(param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/Doctor/updateGneralSituation`,
|
url: `/Doctor/addOrUpdateGneralSituation`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
@@ -342,4 +342,28 @@ export function getIsVacation(param) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
// 获取概述
|
||||||
|
export function getSummarizeInfo(param) {
|
||||||
|
return request({
|
||||||
|
url: `/Doctor/getSummarizeInfo`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 删除概述
|
||||||
|
export function deleteSummarizeInfo(param) {
|
||||||
|
return request({
|
||||||
|
url: `/Doctor/deleteSummarizeInfo`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// pm通过邮箱新建或查询简历
|
||||||
|
export function useEmialGetDoctorInfo(param) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialSiteSurvey/useEmialGetDoctorInfo`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
}
|
}
|
||||||
+95
-6
@@ -286,10 +286,11 @@ export function trialSiteUserSummaryListExport(param) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getVisitStageList(trialId) {
|
export function getVisitStageList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/visitPlan/getVisitStageList/${trialId}`,
|
url: `/visitPlan/getVisitStageList`,
|
||||||
method: 'get'
|
method: 'post',
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1079,6 +1080,19 @@ export function setSeriesStatus(trialId, subjectVisitId, studyId, seriesId, stat
|
|||||||
method: 'put'
|
method: 'put'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function setNodicomStudyState(params) {
|
||||||
|
return request({
|
||||||
|
url: `/QCOperation/setNodicomStudyState`,
|
||||||
|
method: 'put',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function setInstanceStatus(trialId, subjectVisitId, seriesId, instanceId, state) {
|
||||||
|
return request({
|
||||||
|
url: `/QCOperation/setInstanceState/${trialId}/${subjectVisitId}/${seriesId}/${instanceId}/${state}`,
|
||||||
|
method: 'put'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function getVisitQCStudyAndSeriesList(subjectVisitId) {
|
export function getVisitQCStudyAndSeriesList(subjectVisitId) {
|
||||||
return request({
|
return request({
|
||||||
@@ -1364,9 +1378,9 @@ export function getForwardList(param) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '') {
|
export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '', IsReading = false) {
|
||||||
return request({
|
return request({
|
||||||
url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}`,
|
url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}&IsReading=${IsReading}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -3905,4 +3919,79 @@ export function setTaskValid(data) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 一致性分析临床数据设置任务为有效
|
||||||
|
export function getVisitClinicalDataName(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingClinicalData/getVisitClinicalDataName`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 修改外部人员权限配置
|
||||||
|
export function configTrialSPMInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialConfig/configTrialSPMInfo`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 项目添加角色修改权限
|
||||||
|
export function updateTrialUserRole(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialMaintenance/updateTrialUserRole`,
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取报表配置
|
||||||
|
export function getTrialQuestionExportResult(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingQuestion/getTrialQuestionExportResult`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 修改报表配置
|
||||||
|
export function setTrialQuestionExportResult(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingQuestion/SetTrialQuestionExportResult`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 项目加入人员发送邮件
|
||||||
|
export function trialUserSendJoinEmail(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialMaintenance/trialUserSendJoinEmail`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取非Dicom标记
|
||||||
|
export function getNoneDicomMarkListOutDto(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/getNoneDicomMarkListOutDto`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 添加非Dicom标记
|
||||||
|
export function addNoneDicomMark(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/addNoneDicomMark`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 删除非Dicom标记
|
||||||
|
export function deleteTrialFileType(id) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingImageTask/deleteTrialFileType/${id}`,
|
||||||
|
method: 'post'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -110,4 +110,12 @@ export function addOrUpdateTrialBodyPart(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 修改检查名称列表
|
||||||
|
export function updateTrialStudyNameList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialConfig/updateTrialStudyNameList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
+18
-2
@@ -179,11 +179,11 @@ export function verifyMFACode(params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 发送MFA邮件
|
// 发送MFA邮件
|
||||||
export function sendMFAEmail(params) {
|
export function sendMFAEmail(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/User/sendMFAEmail`,
|
url: `/User/sendMFAEmail`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
params
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取公钥
|
// 获取公钥
|
||||||
@@ -193,3 +193,19 @@ export function getPublicKey() {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 登陆获取角色
|
||||||
|
export function getUserLoginRoleList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/User/getUserLoginRoleList`,
|
||||||
|
method: 'post',
|
||||||
|
data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 登陆角色id获取token
|
||||||
|
export function loginSelectUserRole(params) {
|
||||||
|
return request({
|
||||||
|
url: `/User/loginSelectUserRole`,
|
||||||
|
method: 'get',
|
||||||
|
params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -4,6 +4,7 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
<slot name="title-container" />
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<slot name="search-container" />
|
<slot name="search-container" />
|
||||||
</div>
|
</div>
|
||||||
@@ -24,42 +25,42 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
noTitle: {
|
noTitle: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
contentClass() {
|
contentClass() {
|
||||||
return this.noTitle ? 'content-notitle' : 'content'
|
return this.noTitle ? 'content-notitle' : 'content'
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.box-body{
|
.box-body {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.el-card__body {
|
.el-card__body {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
.search{
|
.search {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
|
||||||
.mr5{
|
.mr5 {
|
||||||
margin-right:5px;
|
margin-right: 5px;
|
||||||
}
|
|
||||||
.el-form-item{
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.page{
|
.el-form-item {
|
||||||
text-align: right;
|
margin-bottom: 10px;
|
||||||
padding-top: 3px;
|
|
||||||
}
|
|
||||||
.el-button.is-circle {
|
|
||||||
padding: 9px;
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
padding-top: 3px;
|
||||||
|
}
|
||||||
|
.el-button.is-circle {
|
||||||
|
padding: 9px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!-- 搜索表单 -->
|
<!-- 搜索表单 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="base-search-form">
|
<div class="base-search-form">
|
||||||
<el-form :size="size" :inline="true" :label-width="labelWidth">
|
<el-form :inline="true" :label-width="labelWidth">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-for="item in searchForm"
|
v-for="item in searchForm"
|
||||||
:key="item.prop"
|
:key="item.prop"
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
v-model="searchData[item.prop]"
|
v-model="searchData[item.prop]"
|
||||||
:placeholder="item.placeholder"
|
:placeholder="item.placeholder"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
clearable
|
||||||
:style="{ width: item.width }"
|
:style="{ width: item.width }"
|
||||||
:readonly="item.readonly"
|
:readonly="item.readonly"
|
||||||
/>
|
/>
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
v-model="searchData[item.prop]"
|
v-model="searchData[item.prop]"
|
||||||
:placeholder="item.placeholder"
|
:placeholder="item.placeholder"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
clearable
|
||||||
:style="{ width: item.width }"
|
:style="{ width: item.width }"
|
||||||
@change="item.change && item.change(that, searchData[item.prop])"
|
@change="item.change && item.change(that, searchData[item.prop])"
|
||||||
>
|
>
|
||||||
@@ -37,6 +39,7 @@
|
|||||||
v-model="searchData[item.prop]"
|
v-model="searchData[item.prop]"
|
||||||
:placeholder="item.placeholder"
|
:placeholder="item.placeholder"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
clearable
|
||||||
:style="{ width: item.width }"
|
:style="{ width: item.width }"
|
||||||
@change="item.change && item.change(that, searchData[item.prop])"
|
@change="item.change && item.change(that, searchData[item.prop])"
|
||||||
>
|
>
|
||||||
@@ -96,6 +99,7 @@
|
|||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
format="yyyy-MM-dd"
|
format="yyyy-MM-dd"
|
||||||
:picker-options="item.pickerOption"
|
:picker-options="item.pickerOption"
|
||||||
|
clearable
|
||||||
/>
|
/>
|
||||||
<!-- 时间 -->
|
<!-- 时间 -->
|
||||||
<el-time-select
|
<el-time-select
|
||||||
@@ -104,6 +108,7 @@
|
|||||||
:placeholder="item.placeholder"
|
:placeholder="item.placeholder"
|
||||||
type=""
|
type=""
|
||||||
:style="{ width: item.width }"
|
:style="{ width: item.width }"
|
||||||
|
clearable
|
||||||
/>
|
/>
|
||||||
<!-- 日期时间 -->
|
<!-- 日期时间 -->
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@@ -114,12 +119,14 @@
|
|||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
:disabled="item.disable && item.disable(searchData[item.prop])"
|
:disabled="item.disable && item.disable(searchData[item.prop])"
|
||||||
:style="{ width: item.width }"
|
:style="{ width: item.width }"
|
||||||
|
clearable
|
||||||
/>
|
/>
|
||||||
<!-- 日期时间段 -->
|
<!-- 日期时间段 -->
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-if="item.type === 'Daterange'"
|
v-if="item.type === 'Daterange'"
|
||||||
v-model="searchData[item.prop]"
|
v-model="searchData[item.prop]"
|
||||||
type="datetimerange"
|
type="datetimerange"
|
||||||
|
:default-time="['00:00:00', '23:59:59']"
|
||||||
:range-separator="$t('baseForm:daterange:rangeSeparator')"
|
:range-separator="$t('baseForm:daterange:rangeSeparator')"
|
||||||
:start-placeholder="$t('baseForm:daterange:startPlaceholder')"
|
:start-placeholder="$t('baseForm:daterange:startPlaceholder')"
|
||||||
:end-placeholder="$t('baseForm:daterange:startendPlaceholder')"
|
:end-placeholder="$t('baseForm:daterange:startendPlaceholder')"
|
||||||
@@ -139,17 +146,18 @@
|
|||||||
<!-- 具名slot -->
|
<!-- 具名slot -->
|
||||||
<slot v-if="item.type === 'Custom'" :name="item.slot" />
|
<slot v-if="item.type === 'Custom'" :name="item.slot" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-for="item in searchHandle" :key="item.label">
|
<div style="display: inline-block;width: fit-content;">
|
||||||
<slot v-if="item.slot" :name="item.slot" />
|
<el-form-item v-for="item in searchHandle" :key="item.label">
|
||||||
<el-button
|
<slot v-if="item.slot" :name="item.slot" />
|
||||||
v-else
|
<el-button
|
||||||
:type="item.type"
|
v-else
|
||||||
:size="item.size || size"
|
:type="item.type"
|
||||||
:icon="item.icon || ''"
|
:icon="item.icon || ''"
|
||||||
@click="handleClick(item.emitKey)"
|
@click="handleClick(item.emitKey)"
|
||||||
>{{ item.label }}</el-button
|
>{{ item.label }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -167,11 +175,11 @@ export default {
|
|||||||
},
|
},
|
||||||
labelWidth: {
|
labelWidth: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: '',
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "mini",
|
default: 'mini',
|
||||||
},
|
},
|
||||||
searchForm: {
|
searchForm: {
|
||||||
type: Array,
|
type: Array,
|
||||||
@@ -189,10 +197,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleClick(emitKey) {
|
handleClick(emitKey) {
|
||||||
// emit事件
|
// emit事件
|
||||||
this.$emit(`${emitKey}`);
|
this.$emit(`${emitKey}`)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.base-search-form {
|
.base-search-form {
|
||||||
|
|||||||
@@ -8,10 +8,11 @@
|
|||||||
:visible.sync="config.visible"
|
:visible.sync="config.visible"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:show-close="config.showClose"
|
:show-close="config.showClose"
|
||||||
|
:top="config.top"
|
||||||
:width="config.width"
|
:width="config.width"
|
||||||
:fullscreen="config.fullscreen"
|
:fullscreen="config.fullscreen"
|
||||||
>
|
>
|
||||||
<div class="base-modal-body">
|
<div class="base-modal-body" :style="config.bodyStyle">
|
||||||
<slot name="dialog-body" />
|
<slot name="dialog-body" />
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="base-modal-footer">
|
<div slot="footer" class="base-modal-footer">
|
||||||
@@ -22,24 +23,26 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "BaseDialog",
|
name: 'BaseDialog',
|
||||||
props: {
|
props: {
|
||||||
config: {
|
config: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {
|
default: () => {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
title: "",
|
title: '',
|
||||||
closeOnClickModal: false,
|
closeOnClickModal: false,
|
||||||
showClose: true,
|
showClose: true,
|
||||||
appendToBody: false,
|
appendToBody: false,
|
||||||
width: "100px",
|
width: '100px',
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
};
|
top: '15vh',
|
||||||
|
bodyStyle: '',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.base-model-wrapper {
|
.base-model-wrapper {
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
:show-overflow-tooltip="column.showOverflowTooltip || false"
|
:show-overflow-tooltip="column.showOverflowTooltip || false"
|
||||||
:sortable="column.sortable || false"
|
:sortable="column.sortable || false"
|
||||||
:prop="column.prop"
|
:prop="column.prop"
|
||||||
|
:fixed="column.fixed"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- 仅仅显示文字 -->
|
<!-- 仅仅显示文字 -->
|
||||||
@@ -61,8 +62,11 @@
|
|||||||
</a> -->
|
</a> -->
|
||||||
<span v-for="(operate, i) in column.operates" :key="i">
|
<span v-for="(operate, i) in column.operates" :key="i">
|
||||||
<el-button
|
<el-button
|
||||||
:size="operate.size || 'mini'"
|
|
||||||
:type="operate.type || 'primary'"
|
:type="operate.type || 'primary'"
|
||||||
|
v-if="
|
||||||
|
(operate.show && scope.row[operate.show]) ||
|
||||||
|
!operate.show
|
||||||
|
"
|
||||||
style="margin-right: 5px"
|
style="margin-right: 5px"
|
||||||
@click="handleClick(operate, scope.row)"
|
@click="handleClick(operate, scope.row)"
|
||||||
>{{ operate.name }}</el-button
|
>{{ operate.name }}</el-button
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
custom-class="base-dialog-wrapper"
|
custom-class="base-dialog-wrapper"
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
<DicomTags :image-id="stack.imageIds[stack.currentImageIdIndex]" @close="dcmTag.visible = false" />
|
<dicom-tags :image-id="stack.imageIds[stack.currentImageIdIndex]" @close="dcmTag.visible = false" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -217,10 +217,10 @@ export default {
|
|||||||
this.stack.description = dicomSeries.description
|
this.stack.description = dicomSeries.description
|
||||||
this.toolState.viewportInvert = false
|
this.toolState.viewportInvert = false
|
||||||
this.toolState.dicomInfoVisible = false
|
this.toolState.dicomInfoVisible = false
|
||||||
var imageId = this.stack.imageIds[this.stack.currentImageIdIndex]
|
// var imageId = this.stack.imageIds[this.stack.currentImageIdIndex]
|
||||||
var instanceId = imageId.split('/')[imageId.split('/').length - 1]
|
// var instanceId = imageId.split('/')[imageId.split('/').length - 1]
|
||||||
instanceId = instanceId.split('.')[0]
|
// instanceId = instanceId.split('.')[0]
|
||||||
this.stack.instanceId = instanceId
|
// this.stack.instanceId = instanceId
|
||||||
this.toolState.clipPlaying = false
|
this.toolState.clipPlaying = false
|
||||||
const element = this.$refs.canvas
|
const element = this.$refs.canvas
|
||||||
cornerstone.enable(element)
|
cornerstone.enable(element)
|
||||||
@@ -346,9 +346,9 @@ export default {
|
|||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
// this.stack.instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1]
|
// this.stack.instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1]
|
||||||
var instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1]
|
// var instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1]
|
||||||
instanceId = instanceId.split('.')[0]
|
// instanceId = instanceId.split('.')[0]
|
||||||
this.stack.instanceId = instanceId
|
// this.stack.instanceId = instanceId
|
||||||
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
||||||
this.resetWwwc()
|
this.resetWwwc()
|
||||||
},
|
},
|
||||||
@@ -415,15 +415,16 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onImageRendered(e) {
|
onImageRendered(e) {
|
||||||
var imageId = e.detail.image.imageId
|
// var imageId = e.detail.image.imageId
|
||||||
var instanceId = imageId.split('/')[imageId.split('/').length - 1]
|
// var instanceId = imageId.split('/')[imageId.split('/').length - 1]
|
||||||
instanceId = instanceId.split('.')[0]
|
// instanceId = instanceId.split('.')[0]
|
||||||
|
|
||||||
if (this.imageId !== instanceId) {
|
// if (this.imageId !== instanceId) {
|
||||||
this.getOrientationMarker(e.detail.element)
|
// this.getOrientationMarker(e.detail.element)
|
||||||
this.imageId = instanceId
|
// this.imageId = instanceId
|
||||||
}
|
// }
|
||||||
this.stack.instanceId = instanceId
|
this.getOrientationMarker(e.detail.element)
|
||||||
|
// this.stack.instanceId = instanceId
|
||||||
var viewport = e.detail.viewport
|
var viewport = e.detail.viewport
|
||||||
this.dicomInfo.wwwc = `${Math.round(
|
this.dicomInfo.wwwc = `${Math.round(
|
||||||
viewport.voi.windowWidth
|
viewport.voi.windowWidth
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
dumpDataSet(dataSet, output) {
|
dumpDataSet(dataSet, output) {
|
||||||
try {
|
try {
|
||||||
for (const propertyName in dataSet.elements) {
|
for (const propertyName in dataSet.elements) {
|
||||||
const elementObject = {}
|
const elementObject = {}
|
||||||
const element = dataSet.elements[propertyName]
|
const element = dataSet.elements[propertyName]
|
||||||
const tag = this.getTag(element.tag)
|
const tag = this.getTag(element.tag)
|
||||||
elementObject.id = `${this.idx++}${new Date().getTime()}`
|
elementObject.id = `${this.idx++}${new Date().getTime()}`
|
||||||
@@ -181,9 +181,10 @@ export default {
|
|||||||
elementObject.value = str
|
elementObject.value = str
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (element.length !== 2 && element.length !== 4) {
|
elementObject.value = dataSet.string(propertyName)
|
||||||
// elementObject.value = 'binary data'
|
// if (element.length !== 2 && element.length !== 4) {
|
||||||
}
|
// // elementObject.value = 'binary data'
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
} else if (vr === 'US') {
|
} else if (vr === 'US') {
|
||||||
let text = dataSet.uint16(propertyName)
|
let text = dataSet.uint16(propertyName)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
label-width="100px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<!-- 邮箱 -->
|
<!-- 邮箱 -->
|
||||||
<p class="tip">
|
<p class="tip_mfa">
|
||||||
<i class="el-icon-warning" style="color: #409eff"></i>
|
<i class="el-icon-warning" style="color: #409eff"></i>
|
||||||
<span>{{ tip }}</span>
|
<span>{{ tip }}</span>
|
||||||
</p>
|
</p>
|
||||||
@@ -83,7 +83,7 @@ export default {
|
|||||||
second: 60,
|
second: 60,
|
||||||
form: {
|
form: {
|
||||||
Code: null,
|
Code: null,
|
||||||
UserId: null,
|
IdentityUserId: null,
|
||||||
EMail: null,
|
EMail: null,
|
||||||
username: null,
|
username: null,
|
||||||
},
|
},
|
||||||
@@ -115,7 +115,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
open(data) {
|
open(data) {
|
||||||
let { UserId, status, username, EMail } = data;
|
let { UserId, status, username, EMail } = data;
|
||||||
this.form.UserId = UserId;
|
this.form.IdentityUserId = UserId;
|
||||||
this.status = status ? status : "login";
|
this.status = status ? status : "login";
|
||||||
this.form.username = username;
|
this.form.username = username;
|
||||||
this.form.EMail = EMail;
|
this.form.EMail = EMail;
|
||||||
@@ -134,10 +134,10 @@ export default {
|
|||||||
let res = await verifyMFACode(this.form);
|
let res = await verifyMFACode(this.form);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
if (this.status === "login") {
|
// if (this.status === "login") {
|
||||||
this.$message.success(this.$t("mfa:message:verifySuccess"));
|
// this.$message.success(this.$t("mfa:message:verifySuccess"));
|
||||||
}
|
// }
|
||||||
this.$emit("success", this.form.UserId);
|
this.$emit("success", this.form.IdentityUserId);
|
||||||
this.cancel();
|
this.cancel();
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -154,7 +154,7 @@ export default {
|
|||||||
this.timer = null;
|
this.timer = null;
|
||||||
}
|
}
|
||||||
let data = {
|
let data = {
|
||||||
UserId: this.form.UserId,
|
IdentityUserId: this.form.IdentityUserId,
|
||||||
};
|
};
|
||||||
if (this.status === "lock") {
|
if (this.status === "lock") {
|
||||||
data.MfaType = 1;
|
data.MfaType = 1;
|
||||||
@@ -189,7 +189,7 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.tip {
|
.tip_mfa {
|
||||||
width: 86%;
|
width: 86%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export default {
|
|||||||
inputChange(v) {
|
inputChange(v) {
|
||||||
this.resultFilter = this.options.filter((o) => {
|
this.resultFilter = this.options.filter((o) => {
|
||||||
var reg = new RegExp(v, 'ig')
|
var reg = new RegExp(v, 'ig')
|
||||||
return reg.test(o.ResearchProgramNo) || reg.test(o.Indication)
|
return reg.test(o.ResearchProgramNo) || reg.test(o.Indication) || reg.test(o.ExperimentName)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getTrialList() {
|
getTrialList() {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<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">
|
<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">
|
||||||
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab">
|
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab" style="background-color: #f5f7fa;">
|
||||||
<template v-for="item1 of item.children">
|
<template v-for="item1 of item.children">
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
v-if="TrialConfig && isShow(item1.path)"
|
v-if="TrialConfig && isShow(item1.path)"
|
||||||
@@ -22,11 +22,14 @@
|
|||||||
<i class="iconfont" style="font-size: 30px;color:#ccc"></i>
|
<i class="iconfont" style="font-size: 30px;color:#ccc"></i>
|
||||||
</div>
|
</div>
|
||||||
<!-- 返回项目列表 -->
|
<!-- 返回项目列表 -->
|
||||||
<div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack">
|
<el-button type="primary" size="small" @click="goBack">
|
||||||
<i class="iconfont"></i>
|
<i class="iconfont"></i>
|
||||||
<!-- 返回 -->
|
|
||||||
<span>{{ $t('trials:trials:title:back') }}</span>
|
<span>{{ $t('trials:trials:title:back') }}</span>
|
||||||
</div>
|
</el-button>
|
||||||
|
<!-- <div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack">
|
||||||
|
<i class="iconfont"></i>
|
||||||
|
<span>{{ $t('trials:trials:title:back') }}</span>
|
||||||
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -146,6 +149,7 @@ export default {
|
|||||||
return isShow
|
return isShow
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
this.$router.push({ path: '/trials/trials-list' })
|
this.$router.push({ path: '/trials/trials-list' })
|
||||||
},
|
},
|
||||||
selectTrials(v) {
|
selectTrials(v) {
|
||||||
@@ -221,6 +225,9 @@ export default {
|
|||||||
.el-tabs__header{
|
.el-tabs__header{
|
||||||
margin-bottom: 3px;
|
margin-bottom: 3px;
|
||||||
}
|
}
|
||||||
|
.el-tabs__item.is-active{
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
position: relative;
|
position: relative;
|
||||||
.el-input--medium .el-input__inner{
|
.el-input--medium .el-input__inner{
|
||||||
height: 44px;line-height: 44px;width: 280px;
|
height: 44px;line-height: 44px;width: 280px;
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export default {
|
|||||||
this.btnDisabled = false
|
this.btnDisabled = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.fileList[0].id = res.Result[0].Id
|
this.fileList[0].id = res.Result[0].Id
|
||||||
this.$message.success('Uploaded successfully')
|
this.$message.success(this.$t('trials:uploadDicomList:table:Uploaded'))
|
||||||
this.$emit('getFileList', res.Result[0].Id, res.Result[0].Path)
|
this.$emit('getFileList', res.Result[0].Id, res.Result[0].Path)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -113,13 +113,13 @@ export default {
|
|||||||
if (isValidFile) {
|
if (isValidFile) {
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
} else {
|
} else {
|
||||||
this.$alert('must be in pdf format')
|
this.$alert(this.$t('upload:rule:MUSTPDF'))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeRemove(file, fileList) {
|
beforeRemove(file, fileList) {
|
||||||
if (file && file.status === 'success') {
|
if (file && file.status === 'success') {
|
||||||
return this.$confirm(`Sure to remove ${file.name}?`)
|
return this.$confirm(this.$t('system:reviewer:confirm:delete'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleRemoveFile(file, fileList) {
|
handleRemoveFile(file, fileList) {
|
||||||
@@ -146,7 +146,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExceed(files, fileList) {
|
handleExceed(files, fileList) {
|
||||||
this.$message.warning(`Upload is currently limited to 1 file`)
|
this.$message.warning(this.$t('upload:rule:maxFile1'))
|
||||||
},
|
},
|
||||||
fileValid(fileName, typeArr) {
|
fileValid(fileName, typeArr) {
|
||||||
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
|
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
|
||||||
|
|||||||
@@ -9,37 +9,51 @@
|
|||||||
:file-list="fileList"
|
:file-list="fileList"
|
||||||
:accept="accept"
|
:accept="accept"
|
||||||
>
|
>
|
||||||
<el-button size="small" type="primary" :disabled="isDisabled">{{ $t('common:button:upload') }}</el-button>
|
<el-button size="small" type="primary" :disabled="isDisabled">{{
|
||||||
|
$t('common:button:upload')
|
||||||
|
}}</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getAttachmentByType, uploadFile, saveAttachments, deleteAttachment } from '@/api/attachment'
|
import {
|
||||||
|
getAttachmentByType,
|
||||||
|
uploadFile,
|
||||||
|
saveAttachments,
|
||||||
|
deleteAttachment,
|
||||||
|
} from '@/api/attachment'
|
||||||
export default {
|
export default {
|
||||||
name: 'UploadFiles',
|
name: 'UploadFiles',
|
||||||
props: {
|
props: {
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true,
|
||||||
},
|
},
|
||||||
doctorId: {
|
doctorId: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true,
|
||||||
},
|
},
|
||||||
accept: {
|
accept: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fileList: [],
|
fileList: [],
|
||||||
repeat: false,
|
repeat: false,
|
||||||
isDisabled: false
|
isDisabled: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
doctorId() {
|
||||||
|
if (this.doctorId) {
|
||||||
|
this.initFileList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if(!this.doctorId) return
|
if (!this.doctorId) return
|
||||||
this.initFileList()
|
this.initFileList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -49,24 +63,28 @@ export default {
|
|||||||
lock: true,
|
lock: true,
|
||||||
text: 'Loading',
|
text: 'Loading',
|
||||||
spinner: 'el-icon-loading',
|
spinner: 'el-icon-loading',
|
||||||
background: 'rgba(0, 0, 0, 0.07)'
|
background: 'rgba(0, 0, 0, 0.07)',
|
||||||
})
|
})
|
||||||
getAttachmentByType(this.doctorId, this.type).then(res => {
|
getAttachmentByType(this.doctorId, this.type)
|
||||||
loading.close()
|
.then((res) => {
|
||||||
if (res.IsSuccess) {
|
loading.close()
|
||||||
if (res.Result.length > 0) {
|
if (res.IsSuccess) {
|
||||||
this.fileList = this.formatterFileList(res.Result)
|
if (res.Result.length > 0) {
|
||||||
this.$emit('getFileList', this.fileList)
|
this.fileList = this.formatterFileList(res.Result)
|
||||||
} else {
|
this.$emit('getFileList', this.fileList)
|
||||||
this.fileList = []
|
} else {
|
||||||
|
this.fileList = []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
}).catch(() => { loading.close() })
|
.catch(() => {
|
||||||
|
loading.close()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
formatterFileList(list) {
|
formatterFileList(list) {
|
||||||
var arr = []
|
var arr = []
|
||||||
list.forEach(item => {
|
list.forEach((item) => {
|
||||||
const data = {
|
const data = {
|
||||||
DoctorId: item.DoctorId,
|
DoctorId: item.DoctorId,
|
||||||
Type: item.Type,
|
Type: item.Type,
|
||||||
@@ -74,7 +92,7 @@ export default {
|
|||||||
FullPath: item.FullPath,
|
FullPath: item.FullPath,
|
||||||
FileName: item.FileName,
|
FileName: item.FileName,
|
||||||
CreateTime: item.CreateTime,
|
CreateTime: item.CreateTime,
|
||||||
Id: item.Id
|
Id: item.Id,
|
||||||
}
|
}
|
||||||
arr.push(data)
|
arr.push(data)
|
||||||
})
|
})
|
||||||
@@ -85,32 +103,42 @@ export default {
|
|||||||
// 检测文件后缀名
|
// 检测文件后缀名
|
||||||
if (this.checkFileSuffix(param.file.name)) {
|
if (this.checkFileSuffix(param.file.name)) {
|
||||||
// 检测是否有重名文件
|
// 检测是否有重名文件
|
||||||
const isRepeat = this.fileList.some(item => item.FileName === param.file.name)
|
const isRepeat = this.fileList.some(
|
||||||
|
(item) => item.FileName === param.file.name
|
||||||
|
)
|
||||||
if (isRepeat) {
|
if (isRepeat) {
|
||||||
this.$confirm('Override the existing resume?', {
|
this.$confirm(
|
||||||
type: 'warning',
|
this.$t('curriculumVitae:resume:message:existingResume'),
|
||||||
distinguishCancelAndClose: true,
|
{
|
||||||
confirmButtonText: 'OK',
|
type: 'warning',
|
||||||
cancelButtonText: 'Cancel'
|
distinguishCancelAndClose: true,
|
||||||
})
|
}
|
||||||
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// 重名覆盖
|
// 重名覆盖
|
||||||
this.repeat = true
|
this.repeat = true
|
||||||
this.uploadFile(param.file)
|
this.uploadFile(param.file)
|
||||||
})
|
})
|
||||||
.catch(action => {})
|
.catch((action) => {})
|
||||||
} else {
|
} else {
|
||||||
this.uploadFile(param.file)
|
this.uploadFile(param.file)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$alert(`Must be in ${this.accept} format`)
|
let str = this.accept.join(', ')
|
||||||
|
let message = this.$t(
|
||||||
|
'trials:readingUnit:qsList:message:imageFormat'
|
||||||
|
).replace('xxx', str)
|
||||||
|
this.$alert(message)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async uploadFile(file) {
|
async uploadFile(file) {
|
||||||
this.isDisabled = true
|
this.isDisabled = true
|
||||||
var fileName = file.name
|
var fileName = file.name
|
||||||
file = await this.fileToBlob(file)
|
file = await this.fileToBlob(file)
|
||||||
let res = await this.OSSclient.put(`/SystemData/reviewer/Agreements/${this.doctorId}/${fileName}`, file)
|
let res = await this.OSSclient.put(
|
||||||
|
`/SystemData/reviewer/Agreements/${this.doctorId}/${fileName}`,
|
||||||
|
file
|
||||||
|
)
|
||||||
if (this.repeat) {
|
if (this.repeat) {
|
||||||
const index = this.fileList.findIndex((item, index) => {
|
const index = this.fileList.findIndex((item, index) => {
|
||||||
return item.FileName === fileName
|
return item.FileName === fileName
|
||||||
@@ -124,52 +152,60 @@ export default {
|
|||||||
Type: this.type,
|
Type: this.type,
|
||||||
Path: this.$getObjectName(res.url),
|
Path: this.$getObjectName(res.url),
|
||||||
FullPath: this.$getObjectName(res.url),
|
FullPath: this.$getObjectName(res.url),
|
||||||
FileName: fileName
|
FileName: fileName,
|
||||||
}
|
}
|
||||||
this.fileList.push(fileData)
|
this.fileList.push(fileData)
|
||||||
}
|
}
|
||||||
this.saveUploadFiles()
|
this.saveUploadFiles()
|
||||||
},
|
},
|
||||||
saveUploadFiles() {
|
saveUploadFiles() {
|
||||||
saveAttachments(this.fileList).then(res => {
|
saveAttachments(this.fileList)
|
||||||
this.fileList = this.formatterFileList(res.Result)
|
.then((res) => {
|
||||||
this.isDisabled = false
|
this.fileList = this.formatterFileList(res.Result)
|
||||||
this.$message.success('Uploaded successfully')
|
this.isDisabled = false
|
||||||
this.$emit('getFileList', this.fileList)
|
this.$message.success(
|
||||||
}).catch(() => {
|
this.$t('trials:uploadDicomList:table:Uploaded')
|
||||||
this.isDisabled = false
|
)
|
||||||
})
|
this.$emit('getFileList', this.fileList)
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.isDisabled = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleDeleteFile(file) {
|
handleDeleteFile(file) {
|
||||||
this.$confirm('Sure to remove?', {
|
this.$confirm(this.$t('system:reviewer:confirm:delete'), {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true,
|
distinguishCancelAndClose: true,
|
||||||
|
})
|
||||||
}).then(() => {
|
.then(() => {
|
||||||
deleteAttachment(file.Id, file.Path)
|
deleteAttachment(file.Id, file.Path).then((res) => {
|
||||||
.then(res => {
|
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.fileList.splice(this.fileList.findIndex(item => item.Id === file.Id), 1)
|
this.fileList.splice(
|
||||||
|
this.fileList.findIndex((item) => item.Id === file.Id),
|
||||||
|
1
|
||||||
|
)
|
||||||
this.$emit('getFileList', this.fileList)
|
this.$emit('getFileList', this.fileList)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: this.$t('common:message:deletedSuccessfully'),
|
message: this.$t('common:message:deletedSuccessfully'),
|
||||||
type: 'success'
|
type: 'success',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(action => {})
|
.catch((action) => {})
|
||||||
},
|
},
|
||||||
checkFileSuffix(fileName) {
|
checkFileSuffix(fileName) {
|
||||||
var index = fileName.lastIndexOf('.')
|
var index = fileName.lastIndexOf('.')
|
||||||
var suffix = fileName.substring(index + 1, fileName.length)
|
var suffix = fileName.substring(index + 1, fileName.length)
|
||||||
return this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === 1
|
return (
|
||||||
}
|
this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === 1
|
||||||
}
|
)
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.uploadFiles-container{
|
.uploadFiles-container {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
.uploadFiles-container .el-upload--text {
|
.uploadFiles-container .el-upload--text {
|
||||||
|
|||||||
@@ -180,10 +180,10 @@
|
|||||||
<template v-if="question.Unit" slot="append">{{ question.Unit }}</template>
|
<template v-if="question.Unit" slot="append">{{ question.Unit }}</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<span v-if="question.CustomCalculateMark === 11 && question.ClinicalQuestionType === 'number'" v-show="questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] <= questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId]" style="margin-left: 10px">
|
<span v-if="question.CustomCalculateMark === 11 && question.ClinicalQuestionType === 'number'" v-show="questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] <= questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId]" style="margin-left: 10px">
|
||||||
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}-{{ questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId] }}
|
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{ questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId] }}
|
||||||
</span>
|
</span>
|
||||||
<span v-if="question.CustomCalculateMark === 10 && question.ClinicalQuestionType === 'number' && questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId]" style="margin-left: 10px">
|
<span v-if="question.CustomCalculateMark === 10 && question.ClinicalQuestionType === 'number' && questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId]" style="margin-left: 10px">
|
||||||
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}-{{ questionForm.CreateTime ? questionForm.CreateTime : parseTime(new Date(), '{y}-{m}-{d}') }}
|
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{ questionForm.CreateTime ? questionForm.CreateTime : parseTime(new Date(), '{y}-{m}-{d}') }}
|
||||||
</span>
|
</span>
|
||||||
<!-- 生日不能大于截止日期 -->
|
<!-- 生日不能大于截止日期 -->
|
||||||
<span v-if="question.CustomCalculateMark === 11 && question.ClinicalQuestionType === 'number'" v-show="questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] > questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId]" style="margin-left: 10px;font-size: 12px;color:#f66">
|
<span v-if="question.CustomCalculateMark === 11 && question.ClinicalQuestionType === 'number'" v-show="questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] > questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId]" style="margin-left: 10px;font-size: 12px;color:#f66">
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<!-- eslint-disable vue/no-use-v-if-with-v-for -->
|
<!-- eslint-disable vue/no-use-v-if-with-v-for -->
|
||||||
<!-- eslint-disable vue/valid-v-for -->
|
<!-- eslint-disable vue/valid-v-for -->
|
||||||
<el-col v-for="(item) in question.Childrens" v-if="question.Childrens && question.Childrens.length>0 && question.ClinicalQuestionType !== 'table'" :span="['group', 'summary', 'table'].includes(item.ClinicalQuestionType) || item.Childrens.length > 0 ? 24 : 12">
|
<el-col v-for="(item) in question.Childrens" :key="item.Id" v-if="question.Childrens && question.Childrens.length>0 && question.ClinicalQuestionType !== 'table'" :span="['group', 'summary', 'table'].includes(item.ClinicalQuestionType) || item.Childrens.length > 0 ? 24 : 12">
|
||||||
<QuestionFormItem
|
<QuestionFormItem
|
||||||
:key="item.Id"
|
:key="item.Id"
|
||||||
:question="item"
|
:question="item"
|
||||||
@@ -593,7 +593,7 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.my_dialog{
|
.my_dialog{
|
||||||
.criterion-form-item{
|
.criterion-form-item{
|
||||||
>>>.el-form-item__content{
|
::v-deep .el-form-item__content{
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -614,7 +614,7 @@ export default {
|
|||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
.disabled{
|
.disabled{
|
||||||
>>>.el-upload--picture-card {
|
::v-deep .el-upload--picture-card {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.my_dialog{
|
.my_dialog{
|
||||||
.criterion-form-item{
|
.criterion-form-item{
|
||||||
>>>.el-form-item__content{
|
::v-deep .el-form-item__content{
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -233,7 +233,7 @@ export default {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
>>>.el-form-item__content{
|
::v-deep .el-form-item__content{
|
||||||
width: 500px;
|
width: 500px;
|
||||||
}
|
}
|
||||||
.el-input{
|
.el-input{
|
||||||
@@ -243,7 +243,7 @@ export default {
|
|||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
.disabled{
|
.disabled{
|
||||||
>>>.el-upload--picture-card {
|
::v-deep .el-upload--picture-card {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="close"
|
@click="close"
|
||||||
v-show="$route.path !== '/trials/trials-panel/visit/crc-upload'"
|
v-show="$route.path !== '/trials/trials-panel/visit/crc-upload'&&$route.path!=='/trials/trials-panel/visit/crc-question'"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:cancel') }}
|
{{ $t('common:button:cancel') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
@@ -0,0 +1,126 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
v-dialogDrag
|
||||||
|
width="540px"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
append-to-body
|
||||||
|
:title="$t('toggleRole:tip:title')"
|
||||||
|
center
|
||||||
|
top="30vh"
|
||||||
|
:show-close="false"
|
||||||
|
:before-close="cancel"
|
||||||
|
>
|
||||||
|
<template v-if="hasRole">
|
||||||
|
<el-radio-group v-model="form.userRoleId" class="roles">
|
||||||
|
<el-radio
|
||||||
|
v-for="item in roles"
|
||||||
|
:key="item.Id"
|
||||||
|
:label="item.Id"
|
||||||
|
:disabled="item.IsUserRoleDisabled"
|
||||||
|
style="margin-bottom: 10px"
|
||||||
|
>
|
||||||
|
{{ item.UserTypeShortName }}
|
||||||
|
</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<div v-else style="text-align: center">
|
||||||
|
{{ $t('toggleRole:tip:noRole') }}
|
||||||
|
</div>
|
||||||
|
<div slot="footer">
|
||||||
|
<!-- 取消 -->
|
||||||
|
<el-button size="small" @click="cancel()">
|
||||||
|
{{ $t('common:button:cancel') }}
|
||||||
|
</el-button>
|
||||||
|
<!-- 保存 -->
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
@click="save"
|
||||||
|
:disabled="saveDisabled"
|
||||||
|
:loading="loading"
|
||||||
|
v-if="hasRole"
|
||||||
|
>
|
||||||
|
{{ $t('common:button:confirm') }}
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'toggleRole',
|
||||||
|
props: {
|
||||||
|
visible: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
loading: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {
|
||||||
|
userRoleId: null,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.form.userRoleId = zzSessionStorage.getItem('userId')
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
roles() {
|
||||||
|
return this.$store.state.user.roles
|
||||||
|
},
|
||||||
|
hasRole() {
|
||||||
|
return this.roles && this.roles.length > 0
|
||||||
|
},
|
||||||
|
saveDisabled() {
|
||||||
|
return this.form.userRoleId === zzSessionStorage.getItem('userId')
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
cancel() {
|
||||||
|
this.$emit('update:visible', false)
|
||||||
|
this.$emit('cancel')
|
||||||
|
},
|
||||||
|
async save() {
|
||||||
|
try {
|
||||||
|
if (!this.form.userRoleId)
|
||||||
|
return this.$message.warning(this.$t('toggleRole:ruleMessage:select'))
|
||||||
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
|
this.$emit('save', this.form.userRoleId)
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.roles {
|
||||||
|
max-width: 365px;
|
||||||
|
width: fit-content;
|
||||||
|
display: flex;
|
||||||
|
align-content: center;
|
||||||
|
// justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-radio__original {
|
||||||
|
display: none !important; /* 隐藏原生 radio 输入,但仍然允许交互 */
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled)
|
||||||
|
.el-radio__inner {
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
.el-radio {
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -316,9 +316,9 @@
|
|||||||
scope.row.dicomInfo.fileCount
|
scope.row.dicomInfo.fileCount
|
||||||
}}
|
}}
|
||||||
({{
|
({{
|
||||||
(scope.row.dicomInfo.uploadFileSize / 1024 / 1024).toFixed(2)
|
(scope.row.dicomInfo.uploadFileSize / 1024 / 1024).toFixed(3)
|
||||||
}}MB/{{
|
}}MB/{{
|
||||||
(scope.row.dicomInfo.fileSize / 1024 / 1024).toFixed(2)
|
(scope.row.dicomInfo.fileSize / 1024 / 1024).toFixed(3)
|
||||||
}}MB)
|
}}MB)
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -1308,7 +1308,7 @@ export default {
|
|||||||
o.imageColumns,
|
o.imageColumns,
|
||||||
o.imageRows
|
o.imageRows
|
||||||
)
|
)
|
||||||
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.png`
|
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${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,
|
||||||
@@ -1421,7 +1421,7 @@ export default {
|
|||||||
v.instanceList[0].imageColumns,
|
v.instanceList[0].imageColumns,
|
||||||
v.instanceList[0].imageRows
|
v.instanceList[0].imageRows
|
||||||
)
|
)
|
||||||
let thumbnailPath = `/${params.trialId}/Image/${params.trialSiteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.png`
|
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${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)
|
||||||
@@ -1499,8 +1499,8 @@ export default {
|
|||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
cornerstone.loadImage(imageId).then(async (image) => {
|
cornerstone.loadImage(imageId).then(async (image) => {
|
||||||
let canvas = document.createElement('canvas')
|
let canvas = document.createElement('canvas')
|
||||||
canvas.width = width
|
canvas.width = (width * 60) / height
|
||||||
canvas.height = height
|
canvas.height = 60
|
||||||
if (image) {
|
if (image) {
|
||||||
cornerstone.renderToCanvas(canvas, image)
|
cornerstone.renderToCanvas(canvas, image)
|
||||||
// 将 Canvas 图像对象转换为 PNG 格式
|
// 将 Canvas 图像对象转换为 PNG 格式
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{
|
<span>{{
|
||||||
scope.row.FileSize && scope.row.FileSize > 0
|
scope.row.FileSize && scope.row.FileSize > 0
|
||||||
? `${(scope.row.FileSize / 1024 / 1024).toFixed(2)}MB`
|
? `${(scope.row.FileSize / 1024 / 1024).toFixed(3)}MB`
|
||||||
: ''
|
: ''
|
||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{
|
<span>{{
|
||||||
scope.row.FileSize && scope.row.FileSize > 0
|
scope.row.FileSize && scope.row.FileSize > 0
|
||||||
? `${(scope.row.FileSize / 1024 / 1024).toFixed(2)}MB`
|
? `${(scope.row.FileSize / 1024 / 1024).toFixed(3)}MB`
|
||||||
: ''
|
: ''
|
||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{
|
<span>{{
|
||||||
scope.row.size && scope.row.size > 0
|
scope.row.size && scope.row.size > 0
|
||||||
? `${(scope.row.size / 1024 / 1024).toFixed(2)}MB`
|
? `${(scope.row.size / 1024 / 1024).toFixed(3)}MB`
|
||||||
: ''
|
: ''
|
||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -567,7 +567,7 @@ export default {
|
|||||||
for (let i = 0; i < arr.length; i++) {
|
for (let i = 0; i < arr.length; i++) {
|
||||||
let dicom = arr[i];
|
let dicom = arr[i];
|
||||||
if (dicom.StudyInstanceUid !== StudyInstanceUid) continue;
|
if (dicom.StudyInstanceUid !== StudyInstanceUid) continue;
|
||||||
let thumbnailPath = `/${dicom.params.TrialId}/TaskImage/${dicom.params.SubjectId}/${dicom.params.VisitTaskId}/${dicom.StudyInstanceUid}/${dicom.SeriesInstanceUid}.png`;
|
let thumbnailPath = `/${dicom.params.TrialId}/TaskImage/${dicom.params.SubjectId}/${dicom.params.VisitTaskId}/${dicom.StudyInstanceUid}/${dicom.SeriesInstanceUid}.jpg`;
|
||||||
if (!studyObj[dicom.StudyId]) {
|
if (!studyObj[dicom.StudyId]) {
|
||||||
studyObj[dicom.StudyId] = {
|
studyObj[dicom.StudyId] = {
|
||||||
StudyId: dicom.StudyId,
|
StudyId: dicom.StudyId,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { SubjectCheckConfig } from './module/Subject'
|
import { SubjectCheckConfig } from './module/Subject'
|
||||||
|
|
||||||
console.log(SubjectCheckConfig.moduleType)
|
|
||||||
export const checkConfig = {
|
export const checkConfig = {
|
||||||
ModuleType: {
|
ModuleType: {
|
||||||
...SubjectCheckConfig.ModuleType
|
...SubjectCheckConfig.ModuleType
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const dialogDrag = Vue.directive('dialogDrag', {
|
|||||||
dragDom.style.cssText += ';top:0px;'
|
dragDom.style.cssText += ';top:0px;'
|
||||||
|
|
||||||
// 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
|
// 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
|
||||||
const sty = (function() {
|
const sty = (function () {
|
||||||
if (window.document.currentStyle) {
|
if (window.document.currentStyle) {
|
||||||
return (dom, attr) => dom.currentStyle[attr]
|
return (dom, attr) => dom.currentStyle[attr]
|
||||||
} else {
|
} else {
|
||||||
@@ -47,8 +47,10 @@ const dialogDrag = Vue.directive('dialogDrag', {
|
|||||||
styL = +styL.replace(/\px/g, '')
|
styL = +styL.replace(/\px/g, '')
|
||||||
styT = +styT.replace(/\px/g, '')
|
styT = +styT.replace(/\px/g, '')
|
||||||
}
|
}
|
||||||
|
const oldMousemove = document.onmousemove
|
||||||
|
|
||||||
document.onmousemove = function(e) {
|
document.onmousemove = function (e) {
|
||||||
|
oldMousemove(e)
|
||||||
// 通过事件委托,计算移动的距离
|
// 通过事件委托,计算移动的距离
|
||||||
let left = e.clientX - disX
|
let left = e.clientX - disX
|
||||||
const top = e.clientY - disY
|
const top = e.clientY - disY
|
||||||
@@ -70,8 +72,8 @@ const dialogDrag = Vue.directive('dialogDrag', {
|
|||||||
dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;`
|
dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;`
|
||||||
}
|
}
|
||||||
|
|
||||||
document.onmouseup = function(e) {
|
document.onmouseup = function (e) {
|
||||||
document.onmousemove = null
|
document.onmousemove = oldMousemove
|
||||||
document.onmouseup = null
|
document.onmouseup = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,13 +14,13 @@
|
|||||||
|
|
||||||
<div class="right-menu">
|
<div class="right-menu">
|
||||||
<div class="navbar-flex-wrapper">
|
<div class="navbar-flex-wrapper">
|
||||||
<template v-if="device!=='mobile'">
|
<template v-if="device !== 'mobile'">
|
||||||
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
||||||
</template>
|
</template>
|
||||||
<!-- <div class="avatar-container">
|
<!-- <div class="avatar-container">
|
||||||
<img src="@/assets/avatar.png" class="user-avatar">
|
<img src="@/assets/avatar.png" class="user-avatar">
|
||||||
</div> -->
|
</div> -->
|
||||||
<div style="margin-left:20px;">
|
<div style="margin-left: 20px">
|
||||||
<el-dropdown class="dropdown-container" trigger="click">
|
<el-dropdown class="dropdown-container" trigger="click">
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
{{ `${name} (${userTypeShortName})` }}
|
{{ `${name} (${userTypeShortName})` }}
|
||||||
@@ -30,10 +30,20 @@
|
|||||||
</span>
|
</span>
|
||||||
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
||||||
<el-dropdown-item v-if="!isReviewer">
|
<el-dropdown-item v-if="!isReviewer">
|
||||||
<span style="display:block;" @click="editInfo">{{$t('system:navbar:button:Profile')}}</span>
|
<span style="display: block" @click="editInfo">{{
|
||||||
|
$t('system:navbar:button:Profile')
|
||||||
|
}}</span>
|
||||||
|
</el-dropdown-item>
|
||||||
|
<!-- 切换角色 -->
|
||||||
|
<el-dropdown-item divided v-if="hasRole">
|
||||||
|
<span style="display: block" @click="openToggleRole">{{
|
||||||
|
$t('system:navbar:button:toggleRole')
|
||||||
|
}}</span>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item divided>
|
<el-dropdown-item divided>
|
||||||
<span style="display:block;" @click="logout">{{$t('system:navbar:button:Log Out')}}</span>
|
<span style="display: block" @click="logout">{{
|
||||||
|
$t('system:navbar:button:Log Out')
|
||||||
|
}}</span>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
@@ -41,38 +51,119 @@
|
|||||||
<TopLang></TopLang>
|
<TopLang></TopLang>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<toggleRole
|
||||||
|
v-if="toggleRoleVisible"
|
||||||
|
:visible.sync="toggleRoleVisible"
|
||||||
|
:loading="toggleRoleLoading"
|
||||||
|
@save="loginByRole"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapGetters, mapMutations} from 'vuex'
|
import { mapGetters, mapMutations } from 'vuex'
|
||||||
import Breadcrumb from '@/components/Breadcrumb'
|
import Breadcrumb from '@/components/Breadcrumb'
|
||||||
import Hamburger from '@/components/Hamburger'
|
import Hamburger from '@/components/Hamburger'
|
||||||
import Screenfull from '@/components/Screenfull'
|
import Screenfull from '@/components/Screenfull'
|
||||||
import TopLang from './topLang'
|
import TopLang from './topLang'
|
||||||
|
import toggleRole from '@/components/toggleRole'
|
||||||
|
import { resetRouter } from '@/router'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Breadcrumb,
|
Breadcrumb,
|
||||||
Hamburger,
|
Hamburger,
|
||||||
Screenfull,
|
Screenfull,
|
||||||
TopLang
|
TopLang,
|
||||||
|
toggleRole,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isReviewer: false,
|
isReviewer: false,
|
||||||
userTypeShortName: zzSessionStorage.getItem('userTypeShortName')
|
toggleRoleVisible: false,
|
||||||
|
toggleRoleLoading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['sidebar', 'name', 'device'])
|
...mapGetters(['sidebar', 'name', 'device', 'userTypeShortName']),
|
||||||
|
roles() {
|
||||||
|
return this.$store.state.user.roles
|
||||||
|
},
|
||||||
|
hasRole() {
|
||||||
|
return this.roles && this.roles.length > 1
|
||||||
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.isReviewer = JSON.parse(zzSessionStorage.getItem('IsReviewer'))
|
// this.isReviewer = JSON.parse(zzSessionStorage.getItem('IsReviewer'))
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||||
|
openToggleRole() {
|
||||||
|
this.$store.dispatch('user/getUserInfo').then((res) => {
|
||||||
|
this.toggleRoleVisible = true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
loginByRole(userRoleId) {
|
||||||
|
if (this.$store.state.user.userId === userRoleId) {
|
||||||
|
this.toggleRoleVisible = false
|
||||||
|
this.toggleRoleLoading = false
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
this.toggleRoleLoading = true
|
||||||
|
this.$store
|
||||||
|
.dispatch('user/loginByRole', { userRoleId })
|
||||||
|
.then((res) => {
|
||||||
|
if (res) {
|
||||||
|
this.$store
|
||||||
|
.dispatch('permission/generateRoutes')
|
||||||
|
.then(async (res) => {
|
||||||
|
if (res && res.length > 0) {
|
||||||
|
resetRouter()
|
||||||
|
await this.$store.dispatch('global/getNoticeList')
|
||||||
|
this.$router.addRoutes(res)
|
||||||
|
this.toggleRoleLoading = false
|
||||||
|
if (this.loginType === 'DevOps') {
|
||||||
|
this.$router.replace({ path: res[0].path })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (this.hasPermi(['role:radmin'])) {
|
||||||
|
this.$router.replace({ path: res[0].path })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
this.hasPermi([
|
||||||
|
'role:air',
|
||||||
|
'role:rpm',
|
||||||
|
'role:rcrc',
|
||||||
|
'role:rir',
|
||||||
|
])
|
||||||
|
) {
|
||||||
|
history.replaceState(null, null, '/trials/trials-list')
|
||||||
|
history.go(0)
|
||||||
|
} else {
|
||||||
|
history.replaceState(null, null, '/trials/trials-workbench')
|
||||||
|
history.go(0)
|
||||||
|
}
|
||||||
|
this.toggleRoleVisible = false
|
||||||
|
this.toggleRoleLoading = false
|
||||||
|
this.$EventBus.$emit('reload')
|
||||||
|
} else {
|
||||||
|
// 此账户暂未配置菜单权限,请联系管理员处理后再登录。
|
||||||
|
this.toggleRoleLoading = false
|
||||||
|
this.$message.warning(this.$t('login:message:login2'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err)
|
||||||
|
this.toggleRoleLoading = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.toggleRoleLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.toggleRoleLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
toggleSideBar() {
|
toggleSideBar() {
|
||||||
this.$store.dispatch('app/toggleSideBar')
|
this.$store.dispatch('app/toggleSideBar')
|
||||||
},
|
},
|
||||||
@@ -84,23 +175,23 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$router.push(`/login`)
|
this.$router.push(`/login`)
|
||||||
}
|
}
|
||||||
this.$i18n.locale = 'zh'
|
// //this.$i18n.locale = 'zh'
|
||||||
this.setLanguage('zh')
|
// //this.setLanguage('zh')
|
||||||
this.$updateDictionary()
|
this.$updateDictionary()
|
||||||
},
|
},
|
||||||
editInfo() {
|
editInfo() {
|
||||||
this.$router.push({ name: 'BaiscInfo' })
|
this.$router.push({ name: 'BaiscInfo' })
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.navbar-flex-wrapper{
|
.navbar-flex-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.navbar {
|
.navbar {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import Logo from './Logo'
|
import Logo from './Logo'
|
||||||
import SidebarItem from './SidebarItem'
|
import SidebarItem from './SidebarItem'
|
||||||
import variables from '@/styles/variables.scss'
|
import variables from '@/styles/variables.module.scss'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { SidebarItem, Logo },
|
components: { SidebarItem, Logo },
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
/deep/ {
|
::v-deep {
|
||||||
.el-scrollbar__bar {
|
.el-scrollbar__bar {
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "~@/styles/mixin.scss";
|
@import "~@/styles/mixin.scss";
|
||||||
@import "~@/styles/variables.scss";
|
@import "~@/styles/variables.module.scss";
|
||||||
|
|
||||||
.app-wrapper {
|
.app-wrapper {
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
|
|||||||
+13
-7
@@ -174,7 +174,7 @@ var _vm
|
|||||||
async function VueInit() {
|
async function VueInit() {
|
||||||
var params
|
var params
|
||||||
var res
|
var res
|
||||||
if (~window.location.href.indexOf('/readingDicoms') || ~window.location.href.indexOf('/noneDicomReading') || ~window.location.href.indexOf('/criterionquestions') || ~window.location.href.indexOf('/petct')) {
|
if (~window.location.href.indexOf('/readingDicoms') || ~window.location.href.indexOf('/noneDicomReading') || ~window.location.href.indexOf('/criterionquestions') || ~window.location.href.indexOf('/petct') || ~window.location.href.indexOf('/fusion')) {
|
||||||
params = $q('TrialReadingCriterionId')
|
params = $q('TrialReadingCriterionId')
|
||||||
res = await getBasicDataAllSelect(params)
|
res = await getBasicDataAllSelect(params)
|
||||||
} else if (~window.location.href.indexOf('/ecrfPreview')) {
|
} else if (~window.location.href.indexOf('/ecrfPreview')) {
|
||||||
@@ -293,6 +293,7 @@ async function VueInit() {
|
|||||||
}()
|
}()
|
||||||
_vm.$forceUpdate()
|
_vm.$forceUpdate()
|
||||||
}
|
}
|
||||||
|
Vue.prototype.$EventBus = new Vue()
|
||||||
Vue.prototype.$path = []
|
Vue.prototype.$path = []
|
||||||
var t = function (key) {
|
var t = function (key) {
|
||||||
if (!~Vue.prototype.$path.indexOf(key)) {
|
if (!~Vue.prototype.$path.indexOf(key)) {
|
||||||
@@ -402,8 +403,12 @@ async function VueInit() {
|
|||||||
}
|
}
|
||||||
_vm.$store.dispatch('user/logout').then(res => {
|
_vm.$store.dispatch('user/logout').then(res => {
|
||||||
// window.location.href = `/login`
|
// window.location.href = `/login`
|
||||||
if (_vm.$msgbox) {
|
try {
|
||||||
_vm.$msgbox.close();
|
if (_vm.$msgbox && _vm.$msgbox.close) {
|
||||||
|
_vm.$msgbox.close();
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
}
|
}
|
||||||
_vm.$FB.close();
|
_vm.$FB.close();
|
||||||
_vm.$FBT.close();
|
_vm.$FBT.close();
|
||||||
@@ -446,18 +451,18 @@ async function VueInit() {
|
|||||||
beforeClose: (action, instance, done) => {
|
beforeClose: (action, instance, done) => {
|
||||||
if (action === 'confirm') {
|
if (action === 'confirm') {
|
||||||
if (!_vm.unlock.my_username) {
|
if (!_vm.unlock.my_username) {
|
||||||
_vm.$alert(_vm.$t("env:lock:msgBox:iupUser"))
|
_vm.$message.warning(_vm.$t("env:lock:msgBox:iupUser"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!_vm.unlock.my_password) {
|
if (!_vm.unlock.my_password) {
|
||||||
_vm.$alert(_vm.$t("env:lock:msgBox:inpPassword"))
|
_vm.$message.warning(_vm.$t("env:lock:msgBox:inpPassword"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var my_username = zzSessionStorage.getItem('my_username')
|
var my_username = zzSessionStorage.getItem('my_username')
|
||||||
var my_password = zzSessionStorage.getItem('my_password')
|
var my_password = zzSessionStorage.getItem('my_password')
|
||||||
let my_userid = zzSessionStorage.getItem('userId')
|
let my_userid = zzSessionStorage.getItem('userId')
|
||||||
let my_EMail = zzSessionStorage.getItem('my_EMail')
|
let my_EMail = zzSessionStorage.getItem('my_EMail') || ''
|
||||||
if (md5(_vm.unlock.my_password) === my_password && my_username === _vm.unlock.my_username) {
|
if (md5(_vm.unlock.my_password) === my_password && (my_username === _vm.unlock.my_username || my_EMail.toUpperCase() === vm.unlock.my_username.toUpperCase())) {
|
||||||
resetReadingRestTime().then(() => {
|
resetReadingRestTime().then(() => {
|
||||||
})
|
})
|
||||||
const closeLock = (_vm) => {
|
const closeLock = (_vm) => {
|
||||||
@@ -596,3 +601,4 @@ VueInit()
|
|||||||
// });
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
export default _vm
|
||||||
+36
-22
@@ -1,58 +1,57 @@
|
|||||||
import router from './router'
|
import router from './router'
|
||||||
|
import { resetRouter } from '@/router'
|
||||||
import store from './store'
|
import store from './store'
|
||||||
// import { Message } from 'element-ui'
|
// import { Message } from 'element-ui'
|
||||||
import NProgress from 'nprogress'
|
import NProgress from 'nprogress'
|
||||||
import 'nprogress/nprogress.css'
|
import 'nprogress/nprogress.css'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken, removeToken } from '@/utils/auth'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { OSSclient } from './utils/oss'
|
import { OSSclient } from './utils/oss'
|
||||||
import WHITELIST from "./utils/whiteList"
|
import WHITELIST from './utils/whiteList'
|
||||||
import { getTrialExtralConfig } from '@/api/trials'
|
import { getTrialExtralConfig } from '@/api/trials'
|
||||||
// import getPageTitle from '@/utils/get-page-title'
|
// import getPageTitle from '@/utils/get-page-title'
|
||||||
|
|
||||||
NProgress.configure({ showSpinner: false })
|
NProgress.configure({ showSpinner: false })
|
||||||
|
|
||||||
const whiteList = WHITELIST
|
const whiteList = WHITELIST
|
||||||
store.state.trials.whiteList = whiteList;
|
store.state.trials.whiteList = whiteList
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async(to, from, next) => {
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
// document.title = getPageTitle(to.meta.title)
|
// document.title = getPageTitle(to.meta.title) store.state.trials.whiteList.indexOf(to.path) === -1
|
||||||
if (!to.query.trialId) {
|
if (!to.query.trialId) {
|
||||||
store.dispatch('trials/setConfig', {})
|
store.dispatch('trials/setConfig', {})
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
to.query.trialId &&
|
to.query.trialId &&
|
||||||
to.query.trialId !==
|
to.query.trialId !==
|
||||||
store.state.trials.config.trialId &&
|
store.state.trials.config.trialId
|
||||||
store.state.trials.whiteList.indexOf(to.path) === -1
|
|
||||||
) {
|
) {
|
||||||
console.log(to.query.path)
|
const res = await getTrialExtralConfig({
|
||||||
let res = await getTrialExtralConfig({
|
TrialId: to.query.trialId
|
||||||
TrialId: to.query.trialId,
|
|
||||||
})
|
})
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
store.dispatch('trials/setConfig', {
|
store.dispatch('trials/setConfig', {
|
||||||
trialId: to.query.trialId,
|
trialId: to.query.trialId,
|
||||||
...res.Result,
|
...res.Result
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} if (!to.query.trialId) {
|
}
|
||||||
|
if (!to.query.trialId) {
|
||||||
store.dispatch('trials/setConfig', {})
|
store.dispatch('trials/setConfig', {})
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
to.query.trialId &&
|
to.query.trialId &&
|
||||||
to.query.trialId !==
|
to.query.trialId !==
|
||||||
store.state.trials.config.trialId &&
|
store.state.trials.config.trialId
|
||||||
store.state.trials.whiteList.indexOf(to.path) === -1
|
|
||||||
) {
|
) {
|
||||||
let res = await getTrialExtralConfig({
|
const res = await getTrialExtralConfig({
|
||||||
TrialId: to.query.trialId,
|
TrialId: to.query.trialId
|
||||||
})
|
})
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
store.dispatch('trials/setConfig', {
|
store.dispatch('trials/setConfig', {
|
||||||
trialId: to.query.trialId,
|
trialId: to.query.trialId,
|
||||||
...res.Result,
|
...res.Result
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,14 +62,24 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
if (hasToken) {
|
if (hasToken) {
|
||||||
if (to.path === '/login' || to.path === '/recompose' || to.path === '/email-recompose' || to.path === '/error' || to.path === '/ReviewersResearchForm' || to.path === '/ReviewersResearch') {
|
if (to.path === '/login' || to.path === '/recompose' || to.path === '/email-recompose' || to.path === '/error' || to.path === '/ReviewersResearchForm' || to.path === '/ReviewersResearch') {
|
||||||
if (to.path === '/ReviewersResearch') {
|
if (to.path === '/ReviewersResearch') {
|
||||||
await store.dispatch('user/logout')
|
|
||||||
await OSSclient()
|
await OSSclient()
|
||||||
|
await store.dispatch('user/logout')
|
||||||
}
|
}
|
||||||
if (to.path === '/ReviewersResearchForm') {
|
if (to.path === '/ReviewersResearchForm') {
|
||||||
await OSSclient()
|
await OSSclient()
|
||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
|
} else if (from.path === '/researchForm') {
|
||||||
|
removeToken()
|
||||||
|
const lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||||
|
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
|
||||||
|
NProgress.done()
|
||||||
|
} else if (from.path === '/researchDetail_m') {
|
||||||
|
removeToken()
|
||||||
|
const lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||||
|
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
|
||||||
|
NProgress.done()
|
||||||
} else {
|
} else {
|
||||||
await OSSclient()
|
await OSSclient()
|
||||||
const hasGetUserInfo = store.getters.userId
|
const hasGetUserInfo = store.getters.userId
|
||||||
@@ -80,10 +89,13 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
try {
|
try {
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
await store.dispatch('user/getInfo')
|
await store.dispatch('user/getInfo')
|
||||||
|
await store.dispatch('user/getUserInfo')
|
||||||
const accessRoutes = await store.dispatch('permission/generateRoutes')
|
const accessRoutes = await store.dispatch('permission/generateRoutes')
|
||||||
|
resetRouter()
|
||||||
router.addRoutes(accessRoutes)
|
router.addRoutes(accessRoutes)
|
||||||
next({ ...to, replace: true })
|
next({ ...to, replace: true })
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
// 删除token并进入登录页面以重新登录
|
// 删除token并进入登录页面以重新登录
|
||||||
await store.dispatch('user/resetToken')
|
await store.dispatch('user/resetToken')
|
||||||
next(`/login?redirect=${to.path}`)
|
next(`/login?redirect=${to.path}`)
|
||||||
@@ -95,10 +107,10 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
/* has no token*/
|
/* has no token*/
|
||||||
if (whiteList.indexOf(to.path) !== -1) {
|
if (whiteList.indexOf(to.path) !== -1) {
|
||||||
if (to.path === '/researchLogin') {
|
if (to.path === '/researchLogin') {
|
||||||
console.log(to)
|
const lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||||
const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
|
const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
|
||||||
if (flag) {
|
if (flag) {
|
||||||
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${to.query.lang}`)
|
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
|
||||||
} else {
|
} else {
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
@@ -111,10 +123,12 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (to.path === '/researchForm') {
|
if (to.path === '/researchForm') {
|
||||||
next(`/researchLogin?`)
|
const lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||||
|
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
} else if (to.path === '/researchDetail_m') {
|
} else if (to.path === '/researchDetail_m') {
|
||||||
next(`/researchLogin_m?`)
|
const lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||||
|
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
} else if (to.path === '/ReviewersResearchForm') {
|
} else if (to.path === '/ReviewersResearchForm') {
|
||||||
next(`/ReviewersResearch?`)
|
next(`/ReviewersResearch?`)
|
||||||
|
|||||||
@@ -50,6 +50,11 @@ export const constantRoutes = [
|
|||||||
component: () => import('@/views/login/index'),
|
component: () => import('@/views/login/index'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// path: '/test',
|
||||||
|
// component: () => import('@/views/test/index'),
|
||||||
|
// hidden: true
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
path: '/resetpassword',
|
path: '/resetpassword',
|
||||||
component: () => import('@/views/forgetpassword/index'),
|
component: () => import('@/views/forgetpassword/index'),
|
||||||
@@ -139,6 +144,12 @@ export const constantRoutes = [
|
|||||||
hidden: true,
|
hidden: true,
|
||||||
component: () => import('@/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt')
|
component: () => import('@/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/fusion',
|
||||||
|
name: 'fusion',
|
||||||
|
hidden: true,
|
||||||
|
component: () => import('@/views/trials/trials-panel/reading/dicoms/components/Fusion/demo/index')
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/historyScreenshot',
|
path: '/historyScreenshot',
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
title: 'IRCIS',
|
title: 'IRC Imaging System',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean} true | false
|
* @type {boolean} true | false
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ const getters = {
|
|||||||
device: state => state.app.device,
|
device: state => state.app.device,
|
||||||
token: state => state.user.token,
|
token: state => state.user.token,
|
||||||
name: state => state.user.name,
|
name: state => state.user.name,
|
||||||
|
userTypeShortName: state => state.user.userTypeShortName,
|
||||||
permissions: state => state.user.permissions,
|
permissions: state => state.user.permissions,
|
||||||
tree: state => state.user.tree,
|
tree: state => state.user.tree,
|
||||||
userName: state => state.user.userName,
|
userName: state => state.user.userName,
|
||||||
userId: state => state.user.userId,
|
userId: state => state.user.userId,
|
||||||
|
identityUserId: state => state.user.identityUserId,
|
||||||
routes: state => state.permission.routes,
|
routes: state => state.permission.routes,
|
||||||
asyncRoutes: state => state.permission.addRoutes,
|
asyncRoutes: state => state.permission.addRoutes,
|
||||||
visitedViews: state => state.tagsView.visitedViews,
|
visitedViews: state => state.tagsView.visitedViews,
|
||||||
@@ -45,6 +47,9 @@ const getters = {
|
|||||||
language: state => state.lang.language,
|
language: state => state.lang.language,
|
||||||
TotalNeedSignSystemDocCount: state => state.user.TotalNeedSignSystemDocCount,
|
TotalNeedSignSystemDocCount: state => state.user.TotalNeedSignSystemDocCount,
|
||||||
TotalNeedSignTrialDocCount: state => state.user.TotalNeedSignTrialDocCount,
|
TotalNeedSignTrialDocCount: state => state.user.TotalNeedSignTrialDocCount,
|
||||||
TrialStatusStr: state => state.user.TrialStatusStr
|
IsFirstSysDocNeedSign: state => state.user.IsFirstSysDocNeedSign,
|
||||||
|
TrialStatusStr: state => state.user.TrialStatusStr,
|
||||||
|
lastViewportTaskId: state => state.noneDicomReview.lastViewportTaskId,
|
||||||
|
currentTaskState: state => state.noneDicomReview.currentTaskState
|
||||||
}
|
}
|
||||||
export default getters
|
export default getters
|
||||||
|
|||||||
+3
-2
@@ -12,7 +12,7 @@ import trials from './modules/trials'
|
|||||||
import financials from './modules/financials'
|
import financials from './modules/financials'
|
||||||
import reading from './modules/reading'
|
import reading from './modules/reading'
|
||||||
import lang from './modules/lang'
|
import lang from './modules/lang'
|
||||||
|
import noneDicomReview from './modules/noneDicomReview'
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
|
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
@@ -27,7 +27,8 @@ const store = new Vuex.Store({
|
|||||||
trials,
|
trials,
|
||||||
financials,
|
financials,
|
||||||
reading,
|
reading,
|
||||||
lang
|
lang,
|
||||||
|
noneDicomReview
|
||||||
},
|
},
|
||||||
getters
|
getters
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
const getDefaultState = () => {
|
||||||
|
return {
|
||||||
|
lastViewportTaskId: null,
|
||||||
|
currentTaskState: 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const state = getDefaultState
|
||||||
|
|
||||||
|
const mutations = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
const actions = {
|
||||||
|
setLastViewportTaskId({ state }, id) {
|
||||||
|
state.lastViewportTaskId = id
|
||||||
|
},
|
||||||
|
setCurrentTaskState({ state }, taskState) {
|
||||||
|
state.currentTaskState = taskState
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
namespaced: true,
|
||||||
|
state,
|
||||||
|
mutations,
|
||||||
|
actions
|
||||||
|
}
|
||||||
|
|
||||||
@@ -70,6 +70,12 @@ function getQuestions(questions) {
|
|||||||
answerObj.angle = angle
|
answerObj.angle = angle
|
||||||
answerObj.saveTypeEnum = isNaN(parseFloat(angle)) ? 1 : 2
|
answerObj.saveTypeEnum = isNaN(parseFloat(angle)) ? 1 : 2
|
||||||
}
|
}
|
||||||
|
} else if (criterionType === 21) {
|
||||||
|
// MRI-PDFF
|
||||||
|
let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj)
|
||||||
|
answerObj.isMeasurable = isMeasurable
|
||||||
|
answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj)
|
||||||
|
answerObj.saveTypeEnum = parseInt(isMeasurable) === 1 && isNaN(parseFloat(answerObj.mean)) ? 1 : 2
|
||||||
} else {
|
} else {
|
||||||
answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj)
|
answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj)
|
||||||
answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj)
|
answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj)
|
||||||
@@ -507,6 +513,7 @@ const actions = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMeasuredData({ state }, visitTaskId) {
|
getMeasuredData({ state }, visitTaskId) {
|
||||||
|
console.log('getMeasuredData')
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId)
|
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId)
|
||||||
if (state.visitTaskList[index].measureDataInit) {
|
if (state.visitTaskList[index].measureDataInit) {
|
||||||
@@ -523,6 +530,13 @@ const actions = {
|
|||||||
el.OtherMeasureData = JSON.parse(el.OtherMeasureData)
|
el.OtherMeasureData = JSON.parse(el.OtherMeasureData)
|
||||||
el.OtherMeasureData.data.remark = el.OrderMarkName
|
el.OtherMeasureData.data.remark = el.OrderMarkName
|
||||||
}
|
}
|
||||||
|
// if (el.TableQuestionMarkList.length > 0) {
|
||||||
|
// let list = el.TableQuestionMarkList.map(i=>{
|
||||||
|
// i.MeasureData = i.MeasureData ? JSON.parse(i.MeasureData) : ''
|
||||||
|
// return i
|
||||||
|
// })
|
||||||
|
// el.TableQuestionMarkList = list
|
||||||
|
// }
|
||||||
arr.push(el)
|
arr.push(el)
|
||||||
})
|
})
|
||||||
state.visitTaskList[index].MeasureData = arr
|
state.visitTaskList[index].MeasureData = arr
|
||||||
@@ -606,6 +620,13 @@ const actions = {
|
|||||||
el.MeasureData = JSON.parse(el.MeasureData)
|
el.MeasureData = JSON.parse(el.MeasureData)
|
||||||
el.MeasureData.data.remark = el.OrderMarkName
|
el.MeasureData.data.remark = el.OrderMarkName
|
||||||
}
|
}
|
||||||
|
// if (el.TableQuestionMarkList.length > 0) {
|
||||||
|
// let list = el.TableQuestionMarkList.map(i=>{
|
||||||
|
// i.MeasureData = i.MeasureData ? JSON.parse(i.MeasureData) : ''
|
||||||
|
// return i
|
||||||
|
// })
|
||||||
|
// el.TableQuestionMarkList = list
|
||||||
|
// }
|
||||||
arr.push(el)
|
arr.push(el)
|
||||||
})
|
})
|
||||||
state.visitTaskList[index].MeasureData = arr
|
state.visitTaskList[index].MeasureData = arr
|
||||||
@@ -623,27 +644,40 @@ const actions = {
|
|||||||
resolve(noneDicomMeasureData)
|
resolve(noneDicomMeasureData)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addMeasuredData({ state }, obj) {
|
addMeasuredData({ state }, obj) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
|
const criterionType = parseInt(localStorage.getItem('CriterionType'))
|
||||||
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
||||||
var measureData = state.visitTaskList[index].MeasureData
|
var measureData = state.visitTaskList[index].MeasureData
|
||||||
// var idx = measureData.findIndex(item => item.MeasureData.uuid === obj.data.MeasureData.data.uuid)
|
// var idx = measureData.findIndex(item => item.MeasureData.uuid === obj.data.MeasureData.data.uuid)
|
||||||
var idx = measureData.findIndex(item => item.QuestionId === obj.data.QuestionId && item.RowIndex === obj.data.RowIndex)
|
|
||||||
if (idx > -1) {
|
if (criterionType === 21) {
|
||||||
for (const k in state.visitTaskList[index].MeasureData[idx]) {
|
let i = measureData.findIndex(i=>i.TableQuestionId === obj.data.TableQuestionId)
|
||||||
if (k !== 'Id' && obj.data[k]) {
|
if (i > -1) {
|
||||||
state.visitTaskList[index].MeasureData[idx][k] = obj.data[k]
|
for (const k in state.visitTaskList[index].MeasureData[i]) {
|
||||||
|
if (k !== 'Id' && obj.data[k]) {
|
||||||
|
state.visitTaskList[index].MeasureData[i][k] = obj.data[k]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
state.visitTaskList[index].MeasureData.push(obj.data)
|
||||||
}
|
}
|
||||||
|
|
||||||
// state.visitTaskList[index].MeasureData[idx].MeasureData = obj.data.MeasureData
|
|
||||||
console.log('更新标记成功', idx)
|
|
||||||
} else {
|
} else {
|
||||||
state.visitTaskList[index].MeasureData.push(obj.data)
|
var idx = measureData.findIndex(item => item.QuestionId === obj.data.QuestionId && item.RowIndex === obj.data.RowIndex)
|
||||||
console.log('新增标记成功')
|
if (idx > -1) {
|
||||||
|
for (const k in state.visitTaskList[index].MeasureData[idx]) {
|
||||||
|
if (k !== 'Id' && obj.data[k]) {
|
||||||
|
state.visitTaskList[index].MeasureData[idx][k] = obj.data[k]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log('更新标记成功', idx)
|
||||||
|
} else {
|
||||||
|
state.visitTaskList[index].MeasureData.push(obj.data)
|
||||||
|
console.log('新增标记成功')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sessionStorage.setItem('visitTaskList', state.visitTaskList.length > 0 ? JSON.stringify(state.visitTaskList) : '')
|
// sessionStorage.setItem('visitTaskList', state.visitTaskList.length > 0 ? JSON.stringify(state.visitTaskList) : '')
|
||||||
console.log(state.visitTaskList)
|
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -738,32 +772,45 @@ const actions = {
|
|||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
||||||
var measureData = state.visitTaskList[index].MeasureData
|
var measureData = state.visitTaskList[index].MeasureData
|
||||||
|
const criterionType = parseInt(localStorage.getItem('CriterionType'))
|
||||||
// var uuid = obj.measureData.data.uuid
|
if (criterionType === 21) {
|
||||||
// var idx = measureData.findIndex(item => item.MeasureData && item.MeasureData.data && item.MeasureData.data.uuid === uuid)
|
|
||||||
var idx = measureData.findIndex(item => item.QuestionId === obj.questionId && item.RowIndex === obj.rowIndex)
|
|
||||||
if (idx > -1) {
|
|
||||||
if (measureData[idx].FristAddTaskId) {
|
|
||||||
measureData[idx].MeasureData = ''
|
|
||||||
console.log('清除标记成功', idx)
|
|
||||||
} else {
|
|
||||||
measureData.splice(idx, 1)
|
|
||||||
console.log('移除标记成功', idx)
|
|
||||||
}
|
|
||||||
state.visitTaskList[index].MeasureData = measureData
|
|
||||||
} else if (obj.orderMarkName) {
|
|
||||||
const i = measureData.findIndex(item => item.QuestionId === obj.questionId && item.OrderMarkName === obj.orderMarkName)
|
const i = measureData.findIndex(item => item.QuestionId === obj.questionId && item.OrderMarkName === obj.orderMarkName)
|
||||||
if (i > -1) {
|
if (i > -1) {
|
||||||
if (measureData[i].FristAddTaskId) {
|
if (measureData[i].FristAddTaskId) {
|
||||||
measureData[i].MeasureData = ''
|
measureData[i].MeasureData = ''
|
||||||
console.log('清除标记成功', i)
|
console.log('清除标记成功', i)
|
||||||
} else {
|
} else {
|
||||||
measureData.splice(i, 1)
|
measureData.splice(i, 1)
|
||||||
console.log('移除标记成功', i)
|
console.log('移除标记成功', i)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
state.visitTaskList[index].MeasureData = measureData
|
state.visitTaskList[index].MeasureData = measureData
|
||||||
|
} else {
|
||||||
|
var idx = measureData.findIndex(item => item.QuestionId === obj.questionId && item.RowIndex === obj.rowIndex)
|
||||||
|
if (idx > -1) {
|
||||||
|
if (measureData[idx].FristAddTaskId) {
|
||||||
|
measureData[idx].MeasureData = ''
|
||||||
|
console.log('清除标记成功', idx)
|
||||||
|
} else {
|
||||||
|
measureData.splice(idx, 1)
|
||||||
|
console.log('移除标记成功', idx)
|
||||||
|
}
|
||||||
|
state.visitTaskList[index].MeasureData = measureData
|
||||||
|
} else if (obj.orderMarkName) {
|
||||||
|
const i = measureData.findIndex(item => item.QuestionId === obj.questionId && item.OrderMarkName === obj.orderMarkName)
|
||||||
|
if (i > -1) {
|
||||||
|
if (measureData[i].FristAddTaskId) {
|
||||||
|
measureData[i].MeasureData = ''
|
||||||
|
console.log('清除标记成功', i)
|
||||||
|
} else {
|
||||||
|
measureData.splice(i, 1)
|
||||||
|
console.log('移除标记成功', i)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
state.visitTaskList[index].MeasureData = measureData
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (idx > -1) {
|
// if (idx > -1) {
|
||||||
// measureData.splice(idx, 1)
|
// measureData.splice(idx, 1)
|
||||||
|
|
||||||
@@ -815,6 +862,7 @@ const actions = {
|
|||||||
const data = {}
|
const data = {}
|
||||||
data.StudyId = study.StudyId
|
data.StudyId = study.StudyId
|
||||||
data.StudyCode = study.StudyCode
|
data.StudyCode = study.StudyCode
|
||||||
|
data.StudyName = study.StudyName
|
||||||
data.Modalities = study.Modalities
|
data.Modalities = study.Modalities
|
||||||
data.SeriesCount = study.SeriesCount
|
data.SeriesCount = study.SeriesCount
|
||||||
data.InstanceCount = study.InstanceCount
|
data.InstanceCount = study.InstanceCount
|
||||||
@@ -840,6 +888,12 @@ const actions = {
|
|||||||
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
||||||
imageIds.push(imageId)
|
imageIds.push(imageId)
|
||||||
})
|
})
|
||||||
|
} else if (study.IsCriticalSequence && instance.KeyFramesList.length === 0) {
|
||||||
|
// 兼容保存标记数据未存NumberOfFrames的情况,按序列展示
|
||||||
|
for (let i = 0; i < instance.NumberOfFrames; i++) {
|
||||||
|
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
||||||
|
imageIds.push(imageId)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < instance.NumberOfFrames; i++) {
|
for (let i = 0; i < instance.NumberOfFrames; i++) {
|
||||||
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
||||||
@@ -1034,7 +1088,7 @@ const actions = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setImageloadedInfo({ state }, obj) {
|
setImageloadedInfo({ state }, obj) {
|
||||||
console.log('setImageloadedInfo', obj)
|
// console.log('setImageloadedInfo', obj)
|
||||||
// if(obj.instance === '20dd8fc9-51b0-ec63-942b-cb3006c72650')
|
// if(obj.instance === '20dd8fc9-51b0-ec63-942b-cb3006c72650')
|
||||||
// var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
// var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
||||||
// // const prefetchInstanceCount = state.visitTaskList[index].StudyList[obj.studyIndex].SeriesList[obj.seriesIndex].prefetchInstanceCount
|
// // const prefetchInstanceCount = state.visitTaskList[index].StudyList[obj.studyIndex].SeriesList[obj.seriesIndex].prefetchInstanceCount
|
||||||
|
|||||||
+131
-25
@@ -1,5 +1,6 @@
|
|||||||
import { getToken, setToken, removeToken, setName, removeName } from '@/utils/auth'
|
import { getToken, setToken, removeToken, setName, removeName } from '@/utils/auth'
|
||||||
import { login, loginOut, getUserMenuTree, getUserPermissions } from '@/api/user'
|
import { login, loginOut, getUserMenuTree, getUserPermissions, getUserLoginRoleList, loginSelectUserRole } from '@/api/user'
|
||||||
|
import { getUser } from '@/api/admin'
|
||||||
|
|
||||||
import { resetRouter } from '@/router'
|
import { resetRouter } from '@/router'
|
||||||
import md5 from 'js-md5'
|
import md5 from 'js-md5'
|
||||||
@@ -7,22 +8,29 @@ const getDefaultState = () => {
|
|||||||
return {
|
return {
|
||||||
token: getToken(),
|
token: getToken(),
|
||||||
name: '',
|
name: '',
|
||||||
|
userTypeShortName: "",
|
||||||
userName: '',
|
userName: '',
|
||||||
userId: '',
|
userId: '',
|
||||||
|
identityUserId: '',
|
||||||
avatar: '',
|
avatar: '',
|
||||||
permissions: [],
|
permissions: [],
|
||||||
tree: [],
|
tree: [],
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
TotalNeedSignSystemDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
|
TotalNeedSignSystemDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
|
||||||
TotalNeedSignTrialDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
|
TotalNeedSignTrialDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
|
||||||
|
IsFirstSysDocNeedSign: false,
|
||||||
TrialStatusStr: null,
|
TrialStatusStr: null,
|
||||||
isTestUser: false
|
isTestUser: false,
|
||||||
|
roles: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const state = getDefaultState()
|
const state = getDefaultState()
|
||||||
|
|
||||||
const mutations = {
|
const mutations = {
|
||||||
|
SET_ROLES: (state, roles) => {
|
||||||
|
state.roles = roles
|
||||||
|
},
|
||||||
RESET_STATE: (state) => {
|
RESET_STATE: (state) => {
|
||||||
Object.assign(state, getDefaultState())
|
Object.assign(state, getDefaultState())
|
||||||
},
|
},
|
||||||
@@ -34,6 +42,9 @@ const mutations = {
|
|||||||
SET_NAME: (state, name) => {
|
SET_NAME: (state, name) => {
|
||||||
state.name = name
|
state.name = name
|
||||||
},
|
},
|
||||||
|
SET_USERTYPESHORTNAME: (state, userTypeShortName) => {
|
||||||
|
state.userTypeShortName = userTypeShortName
|
||||||
|
},
|
||||||
SET_USERNAME: (state, name) => {
|
SET_USERNAME: (state, name) => {
|
||||||
state.userName = name
|
state.userName = name
|
||||||
},
|
},
|
||||||
@@ -49,9 +60,16 @@ const mutations = {
|
|||||||
SET_USERID: (state, id) => {
|
SET_USERID: (state, id) => {
|
||||||
state.userId = id
|
state.userId = id
|
||||||
},
|
},
|
||||||
|
SET_IDENTITYUSERID: (state, id) => {
|
||||||
|
state.identityUserId = id
|
||||||
|
},
|
||||||
SET_ISTESTUSER: (state, isTestUser) => {
|
SET_ISTESTUSER: (state, isTestUser) => {
|
||||||
state.isTestUser = eval(isTestUser)
|
state.isTestUser = eval(isTestUser)
|
||||||
},
|
},
|
||||||
|
SET_IS_FIRST_SYSTEM_DOC_SIGN: (state, IsFirstSysDocNeedSign) => {
|
||||||
|
zzSessionStorage.setItem('IsFirstSysDocNeedSign', IsFirstSysDocNeedSign)
|
||||||
|
state.IsFirstSysDocNeedSign = IsFirstSysDocNeedSign
|
||||||
|
},
|
||||||
SET_NEED_SIGN_SYSTEM_DOC_COUNT: (state, TotalNeedSignSystemDocCount) => {
|
SET_NEED_SIGN_SYSTEM_DOC_COUNT: (state, TotalNeedSignSystemDocCount) => {
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
if (eval(process.env.VUE_APP_WORD_FOR_PERMISSION) && !state.isTestUser) {
|
if (eval(process.env.VUE_APP_WORD_FOR_PERMISSION) && !state.isTestUser) {
|
||||||
@@ -78,6 +96,9 @@ const mutations = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
|
setRoles({ commit }, roles) {
|
||||||
|
commit('SET_ROLES', roles)
|
||||||
|
},
|
||||||
changeUserName({ commit }, userName) {
|
changeUserName({ commit }, userName) {
|
||||||
commit('SET_USERNAME', userName)
|
commit('SET_USERNAME', userName)
|
||||||
},
|
},
|
||||||
@@ -91,7 +112,7 @@ const actions = {
|
|||||||
if (UserId) {
|
if (UserId) {
|
||||||
data.UserId = UserId;
|
data.UserId = UserId;
|
||||||
}
|
}
|
||||||
login(data).then(async response => {
|
getUserLoginRoleList(data).then(async response => {
|
||||||
if (response.IsSuccess) {
|
if (response.IsSuccess) {
|
||||||
zzSessionStorage.removeItem('lastWorkbench')
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
zzSessionStorage.setItem('my_username', username.trim())
|
zzSessionStorage.setItem('my_username', username.trim())
|
||||||
@@ -99,6 +120,7 @@ const actions = {
|
|||||||
zzSessionStorage.setItem('my_EMail', response.Result.BasicInfo.EMail)
|
zzSessionStorage.setItem('my_EMail', response.Result.BasicInfo.EMail)
|
||||||
localStorage.setItem('CompanyInfo', JSON.stringify(response.Result.CompanyInfo))
|
localStorage.setItem('CompanyInfo', JSON.stringify(response.Result.CompanyInfo))
|
||||||
const data = response.Result
|
const data = response.Result
|
||||||
|
commit('SET_ROLES', data.BasicInfo.AccountList)
|
||||||
if (data.BasicInfo.IsFirstAdd || data.BasicInfo.LoginState === 1) {
|
if (data.BasicInfo.IsFirstAdd || data.BasicInfo.LoginState === 1) {
|
||||||
try {
|
try {
|
||||||
zzSessionStorage.setItem('userId', data.BasicInfo.Id)
|
zzSessionStorage.setItem('userId', data.BasicInfo.Id)
|
||||||
@@ -114,25 +136,24 @@ const actions = {
|
|||||||
zzSessionStorage.setItem('IsReviewer', data.BasicInfo.IsReviewer)
|
zzSessionStorage.setItem('IsReviewer', data.BasicInfo.IsReviewer)
|
||||||
zzSessionStorage.setItem('userName', data.BasicInfo.UserName)
|
zzSessionStorage.setItem('userName', data.BasicInfo.UserName)
|
||||||
commit('SET_TOKEN', data.JWTStr)
|
commit('SET_TOKEN', data.JWTStr)
|
||||||
commit('SET_NAME', data.BasicInfo.RealName)
|
// commit('SET_NAME', data.BasicInfo.UserName)
|
||||||
zzSessionStorage.setItem('realName', data.BasicInfo.RealName)
|
|
||||||
zzSessionStorage.setItem('isTestUser', data.BasicInfo.IsTestUser)
|
zzSessionStorage.setItem('isTestUser', data.BasicInfo.IsTestUser)
|
||||||
commit('SET_ISTESTUSER', data.BasicInfo.IsTestUser)
|
commit('SET_ISTESTUSER', data.BasicInfo.IsTestUser)
|
||||||
commit('SET_USERNAME', data.BasicInfo.UserName)
|
commit('SET_USERNAME', data.BasicInfo.UserName)
|
||||||
commit('SET_USERID', data.BasicInfo.Id)
|
|
||||||
setToken(data.JWTStr)
|
setToken(data.JWTStr)
|
||||||
setName(data.BasicInfo.RealName)
|
// setName(data.BasicInfo.RealName)
|
||||||
const userString = decodeURIComponent(escape(window.atob(data.JWTStr.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
|
// const userString = decodeURIComponent(escape(window.atob(data.JWTStr.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
|
||||||
const user = JSON.parse(userString)
|
// const user = JSON.parse(userString)
|
||||||
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
|
// zzSessionStorage.setItem('userId', user.identityUserId)
|
||||||
zzSessionStorage.setItem('userId', user.id)
|
// commit('SET_IDENTITYUSERID', user.identityUserId)
|
||||||
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
// zzSessionStorage.setItem('identityUserId', user.identityUserId)
|
||||||
var permissions = await getUserPermissions()
|
// zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
||||||
var menuTree = await getUserMenuTree()
|
// var permissions = await getUserPermissions()
|
||||||
commit('SET_TREE', menuTree.Result)
|
// var menuTree = await getUserMenuTree()
|
||||||
commit('SET_PERMISSIONS', permissions.Result)
|
// commit('SET_TREE', menuTree.Result)
|
||||||
zzSessionStorage.setItem('newTree', JSON.stringify(menuTree.Result))
|
// commit('SET_PERMISSIONS', permissions.Result)
|
||||||
zzSessionStorage.setItem('permissions', JSON.stringify(permissions.Result))
|
// zzSessionStorage.setItem('newTree', JSON.stringify(menuTree.Result))
|
||||||
|
// zzSessionStorage.setItem('permissions', JSON.stringify(permissions.Result))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
@@ -146,6 +167,51 @@ const actions = {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
loginByRole({ commit }, userInfo) {
|
||||||
|
const { userRoleId } = userInfo
|
||||||
|
let params = {
|
||||||
|
userRoleId
|
||||||
|
}
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
|
||||||
|
loginSelectUserRole(params).then(async response => {
|
||||||
|
if (response.IsSuccess) {
|
||||||
|
const data = response.Result
|
||||||
|
|
||||||
|
try {
|
||||||
|
commit('SET_TOKEN', data)
|
||||||
|
setToken(data)
|
||||||
|
commit('SET_USERID', userRoleId)
|
||||||
|
zzSessionStorage.setItem('userId', userRoleId)
|
||||||
|
const userString = decodeURIComponent(escape(window.atob(data.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
|
||||||
|
const user = JSON.parse(userString)
|
||||||
|
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
|
||||||
|
commit('SET_USERTYPESHORTNAME', user.userTypeShortName)
|
||||||
|
commit('SET_NAME', user.fullName)
|
||||||
|
setName(user.fullName)
|
||||||
|
commit('SET_IDENTITYUSERID', user.identityUserId)
|
||||||
|
zzSessionStorage.setItem('identityUserId', user.identityUserId)
|
||||||
|
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
||||||
|
var permissions = await getUserPermissions()
|
||||||
|
var menuTree = await getUserMenuTree()
|
||||||
|
commit('SET_TREE', menuTree.Result)
|
||||||
|
commit('SET_PERMISSIONS', permissions.Result)
|
||||||
|
zzSessionStorage.setItem('newTree', JSON.stringify(menuTree.Result))
|
||||||
|
zzSessionStorage.setItem('permissions', JSON.stringify(permissions.Result))
|
||||||
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
resolve(response.Result)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
reject(response.ErrorMessage)
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
setTree({ commit }, tree) {
|
setTree({ commit }, tree) {
|
||||||
commit('SET_TREE', tree)
|
commit('SET_TREE', tree)
|
||||||
},
|
},
|
||||||
@@ -155,6 +221,9 @@ const actions = {
|
|||||||
setTotalNeedSignSystemDocCount({ commit }, TotalNeedSignSystemDocCount) {
|
setTotalNeedSignSystemDocCount({ commit }, TotalNeedSignSystemDocCount) {
|
||||||
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', TotalNeedSignSystemDocCount)
|
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', TotalNeedSignSystemDocCount)
|
||||||
},
|
},
|
||||||
|
setIsFirstSysDocNeedSign({ commit }, IsFirstSysDocNeedSign) {
|
||||||
|
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', IsFirstSysDocNeedSign)
|
||||||
|
},
|
||||||
setTotalNeedSignTrialDocCount({ commit }, TotalNeedSignTrialDocCount) {
|
setTotalNeedSignTrialDocCount({ commit }, TotalNeedSignTrialDocCount) {
|
||||||
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', TotalNeedSignTrialDocCount)
|
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', TotalNeedSignTrialDocCount)
|
||||||
},
|
},
|
||||||
@@ -170,32 +239,69 @@ const actions = {
|
|||||||
commit('SET_PERMISSIONS', JSON.parse(zzSessionStorage.getItem('permissions')))
|
commit('SET_PERMISSIONS', JSON.parse(zzSessionStorage.getItem('permissions')))
|
||||||
commit('SET_ISTESTUSER', zzSessionStorage.getItem('isTestUser'))
|
commit('SET_ISTESTUSER', zzSessionStorage.getItem('isTestUser'))
|
||||||
const user = JSON.parse(userString)
|
const user = JSON.parse(userString)
|
||||||
commit('SET_NAME', zzSessionStorage.getItem('realName'))
|
commit('SET_NAME', zzSessionStorage.getItem('Name'))
|
||||||
commit('SET_USERID', user.id)
|
commit('SET_USERTYPESHORTNAME', user.userTypeShortName)
|
||||||
|
commit('SET_IDENTITYUSERID', user.identityUserId)
|
||||||
|
commit('SET_USERID', user.userRoleId)
|
||||||
commit('SET_USERNAME', zzSessionStorage.getItem('userName'))
|
commit('SET_USERNAME', zzSessionStorage.getItem('userName'))
|
||||||
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignSystemDocCount')))
|
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignSystemDocCount')))
|
||||||
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignTrialDocCount')))
|
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignTrialDocCount')))
|
||||||
console.log(zzSessionStorage.getItem('TotalNeedSignSystemDocCount'))
|
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', zzSessionStorage.getItem('IsFirstSysDocNeedSign'))
|
||||||
console.log(zzSessionStorage.getItem('TotalNeedSignTrialDocCount'))
|
// console.log(zzSessionStorage.getItem('TotalNeedSignSystemDocCount'))
|
||||||
|
// console.log(zzSessionStorage.getItem('TotalNeedSignTrialDocCount'))
|
||||||
zzSessionStorage.setItem('userName', user.name)
|
zzSessionStorage.setItem('userName', user.name)
|
||||||
zzSessionStorage.setItem('userId', user.id)
|
zzSessionStorage.setItem('userId', user.userRoleId)
|
||||||
|
zzSessionStorage.setItem('identityUserId', user.identityUserId)
|
||||||
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
|
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
|
||||||
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
||||||
return user
|
return user
|
||||||
},
|
},
|
||||||
updateInfo({ commit, state }) {
|
updateInfo({ commit, state }) {
|
||||||
commit('SET_NAME', zzSessionStorage.getItem('realName'))
|
commit('SET_NAME', zzSessionStorage.getItem('Name'))
|
||||||
|
},
|
||||||
|
// 获取用户信息
|
||||||
|
getUserInfo({ commit, state }) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
getUser().then(res => {
|
||||||
|
if (res.Result) {
|
||||||
|
commit('SET_ROLES', res.Result.AccountList)
|
||||||
|
}
|
||||||
|
resolve(res.Result)
|
||||||
|
}).catch(err => {
|
||||||
|
reject(err)
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// user logout
|
// user logout
|
||||||
async logout({ commit, state }) {
|
async logout({ commit, state }) {
|
||||||
try {
|
try {
|
||||||
removeToken() // must remove token first
|
removeToken() // must remove token first
|
||||||
await loginOut({
|
await loginOut({
|
||||||
Userd: zzSessionStorage.getItem('userId')
|
UserRoleId: zzSessionStorage.getItem('userId'),
|
||||||
|
IdentityUserId: zzSessionStorage.getItem('identityUserId'),
|
||||||
})
|
})
|
||||||
resetRouter()
|
resetRouter()
|
||||||
removeName()
|
removeName()
|
||||||
|
let lang = zzSessionStorage.getItem('lang')
|
||||||
zzSessionStorage.clear()
|
zzSessionStorage.clear()
|
||||||
|
zzSessionStorage.setItem('lang', lang)
|
||||||
|
commit('RESET_STATE')
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async resetData({ commit, state }) {
|
||||||
|
try {
|
||||||
|
removeToken() // must remove token first
|
||||||
|
// await loginOut({
|
||||||
|
// UserRoleId: zzSessionStorage.getItem('userId'),
|
||||||
|
// IdentityUserId: zzSessionStorage.getItem('identityUserId'),
|
||||||
|
// })
|
||||||
|
resetRouter()
|
||||||
|
removeName()
|
||||||
|
let lang = zzSessionStorage.getItem('lang')
|
||||||
|
zzSessionStorage.clear()
|
||||||
|
zzSessionStorage.setItem('lang', lang)
|
||||||
commit('RESET_STATE')
|
commit('RESET_STATE')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
|||||||
@@ -47,3 +47,6 @@
|
|||||||
.el-range-separator {
|
.el-range-separator {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
|
.el-select-dropdown__wrap{
|
||||||
|
max-height: 350px;
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
@import "./variables.scss";
|
@import "./variables.module.scss";
|
||||||
@import "./mixin.scss";
|
@import "./mixin.scss";
|
||||||
@import "./transition.scss";
|
@import "./transition.scss";
|
||||||
@import "./element-ui.scss";
|
@import "./element-ui.scss";
|
||||||
|
|||||||
+24
-4
@@ -71,29 +71,49 @@ $sideBarWidth: 200px;
|
|||||||
border: none;
|
border: none;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
|
background-color: $menuBg;
|
||||||
}
|
}
|
||||||
|
|
||||||
// menu hover
|
// menu hover
|
||||||
.submenu-title-noDropdown,
|
.submenu-title-noDropdown,
|
||||||
.el-submenu__title {
|
.el-submenu__title {
|
||||||
|
color: $menuText !important;
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $menuHover !important;
|
background-color: $menuHover !important;
|
||||||
|
color: $menuActiveText !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-active>.el-submenu__title {
|
.is-active>.el-submenu__title {
|
||||||
color: $subMenuActiveText !important;
|
color: $subMenuActiveText !important;
|
||||||
}
|
}
|
||||||
|
.el-menu-item {
|
||||||
& .nest-menu .el-submenu>.el-submenu__title,
|
color: $menuText !important;
|
||||||
& .el-submenu .el-menu-item {
|
}
|
||||||
|
.el-menu-item:focus,
|
||||||
|
.el-menu-item:hover {
|
||||||
|
background-color: $subMenuBg !important;
|
||||||
|
color: $menuActiveText !important;
|
||||||
|
}
|
||||||
|
.el-submenu .el-menu-item {
|
||||||
min-width: $sideBarWidth !important;
|
min-width: $sideBarWidth !important;
|
||||||
background-color: $subMenuBg !important;
|
background-color: $subMenuBg !important;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $subMenuHover !important;
|
background-color: $subMenuHover !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// &.nest-menu .el-submenu>.el-submenu__title,
|
||||||
|
// &.el-submenu .el-menu-item {
|
||||||
|
// min-width: $sideBarWidth !important;
|
||||||
|
// background-color: $subMenuBg !important;
|
||||||
|
|
||||||
|
// &:hover {
|
||||||
|
// background-color: $subMenuHover !important;
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
.hideSidebar {
|
.hideSidebar {
|
||||||
|
|||||||
+3
-2
@@ -40,8 +40,9 @@ Vue.directive('dialogDrag', {
|
|||||||
styL = +styL.replace(/\px/g, '')
|
styL = +styL.replace(/\px/g, '')
|
||||||
styT = +styT.replace(/\px/g, '')
|
styT = +styT.replace(/\px/g, '')
|
||||||
}
|
}
|
||||||
|
const oldMousemove = document.onmousemove
|
||||||
document.onmousemove = function(e) {
|
document.onmousemove = function(e) {
|
||||||
|
oldMousemove(e)
|
||||||
// 通过事件委托,计算移动的距离
|
// 通过事件委托,计算移动的距离
|
||||||
let left = e.clientX - disX
|
let left = e.clientX - disX
|
||||||
let top = e.clientY - disY
|
let top = e.clientY - disY
|
||||||
@@ -63,7 +64,7 @@ Vue.directive('dialogDrag', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
document.onmouseup = function(e) {
|
document.onmouseup = function(e) {
|
||||||
document.onmousemove = null
|
document.onmousemove = oldMousemove
|
||||||
document.onmouseup = null
|
document.onmouseup = null
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import defaultSettings from '@/settings'
|
import defaultSettings from '@/settings'
|
||||||
|
|
||||||
const title = defaultSettings.title || 'IRCIS'
|
const title = defaultSettings.title || 'IRC Imaging System'
|
||||||
|
|
||||||
export default function getPageTitle(pageTitle) {
|
export default function getPageTitle(pageTitle) {
|
||||||
if (pageTitle) {
|
if (pageTitle) {
|
||||||
|
|||||||
+39
-7
@@ -34,7 +34,7 @@ export function parseTime(time, cFormat) {
|
|||||||
const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => {
|
const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => {
|
||||||
const value = formatObj[key]
|
const value = formatObj[key]
|
||||||
// Note: getDay() returns 0 on Sunday
|
// Note: getDay() returns 0 on Sunday
|
||||||
if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
|
if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] }
|
||||||
return value.toString().padStart(2, '0')
|
return value.toString().padStart(2, '0')
|
||||||
})
|
})
|
||||||
return time_str
|
return time_str
|
||||||
@@ -51,12 +51,44 @@ export function param2Obj(url) {
|
|||||||
}
|
}
|
||||||
return JSON.parse(
|
return JSON.parse(
|
||||||
'{"' +
|
'{"' +
|
||||||
decodeURIComponent(search)
|
decodeURIComponent(search)
|
||||||
.replace(/"/g, '\\"')
|
.replace(/"/g, '\\"')
|
||||||
.replace(/&/g, '","')
|
.replace(/&/g, '","')
|
||||||
.replace(/=/g, '":"')
|
.replace(/=/g, '":"')
|
||||||
.replace(/\+/g, ' ') +
|
.replace(/\+/g, ' ') +
|
||||||
'"}'
|
'"}'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function deepClone(source, map = new WeakMap()) {
|
||||||
|
// 处理基本类型和函数(直接返回)
|
||||||
|
if (typeof source !== 'object' || source === null) {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理循环引用
|
||||||
|
if (map.has(source)) {
|
||||||
|
return map.get(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建新容器
|
||||||
|
const target = Array.isArray(source) ? [] : {};
|
||||||
|
map.set(source, target); // 记录克隆关系
|
||||||
|
|
||||||
|
// 克隆普通键值
|
||||||
|
for (const key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = deepClone(source[key], map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 克隆Symbol键值(ES6+)
|
||||||
|
const symbolKeys = Object.getOwnPropertySymbols(source);
|
||||||
|
for (const symKey of symbolKeys) {
|
||||||
|
if (source.propertyIsEnumerable(symKey)) {
|
||||||
|
target[symKey] = deepClone(source[symKey], map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
}
|
||||||
@@ -0,0 +1,252 @@
|
|||||||
|
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
|
||||||
|
function parseImageId(imageId) {
|
||||||
|
// build a url by parsing out the url scheme and frame index from the imageId
|
||||||
|
const firstColonIndex = imageId.indexOf(':');
|
||||||
|
|
||||||
|
let url = imageId.substring(firstColonIndex + 1);
|
||||||
|
const frameIndex = url.indexOf('frame=');
|
||||||
|
|
||||||
|
let frame;
|
||||||
|
|
||||||
|
if (frameIndex !== -1) {
|
||||||
|
const frameStr = url.substr(frameIndex + 6);
|
||||||
|
|
||||||
|
frame = parseInt(frameStr, 10);
|
||||||
|
url = url.substr(0, frameIndex - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
scheme: imageId.substr(0, firstColonIndex),
|
||||||
|
url,
|
||||||
|
frame,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function getNumberValues(dataSet, tag, minimumLength) {
|
||||||
|
const values = [];
|
||||||
|
const valueAsString = dataSet.string(tag);
|
||||||
|
|
||||||
|
if (!valueAsString) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const split = valueAsString.split('\\');
|
||||||
|
|
||||||
|
if (minimumLength && split.length < minimumLength) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (let i = 0; i < split.length; i++) {
|
||||||
|
values.push(parseFloat(split[i]));
|
||||||
|
}
|
||||||
|
|
||||||
|
return values;
|
||||||
|
}
|
||||||
|
function getLutDescriptor(dataSet, tag) {
|
||||||
|
if (!dataSet.elements[tag] || dataSet.elements[tag].length !== 6) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
dataSet.uint16(tag, 0),
|
||||||
|
dataSet.uint16(tag, 1),
|
||||||
|
dataSet.uint16(tag, 2),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
function getLutData(lutDataSet, tag, lutDescriptor) {
|
||||||
|
const lut = [];
|
||||||
|
const lutData = lutDataSet.elements[tag];
|
||||||
|
|
||||||
|
for (let i = 0; i < lutDescriptor[0]; i++) {
|
||||||
|
// Output range is always unsigned
|
||||||
|
if (lutDescriptor[2] === 16) {
|
||||||
|
lut[i] = lutDataSet.uint16(tag, i);
|
||||||
|
} else {
|
||||||
|
lut[i] = lutDataSet.byteArray[i + lutData.dataOffset];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return lut;
|
||||||
|
}
|
||||||
|
function populateSmallestLargestPixelValues(dataSet, imagePixelModule) {
|
||||||
|
const pixelRepresentation = dataSet.uint16('x00280103');
|
||||||
|
if (pixelRepresentation === 0) {
|
||||||
|
imagePixelModule.smallestPixelValue = dataSet.uint16('x00280106');
|
||||||
|
imagePixelModule.largestPixelValue = dataSet.uint16('x00280107');
|
||||||
|
} else {
|
||||||
|
imagePixelModule.smallestPixelValue = dataSet.int16('x00280106');
|
||||||
|
imagePixelModule.largestPixelValue = dataSet.int16('x00280107');
|
||||||
|
}
|
||||||
|
imagePixelModule.largestPixelValue = imagePixelModule.largestPixelValue === 0 ? undefined : imagePixelModule.largestPixelValue;
|
||||||
|
}
|
||||||
|
function populatePaletteColorLut(dataSet, imagePixelModule) {
|
||||||
|
imagePixelModule.redPaletteColorLookupTableDescriptor = getLutDescriptor(
|
||||||
|
dataSet,
|
||||||
|
'x00281101'
|
||||||
|
);
|
||||||
|
imagePixelModule.greenPaletteColorLookupTableDescriptor = getLutDescriptor(
|
||||||
|
dataSet,
|
||||||
|
'x00281102'
|
||||||
|
);
|
||||||
|
imagePixelModule.bluePaletteColorLookupTableDescriptor = getLutDescriptor(
|
||||||
|
dataSet,
|
||||||
|
'x00281103'
|
||||||
|
);
|
||||||
|
|
||||||
|
// The first Palette Color Lookup Table Descriptor value is the number of entries in the lookup table.
|
||||||
|
// When the number of table entries is equal to 2ˆ16 then this value shall be 0.
|
||||||
|
// See http://dicom.nema.org/MEDICAL/DICOM/current/output/chtml/part03/sect_C.7.6.3.html#sect_C.7.6.3.1.5
|
||||||
|
if (imagePixelModule.redPaletteColorLookupTableDescriptor[0] === 0) {
|
||||||
|
imagePixelModule.redPaletteColorLookupTableDescriptor[0] = 65536;
|
||||||
|
imagePixelModule.greenPaletteColorLookupTableDescriptor[0] = 65536;
|
||||||
|
imagePixelModule.bluePaletteColorLookupTableDescriptor[0] = 65536;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The third Palette Color Lookup Table Descriptor value specifies the number of bits for each entry in the Lookup Table Data.
|
||||||
|
// It shall take the value of 8 or 16.
|
||||||
|
// The LUT Data shall be stored in a format equivalent to 8 bits allocated when the number of bits for each entry is 8, and 16 bits allocated when the number of bits for each entry is 16, where in both cases the high bit is equal to bits allocated-1.
|
||||||
|
// The third value shall be identical for each of the Red, Green and Blue Palette Color Lookup Table Descriptors.
|
||||||
|
//
|
||||||
|
// Note: Some implementations have encoded 8 bit entries with 16 bits allocated, padding the high bits;
|
||||||
|
// this can be detected by comparing the number of entries specified in the LUT Descriptor with the actual value length of the LUT Data entry.
|
||||||
|
// The value length in bytes should equal the number of entries if bits allocated is 8, and be twice as long if bits allocated is 16.
|
||||||
|
const numLutEntries =
|
||||||
|
imagePixelModule.redPaletteColorLookupTableDescriptor[0];
|
||||||
|
const lutData = dataSet.elements.x00281201;
|
||||||
|
const lutBitsAllocated = lutData.length === numLutEntries ? 8 : 16;
|
||||||
|
|
||||||
|
// If the descriptors do not appear to have the correct values, correct them
|
||||||
|
if (
|
||||||
|
imagePixelModule.redPaletteColorLookupTableDescriptor[2] !==
|
||||||
|
lutBitsAllocated
|
||||||
|
) {
|
||||||
|
imagePixelModule.redPaletteColorLookupTableDescriptor[2] = lutBitsAllocated;
|
||||||
|
imagePixelModule.greenPaletteColorLookupTableDescriptor[2] =
|
||||||
|
lutBitsAllocated;
|
||||||
|
imagePixelModule.bluePaletteColorLookupTableDescriptor[2] =
|
||||||
|
lutBitsAllocated;
|
||||||
|
}
|
||||||
|
|
||||||
|
imagePixelModule.redPaletteColorLookupTableData = getLutData(
|
||||||
|
dataSet,
|
||||||
|
'x00281201',
|
||||||
|
imagePixelModule.redPaletteColorLookupTableDescriptor
|
||||||
|
);
|
||||||
|
imagePixelModule.greenPaletteColorLookupTableData = getLutData(
|
||||||
|
dataSet,
|
||||||
|
'x00281202',
|
||||||
|
imagePixelModule.greenPaletteColorLookupTableDescriptor
|
||||||
|
);
|
||||||
|
imagePixelModule.bluePaletteColorLookupTableData = getLutData(
|
||||||
|
dataSet,
|
||||||
|
'x00281203',
|
||||||
|
imagePixelModule.bluePaletteColorLookupTableDescriptor
|
||||||
|
);
|
||||||
|
}
|
||||||
|
function metaDataProvider(type, imageId) {
|
||||||
|
const parsedImageId = parseImageId(imageId);
|
||||||
|
const dataSet = cornerstoneWADOImageLoader.wadouri.dataSetCacheManager.get(parsedImageId.url);
|
||||||
|
|
||||||
|
if (!dataSet) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (type === 'imagePlaneModule') {
|
||||||
|
const imageOrientationPatient = getNumberValues(dataSet, 'x00200037', 6);
|
||||||
|
const imagePositionPatient = getNumberValues(dataSet, 'x00200032', 3);
|
||||||
|
const pixelSpacing = getNumberValues(dataSet, 'x00280030', 2);
|
||||||
|
const imagePixelSpacing = getNumberValues(dataSet, 'x00181164', 2);
|
||||||
|
const estimatedRadiographicMagnificationFactor = getNumberValues(dataSet, 'x00181114', 2);
|
||||||
|
let columnPixelSpacing = null;
|
||||||
|
|
||||||
|
let rowPixelSpacing = null;
|
||||||
|
|
||||||
|
if (pixelSpacing) {
|
||||||
|
rowPixelSpacing = pixelSpacing[0];
|
||||||
|
columnPixelSpacing = pixelSpacing[1];
|
||||||
|
} else if (imagePixelSpacing && estimatedRadiographicMagnificationFactor) {
|
||||||
|
rowPixelSpacing = imagePixelSpacing[0] / estimatedRadiographicMagnificationFactor[0];
|
||||||
|
columnPixelSpacing = imagePixelSpacing[1] / estimatedRadiographicMagnificationFactor[1];
|
||||||
|
} else if (imagePixelSpacing && !estimatedRadiographicMagnificationFactor) {
|
||||||
|
rowPixelSpacing = imagePixelSpacing[0];
|
||||||
|
columnPixelSpacing = imagePixelSpacing[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
let rowCosines = null;
|
||||||
|
|
||||||
|
let columnCosines = null;
|
||||||
|
|
||||||
|
if (imageOrientationPatient) {
|
||||||
|
rowCosines = [
|
||||||
|
parseFloat(imageOrientationPatient[0]),
|
||||||
|
parseFloat(imageOrientationPatient[1]),
|
||||||
|
parseFloat(imageOrientationPatient[2]),
|
||||||
|
];
|
||||||
|
columnCosines = [
|
||||||
|
parseFloat(imageOrientationPatient[3]),
|
||||||
|
parseFloat(imageOrientationPatient[4]),
|
||||||
|
parseFloat(imageOrientationPatient[5]),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
frameOfReferenceUID: dataSet.string('x00200052'),
|
||||||
|
rows: dataSet.uint16('x00280010'),
|
||||||
|
columns: dataSet.uint16('x00280011'),
|
||||||
|
imageOrientationPatient,
|
||||||
|
rowCosines,
|
||||||
|
columnCosines,
|
||||||
|
imagePositionPatient,
|
||||||
|
sliceThickness: dataSet.floatString('x00180050'),
|
||||||
|
sliceLocation: dataSet.floatString('x00201041'),
|
||||||
|
pixelSpacing,
|
||||||
|
rowPixelSpacing,
|
||||||
|
columnPixelSpacing,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (type === 'imagePixelModule') {
|
||||||
|
const imagePixelModule = {
|
||||||
|
samplesPerPixel: dataSet.uint16('x00280002'),
|
||||||
|
photometricInterpretation: dataSet.string('x00280004'),
|
||||||
|
rows: dataSet.uint16('x00280010'),
|
||||||
|
columns: dataSet.uint16('x00280011'),
|
||||||
|
bitsAllocated: dataSet.uint16('x00280100'),
|
||||||
|
bitsStored: dataSet.uint16('x00280101'),
|
||||||
|
highBit: dataSet.uint16('x00280102'),
|
||||||
|
pixelRepresentation: dataSet.uint16('x00280103'),
|
||||||
|
planarConfiguration: dataSet.uint16('x00280006'),
|
||||||
|
pixelAspectRatio: dataSet.string('x00280034'),
|
||||||
|
};
|
||||||
|
populateSmallestLargestPixelValues(dataSet, imagePixelModule);
|
||||||
|
|
||||||
|
if (
|
||||||
|
imagePixelModule.photometricInterpretation === 'PALETTE COLOR' &&
|
||||||
|
dataSet.elements.x00281101
|
||||||
|
) {
|
||||||
|
populatePaletteColorLut(dataSet, imagePixelModule);
|
||||||
|
}
|
||||||
|
return imagePixelModule;
|
||||||
|
}
|
||||||
|
// if (type === 'imagePixelModule') {
|
||||||
|
// return {
|
||||||
|
// samplesPerPixel: dataSet.uint16('x00280002'),
|
||||||
|
// photometricInterpretation: dataSet.string('x00280004'),
|
||||||
|
// rows: dataSet.uint16('x00280010'),
|
||||||
|
// columns: dataSet.uint16('x00280011'),
|
||||||
|
// bitsAllocated: dataSet.uint16('x00280100'),
|
||||||
|
// bitsStored: dataSet.uint16('x00280101'),
|
||||||
|
// highBit: dataSet.uint16('x00280102'),
|
||||||
|
// pixelRepresentation: dataSet.uint16('x00280103'),
|
||||||
|
// planarConfiguration: dataSet.uint16('x00280006'),
|
||||||
|
// pixelAspectRatio: dataSet.uint16('x00280034'),
|
||||||
|
// smallestPixelValue: null,
|
||||||
|
// largestPixelValue: null,
|
||||||
|
// // smallestPixelValue: dataSet.uint16('x00280106'),
|
||||||
|
// // largestPixelValue: dataSet.uint16('x00280107'),
|
||||||
|
// redPaletteColorLookupTableDescriptor: dataSet.string('x00281101'),
|
||||||
|
// greenPaletteColorLookupTableDescriptor: dataSet.string('x00281102'),
|
||||||
|
// bluePaletteColorLookupTableDescriptor: dataSet.string('x00281103'),
|
||||||
|
// redPaletteColorLookupTableData: dataSet.string('x00281201'),
|
||||||
|
// greenPaletteColorLookupTableData: dataSet.string('x00281202'),
|
||||||
|
// bluePaletteColorLookupTableData: dataSet.string('x00281203')
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
export default metaDataProvider;
|
||||||
@@ -445,7 +445,7 @@ function setTimer() {
|
|||||||
totalBytes = totalBytes / 1024;
|
totalBytes = totalBytes / 1024;
|
||||||
unit = "MB/s";
|
unit = "MB/s";
|
||||||
}
|
}
|
||||||
store.state.trials.uploadTip = totalBytes.toFixed(2) + unit;
|
store.state.trials.uploadTip = totalBytes.toFixed(3) + unit;
|
||||||
}
|
}
|
||||||
if (timeList.length >= 5) {
|
if (timeList.length >= 5) {
|
||||||
delete bytesReceivedPerSecond[timeList[0]]
|
delete bytesReceivedPerSecond[timeList[0]]
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ function setTimer() {
|
|||||||
totalBytes = totalBytes / 1024;
|
totalBytes = totalBytes / 1024;
|
||||||
unit = "MB/s";
|
unit = "MB/s";
|
||||||
}
|
}
|
||||||
store.state.trials.uploadTip = totalBytes.toFixed(2) + unit;
|
store.state.trials.uploadTip = totalBytes.toFixed(3) + unit;
|
||||||
}
|
}
|
||||||
if (timeList.length >= 5) {
|
if (timeList.length >= 5) {
|
||||||
delete bytesReceivedPerSecond[timeList[0]]
|
delete bytesReceivedPerSecond[timeList[0]]
|
||||||
|
|||||||
+21
-3
@@ -41,7 +41,13 @@ async function ossGenerateSTS() {
|
|||||||
let _vm = router.default.app
|
let _vm = router.default.app
|
||||||
if (_vm._route.path !== '/trials/trials-panel/visit/crc-upload') {
|
if (_vm._route.path !== '/trials/trials-panel/visit/crc-upload') {
|
||||||
var objectItem = objectName.split('/')
|
var objectItem = objectName.split('/')
|
||||||
objectItem[objectItem.length - 1] = new Date().getTime() + '_' + objectItem[objectItem.length - 1]
|
// objectItem[objectItem.length - 1] = new Date().getTime() + '_' + objectItem[objectItem.length - 1]
|
||||||
|
objectItem[objectItem.length - 1] = `${objectItem[objectItem.length - 1].substring(
|
||||||
|
0,
|
||||||
|
objectItem[objectItem.length - 1].lastIndexOf('.')
|
||||||
|
)}__${new Date().getTime()}${objectItem[objectItem.length - 1].substring(
|
||||||
|
objectItem[objectItem.length - 1].lastIndexOf('.')
|
||||||
|
).toLocaleLowerCase()}`
|
||||||
objectName = objectItem.join('/')
|
objectName = objectItem.join('/')
|
||||||
}
|
}
|
||||||
let res = await OSSclient.put(objectName, object)
|
let res = await OSSclient.put(objectName, object)
|
||||||
@@ -78,7 +84,13 @@ async function ossGenerateSTS() {
|
|||||||
let _vm = router.default.app
|
let _vm = router.default.app
|
||||||
if (_vm._route.path !== '/trials/trials-panel/visit/crc-upload') {
|
if (_vm._route.path !== '/trials/trials-panel/visit/crc-upload') {
|
||||||
var objectItem = data.path.split('/')
|
var objectItem = data.path.split('/')
|
||||||
objectItem[objectItem.length - 1] = new Date().getTime() + '_' + objectItem[objectItem.length - 1]
|
// objectItem[objectItem.length - 1] = new Date().getTime() + '_' + objectItem[objectItem.length - 1]
|
||||||
|
objectItem[objectItem.length - 1] = `${objectItem[objectItem.length - 1].substring(
|
||||||
|
0,
|
||||||
|
objectItem[objectItem.length - 1].lastIndexOf('.')
|
||||||
|
)}__${new Date().getTime()}${objectItem[objectItem.length - 1].substring(
|
||||||
|
objectItem[objectItem.length - 1].lastIndexOf('.')
|
||||||
|
).toLocaleLowerCase()}`
|
||||||
data.path = objectItem.join('/')
|
data.path = objectItem.join('/')
|
||||||
}
|
}
|
||||||
let res = await customerHttp(OSSclient, data, progress);
|
let res = await customerHttp(OSSclient, data, progress);
|
||||||
@@ -185,7 +197,13 @@ function uploadAWS(aws, data, progress) {
|
|||||||
let _vm = router.default.app
|
let _vm = router.default.app
|
||||||
if (_vm._route.path !== '/trials/trials-panel/visit/crc-upload') {
|
if (_vm._route.path !== '/trials/trials-panel/visit/crc-upload') {
|
||||||
var objectItem = data.path.split('/')
|
var objectItem = data.path.split('/')
|
||||||
objectItem[objectItem.length - 1] = new Date().getTime() + '_' + objectItem[objectItem.length - 1]
|
// objectItem[objectItem.length - 1] = new Date().getTime() + '_' + objectItem[objectItem.length - 1]
|
||||||
|
objectItem[objectItem.length - 1] = `${objectItem[objectItem.length - 1].substring(
|
||||||
|
0,
|
||||||
|
objectItem[objectItem.length - 1].lastIndexOf('.')
|
||||||
|
)}__${new Date().getTime()}${objectItem[objectItem.length - 1].substring(
|
||||||
|
objectItem[objectItem.length - 1].lastIndexOf('.')
|
||||||
|
).toLocaleLowerCase()}`
|
||||||
data.path = objectItem.join('/')
|
data.path = objectItem.join('/')
|
||||||
}
|
}
|
||||||
let bucketName = data.path.split("/")[1] || Vue.prototype.OSSclientConfig.bucket
|
let bucketName = data.path.split("/")[1] || Vue.prototype.OSSclientConfig.bucket
|
||||||
|
|||||||
@@ -189,8 +189,8 @@ const dicomToPng = (imageId, width, height) => {
|
|||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
cornerstone.loadImage(imageId).then(async (image) => {
|
cornerstone.loadImage(imageId).then(async (image) => {
|
||||||
let canvas = document.createElement("canvas");
|
let canvas = document.createElement("canvas");
|
||||||
canvas.width = width;
|
canvas.width = (width * 60) / height
|
||||||
canvas.height = height;
|
canvas.height = 60
|
||||||
if (image) {
|
if (image) {
|
||||||
cornerstone.renderToCanvas(canvas, image);
|
cornerstone.renderToCanvas(canvas, image);
|
||||||
// 将 Canvas 图像对象转换为 PNG 格式
|
// 将 Canvas 图像对象转换为 PNG 格式
|
||||||
|
|||||||
@@ -89,9 +89,9 @@ service.interceptors.response.use(
|
|||||||
})
|
})
|
||||||
store.dispatch('user/logout').then(() => {
|
store.dispatch('user/logout').then(() => {
|
||||||
router.push(`/login`)
|
router.push(`/login`)
|
||||||
this.$i18n.locale = 'zh'
|
//this.$i18n.locale = 'zh'
|
||||||
this.setLanguage('zh')
|
//this.setLanguage('zh')
|
||||||
this.$updateDictionary()
|
// this.$updateDictionary()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+22
-6
@@ -5,9 +5,11 @@ 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"
|
||||||
|
const ROUTER = require('@/router');
|
||||||
axios.defaults.withCredentials = false
|
axios.defaults.withCredentials = false
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: '/api',
|
baseURL: '/api',
|
||||||
|
// baseURL: process.env.NODE_ENV === 'prod' ? "https://api.irc.extimaging.com" : '/api',
|
||||||
timeout: 2 * 360000, // request timeout
|
timeout: 2 * 360000, // request timeout
|
||||||
withCredentials: false
|
withCredentials: false
|
||||||
})
|
})
|
||||||
@@ -90,10 +92,20 @@ service.interceptors.response.use(
|
|||||||
const status = error.response.status
|
const status = error.response.status
|
||||||
if (error.response.data && (error.response.data.Code === -1 || error.response.data.Code === -2)) {
|
if (error.response.data && (error.response.data.Code === -1 || error.response.data.Code === -2)) {
|
||||||
store.dispatch('user/logout').then(() => {
|
store.dispatch('user/logout').then(() => {
|
||||||
|
let _vm = ROUTER.default.app
|
||||||
|
try {
|
||||||
|
if (_vm.$msgbox && _vm.$msgbox.close) {
|
||||||
|
_vm.$msgbox.close();
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
router.push(`/login`)
|
router.push(`/login`)
|
||||||
this.$i18n.locale = 'zh'
|
// if (!this.$i18n.locale) {
|
||||||
this.setLanguage('zh')
|
// //this.$i18n.locale = 'zh'
|
||||||
this.$updateDictionary()
|
// //this.setLanguage('zh')
|
||||||
|
// }
|
||||||
|
// this.$updateDictionary()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
switch (status) {
|
switch (status) {
|
||||||
@@ -123,9 +135,9 @@ service.interceptors.response.use(
|
|||||||
}
|
}
|
||||||
store.dispatch('user/logout').then(() => {
|
store.dispatch('user/logout').then(() => {
|
||||||
router.push(`/login`)
|
router.push(`/login`)
|
||||||
this.$i18n.locale = 'zh'
|
// //this.$i18n.locale = 'zh'
|
||||||
this.setLanguage('zh')
|
// //this.setLanguage('zh')
|
||||||
this.$updateDictionary()
|
// this.$updateDictionary()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
setTimer({
|
setTimer({
|
||||||
@@ -139,6 +151,7 @@ service.interceptors.response.use(
|
|||||||
setTimer([message, store.state.lang.language === 'en' ? 'Warning' : '警告', {
|
setTimer([message, store.state.lang.language === 'en' ? 'Warning' : '警告', {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
|
confirmButtonText: store.state.lang.language === 'en' ? 'ok' : "确定",
|
||||||
callback: action => { }
|
callback: action => { }
|
||||||
}], 'confirm')
|
}], 'confirm')
|
||||||
}
|
}
|
||||||
@@ -149,6 +162,7 @@ service.interceptors.response.use(
|
|||||||
[store.state.lang.language === 'en' ? 'Please check your network,and try again later!' : '请检查网络,稍后重试!', store.state.lang.language === 'en' ? 'Warning' : '警告', {
|
[store.state.lang.language === 'en' ? 'Please check your network,and try again later!' : '请检查网络,稍后重试!', store.state.lang.language === 'en' ? 'Warning' : '警告', {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
|
confirmButtonText: store.state.lang.language === 'en' ? 'ok' : "确定",
|
||||||
callback: action => { }
|
callback: action => { }
|
||||||
}], "confirm"
|
}], "confirm"
|
||||||
)
|
)
|
||||||
@@ -167,6 +181,8 @@ const setTimer = (obj, type) => {
|
|||||||
Message(obj)
|
Message(obj)
|
||||||
}
|
}
|
||||||
if (type === 'confirm') {
|
if (type === 'confirm') {
|
||||||
|
obj[2].closeOnClickModal = false
|
||||||
|
obj[2].closeOnPressEscape = false
|
||||||
MessageBox.confirm(...obj)
|
MessageBox.confirm(...obj)
|
||||||
}
|
}
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
|
|||||||
+2
-2
@@ -20,7 +20,7 @@ function zipFiles(zipName, files) {
|
|||||||
ctrl.close();
|
ctrl.close();
|
||||||
} else {
|
} else {
|
||||||
let { name, url } = fileInfo.value;
|
let { name, url } = fileInfo.value;
|
||||||
url = decodeUtf8(url);
|
// url = decodeUtf8(url); // 待定,可能做过特殊处理
|
||||||
return fetch(url).then(res => {
|
return fetch(url).then(res => {
|
||||||
ctrl.enqueue({
|
ctrl.enqueue({
|
||||||
name,
|
name,
|
||||||
@@ -58,7 +58,7 @@ async function updateFile(file, name) {
|
|||||||
try {
|
try {
|
||||||
store.dispatch('trials/setUnLock', true)
|
store.dispatch('trials/setUnLock', true)
|
||||||
const fileOutputStream = streamSaver.createWriteStream(name);
|
const fileOutputStream = streamSaver.createWriteStream(name);
|
||||||
file = decodeUtf8(file);
|
// file = decodeUtf8(file);
|
||||||
let res = await fetch(file);
|
let res = await fetch(file);
|
||||||
res.body.pipeTo(fileOutputStream).then(() => {
|
res.body.pipeTo(fileOutputStream).then(() => {
|
||||||
store.dispatch('trials/setUnLock', true)
|
store.dispatch('trials/setUnLock', true)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否内部角色: " prop="IsInternal">
|
<el-form-item label="是否内部角色: " prop="IsInternal">
|
||||||
<el-radio-group v-model="form.IsInternal">
|
<el-radio-group v-model="form.IsInternal">
|
||||||
<el-radio v-for="item of $d.YesOrNo" :label="item.value">{{ item.label }}</el-radio>
|
<el-radio v-for="item of $d.YesOrNo" :key="`IsInternal${item.value}`" :label="item.value">{{ item.label }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
:model="user"
|
:model="user"
|
||||||
:rules="userFormRules"
|
:rules="userFormRules"
|
||||||
label-width="150px"
|
label-width="150px"
|
||||||
style="width:800px;"
|
style="width: 800px"
|
||||||
>
|
>
|
||||||
<el-card class="Basic" shadow="never" size="small">
|
<el-card class="Basic" shadow="never" size="small">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<el-form-item label="Given Name: " prop="FirstName">
|
<el-form-item label="Given Name: " prop="FirstName">
|
||||||
<el-input v-model="user.FirstName" />
|
<el-input v-model="user.FirstName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Gender: " prop="Sex" style="margin-right:40px;">
|
<el-form-item label="Gender: " prop="Sex" style="margin-right: 40px">
|
||||||
<el-radio-group v-model="user.Sex">
|
<el-radio-group v-model="user.Sex">
|
||||||
<el-radio :label="1">Male</el-radio>
|
<el-radio :label="1">Male</el-radio>
|
||||||
<el-radio :label="0">Female</el-radio>
|
<el-radio :label="0">Female</el-radio>
|
||||||
@@ -37,13 +37,24 @@
|
|||||||
<el-form-item label="Phone: " prop="Phone">
|
<el-form-item label="Phone: " prop="Phone">
|
||||||
<el-input v-model="user.Phone" />
|
<el-input v-model="user.Phone" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="type==1" label="Disable:">
|
<el-form-item v-if="type == 1" label="Disable:">
|
||||||
<el-switch v-model="user.Status" :active-value="0" :inactive-value="1" />
|
<el-switch
|
||||||
|
v-model="user.Status"
|
||||||
|
:active-value="0"
|
||||||
|
:inactive-value="1"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="User Type: " prop="UserTypeId">
|
<el-form-item label="User Type: " prop="UserTypeId">
|
||||||
<el-select ref="userType" v-model="user.UserTypeId" size="small" placeholder="Please select" style="width:100%;" :disabled="user.CanEditUserType === false">
|
<el-select
|
||||||
|
ref="userType"
|
||||||
|
v-model="user.UserTypeId"
|
||||||
|
size="small"
|
||||||
|
placeholder="Please select"
|
||||||
|
style="width: 100%"
|
||||||
|
:disabled="user.CanEditUserType === false"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(userType,key) of userTypeOptions"
|
v-for="(userType, key) of userTypeOptions"
|
||||||
:key="key"
|
:key="key"
|
||||||
:label="userType.UserType"
|
:label="userType.UserType"
|
||||||
:value="userType.Id"
|
:value="userType.Id"
|
||||||
@@ -52,17 +63,28 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="Affiliation" shadow="never" style="margin-top:10px;" size="small">
|
<el-card
|
||||||
|
class="Affiliation"
|
||||||
|
shadow="never"
|
||||||
|
style="margin-top: 10px"
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>Affiliation</span>
|
<span>Affiliation</span>
|
||||||
</div>
|
</div>
|
||||||
<el-form-item prop="IsZhiZhun">
|
<el-form-item prop="IsZhiZhun">
|
||||||
<el-radio-group v-model="user.IsZhiZhun" @change="OrgnizationTypeChanged">
|
<el-radio-group
|
||||||
|
v-model="user.IsZhiZhun"
|
||||||
|
@change="OrgnizationTypeChanged"
|
||||||
|
>
|
||||||
<el-radio :label="true">Internal</el-radio>
|
<el-radio :label="true">Internal</el-radio>
|
||||||
<el-radio :label="false">External</el-radio>
|
<el-radio :label="false">External</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-show="user.IsZhiZhun === false" label="Organization Name: ">
|
<el-form-item
|
||||||
|
v-show="user.IsZhiZhun === false"
|
||||||
|
label="Organization Name: "
|
||||||
|
>
|
||||||
<el-input v-model="user.OrganizationName" />
|
<el-input v-model="user.OrganizationName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@@ -78,19 +100,24 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
:disabled="isDisabled"
|
:disabled="isDisabled"
|
||||||
style="margin:10px 15px"
|
style="margin: 10px 15px"
|
||||||
@click="handleSave"
|
@click="handleSave"
|
||||||
>Save</el-button>
|
>Save</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getUser, addUser, updateUser, getUserTypeListByUserType } from '@/api/admin.js'
|
import {
|
||||||
|
getUser,
|
||||||
|
addUser,
|
||||||
|
updateUser,
|
||||||
|
getUserTypeListByUserType,
|
||||||
|
} from '@/api/admin.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'UserInfo',
|
name: 'UserInfo',
|
||||||
props: {
|
props: {
|
||||||
userId: { type: String, default: '' }
|
userId: { type: String, default: '' },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -105,60 +132,69 @@ export default {
|
|||||||
IsZhiZhun: '',
|
IsZhiZhun: '',
|
||||||
OrganizationName: '',
|
OrganizationName: '',
|
||||||
DepartmentName: '',
|
DepartmentName: '',
|
||||||
PositionName: ''
|
PositionName: '',
|
||||||
},
|
},
|
||||||
userFormRules: {
|
userFormRules: {
|
||||||
UserName: [
|
UserName: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||||
{ max: 50, message: 'The maximum length is 50' }
|
{ max: 50, message: 'The maximum length is 50' },
|
||||||
],
|
],
|
||||||
UserTypeId: [
|
UserTypeId: [
|
||||||
{ required: true, message: 'Please Select', trigger: ['blur', 'change'] }
|
{
|
||||||
|
required: true,
|
||||||
|
message: 'Please Select',
|
||||||
|
trigger: ['blur', 'change'],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
IsZhiZhun: [
|
IsZhiZhun: [
|
||||||
{ required: true, message: 'Please Select', trigger: ['blur', 'change'] }
|
{
|
||||||
|
required: true,
|
||||||
|
message: 'Please Select',
|
||||||
|
trigger: ['blur', 'change'],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
OrganizationName: [
|
OrganizationName: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' }
|
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||||
],
|
],
|
||||||
LastName: [
|
LastName: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||||
{ max: 50, message: 'The maximum length is 50' }
|
{ max: 50, message: 'The maximum length is 50' },
|
||||||
],
|
],
|
||||||
FirstName: [
|
FirstName: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||||
{ max: 50, message: 'The maximum length is 50' }
|
{ max: 50, message: 'The maximum length is 50' },
|
||||||
],
|
],
|
||||||
Phone: [
|
Phone: [
|
||||||
{ max: 20, min: 7, message: 'The length is 7 to 20', trigger: ['blur'] }
|
{
|
||||||
|
max: 20,
|
||||||
|
min: 7,
|
||||||
|
message: 'The length is 7 to 20',
|
||||||
|
trigger: ['blur'],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
EMail: [
|
EMail: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: 'Please input the email address',
|
message: 'Please input the email address',
|
||||||
trigger: 'blur'
|
trigger: 'blur',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'email',
|
type: 'email',
|
||||||
message: 'Please input the correct email address',
|
message: 'Please input the correct email address',
|
||||||
trigger: ['blur']
|
trigger: ['blur'],
|
||||||
},
|
},
|
||||||
{ max: 50, message: 'The maximum length is 50' }
|
{ max: 50, message: 'The maximum length is 50' },
|
||||||
],
|
|
||||||
Sex: [
|
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' }
|
|
||||||
],
|
],
|
||||||
|
Sex: [{ required: true, message: 'Please specify', trigger: 'blur' }],
|
||||||
Status: [
|
Status: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' }
|
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||||
],
|
],
|
||||||
DepartmentName: [
|
DepartmentName: [{ max: 50, message: 'The maximum length is 50' }],
|
||||||
{ max: 50, message: 'The maximum length is 50' }],
|
PositionName: [{ max: 50, message: 'The maximum length is 50' }],
|
||||||
PositionName: [{ max: 50, message: 'The maximum length is 50' }
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
userTypeOptions: [],
|
userTypeOptions: [],
|
||||||
isDisabled: false,
|
isDisabled: false,
|
||||||
type: 0 // 1为编辑,0为新增
|
type: 0, // 1为编辑,0为新增
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -172,46 +208,58 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$refs.userForm.validate(valid => {
|
this.$refs.userForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isDisabled = true
|
this.isDisabled = true
|
||||||
const selectedUserType = this.userTypeOptions.filter(item => item.Id === this.user.UserTypeId)
|
const selectedUserType = this.userTypeOptions.filter(
|
||||||
|
(item) => item.Id === this.user.UserTypeId
|
||||||
|
)
|
||||||
if (selectedUserType.length > 0) {
|
if (selectedUserType.length > 0) {
|
||||||
this.user.UserTypeEnum = selectedUserType[0].UserTypeEnum
|
this.user.UserTypeEnum = selectedUserType[0].UserTypeEnum
|
||||||
}
|
}
|
||||||
if (this.user.Id) {
|
if (this.user.Id) {
|
||||||
updateUser(this.user).then(res => {
|
updateUser(this.user)
|
||||||
this.isDisabled = false
|
.then((res) => {
|
||||||
this.$message.success('Updated successfully')
|
this.isDisabled = false
|
||||||
}).catch(() => { this.isDisabled = false })
|
this.$message.success('Updated successfully')
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.isDisabled = false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
addUser(this.user).then(res => {
|
addUser(this.user)
|
||||||
this.isDisabled = false
|
.then((res) => {
|
||||||
this.user.Id = res.Result.Id
|
this.isDisabled = false
|
||||||
this.user.UserCode = res.Result.UserCode
|
this.user.Id = res.Result.Id
|
||||||
this.$emit('getUserId', res.Result.Id)
|
this.user.UserCode = res.Result.UserCode
|
||||||
this.$message.success('Added successfully')
|
this.$emit('getUserId', res.Result.Id)
|
||||||
this.$router.push({ path: '/system/user/list' })
|
this.$message.success('Added successfully')
|
||||||
}).catch(() => { this.isDisabled = false })
|
this.$router.push({ path: '/system/user/list' })
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.isDisabled = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getUserTypeList() {
|
getUserTypeList() {
|
||||||
getUserTypeListByUserType(0).then(res => {
|
getUserTypeListByUserType(0).then((res) => {
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.userTypeOptions = res.Result
|
this.userTypeOptions = res.Result
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
getUser(this.userId).then(res => {
|
getUser({
|
||||||
|
IdentityUserId: this.userId,
|
||||||
|
}).then((res) => {
|
||||||
this.user = res.Result
|
this.user = res.Result
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
OrgnizationTypeChanged(val) {
|
OrgnizationTypeChanged(val) {
|
||||||
this.user.OrganizationName = ''
|
this.user.OrganizationName = ''
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
/deep/ .el-collapse-item__header{
|
::v-deep .el-collapse-item__header{
|
||||||
background-color: #e9eef1;
|
background-color: #e9eef1;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
/deep/ .el-collapse-item__header{
|
::v-deep .el-collapse-item__header{
|
||||||
background-color: #e9eef1;
|
background-color: #e9eef1;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,8 +131,8 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
this.$store.dispatch('user/logout').then(res => {
|
this.$store.dispatch('user/logout').then(res => {
|
||||||
this.$router.push(`/login`)
|
this.$router.push(`/login`)
|
||||||
this.$i18n.locale = 'zh'
|
//this.$i18n.locale = 'zh'
|
||||||
this.setLanguage('zh')
|
//this.setLanguage('zh')
|
||||||
this.$updateDictionary()
|
this.$updateDictionary()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="preview-wrapper">
|
<div ref="preview-wrapper" class="preview-wrapper">
|
||||||
<div class="viewerContainer">
|
<div class="viewerContainer">
|
||||||
<div class="viewerContentWrapper" style="padding-top:25px;">
|
<div class="viewerContentWrapper" style="padding-top:25px;">
|
||||||
<div class="viewerLeftSidePanel">
|
<div class="viewerLeftSidePanel">
|
||||||
@@ -38,7 +38,39 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>-->
|
</span>-->
|
||||||
<div class="viewernavitextwrapper">
|
<div class="viewernavitextwrapper">
|
||||||
<div style="padding: 1px;">#{{ item.seriesNumber }}</div>
|
<div style="padding: 1px 5px 1px 1px;display: flex;justify-content: space-between;">
|
||||||
|
<div style="padding: 1px;">#{{ item.seriesNumber }}</div>
|
||||||
|
<div v-if="item.isExistMutiFrames && item.instanceCount > 1">
|
||||||
|
<el-popover
|
||||||
|
v-model="item.isShowPopper"
|
||||||
|
placement="right-start"
|
||||||
|
trigger="manual"
|
||||||
|
popper-class="instance_frame_wrapper"
|
||||||
|
>
|
||||||
|
<div style="text-align: right;">
|
||||||
|
<i class="el-icon-circle-close" style="font-size: 20px;cursor: pointer;color:#ddd;" @click="item.isShowPopper = false" />
|
||||||
|
</div>
|
||||||
|
<div class="frame_list">
|
||||||
|
<div
|
||||||
|
v-for="(instance, idx) in item.instanceInfoList"
|
||||||
|
:key="instance.InstanceUid"
|
||||||
|
class="frame_content"
|
||||||
|
:style="{'margin-bottom':idx<item.instanceInfoList.length-1? '5px':'0px'}"
|
||||||
|
@click="showMultiFrames(item, index, instance)"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<div>{{ instance.InstanceNumber }}</div>
|
||||||
|
<div>
|
||||||
|
{{ `${instance.NumberOfFrames > 0 ? instance.NumberOfFrames : 1} frame` }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<i slot="reference" class="el-icon-connection" style="font-size: 15px;cursor: pointer;" @click="popperClick(seriesList, item)" />
|
||||||
|
</el-popover>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="padding: 1px;">{{ item.description }}</div>
|
<div style="padding: 1px;">{{ item.description }}</div>
|
||||||
<div
|
<div
|
||||||
v-show="item.instanceCount"
|
v-show="item.instanceCount"
|
||||||
@@ -67,6 +99,8 @@ import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
|
|||||||
// import dicomStore from '@/utils/dicom-store'
|
// import dicomStore from '@/utils/dicom-store'
|
||||||
import dicomViewer from '@/components/Dicom/DicomViewer'
|
import dicomViewer from '@/components/Dicom/DicomViewer'
|
||||||
import dicomPreview from '@/components/Dicom/DicomPreview'
|
import dicomPreview from '@/components/Dicom/DicomPreview'
|
||||||
|
import metaDataProvider from '@/utils/metaDataProvider'
|
||||||
|
cornerstone.metaData.addProvider(metaDataProvider, { priority: 10 });
|
||||||
var config = {
|
var config = {
|
||||||
maxWebWorkers: 4,
|
maxWebWorkers: 4,
|
||||||
startWebWorkersOnDemand: true,
|
startWebWorkersOnDemand: true,
|
||||||
@@ -145,7 +179,11 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
var imageIds = []
|
var imageIds = []
|
||||||
|
let isExistMutiFrames = false
|
||||||
|
let instanceInfoList = []
|
||||||
series.instanceList.forEach(function(instance) {
|
series.instanceList.forEach(function(instance) {
|
||||||
|
console.log(instance)
|
||||||
|
let instanceInfo = {}
|
||||||
var fileId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
var fileId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
||||||
instance.file
|
instance.file
|
||||||
)
|
)
|
||||||
@@ -153,7 +191,19 @@ export default {
|
|||||||
for (var i = 0; i < instance.frameCount; ++i) {
|
for (var i = 0; i < instance.frameCount; ++i) {
|
||||||
imageIds.push(`${fileId}?frame=${i}`)
|
imageIds.push(`${fileId}?frame=${i}`)
|
||||||
}
|
}
|
||||||
} else imageIds.push(fileId)
|
isExistMutiFrames = true
|
||||||
|
instanceInfo.NumberOfFrames = instance.frameCount
|
||||||
|
instanceInfo.InstanceNumber = instance.instanceNumber
|
||||||
|
instanceInfo.InstanceUid = instance.instanceUid
|
||||||
|
instanceInfo.FileId = fileId
|
||||||
|
} else {
|
||||||
|
imageIds.push(fileId)
|
||||||
|
instanceInfo.NumberOfFrames = 0
|
||||||
|
instanceInfo.InstanceNumber = instance.instanceNumber
|
||||||
|
instanceInfo.InstanceUid = instance.instanceUid
|
||||||
|
instanceInfo.FileId = fileId
|
||||||
|
}
|
||||||
|
instanceInfoList.push(instanceInfo)
|
||||||
})
|
})
|
||||||
|
|
||||||
scope.seriesList.push({
|
scope.seriesList.push({
|
||||||
@@ -162,13 +212,43 @@ export default {
|
|||||||
modality: series.modality,
|
modality: series.modality,
|
||||||
instanceCount: series.instanceList.length,
|
instanceCount: series.instanceList.length,
|
||||||
imageIds: imageIds,
|
imageIds: imageIds,
|
||||||
previewImageId: imageIds[0]
|
previewImageId: imageIds[0],
|
||||||
|
isExistMutiFrames: isExistMutiFrames,
|
||||||
|
instanceInfoList: instanceInfoList,
|
||||||
|
isShowPopper: false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
this.showSeriesImage(0)
|
this.showSeriesImage(0)
|
||||||
},
|
},
|
||||||
|
popperClick(seriesList, series) {
|
||||||
|
for (let i = 0; i < seriesList.length; i++) {
|
||||||
|
if (seriesList[i].isShowPopper) {
|
||||||
|
seriesList[i].isShowPopper = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series.isShowPopper = !series.isShowPopper
|
||||||
|
},
|
||||||
|
showMultiFrames(series, seriesIndex, instanceInfo) {
|
||||||
|
this.currentSeriesIndex = seriesIndex
|
||||||
|
const imageIds = []
|
||||||
|
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
|
||||||
|
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
|
||||||
|
imageIds.push(`${instanceInfo.FileId}?frame=${j}`)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
imageIds.push(instanceInfo.FileId)
|
||||||
|
}
|
||||||
|
const seriesInfo = {
|
||||||
|
seriesNumber: series.seriesNumber,
|
||||||
|
description: series.description,
|
||||||
|
modality: series.modality,
|
||||||
|
instanceCount: series.instanceCount,
|
||||||
|
imageIds: imageIds,
|
||||||
|
previewImageId: imageIds[0],
|
||||||
|
}
|
||||||
|
this.$refs.dicomViewer.loadImageStack(seriesInfo)
|
||||||
|
},
|
||||||
showSeriesImage(seriesIndex) {
|
showSeriesImage(seriesIndex) {
|
||||||
// if (seriesIndex === this.currentSeriesIndex) return;
|
// if (seriesIndex === this.currentSeriesIndex) return;
|
||||||
this.currentSeriesIndex = seriesIndex
|
this.currentSeriesIndex = seriesIndex
|
||||||
@@ -181,136 +261,172 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss">
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 7px;
|
width: 7px;
|
||||||
height: 7px;
|
height: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #d0d0d0;
|
background: #d0d0d0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerContainer {
|
.viewerContainer {
|
||||||
display: block;
|
width: 100%;
|
||||||
height: 100%;
|
display: block;
|
||||||
margin-top: 20px;
|
height: 100%;
|
||||||
margin-left: auto;
|
margin-top: 20px;
|
||||||
margin-right: auto;
|
margin-left: auto;
|
||||||
background-color: #444;
|
margin-right: auto;
|
||||||
overflow: hidden;
|
background-color: #444;
|
||||||
}
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.viewerBanner {
|
.viewerBanner {
|
||||||
background: linear-gradient(0, #444, #222);
|
background: linear-gradient(0, #444, #222);
|
||||||
min-height: 28px;
|
min-height: 28px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerContentWrapper {
|
.viewerContentWrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
height: 99%;
|
height: 99%;
|
||||||
/* height: 95%; */
|
/* height: 95%; */
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: clip;
|
text-overflow: clip;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerContentWrapper > div {
|
.viewerContentWrapper > div {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerLeftSidePanel {
|
.viewerLeftSidePanel {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
background-color: #323232;
|
background-color: #323232;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
color: #d0d0d0;
|
color: #d0d0d0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerContentWrapper > div > .sidePanelBody {
|
.viewerContentWrapper > div > .sidePanelBody {
|
||||||
background: rgba(50, 50, 50, 1);
|
background: rgba(50, 50, 50, 1);
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 1px solid #3e3f3a;
|
border: 1px solid #3e3f3a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerContentWrapper > div > div.sidePanelBody > div {
|
.viewerContentWrapper > div > div.sidePanelBody > div {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.studyDesc {
|
.studyDesc {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: rgb(88 84 83);
|
background: rgb(88 84 83);
|
||||||
color: #d0d0d0;
|
color: #d0d0d0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ps {
|
.ps {
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
overflow-anchor: none;
|
overflow-anchor: none;
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
touch-action: auto;
|
touch-action: auto;
|
||||||
-ms-touch-action: auto;
|
-ms-touch-action: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerLeftSidePanel .viewernavigatorwrapper {
|
.viewerLeftSidePanel .viewernavigatorwrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 196px;
|
width: 196px;
|
||||||
height: 84px;
|
height: 84px;
|
||||||
padding: 1px 2px 1px 8px;
|
padding: 1px 2px 1px 8px;
|
||||||
margin: 6px 0 6px 1px;
|
margin: 6px 0 6px 1px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid #404040;
|
border: 1px solid #404040;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-draggable-handle {
|
.ui-draggable-handle {
|
||||||
-ms-touch-action: none;
|
-ms-touch-action: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerLeftSidePanel .image-preview {
|
.viewerLeftSidePanel .image-preview {
|
||||||
border: 2px solid #252525;
|
border: 2px solid #252525;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerLeftSidePanel .viewernavitextwrapper {
|
.viewerLeftSidePanel .viewernavitextwrapper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 3px 1px 3px 4px;
|
padding: 3px 1px 3px 4px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerSideActive {
|
.viewerSideActive {
|
||||||
background: #16477b;
|
background: #16477b;
|
||||||
background: #16477b80;
|
background: #16477b80;
|
||||||
border: 1px solid #23527b;
|
border: 1px solid #23527b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewerContent {
|
.viewerContent {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
color: #d0d0d0;
|
color: #d0d0d0;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
.instance_frame_wrapper{
|
||||||
|
min-width: 120px;
|
||||||
|
background-color: #2c2c2c;
|
||||||
|
border: 1px solid #2c2c2c;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.frame_list{
|
||||||
|
max-height: 500px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
.instance_frame_wrapper ::-webkit-scrollbar {
|
||||||
|
width: 7px;
|
||||||
|
height: 7px;
|
||||||
|
}
|
||||||
|
.instance_frame_wrapper ::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #d0d0d0;
|
||||||
|
}
|
||||||
|
.frame_content{
|
||||||
|
/* height: 50px; */
|
||||||
|
padding: 10px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
color: #ddd;
|
||||||
|
font-size: 12px;
|
||||||
|
border: 1px solid #404040;
|
||||||
|
}
|
||||||
|
.frame_content:hover {
|
||||||
|
/* font-weight: bold; */
|
||||||
|
/* box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); */
|
||||||
|
cursor: pointer;
|
||||||
|
/* color: #428bca; */
|
||||||
|
border-color: #213a54 !important;
|
||||||
|
background-color: #213a54;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -52,10 +52,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="item.isExistMutiFrames && item.instanceCount > 1">
|
<div v-if="item.isExistMutiFrames && item.instanceCount > 1">
|
||||||
<el-popover
|
<el-popover
|
||||||
placement="right"
|
v-model="item.isShowPopper"
|
||||||
trigger="hover"
|
placement="right-start"
|
||||||
|
trigger="manual"
|
||||||
popper-class="instance_frame_wrapper"
|
popper-class="instance_frame_wrapper"
|
||||||
>
|
>
|
||||||
|
<div style="text-align: right;">
|
||||||
|
<i class="el-icon-circle-close" style="font-size: 20px;cursor: pointer;color:#ddd;" @click="item.isShowPopper = false" />
|
||||||
|
</div>
|
||||||
<div class="frame_list">
|
<div class="frame_list">
|
||||||
<div
|
<div
|
||||||
v-for="(instance, idx) in item.instanceInfoList"
|
v-for="(instance, idx) in item.instanceInfoList"
|
||||||
@@ -66,11 +70,27 @@
|
|||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<div>{{ instance.InstanceNumber }}</div>
|
<div>{{ instance.InstanceNumber }}</div>
|
||||||
<div>{{ `${instance.NumberOfFrames > 0 ? instance.NumberOfFrames : 1} frame` }}</div>
|
<div>
|
||||||
|
{{ `${instance.NumberOfFrames > 0 ? instance.NumberOfFrames : 1} frame` }}
|
||||||
|
</div>
|
||||||
|
<div v-if="showDelete">
|
||||||
|
<span>{{ $t('trials:audit:table:isDelete') }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="instance.IsDeleted"
|
||||||
|
size="mini"
|
||||||
|
@change="changeInstanceDeleteStatus($event, item, instance)"
|
||||||
|
/>
|
||||||
|
<span style="margin-left:10px;">{{ $t('trials:audit:table:isReading') }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="instance.IsReading"
|
||||||
|
size="mini"
|
||||||
|
@change="changeInstanceReadingStatus($event, item, instance)"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<i slot="reference" class="el-icon-connection" style="font-size: 15px;cursor: pointer;" />
|
<i slot="reference" class="el-icon-connection" style="font-size: 15px;cursor: pointer;" @click="popperClick(seriesList, item)" />
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -138,11 +158,13 @@ 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 } from '@/api/trials'
|
import { getInstanceList, getPatientSeriesList, setSeriesStatus, setInstanceStatus } from '@/api/trials'
|
||||||
|
|
||||||
import requestPoolManager from '@/utils/request-pool'
|
import requestPoolManager from '@/utils/request-pool'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import { changeURLStatic } from '@/utils/history.js'
|
import { changeURLStatic } from '@/utils/history.js'
|
||||||
|
import metaDataProvider from '@/utils/metaDataProvider'
|
||||||
|
cornerstone.metaData.addProvider(metaDataProvider, { priority: 10 })
|
||||||
var config = {
|
var config = {
|
||||||
maxWebWorkers: 4,
|
maxWebWorkers: 4,
|
||||||
startWebWorkersOnDemand: true,
|
startWebWorkersOnDemand: true,
|
||||||
@@ -294,7 +316,8 @@ export default {
|
|||||||
tpCode: this.tpCode,
|
tpCode: this.tpCode,
|
||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: item.IsExistMutiFrames
|
isExistMutiFrames: item.IsExistMutiFrames,
|
||||||
|
isShowPopper: false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
@@ -353,7 +376,8 @@ export default {
|
|||||||
tpCode: this.tpCode,
|
tpCode: this.tpCode,
|
||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: item.IsExistMutiFrames
|
isExistMutiFrames: item.IsExistMutiFrames,
|
||||||
|
isShowPopper: false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
@@ -382,8 +406,8 @@ export default {
|
|||||||
if (!res.Result || (res.Result && res.Result.length === 0)) return
|
if (!res.Result || (res.Result && res.Result.length === 0)) return
|
||||||
var seriesInstanceUid = res.Result[0].SeriesInstanceUid
|
var seriesInstanceUid = res.Result[0].SeriesInstanceUid
|
||||||
var sliceThickness = res.Result[0].SliceThickness
|
var sliceThickness = res.Result[0].SliceThickness
|
||||||
var isReading = res.Result[0].IsReading
|
var isReading = res.OtherInfo.IsReading
|
||||||
var isDeleted = res.Result[0].IsDeleted
|
var isDeleted = res.OtherInfo.IsDeleted
|
||||||
var seriesList = []
|
var seriesList = []
|
||||||
var imageIds = []
|
var imageIds = []
|
||||||
let isExistMutiFrames = false
|
let isExistMutiFrames = false
|
||||||
@@ -401,7 +425,7 @@ export default {
|
|||||||
imageIds.push(path)
|
imageIds.push(path)
|
||||||
imageId = path
|
imageId = path
|
||||||
}
|
}
|
||||||
instanceInfoList.push({ Id: instance.Id, InstanceNumber: instance.InstanceNumber, NumberOfFrames: instance.NumberOfFrames, Path: instance.Path, ImageId: imageId })
|
instanceInfoList.push({ Id: instance.Id, InstanceNumber: instance.InstanceNumber, NumberOfFrames: instance.NumberOfFrames, Path: instance.Path, ImageId: imageId, IsDeleted: instance.IsDeleted, IsReading: instance.IsReading })
|
||||||
})
|
})
|
||||||
seriesList.push({
|
seriesList.push({
|
||||||
trialId,
|
trialId,
|
||||||
@@ -422,7 +446,8 @@ export default {
|
|||||||
prefetchInstanceCount: 0,
|
prefetchInstanceCount: 0,
|
||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: isExistMutiFrames
|
isExistMutiFrames: isExistMutiFrames,
|
||||||
|
isShowPopper: false
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
if (this.seriesList.length > 0) {
|
if (this.seriesList.length > 0) {
|
||||||
@@ -571,7 +596,8 @@ export default {
|
|||||||
hasLabel: seriesInfo.HasLabel,
|
hasLabel: seriesInfo.HasLabel,
|
||||||
keySeries: seriesInfo.KeySeries,
|
keySeries: seriesInfo.KeySeries,
|
||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: []
|
imageloadedArr: [],
|
||||||
|
isShowPopper: false
|
||||||
})
|
})
|
||||||
this.seriesList = seriesList
|
this.seriesList = seriesList
|
||||||
if (this.seriesList.length > 0) {
|
if (this.seriesList.length > 0) {
|
||||||
@@ -669,6 +695,81 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async changeInstanceReadingStatus(callback, series, instance) {
|
||||||
|
let statusStr = ''
|
||||||
|
if (callback) {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesReading')
|
||||||
|
instance.IsReading = false
|
||||||
|
} else {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesNotReading')
|
||||||
|
instance.IsReading = true
|
||||||
|
}
|
||||||
|
var message = this.$t('trials:audit:message:changeSeriesStatus').replace('xxx', statusStr)
|
||||||
|
message = message.replace('yyy', this.$fd('YesOrNo', !instance.IsReading))
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
message,
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
|
const state = instance.IsReading ? 1 : 2
|
||||||
|
this.loading = true
|
||||||
|
try {
|
||||||
|
const res = await setInstanceStatus(series.trialId, series.subjectVisitId, series.seriesId, instance.Id, state)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
instance.IsReading = !instance.IsReading
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
window.opener.postMessage({ type: 'refreshSeriesList', data: '' }, window.location)
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async changeInstanceDeleteStatus(callback, series, instance) {
|
||||||
|
let statusStr = ''
|
||||||
|
if (callback) {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesDeleted')
|
||||||
|
instance.IsDeleted = false
|
||||||
|
} else {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesNotDelete')
|
||||||
|
instance.IsDeleted = true
|
||||||
|
}
|
||||||
|
var message = this.$t('trials:audit:message:changeSeriesStatus').replace('xxx', statusStr)
|
||||||
|
message = message.replace('yyy', this.$fd('YesOrNo', !instance.IsDeleted))
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
message,
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
|
|
||||||
|
const state = instance.IsDeleted ? 5 : 4
|
||||||
|
this.loading = true
|
||||||
|
try {
|
||||||
|
const res = await setInstanceStatus(series.trialId, series.subjectVisitId, series.seriesId, instance.Id, state)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
instance.IsDeleted = !instance.IsDeleted
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
window.opener.postMessage({ type: 'refreshSeriesList', data: '' }, window.location)
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
popperClick(seriesList, series) {
|
||||||
|
for (let i = 0; i < seriesList.length; i++) {
|
||||||
|
if (seriesList[i].isShowPopper) {
|
||||||
|
seriesList[i].isShowPopper = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series.isShowPopper = !series.isShowPopper
|
||||||
|
},
|
||||||
loadAllImages() {
|
loadAllImages() {
|
||||||
const seriesIndex = this.seriesList.findIndex(i => i.loadStatus === false)
|
const seriesIndex = this.seriesList.findIndex(i => i.loadStatus === false)
|
||||||
if (seriesIndex === -1) return
|
if (seriesIndex === -1) return
|
||||||
@@ -946,8 +1047,8 @@ export default {
|
|||||||
background: #d0d0d0;
|
background: #d0d0d0;
|
||||||
}
|
}
|
||||||
.frame_content{
|
.frame_content{
|
||||||
height: 50px;
|
/* height: 50px; */
|
||||||
padding: 5px;
|
padding: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
|
|||||||
@@ -59,34 +59,56 @@
|
|||||||
<div>#{{ series.seriesNumber }}</div>
|
<div>#{{ series.seriesNumber }}</div>
|
||||||
<div v-if="series.isExistMutiFrames && series.instanceCount > 1">
|
<div v-if="series.isExistMutiFrames && series.instanceCount > 1">
|
||||||
<el-popover
|
<el-popover
|
||||||
placement="right"
|
v-model="series.isShowPopper"
|
||||||
trigger="hover"
|
placement="right-start"
|
||||||
|
trigger="manual"
|
||||||
popper-class="instance_frame_wrapper"
|
popper-class="instance_frame_wrapper"
|
||||||
>
|
>
|
||||||
<div
|
<div style="text-align: right;">
|
||||||
v-for="(instance, idx) in series.instanceInfoList"
|
<i class="el-icon-circle-close" style="font-size: 20px;cursor: pointer;color:#ddd;" @click="series.isShowPopper = false" />
|
||||||
:key="instance.Id"
|
|
||||||
class="frame_content"
|
|
||||||
:style="{'margin-bottom':idx<series.instanceInfoList.length-1? '5px':'0px'}"
|
|
||||||
@click="showMultiFrames(index,series, i, instance)"
|
|
||||||
>
|
|
||||||
<!-- <div>
|
|
||||||
<img
|
|
||||||
class="image-preview"
|
|
||||||
:src="series.previewImageUrl"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
alt=""
|
|
||||||
style="width: 40px;height:40px;"
|
|
||||||
fit="fill"
|
|
||||||
>
|
|
||||||
</div> -->
|
|
||||||
<div>
|
|
||||||
<div>{{ instance.InstanceNumber }}</div>
|
|
||||||
<div>{{ `${instance.NumberOfFrames > 0 ? instance.NumberOfFrames : 1} frame` }}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<i slot="reference" class="el-icon-connection" style="font-size: 15px;cursor: pointer;" />
|
<div class="frame_list">
|
||||||
|
<div
|
||||||
|
v-for="(instance, idx) in series.instanceInfoList"
|
||||||
|
:key="instance.Id"
|
||||||
|
class="frame_content"
|
||||||
|
:style="{'margin-bottom':idx<series.instanceInfoList.length-1? '5px':'0px'}"
|
||||||
|
@click="showMultiFrames(index,series, i, instance)"
|
||||||
|
>
|
||||||
|
<!-- <div>
|
||||||
|
<img
|
||||||
|
class="image-preview"
|
||||||
|
:src="series.previewImageUrl"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
alt=""
|
||||||
|
style="width: 40px;height:40px;"
|
||||||
|
fit="fill"
|
||||||
|
>
|
||||||
|
</div> -->
|
||||||
|
<div>
|
||||||
|
<div>{{ instance.InstanceNumber }}</div>
|
||||||
|
<div>
|
||||||
|
{{ `${instance.NumberOfFrames > 0 ? instance.NumberOfFrames : 1} frame` }}
|
||||||
|
</div>
|
||||||
|
<div v-if="showDelete">
|
||||||
|
<span>{{ $t('trials:audit:table:isDelete') }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="instance.IsDeleted"
|
||||||
|
size="mini"
|
||||||
|
@change="changeInstanceDeleteStatus($event, series, instance)"
|
||||||
|
/>
|
||||||
|
<span style="margin-left:10px;">{{ $t('trials:audit:table:isReading') }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="instance.IsReading"
|
||||||
|
size="mini"
|
||||||
|
@change="changeInstanceReadingStatus($event, series, instance)"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<i slot="reference" class="el-icon-connection" style="font-size: 15px;cursor: pointer;" @click="popperClick(studyList, series)" />
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -143,7 +165,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="$t('trials:dicom-show:relatedVisit')" name="relation-study" class="pane-relation-wrapper" v-if="!visitTaskId">
|
<el-tab-pane v-if="!visitTaskId" :label="$t('trials:dicom-show:relatedVisit')" name="relation-study" class="pane-relation-wrapper">
|
||||||
<div class="viewerSidethumbinner">
|
<div class="viewerSidethumbinner">
|
||||||
<el-collapse v-model="relationActiveName" @change="handelRelationActiveChange">
|
<el-collapse v-model="relationActiveName" @change="handelRelationActiveChange">
|
||||||
<el-collapse-item v-for="(study,studyIndex) in relationStudyList" :key="`${study.StudyId}`" :name="`${study.StudyId}`">
|
<el-collapse-item v-for="(study,studyIndex) in relationStudyList" :key="`${study.StudyId}`" :name="`${study.StudyId}`">
|
||||||
@@ -196,8 +218,8 @@
|
|||||||
<div v-else>#{{ seriesItem.seriesNumber }}</div>
|
<div v-else>#{{ seriesItem.seriesNumber }}</div>
|
||||||
<div v-if="seriesItem.isExistMutiFrames && seriesItem.instanceCount > 1">
|
<div v-if="seriesItem.isExistMutiFrames && seriesItem.instanceCount > 1">
|
||||||
<el-popover
|
<el-popover
|
||||||
placement="right"
|
placement="right-start"
|
||||||
trigger="hover"
|
trigger="click"
|
||||||
popper-class="instance_frame_wrapper"
|
popper-class="instance_frame_wrapper"
|
||||||
>
|
>
|
||||||
<div class="frame_list">
|
<div class="frame_list">
|
||||||
@@ -260,11 +282,13 @@ 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 } from '@/api/trials'
|
import { setSeriesStatus, setInstanceStatus } 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'
|
||||||
import { changeURLStatic } from '@/utils/history.js'
|
import { changeURLStatic } from '@/utils/history.js'
|
||||||
|
import metaDataProvider from '@/utils/metaDataProvider'
|
||||||
|
cornerstone.metaData.addProvider(metaDataProvider, { priority: 10 })
|
||||||
// import * as cornerstoneTools from 'cornerstone-tools'
|
// import * as cornerstoneTools from 'cornerstone-tools'
|
||||||
var config = {
|
var config = {
|
||||||
maxWebWorkers: 4,
|
maxWebWorkers: 4,
|
||||||
@@ -346,7 +370,7 @@ export default {
|
|||||||
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 })
|
||||||
} else if (this.page === 'download'){
|
} else if (this.page === 'download') {
|
||||||
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId)
|
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading, this.visitTaskId)
|
||||||
} else {
|
} else {
|
||||||
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading)
|
res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading)
|
||||||
@@ -397,7 +421,8 @@ export default {
|
|||||||
prefetchInstanceCount: 0,
|
prefetchInstanceCount: 0,
|
||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: series.IsExistMutiFrames
|
isExistMutiFrames: series.IsExistMutiFrames,
|
||||||
|
isShowPopper: false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
data.SeriesList = seriesList
|
data.SeriesList = seriesList
|
||||||
@@ -593,6 +618,83 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async changeInstanceReadingStatus(callback, series, instance) {
|
||||||
|
let statusStr = ''
|
||||||
|
if (callback) {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesReading')
|
||||||
|
instance.IsReading = false
|
||||||
|
} else {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesNotReading')
|
||||||
|
instance.IsReading = true
|
||||||
|
}
|
||||||
|
var message = this.$t('trials:audit:message:changeSeriesStatus').replace('xxx', statusStr)
|
||||||
|
message = message.replace('yyy', this.$fd('YesOrNo', !instance.IsReading))
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
message,
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
|
const state = instance.IsReading ? 1 : 2
|
||||||
|
this.loading = true
|
||||||
|
try {
|
||||||
|
const res = await setInstanceStatus(series.trialId, series.subjectVisitId, series.seriesId, instance.Id, state)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
instance.IsReading = !instance.IsReading
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
window.opener.postMessage({ type: 'refreshSeriesList', data: '' }, window.location)
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async changeInstanceDeleteStatus(callback, series, instance) {
|
||||||
|
let statusStr = ''
|
||||||
|
if (callback) {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesDeleted')
|
||||||
|
instance.IsDeleted = false
|
||||||
|
} else {
|
||||||
|
statusStr = this.$t('trials:audit:label:setSeriesNotDelete')
|
||||||
|
instance.IsDeleted = true
|
||||||
|
}
|
||||||
|
var message = this.$t('trials:audit:message:changeSeriesStatus').replace('xxx', statusStr)
|
||||||
|
message = message.replace('yyy', this.$fd('YesOrNo', !instance.IsDeleted))
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
message,
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
|
|
||||||
|
const state = instance.IsDeleted ? 5 : 4
|
||||||
|
this.loading = true
|
||||||
|
try {
|
||||||
|
const res = await setInstanceStatus(series.trialId, series.subjectVisitId, series.seriesId, instance.Id, state)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
instance.IsDeleted = !instance.IsDeleted
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
window.opener.postMessage({ type: 'refreshSeriesList', data: '' }, window.location)
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
popperClick(studyList, series) {
|
||||||
|
for (let i = 0; i < studyList.length; i++) {
|
||||||
|
for (let j = 0; j < studyList[i].SeriesList.length; j++) {
|
||||||
|
if (studyList[i].SeriesList[j].isShowPopper) {
|
||||||
|
studyList[i].SeriesList[j].isShowPopper = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series.isShowPopper = !series.isShowPopper
|
||||||
|
},
|
||||||
// 切换关联检查Tab时获取关联检查信息
|
// 切换关联检查Tab时获取关联检查信息
|
||||||
async handleTabClick(tab, event) {
|
async handleTabClick(tab, event) {
|
||||||
if (tab.name === 'relation-study' && this.relationStudyList.length <= 0) {
|
if (tab.name === 'relation-study' && this.relationStudyList.length <= 0) {
|
||||||
@@ -669,7 +771,8 @@ export default {
|
|||||||
keySeries: item.KeySeries,
|
keySeries: item.KeySeries,
|
||||||
loadStatus: false,
|
loadStatus: false,
|
||||||
imageloadedArr: [],
|
imageloadedArr: [],
|
||||||
isExistMutiFrames: item.IsExistMutiFrames
|
isExistMutiFrames: item.IsExistMutiFrames,
|
||||||
|
isShowPopper: false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
scope.relationStudyList[index].seriesCount = seriesList.length
|
scope.relationStudyList[index].seriesCount = seriesList.length
|
||||||
@@ -976,9 +1079,21 @@ export default {
|
|||||||
border: 1px solid #2c2c2c;
|
border: 1px solid #2c2c2c;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
.frame_list{
|
||||||
|
max-height: 500px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
.instance_frame_wrapper ::-webkit-scrollbar {
|
||||||
|
width: 7px;
|
||||||
|
height: 7px;
|
||||||
|
}
|
||||||
|
.instance_frame_wrapper ::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #d0d0d0;
|
||||||
|
}
|
||||||
.frame_content{
|
.frame_content{
|
||||||
height: 50px;
|
/* height: 50px; */
|
||||||
padding: 5px;
|
padding: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
class="upload-temporary-file"
|
class="upload-temporary-file"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="Code" prop="Code">
|
<el-form-item :label="$t('dictionary:attachment: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="业务场景: " prop="BusinessScenarioEnum">
|
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')" prop="BusinessScenarioEnum">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.BusinessScenarioEnum"
|
v-model="form.BusinessScenarioEnum"
|
||||||
style="width:100%;"
|
style="width:100%;"
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="文件: ">
|
<el-form-item :label="$t('dictionary:attachment:export:form:file')">
|
||||||
<div class="upload-container">
|
<div class="upload-container">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="form.Id !== ''" label="是否废除: ">
|
<el-form-item v-if="form.Id !== ''" label="是否废除: ">
|
||||||
<el-radio-group v-model="form.IsDeleted">
|
<el-radio-group v-model="form.IsDeleted">
|
||||||
<el-radio v-for="item of $d.YesOrNo" :label="item.value">{{ item.label }}</el-radio>
|
<el-radio v-for="item of $d.YesOrNo" :key="`IsDeleted${item.value}`" :label="item.value">{{ item.label }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述">
|
<el-form-item label="描述">
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
<el-form-item label="业务场景">
|
<!-- 业务场景 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="searchData.BusinessScenarioEnum"
|
v-model="searchData.BusinessScenarioEnum"
|
||||||
style="width:150px;"
|
style="width:150px;"
|
||||||
@@ -16,7 +17,8 @@
|
|||||||
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件名称">
|
<!-- 文件名称 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:name')">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="searchData.Name"
|
v-model="searchData.Name"
|
||||||
style="width:130px;"
|
style="width:130px;"
|
||||||
@@ -37,7 +39,6 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-plus"
|
|
||||||
style="margin-left:auto;"
|
style="margin-left:auto;"
|
||||||
size="small"
|
size="small"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
@@ -57,14 +58,14 @@
|
|||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="Code"
|
:label="$t('dictionary:attachment:label:code')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="BusinessScenarioEnum"
|
prop="BusinessScenarioEnum"
|
||||||
label="业务场景"
|
:label="$t('dictionary:attachment:label:businessScenario')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -76,18 +77,18 @@
|
|||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Name"
|
prop="Name"
|
||||||
label="文件名称"
|
:label="$t('dictionary:attachment:label:name')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="描述"
|
:label="$t('dictionary:attachment:label:description')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsDeleted"
|
prop="IsDeleted"
|
||||||
label="是否废除"
|
:label="$t('dictionary:attachment:label:isDeleted')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -98,30 +99,30 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="UpdateTime"
|
prop="UpdateTime"
|
||||||
label="更新时间"
|
:label="$t('dictionary:attachment:label:updateTime')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column label="Action">
|
<el-table-column label="Action" width="300">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDownload(scope.row)"
|
@click="handleDownload(scope.row)"
|
||||||
>
|
>
|
||||||
下载
|
{{ $t('common:button:download') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<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>
|
||||||
@@ -176,9 +177,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$confirm('确定删除该文件?').then(() => {
|
this.$confirm(this.$t('dictionary:attachment:export:confirm:delete')).then(() => {
|
||||||
deleteCommonDocument(row.Id).then(() => {
|
deleteCommonDocument(row.Id).then(() => {
|
||||||
this.$message.success('删除成功')
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -195,7 +196,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.editDialog.title = 'Add'
|
this.editDialog.title = this.$t('common:button:new')
|
||||||
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
@@ -208,7 +209,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.editDialog.title = 'Edit'
|
this.editDialog.title = this.$t('common:action:edit')
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<el-form-item v-if="form.Id !== ''" label="是否废除: ">
|
<el-form-item v-if="form.Id !== ''" label="是否废除: ">
|
||||||
<el-radio-group v-model="form.IsDeleted">
|
<el-radio-group v-model="form.IsDeleted">
|
||||||
|
|
||||||
<el-radio v-for="item of $d.YesOrNo" :label="item.value">{{ item.label }}</el-radio>
|
<el-radio v-for="item of $d.YesOrNo" :key="`IsDeleted${item.value}`" :label="item.value">{{ item.label }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述">
|
<el-form-item label="描述">
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
<el-form-item label="业务场景">
|
<!-- 业务场景 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="searchData.BusinessScenarioEnum"
|
v-model="searchData.BusinessScenarioEnum"
|
||||||
style="width:150px;"
|
style="width:150px;"
|
||||||
@@ -16,7 +17,8 @@
|
|||||||
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件名称">
|
<!-- 文件名称 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:name')">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="searchData.Name"
|
v-model="searchData.Name"
|
||||||
style="width:130px;"
|
style="width:130px;"
|
||||||
@@ -57,14 +59,14 @@
|
|||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="Code"
|
:label="$t('dictionary:attachment:label:code')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="BusinessScenarioEnum"
|
prop="BusinessScenarioEnum"
|
||||||
label="业务场景"
|
:label="$t('dictionary:attachment:label:businessScenario')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -76,7 +78,7 @@
|
|||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Name"
|
prop="Name"
|
||||||
label="文件名称"
|
:label="$t('dictionary:attachment:label:name')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
@@ -92,12 +94,12 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="描述"
|
:label="$t('dictionary:attachment:label:description')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsDeleted"
|
prop="IsDeleted"
|
||||||
label="是否废除"
|
:label="$t('dictionary:attachment:label:isDeleted')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -108,18 +110,18 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="UpdateTime"
|
prop="UpdateTime"
|
||||||
label="更新时间"
|
:label="$t('dictionary:attachment:label:updateTime')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column label="Action">
|
<el-table-column :label="$t('common:action:action')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDownload(scope.row)"
|
@click="handleDownload(scope.row)"
|
||||||
>
|
>
|
||||||
下载
|
{{ $t('common:button:download') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
class="upload-temporary-file"
|
class="upload-temporary-file"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="Code" prop="Code">
|
<el-form-item :label="$t('dictionary:attachment:export:search:code')" prop="Code">
|
||||||
<el-input v-model="form.Code" />
|
<el-input v-model="form.Code" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -76,8 +76,9 @@
|
|||||||
:label="$t('dictionary:attachment:export:form:isDeleted')"
|
:label="$t('dictionary:attachment:export:form:isDeleted')"
|
||||||
>
|
>
|
||||||
<el-radio-group v-model="form.IsDeleted">
|
<el-radio-group v-model="form.IsDeleted">
|
||||||
<el-radio :label="true">是</el-radio>
|
<el-radio v-for="item of $d.YesOrNo" :key="`IsDeleted${item.value}`" :label="item.value">
|
||||||
<el-radio :label="false">否</el-radio>
|
{{ item.label }}
|
||||||
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-plus"
|
|
||||||
style="float: right"
|
style="float: right"
|
||||||
size="small"
|
size="small"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
@@ -60,7 +59,7 @@
|
|||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="Code"
|
:label="$t('dictionary:attachment:export:search:code')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
@@ -120,7 +119,7 @@
|
|||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column :label="$t('common:action:action')">
|
<el-table-column :label="$t('common:action:action')" width="300">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click="PreviewFile(scope.row)">
|
<el-button type="text" @click="PreviewFile(scope.row)">
|
||||||
{{ $t('common:button:preview') }}
|
{{ $t('common:button:preview') }}
|
||||||
@@ -235,7 +234,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.editDialog.title = 'Add'
|
this.editDialog.title = this.$t('common:button:new')
|
||||||
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
@@ -252,7 +251,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.editDialog.title = 'Edit'
|
this.editDialog.title = this.$t('common:action:edit')
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,13 +3,16 @@
|
|||||||
ref="sysAttachmentFrom"
|
ref="sysAttachmentFrom"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:model="form"
|
:model="form"
|
||||||
label-width="170px"
|
label-width="190px"
|
||||||
size="small"
|
size="small"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
class="upload-temporary-file"
|
class="upload-temporary-file"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="文件类型: " prop="FileTypeId">
|
<el-form-item
|
||||||
|
:label="$t('dictionary:signature:form:FileTypeId')"
|
||||||
|
prop="FileTypeId"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.FileTypeId"
|
v-model="form.FileTypeId"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@@ -25,7 +28,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="文件: ">
|
<el-form-item :label="$t('dictionary:signature:form:File')">
|
||||||
<div class="upload-container">
|
<div class="upload-container">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
@@ -46,16 +49,16 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
:disabled="form.FileTypeId === ''"
|
:disabled="form.FileTypeId === ''"
|
||||||
:loading="btnLoading"
|
:loading="btnLoading"
|
||||||
>Select</el-button
|
>{{ $t('common:button:check') }}</el-button
|
||||||
>
|
>
|
||||||
<span slot="tip" style="margin-left: 10px" class="el-upload__tip">
|
<span slot="tip" style="margin-left: 10px" class="el-upload__tip">
|
||||||
(must be in pdf format)
|
({{ $t('trials:signature:label:mustBepdf') }})
|
||||||
</span>
|
</span>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="需要签署的用户类型: "
|
:label="$t('dictionary:signature:form:NeedConfirmedUserTypeIdList')"
|
||||||
prop="NeedConfirmedUserTypeIdList"
|
prop="NeedConfirmedUserTypeIdList"
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
@@ -71,7 +74,10 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否仅内部签署: " prop="DocUserSignType">
|
<el-form-item
|
||||||
|
:label="$t('dictionary:signature:form:DocUserSignType')"
|
||||||
|
prop="DocUserSignType"
|
||||||
|
>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.DocUserSignType"
|
v-model="form.DocUserSignType"
|
||||||
:active-value="1"
|
:active-value="1"
|
||||||
@@ -80,7 +86,7 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="查看最短时间(分钟): "
|
:label="$t('dictionary:signature:form:SignViewMinimumMinutes')"
|
||||||
prop="SignViewMinimumMinutes"
|
prop="SignViewMinimumMinutes"
|
||||||
>
|
>
|
||||||
<el-input-number
|
<el-input-number
|
||||||
@@ -105,7 +111,7 @@
|
|||||||
:disabled="form.FileTypeId === '' || form.Name === ''"
|
:disabled="form.FileTypeId === '' || form.Name === ''"
|
||||||
:loading="saveBtnLoading"
|
:loading="saveBtnLoading"
|
||||||
@click="handleSave"
|
@click="handleSave"
|
||||||
>Save</el-button
|
>{{ $t('common:button:save') }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -138,13 +144,25 @@ export default {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
FileTypeId: [
|
FileTypeId: [
|
||||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('common:ruleMessage:select'),
|
||||||
|
trigger: ['blur'],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
SignViewMinimumMinutes: [
|
SignViewMinimumMinutes: [
|
||||||
{ required: true, message: 'Please specify', trigger: ['change'] },
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('common:ruleMessage:specify'),
|
||||||
|
trigger: ['change'],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
NeedConfirmedUserTypeIdList: [
|
NeedConfirmedUserTypeIdList: [
|
||||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('common:ruleMessage:select'),
|
||||||
|
trigger: ['blur'],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
fileList: [],
|
fileList: [],
|
||||||
@@ -211,7 +229,7 @@ export default {
|
|||||||
this.fileList = []
|
this.fileList = []
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
this.$alert('must be in pdf format')
|
this.$alert(this.$t('trials:signature:label:mustBepdf'))
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@@ -236,7 +254,7 @@ export default {
|
|||||||
this.$refs.sysAttachmentFrom.validate((valid) => {
|
this.$refs.sysAttachmentFrom.validate((valid) => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
if (!this.form.Name) {
|
if (!this.form.Name) {
|
||||||
this.$alert('Please select file.')
|
this.$alert(this.$t('trials:signature:message:selectFile'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.saveBtnLoading = true
|
this.saveBtnLoading = true
|
||||||
@@ -245,7 +263,7 @@ export default {
|
|||||||
this.saveBtnLoading = false
|
this.saveBtnLoading = false
|
||||||
this.$emit('closeDialog')
|
this.$emit('closeDialog')
|
||||||
this.$emit('getList')
|
this.$emit('getList')
|
||||||
this.$message.success('Uploaded successfully')
|
this.$message.success(this.$t('common:message:updatedSuccessfully'))
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.saveBtnLoading = false
|
this.saveBtnLoading = false
|
||||||
@@ -263,7 +281,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExceed(files, fileList) {
|
handleExceed(files, fileList) {
|
||||||
this.$message.warning(`Upload is currently limited to 1 file`)
|
this.$message.warning(this.$t('upload:rule:maxFile1'))
|
||||||
},
|
},
|
||||||
checkFileSuffix(fileName) {
|
checkFileSuffix(fileName) {
|
||||||
var typeArr = ['pdf']
|
var typeArr = ['pdf']
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
<el-form-item label="文件类型:">
|
<el-form-item :label="$t('dictionary:signature:search:FileTypeId')">
|
||||||
<el-select v-model="searchData.FileTypeId" style="width: 150px">
|
<el-select v-model="searchData.FileTypeId" style="width: 150px">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of dict.type.Sys_Document"
|
v-for="item of dict.type.Sys_Document"
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件名称">
|
<el-form-item :label="$t('dictionary:signature:search:Name')">
|
||||||
<el-input v-model="searchData.Name" style="width: 130px" clearable />
|
<el-input v-model="searchData.Name" style="width: 130px" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@@ -33,8 +33,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-plus"
|
style="margin-left: auto; margin-bottom: 10px"
|
||||||
style="margin-left: auto"
|
|
||||||
size="small"
|
size="small"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
>
|
>
|
||||||
@@ -53,26 +52,27 @@
|
|||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="FileType"
|
prop="FileType"
|
||||||
label="文件类型"
|
:label="$t('dictionary:signature:table:FileType')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Name"
|
prop="Name"
|
||||||
label="文件名称"
|
:label="$t('dictionary:signature:table:Name')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="SignViewMinimumMinutes"
|
prop="SignViewMinimumMinutes"
|
||||||
label="查看最短时间(分钟)"
|
:label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="NeedConfirmedUserTypes"
|
prop="NeedConfirmedUserTypes"
|
||||||
label="需要签署的用户类型"
|
:label="$t('dictionary:signature:table:NeedConfirmedUserTypes')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -85,48 +85,54 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsDeleted"
|
prop="IsDeleted"
|
||||||
label="是否废除"
|
:label="$t('dictionary:signature:table:IsDeleted')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.IsDeleted ? 'Yes' : 'No' }}
|
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
|
||||||
|
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||||
|
}}</el-tag>
|
||||||
|
<el-tag v-else type="primary">{{
|
||||||
|
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||||
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="DocUserSignType"
|
prop="DocUserSignType"
|
||||||
label="是否仅内部签署"
|
:label="$t('dictionary:signature:table:DocUserSignType')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
|
min-width="90"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
|
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="UpdateTime"
|
prop="CreateTime"
|
||||||
label="更新时间"
|
:label="$t('dictionary:signature:table:CreateTime')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column label="Action">
|
<el-table-column :label="$t('common:action:action')" min-width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click="handlePreview(scope.row)">
|
<el-button type="text" @click="handlePreview(scope.row)">
|
||||||
预览
|
{{ $t('common:button:preview') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="text" @click="handleEdit(scope.row)">
|
<el-button type="text" @click="handleEdit(scope.row)">
|
||||||
编辑
|
{{ $t('common:button:edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="scope.row.IsDeleted"
|
:disabled="scope.row.IsDeleted"
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleRepeal(scope.row)"
|
@click="handleRepeal(scope.row)"
|
||||||
>
|
>
|
||||||
废除
|
{{ $t('common:button:revoke') }}
|
||||||
</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>
|
||||||
@@ -240,7 +246,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.title = 'Add'
|
this.title = this.$t('common:button:new')
|
||||||
this.currentRow = {}
|
this.currentRow = {}
|
||||||
this.editVisible = true
|
this.editVisible = true
|
||||||
},
|
},
|
||||||
@@ -255,13 +261,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.title = 'Edit'
|
this.title = this.$t('common:action:edit')
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editVisible = true
|
this.editVisible = true
|
||||||
},
|
},
|
||||||
// 废除
|
// 废除
|
||||||
handleRepeal(row) {
|
handleRepeal(row) {
|
||||||
this.$confirm('是否确认废除此文件?', {
|
this.$confirm(this.$t('dictionary:signature:confirm:delFile'), {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true,
|
distinguishCancelAndClose: true,
|
||||||
})
|
})
|
||||||
@@ -298,7 +304,9 @@ export default {
|
|||||||
this.list.findIndex((item) => item.Id === row.Id),
|
this.list.findIndex((item) => item.Id === row.Id),
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
this.$message.success('删除成功!')
|
this.$message.success(
|
||||||
|
this.$t('common:message:deletedSuccessfully')
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
class="upload-temporary-file"
|
class="upload-temporary-file"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="Code" prop="Code">
|
<el-form-item :label="$t('dictionary:attachment: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="业务场景: " prop="BusinessScenarioEnum">
|
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')" prop="BusinessScenarioEnum">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.BusinessScenarioEnum"
|
v-model="form.BusinessScenarioEnum"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="文件: ">
|
<el-form-item :label="$t('dictionary:attachment:label:file')">
|
||||||
<div class="upload-container">
|
<div class="upload-container">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件名" prop="Name">
|
<el-form-item :label="$t('dictionary:attachment:label:name')" prop="Name">
|
||||||
<el-input v-model="form.Name" />
|
<el-input v-model="form.Name" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
>
|
>
|
||||||
<el-input v-model="form.NameCN" />
|
<el-input v-model="form.NameCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="form.Id !== ''" label="是否废除: ">
|
<el-form-item v-if="form.Id !== ''" :label="$t('dictionary:attachment:label:isDeleted')">
|
||||||
<el-radio-group v-model="form.IsDeleted">
|
<el-radio-group v-model="form.IsDeleted">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="item of $d.YesOrNo"
|
v-for="item of $d.YesOrNo"
|
||||||
@@ -76,12 +76,11 @@
|
|||||||
>
|
>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述">
|
<el-form-item :label="$t('dictionary:attachment:label:description')">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.Description"
|
v-model="form.Description"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:autosize="{ minRows: 2, maxRows: 4 }"
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
||||||
placeholder="请输入内容"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -93,7 +92,7 @@
|
|||||||
:disabled="!form.FileTypeEnum || !form.BusinessScenarioEnum"
|
:disabled="!form.FileTypeEnum || !form.BusinessScenarioEnum"
|
||||||
:loading="saveBtnLoading"
|
:loading="saveBtnLoading"
|
||||||
@click="handleSave"
|
@click="handleSave"
|
||||||
>Save</el-button
|
>{{ $t('common:button:save') }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -132,16 +131,16 @@ export default {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
Code: [
|
Code: [
|
||||||
{ required: true, message: 'Please specify', trigger: ['blur'] },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
],
|
],
|
||||||
Name: [
|
Name: [
|
||||||
{ required: true, message: 'Please specify', trigger: ['blur'] },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
],
|
],
|
||||||
NameCN: [
|
NameCN: [
|
||||||
{ required: true, message: 'Please specify', trigger: ['blur'] },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
],
|
],
|
||||||
BusinessScenarioEnum: [
|
BusinessScenarioEnum: [
|
||||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
fileList: [],
|
fileList: [],
|
||||||
@@ -193,7 +192,7 @@ export default {
|
|||||||
this.fileList = []
|
this.fileList = []
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
this.$alert('必须是word/excel格式')
|
this.$alert(this.$t('dictionary:attachment:export:alert:formatFile'))
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@@ -220,7 +219,7 @@ export default {
|
|||||||
this.$refs.sysTemplateFrom.validate((valid) => {
|
this.$refs.sysTemplateFrom.validate((valid) => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
if (!this.form.Name) {
|
if (!this.form.Name) {
|
||||||
this.$alert('Please select file.')
|
this.$alert(this.$t('dictionary:attachment:message:msg1'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.saveBtnLoading = true
|
this.saveBtnLoading = true
|
||||||
@@ -229,7 +228,7 @@ export default {
|
|||||||
this.saveBtnLoading = false
|
this.saveBtnLoading = false
|
||||||
this.$emit('closeDialog')
|
this.$emit('closeDialog')
|
||||||
this.$emit('getList')
|
this.$emit('getList')
|
||||||
this.$message.success('Uploaded successfully')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.saveBtnLoading = false
|
this.saveBtnLoading = false
|
||||||
@@ -248,7 +247,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExceed(files, fileList) {
|
handleExceed(files, fileList) {
|
||||||
this.$message.warning(`Upload is currently limited to 1 file`)
|
this.$message.warning(this.$t('upload:rule:maxFile1'))
|
||||||
},
|
},
|
||||||
checkFileSuffix(fileName) {
|
checkFileSuffix(fileName) {
|
||||||
var typeArr = ['xls', 'xlsx', 'doc', 'docx']
|
var typeArr = ['xls', 'xlsx', 'doc', 'docx']
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
<el-form-item label="业务场景">
|
<!-- 业务场景 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="searchData.BusinessScenarioEnum"
|
v-model="searchData.BusinessScenarioEnum"
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
@@ -15,7 +16,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件名称">
|
<!-- 文件名称 -->
|
||||||
|
<el-form-item :label="$t('dictionary:attachment:label:name')">
|
||||||
<el-input v-model="searchData.Name" style="width: 130px" clearable />
|
<el-input v-model="searchData.Name" style="width: 130px" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@@ -35,7 +37,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-plus"
|
|
||||||
style="float: right"
|
style="float: right"
|
||||||
size="small"
|
size="small"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
@@ -56,14 +57,14 @@
|
|||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
label="Code"
|
:label="$t('dictionary:attachment:label:code')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- 业务场景 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="BusinessScenarioEnum"
|
prop="BusinessScenarioEnum"
|
||||||
label="业务场景"
|
:label="$t('dictionary:attachment:label:businessScenario')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -76,10 +77,10 @@
|
|||||||
}}
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<!-- 文件名称 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Name"
|
prop="Name"
|
||||||
label="文件名称"
|
:label="$t('dictionary:attachment:label:name')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
@@ -89,14 +90,16 @@
|
|||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- 描述 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
label="描述"
|
:label="$t('dictionary:attachment:label:description')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<!-- 是否废除 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsDeleted"
|
prop="IsDeleted"
|
||||||
label="是否废除"
|
:label="$t('dictionary:attachment:label:isDeleted')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -109,26 +112,27 @@
|
|||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<!-- 上传时间 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="UpdateTime"
|
prop="UpdateTime"
|
||||||
label="更新时间"
|
:label="$t('dictionary:attachment:label:updateTime')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column label="Action">
|
<el-table-column :label="$t('common:action:action')" width="300">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" @click="PreviewFile(scope.row)">
|
<el-button type="text" @click="PreviewFile(scope.row)">
|
||||||
{{ $t('common:button:preview') }}
|
{{ $t('common:button:preview') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="text" @click="handleDownload(scope.row)">
|
<el-button type="text" @click="handleDownload(scope.row)">
|
||||||
下载
|
{{ $t('common:button:download') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="text" @click="handleEdit(scope.row)">
|
<el-button type="text" @click="handleEdit(scope.row)">
|
||||||
编辑
|
{{ $t('common:button: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>
|
||||||
@@ -197,12 +201,13 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$confirm('确定删除该模版?').then(() => {
|
// 确定删除该模版?
|
||||||
|
this.$confirm(this.$t('dictionary:attachment:message:msg1')).then(() => {
|
||||||
deleteCommonDocument(row.Id).then(() => {
|
deleteCommonDocument(row.Id).then(() => {
|
||||||
this.$message.success('删除成功')
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
})
|
}).catch(()=>{})
|
||||||
},
|
},
|
||||||
PreviewFile(row) {
|
PreviewFile(row) {
|
||||||
let basePath = window.location.origin
|
let basePath = window.location.origin
|
||||||
@@ -229,7 +234,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.editDialog.title = 'Add'
|
this.editDialog.title = this.$t('common:button:new')
|
||||||
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
@@ -246,7 +251,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.editDialog.title = 'Edit'
|
this.editDialog.title = this.$t('common:button:edit')
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
<div class="app-container my_menu" >
|
<div class="app-container my_menu" >
|
||||||
<el-form :inline="true">
|
<el-form :inline="true">
|
||||||
<el-form-item label="模块">
|
<el-form-item label="模块">
|
||||||
<el-select v-model="queryParams.ModuleTypeId" placeholder="模块" clearable size="small">
|
<el-select v-model="queryParams.ModuleTypeId" placeholder="模块" clearable >
|
||||||
<el-option v-for="item of dict.type.ModuleType" :value="item.value" :label="item.raw.ValueCN" />
|
<el-option v-for="item of dict.type.ModuleType" :key="`ModuleTypeId${item.value}`" :value="item.value" :label="item.raw.ValueCN" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||||
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div>
|
<div>
|
||||||
@@ -66,42 +66,30 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
|
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
|
||||||
size="mini"
|
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-top"
|
|
||||||
@click="handleUpMove(scope.row)"
|
@click="handleUpMove(scope.row)"
|
||||||
>上移</el-button>
|
>上移</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="!(scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN)"
|
v-if="!(scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN)"
|
||||||
size="mini"
|
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAdd(scope.row)"
|
@click="handleAdd(scope.row)"
|
||||||
>新增</el-button>
|
>新增</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
|
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
|
||||||
size="mini"
|
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleChildren(scope.row)"
|
@click="handleChildren(scope.row)"
|
||||||
>Children</el-button>
|
>Children</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
|
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
|
||||||
size="mini"
|
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleCopy(scope.row)"
|
@click="handleCopy(scope.row)"
|
||||||
>复制到</el-button>
|
>复制到</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -169,28 +157,28 @@
|
|||||||
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
||||||
<el-form-item label="功能模块" prop="menuType">
|
<el-form-item label="功能模块" prop="menuType">
|
||||||
<el-select v-model="form.ModuleTypeId" placeholder="模块" clearable size="small" @change="changeModule">
|
<el-select v-model="form.ModuleTypeId" placeholder="模块" clearable size="small" @change="changeModule">
|
||||||
<el-option v-for="item of dict.type.ModuleType" :value="item.value" :label="item.raw.ValueCN" />
|
<el-option v-for="item of dict.type.ModuleType" :key="`ModuleType${item.value}`" :value="item.value" :label="item.raw.ValueCN" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
||||||
<el-form-item label="操作类型" prop="menuType">
|
<el-form-item label="操作类型" prop="menuType">
|
||||||
<el-select v-model="form.OptTypeId" placeholder="操作类型" clearable size="small" @change="changeDescription">
|
<el-select v-model="form.OptTypeId" placeholder="操作类型" clearable size="small" @change="changeDescription">
|
||||||
<el-option v-for="item of dict.type.OptType" :value="item.value" :label="item.raw.ValueCN" />
|
<el-option v-for="item of dict.type.OptType" :key="`OptTypeId${item.value}`" :value="item.value" :label="item.raw.ValueCN" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
||||||
<el-form-item label="对象类型" prop="menuType">
|
<el-form-item label="对象类型" prop="menuType">
|
||||||
<el-select v-model="form.ObjectTypeId" placeholder="对象类型" clearable size="small" @change="changeDescription">
|
<el-select v-model="form.ObjectTypeId" placeholder="对象类型" clearable size="small" @change="changeDescription">
|
||||||
<el-option v-for="item of dict.type.ObjectType" v-if="ChildGroup === item.raw.ChildGroup" :value="item.value" :label="item.raw.ValueCN" />
|
<el-option v-for="item of dict.type.ObjectType" :key="`ObjectType${item.value}`" v-if="ChildGroup === item.raw.ChildGroup" :value="item.value" :label="item.raw.ValueCN" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
<el-col v-show="form.ConfigType === 'M' && title !== '复制'" :span="12">
|
||||||
<el-form-item label="数据类型" prop="menuType">
|
<el-form-item label="数据类型" prop="menuType">
|
||||||
<el-select v-model="form.ChildrenTypeId" placeholder="操作子类" clearable size="small" @change="changeDescription">
|
<el-select v-model="form.ChildrenTypeId" placeholder="操作子类" clearable size="small" @change="changeDescription">
|
||||||
<el-option v-for="item of dict.type.ChildrenType" :value="item.value" :label="item.raw.ValueCN" />
|
<el-option v-for="item of dict.type.ChildrenType" :key="`ChildrenType${item.value}`" :value="item.value" :label="item.raw.ValueCN" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -295,7 +283,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row v-show="form.DataType === 'Router'" v-if="form.UrlConfig && form.UrlConfig.IsHaveParameters" v-for="(item,index) of form.UrlConfig ? form.UrlConfig.ParameterList : []">
|
<el-row v-show="form.DataType === 'Router'" v-if="form.UrlConfig && form.UrlConfig.IsHaveParameters" v-for="(item,index) of form.UrlConfig ? form.UrlConfig.ParameterList : []" :key="`Router${index}`">
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<span slot="label">
|
<span slot="label">
|
||||||
@@ -671,11 +659,11 @@
|
|||||||
<div style="padding: 0 40px;display: flex;flex-direction: column">
|
<div style="padding: 0 40px;display: flex;flex-direction: column">
|
||||||
<div style="text-align: right;height: 50px;">
|
<div style="text-align: right;height: 50px;">
|
||||||
<el-select v-model="copeParams.FromItemId" collapse-tags filterable placeholder="完全拷贝对象" clearable size="small">
|
<el-select v-model="copeParams.FromItemId" collapse-tags filterable placeholder="完全拷贝对象" clearable size="small">
|
||||||
<el-option v-for="item of list" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
<el-option v-for="item of list" :key="item.Id" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" size="mini" style="margin-right: 10px" @click="handleOverCope(selectRow)">完全拷贝</el-button>
|
<el-button type="primary" size="mini" style="margin-right: 10px" @click="handleOverCope(selectRow)">完全拷贝</el-button>
|
||||||
<el-select v-model="copeParams.DataSourceGuids" multiple collapse-tags filterable placeholder="拷贝对象" clearable size="small">
|
<el-select v-model="copeParams.DataSourceGuids" multiple collapse-tags filterable placeholder="拷贝对象" clearable size="small">
|
||||||
<el-option v-for="item of list" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
<el-option v-for="item of list" :key="item.Id" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" size="mini" @click="handleCope(selectRow)">拷贝</el-button>
|
<el-button type="primary" size="mini" @click="handleCope(selectRow)">拷贝</el-button>
|
||||||
<el-button type="primary" size="mini" @click="handleAdd(selectRow)">新建</el-button>
|
<el-button type="primary" size="mini" @click="handleAdd(selectRow)">新建</el-button>
|
||||||
|
|||||||
@@ -1,411 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="app-container my_menu">
|
|
||||||
<el-form :inline="true">
|
|
||||||
<el-form-item label="操作名">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.menuName"
|
|
||||||
placeholder="请输入操作名"
|
|
||||||
clearable
|
|
||||||
size="small"
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="模块">
|
|
||||||
<el-select v-model="queryParams.visible" placeholder="模块" clearable size="small" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
||||||
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<div>
|
|
||||||
<el-button
|
|
||||||
type="info"
|
|
||||||
plain
|
|
||||||
icon="el-icon-sort"
|
|
||||||
size="mini"
|
|
||||||
@click="toggleExpandAll"
|
|
||||||
>展开/折叠</el-button>
|
|
||||||
</div>
|
|
||||||
<el-table
|
|
||||||
v-if="refreshTable"
|
|
||||||
v-loading="loading"
|
|
||||||
:data="menuList"
|
|
||||||
:default-expand-all="isExpandAll"
|
|
||||||
row-key="Id"
|
|
||||||
:tree-props="{children: 'Children', hasChildren: 'hasChildren'}"
|
|
||||||
>
|
|
||||||
<el-table-column prop="ModuleTypeValueCN" label="模块" align="left" min-width="230px" />
|
|
||||||
<el-table-column prop="OptTypeValueCN" label="操作类型" min-width="120px" />
|
|
||||||
<el-table-column prop="ChildrenTypeValueCN" label="操作子类" min-width="120px" show-overflow-tooltip />
|
|
||||||
<el-table-column prop="Description" label="操作名称" :show-overflow-tooltip="true" min-width="200px" />
|
|
||||||
<el-table-column prop="Code" label="字段名" min-width="120px" :show-overflow-tooltip="true" />
|
|
||||||
<el-table-column prop="Value" label="字段英文" min-width="120px" :show-overflow-tooltip="true" />
|
|
||||||
<el-table-column prop="ValueCN" label="字段中文" min-width="120px" :show-overflow-tooltip="true" />
|
|
||||||
<el-table-column label="启用" align="center" prop="CreateTime" min-width="80">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-tag v-if="scope.row.IsEnable" size="success">启用</el-tag>
|
|
||||||
<el-tag v-else size="danger">禁用</el-tag>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="是否使用父数据" align="center" prop="CreateTime" min-width="130">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-tag v-if="scope.row.IsShowParent" size="success">父数据</el-tag>
|
|
||||||
<el-tag v-else size="danger">子数据</el-tag>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" align="center" min-width="180" class-name="small-padding fixed-width">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
icon="el-icon-edit"
|
|
||||||
@click="handleUpdate(scope.row)"
|
|
||||||
>修改</el-button>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
v-if="scope.row.ConfigType === 'M'"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAdd(scope.row)"
|
|
||||||
>新增</el-button>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
icon="el-icon-delete"
|
|
||||||
@click="handleDelete(scope.row)"
|
|
||||||
>删除</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
|
|
||||||
<!-- 添加或修改菜单对话框 -->
|
|
||||||
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="680px" append-to-body>
|
|
||||||
<el-form ref="form" :model="form" label-width="100px">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="选择操作">
|
|
||||||
<treeselect
|
|
||||||
v-model="form.ParentId"
|
|
||||||
:options="menuOptions"
|
|
||||||
:normalizer="normalizer"
|
|
||||||
:show-count="true"
|
|
||||||
placeholder="选择上级操作"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-show="form.ConfigType === 'M'">
|
|
||||||
<el-form-item label="模块" prop="menuType">
|
|
||||||
<el-select v-model="form.ModuleTypeId" placeholder="模块" clearable size="small" @change="changeDescription">
|
|
||||||
<el-option v-for="item of dict.type.ModuleType" :value="item.value" :label="item.raw.ValueCN"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-show="form.ConfigType === 'M'">
|
|
||||||
<el-form-item label="操作类型" prop="menuType">
|
|
||||||
<el-select v-model="form.OptTypeId" placeholder="操作类型" clearable size="small" @change="changeDescription">
|
|
||||||
<el-option v-for="item of dict.type.OptType" :value="item.value" :label="item.raw.ValueCN"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-show="form.ConfigType === 'M'">
|
|
||||||
<el-form-item label="操作子类" prop="menuType">
|
|
||||||
<el-select v-model="form.ChildrenTypeId" placeholder="操作子类" clearable size="small" @change="changeDescription">
|
|
||||||
<el-option v-for="item of dict.type.ChildrenType" :value="item.value" :label="item.raw.ValueCN"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-show="form.ConfigType == 'M'">
|
|
||||||
<el-form-item label="名称" prop="Description">
|
|
||||||
<el-input v-model="form.Description" placeholder="请输入名称" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="显示排序" prop="ShowOrder">
|
|
||||||
<el-input-number v-model="form.Sort" controls-position="right" :min="0" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item>
|
|
||||||
<span slot="label">
|
|
||||||
是否启用
|
|
||||||
</span>
|
|
||||||
<el-switch
|
|
||||||
v-model="form.IsEnable"
|
|
||||||
:active-value="true"
|
|
||||||
:inactive-value="false"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-show="form.ConfigType === 'C'">
|
|
||||||
<el-form-item>
|
|
||||||
<span slot="label">
|
|
||||||
继承父数据
|
|
||||||
</span>
|
|
||||||
<el-switch
|
|
||||||
v-model="form.IsShowParent"
|
|
||||||
:active-value="true"
|
|
||||||
:inactive-value="false"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24" v-show="form.ConfigType === 'C'">
|
|
||||||
<el-form-item label="字段key">
|
|
||||||
<el-input v-model="form.Code" placeholder="请输入字段key" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-show="form.ConfigType === 'C'">
|
|
||||||
<el-form-item label="字段英文">
|
|
||||||
<el-input v-model="form.Value" placeholder="请输入字段英文" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-show="form.ConfigType === 'C'">
|
|
||||||
<el-form-item label="字段中文">
|
|
||||||
<el-input v-model="form.ValueCN" placeholder="请输入字段中文" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24" v-show="form.ConfigType === 'C'">
|
|
||||||
<el-form-item label="枚举类型">
|
|
||||||
<el-radio-group v-model="form.EnumType">
|
|
||||||
<el-radio :label="null">无</el-radio>
|
|
||||||
<el-radio label="E">枚举</el-radio>
|
|
||||||
<el-radio label="D">字典</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24" v-show="form.ConfigType === 'C' && form.EnumType === 'E'">
|
|
||||||
<el-form-item label="枚举">
|
|
||||||
<el-input v-model="form.EnumList" placeholder="请输入枚举" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24" v-show="form.ConfigType === 'C' && form.EnumType === 'D'">
|
|
||||||
<el-form-item label="字典code">
|
|
||||||
<el-input v-model="form.dictionaryKey" placeholder="请输入字典code" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
<div slot="footer" class="dialog-footer">
|
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
||||||
<el-button @click="cancel">取 消</el-button>
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { getFrontAuditConfigList, addOrUpdateFrontAuditConfig, deleteFrontAuditConfig } from '@/api/dictionary/checkConfig'
|
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
||||||
import IconSelect from '@/components/IconSelect'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'checkConfig',
|
|
||||||
dicts: [ 'OptType', 'ModuleType', 'ChildrenType' ],
|
|
||||||
components: { Treeselect, IconSelect },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// 遮罩层
|
|
||||||
loading: true,
|
|
||||||
// 菜单表格树数据
|
|
||||||
menuList: [],
|
|
||||||
// 菜单树选项
|
|
||||||
menuOptions: [],
|
|
||||||
// 弹出层标题
|
|
||||||
title: '',
|
|
||||||
// 是否显示弹出层
|
|
||||||
open: false,
|
|
||||||
// 菜单状态数据字典
|
|
||||||
visibleOptions: [],
|
|
||||||
// 查询参数
|
|
||||||
queryParams: {
|
|
||||||
menuName: undefined,
|
|
||||||
visible: undefined,
|
|
||||||
},
|
|
||||||
// 是否展开,默认全部折叠
|
|
||||||
isExpandAll: false,
|
|
||||||
// 重新渲染表格状态
|
|
||||||
refreshTable: true,
|
|
||||||
// 表单参数
|
|
||||||
form: {},
|
|
||||||
// 表单校验
|
|
||||||
rules: {
|
|
||||||
MenuName: [
|
|
||||||
{ required: true, message: '菜单名称不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
ShowOrder: [
|
|
||||||
{ required: true, message: '菜单顺序不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
// this.getDicts("sys_show_hide").then(response => {
|
|
||||||
// this.visibleOptions = response.data;
|
|
||||||
// });
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
toggleExpandAll() {
|
|
||||||
this.refreshTable = false
|
|
||||||
this.isExpandAll = !this.isExpandAll
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.refreshTable = true
|
|
||||||
})
|
|
||||||
},
|
|
||||||
normalizer(node) {
|
|
||||||
if (node.Children && !node.Children.length) {
|
|
||||||
delete node.Children
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
id: node.Id,
|
|
||||||
label: node.Description,
|
|
||||||
children: node.Children
|
|
||||||
}
|
|
||||||
},
|
|
||||||
toTree(arr, ParentId) {
|
|
||||||
function loop(ParentId) {
|
|
||||||
const res = []
|
|
||||||
for (let i = 0; i < arr.length; i++) {
|
|
||||||
const item = arr[i]
|
|
||||||
item.hasChildren = false
|
|
||||||
if (item.ParentId !== ParentId) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
item.Children = loop(item.Id)
|
|
||||||
res.push(item)
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
return loop(ParentId)
|
|
||||||
},
|
|
||||||
// 选择图标
|
|
||||||
selected(name) {
|
|
||||||
this.form.MenuIcon = name
|
|
||||||
},
|
|
||||||
/** 查询菜单列表 */
|
|
||||||
getList() {
|
|
||||||
this.loading = true
|
|
||||||
getFrontAuditConfigList(this.queryParams).then(res => {
|
|
||||||
this.menuList = this.toTree(res.Result, '00000000-0000-0000-0000-000000000000')
|
|
||||||
const menu = { Id: '00000000-0000-0000-0000-000000000000', Description: '操作', Children: [] }
|
|
||||||
menu.Children = this.menuList
|
|
||||||
this.menuOptions = Object.assign([], [menu])
|
|
||||||
this.loading = false
|
|
||||||
}).catch(function() {})
|
|
||||||
},
|
|
||||||
/** 查询菜单下拉树结构 */
|
|
||||||
getTreeselect() {
|
|
||||||
this.loading = true
|
|
||||||
getFrontAuditConfigList({}).then(res => {
|
|
||||||
const menu = { Id: '00000000-0000-0000-0000-000000000000', Description: '操作', Children: [] }
|
|
||||||
menu.Children = this.toTree(res.Result, '00000000-0000-0000-0000-000000000000')
|
|
||||||
this.menuOptions = Object.assign([], [menu])
|
|
||||||
this.loading = false
|
|
||||||
}).catch(function() {})
|
|
||||||
},
|
|
||||||
// 菜单显示状态字典翻译
|
|
||||||
visibleFormat(row, column) {
|
|
||||||
if (row.MenuType === 'F') {
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
return this.selectDictLabel(this.visibleOptions, row.visible)
|
|
||||||
},
|
|
||||||
// 取消按钮
|
|
||||||
cancel() {
|
|
||||||
this.open = false
|
|
||||||
this.reset()
|
|
||||||
},
|
|
||||||
// 表单重置
|
|
||||||
reset() {
|
|
||||||
this.form = {
|
|
||||||
Id: null,
|
|
||||||
ParentId: null,
|
|
||||||
ConfigType: 'M',
|
|
||||||
Description: null,
|
|
||||||
IsEnable: true,
|
|
||||||
ModuleTypeId: null,
|
|
||||||
OptTypeId: null,
|
|
||||||
ChildrenTypeId: null,
|
|
||||||
IsShowParent: false,
|
|
||||||
Sort: 0,
|
|
||||||
Code: null,
|
|
||||||
Value: null,
|
|
||||||
ValueCN: null,
|
|
||||||
EnumType: null
|
|
||||||
}
|
|
||||||
this.resetForm('form')
|
|
||||||
},
|
|
||||||
findName (id, dict, type) {
|
|
||||||
if (id) {
|
|
||||||
return this.dict.type[dict].find(v => {
|
|
||||||
return v.value === id
|
|
||||||
}).raw[type]
|
|
||||||
}
|
|
||||||
return ''
|
|
||||||
},
|
|
||||||
changeDescription () {
|
|
||||||
this.form.Description = this.findName(this.form.OptTypeId, 'OptType', 'ValueCN') + this.findName(this.form.ModuleTypeId, 'ModuleType', 'ValueCN') + this.findName(this.form.ChildrenTypeId, 'ChildrenType', 'ValueCN')
|
|
||||||
},
|
|
||||||
/** 搜索按钮操作 */
|
|
||||||
handleQuery() {
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
/** 新增按钮操作 */
|
|
||||||
handleAdd(row) {
|
|
||||||
this.reset()
|
|
||||||
this.getTreeselect()
|
|
||||||
if (row != null) {
|
|
||||||
this.form.ParentId = row.Id
|
|
||||||
this.form.ModuleTypeId = row.ModuleTypeId
|
|
||||||
this.form.OptTypeId = row.OptTypeId
|
|
||||||
this.form.ChildrenTypeId = row.ChildrenTypeId
|
|
||||||
if (row.ModuleTypeId && row.OptTypeId && row.ChildrenTypeId) {
|
|
||||||
this.form.ConfigType = 'C'
|
|
||||||
}
|
|
||||||
this.form.Description = row.OptTypeValueCN + row.ModuleTypeValueCN + row.ChildrenTypeValueCN
|
|
||||||
}
|
|
||||||
this.open = true
|
|
||||||
this.title = '添加'
|
|
||||||
},
|
|
||||||
/** 修改按钮操作 */
|
|
||||||
handleUpdate(row) {
|
|
||||||
this.reset()
|
|
||||||
this.getTreeselect()
|
|
||||||
this.form = Object.assign({}, row)
|
|
||||||
this.open = true
|
|
||||||
this.title = '修改'
|
|
||||||
},
|
|
||||||
/** 提交按钮 */
|
|
||||||
submitForm: function() {
|
|
||||||
this.$refs['form'].validate(valid => {
|
|
||||||
if (valid) {
|
|
||||||
addOrUpdateFrontAuditConfig(this.form).then(response => {
|
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
|
||||||
this.open = false
|
|
||||||
this.getList()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
/** 删除按钮操作 */
|
|
||||||
handleDelete(row) {
|
|
||||||
this.$confirm('是否确认删除名称为"' + row.Description + '"的数据项?', '警告', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(function() {
|
|
||||||
return deleteFrontAuditConfig(row.Id)
|
|
||||||
}).then(() => {
|
|
||||||
this.getList()
|
|
||||||
this.$message.success('删除成功')
|
|
||||||
}).catch(function() {})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<style lang="scss">
|
|
||||||
.vue-treeselect div{
|
|
||||||
line-height: 40px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,30 +1,29 @@
|
|||||||
<template>
|
<template>
|
||||||
<box-content>
|
<box-content>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="small" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="CRO Name:">
|
<!-- CRO Name -->
|
||||||
|
<el-form-item :label="$t('institutions:cros:label:croName')">
|
||||||
<el-input v-model="searchData.CROName" style="width: 100px" />
|
<el-input v-model="searchData.CROName" style="width: 100px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch"
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
>Search</el-button
|
{{ $t('common:button:search') }}
|
||||||
>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-refresh-left"
|
icon="el-icon-refresh-left"
|
||||||
@click="handleReset"
|
@click="handleReset"
|
||||||
>Reset</el-button
|
|
||||||
>
|
>
|
||||||
|
{{ $t('common:button:reset') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left: auto">
|
<span style="margin-left: auto">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
style="margin-left: auto"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAddCro"
|
@click="handleAddCro"
|
||||||
>New</el-button
|
>{{ $t('common:button:new') }}</el-button
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -37,30 +36,34 @@
|
|||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
|
<!-- CRO Code -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="CROCode"
|
prop="CROCode"
|
||||||
label="CRO Code"
|
:label="$t('institutions:cros:label:croCode')"
|
||||||
min-width="150"
|
min-width="150"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- CRO Name -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="CROName"
|
prop="CROName"
|
||||||
label="CRO Name"
|
:label="$t('institutions:cros:label:croName')"
|
||||||
min-width="150"
|
min-width="150"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- CRO NameCN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="CRONameCN"
|
prop="CRONameCN"
|
||||||
label="CRO NameCN"
|
:label="$t('institutions:cros:label:croNameCN')"
|
||||||
min-width="150"
|
min-width="150"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Level -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsTrialLevel"
|
prop="IsTrialLevel"
|
||||||
label="Level"
|
:label="$t('institutions:cros:label:level')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -68,20 +71,20 @@
|
|||||||
<span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span>
|
<span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="Action" min-width="200">
|
<el-table-column :label="$t('common:action:action')" min-width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-edit-outline"
|
|
||||||
title="编辑"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:edit') }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-delete"
|
|
||||||
title="删除"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:delete') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -160,13 +163,13 @@ export default {
|
|||||||
// 新增CRO
|
// 新增CRO
|
||||||
handleAddCro() {
|
handleAddCro() {
|
||||||
this.rowData = {};
|
this.rowData = {};
|
||||||
this.title = "Add";
|
this.title =this.$t('common:button:new');
|
||||||
this.editVisible = true;
|
this.editVisible = true;
|
||||||
},
|
},
|
||||||
// 编辑CRO
|
// 编辑CRO
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.rowData = row;
|
this.rowData = row;
|
||||||
this.title = "Edit";
|
this.title = this.$t('common:action:edit');
|
||||||
this.editVisible = true;
|
this.editVisible = true;
|
||||||
},
|
},
|
||||||
// 删除CRO
|
// 删除CRO
|
||||||
|
|||||||
@@ -5,19 +5,23 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
class="demo-ruleForm"
|
class="demo-ruleForm"
|
||||||
size="small"
|
size="small"
|
||||||
label-width="120px"
|
label-width="140px"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="CRO Name: " prop="CROName">
|
<!-- CRO Name -->
|
||||||
|
<el-form-item :label="$t('institutions:cros:label:croName')" prop="CROName">
|
||||||
<el-input v-model="form.CROName" />
|
<el-input v-model="form.CROName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="CRO NameCN: " prop="CRONameCN">
|
<!-- CRO NameCN -->
|
||||||
|
<el-form-item :label="$t('institutions:cros:label:croNameCN')" prop="CRONameCN">
|
||||||
<el-input v-model="form.CRONameCN" />
|
<el-input v-model="form.CRONameCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="CRO Code: " prop="CROCode">
|
<!-- CRO Code -->
|
||||||
|
<el-form-item :label="$t('institutions:cros:label:croCode')" prop="CROCode">
|
||||||
<el-input v-model="form.CROCode" />
|
<el-input v-model="form.CROCode" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Level: ">
|
<!-- Level -->
|
||||||
|
<el-form-item :label="$t('institutions:cros:label:level')">
|
||||||
<el-switch
|
<el-switch
|
||||||
:disabled="!IsTrialLevel"
|
:disabled="!IsTrialLevel"
|
||||||
v-model="form.IsTrialLevel"
|
v-model="form.IsTrialLevel"
|
||||||
@@ -30,10 +34,10 @@
|
|||||||
<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 :disabled="btnLoading" type="primary" @click="handleCancel"
|
<el-button :disabled="btnLoading" type="primary" @click="handleCancel"
|
||||||
>Cancel</el-button
|
>{{ $t('common:button:cancel') }}</el-button
|
||||||
>
|
>
|
||||||
<el-button type="primary" :loading="btnLoading" @click="handleSave"
|
<el-button type="primary" :loading="btnLoading" @click="handleSave"
|
||||||
>Save</el-button
|
>{{ $t('common:button:save') }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -67,16 +71,16 @@ export default {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
CROName: [
|
CROName: [
|
||||||
{ required: true, message: "Please specify", trigger: "blur" },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
|
||||||
{ max: 500, message: "The maximum length is 500" },
|
{ max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
|
||||||
],
|
],
|
||||||
CRONameCN: [
|
CRONameCN: [
|
||||||
{ required: true, message: "Please specify", trigger: "blur" },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
|
||||||
{ max: 500, message: "The maximum length is 500" },
|
{ max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
|
||||||
],
|
],
|
||||||
CROCode: [
|
CROCode: [
|
||||||
{ required: true, message: "Please specify", trigger: "blur" },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
|
||||||
{ max: 50, message: "The maximum length is 50" },
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -95,7 +99,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false;
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message.success("Saved successfully");
|
this.$message.success(this.$t('common:message:savedSuccessfully'));
|
||||||
this.$refs["CROForm"].resetFields();
|
this.$refs["CROForm"].resetFields();
|
||||||
this.$emit("getList");
|
this.$emit("getList");
|
||||||
this.$emit("close");
|
this.$emit("close");
|
||||||
|
|||||||
@@ -8,47 +8,87 @@
|
|||||||
label-width="170px"
|
label-width="170px"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="Site: ">
|
<!-- Site -->
|
||||||
<el-select v-model="form.SiteId" style="width: 100%" clearable filterable @change="siteChange">
|
<el-form-item :label="$t('institutions:hospitals:label:site')">
|
||||||
<el-option v-for="item of siteList" :value="item.Id" :key="item.Id" :label="item.SiteName">
|
<el-select
|
||||||
|
v-model="form.SiteId"
|
||||||
|
style="width: 100%"
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
@change="siteChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item of siteList"
|
||||||
|
:value="item.Id"
|
||||||
|
:key="item.Id"
|
||||||
|
:label="item.SiteName"
|
||||||
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Hospital CN: " prop="HospitalNameCN">
|
<!-- Hospital CN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:hospitalCN')" prop="HospitalNameCN">
|
||||||
<el-input v-model="form.HospitalNameCN" />
|
<el-input v-model="form.HospitalNameCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Hospital EN: " prop="HospitalName">
|
<!-- Hospital EN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:hospital')" prop="HospitalName">
|
||||||
<el-input v-model="form.HospitalName" />
|
<el-input v-model="form.HospitalName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Affiliated University CN: " prop="UniversityAffiliatedCN">
|
<!-- Affiliated University CN -->
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('institutions:hospitals:label:universityAffiliatedCN')"
|
||||||
|
prop="UniversityAffiliatedCN"
|
||||||
|
>
|
||||||
<el-input v-model="form.UniversityAffiliatedCN" />
|
<el-input v-model="form.UniversityAffiliatedCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Affiliated University EN: " prop="UniversityAffiliated">
|
<!-- Affiliated University EN -->
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('institutions:hospitals:label:universityAffiliated')"
|
||||||
|
prop="UniversityAffiliated"
|
||||||
|
>
|
||||||
<el-input v-model="form.UniversityAffiliated" />
|
<el-input v-model="form.UniversityAffiliated" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Country CN: " prop="CountryCN">
|
<!-- Country CN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:countryCN')" prop="CountryCN">
|
||||||
<el-input v-model="form.CountryCN" />
|
<el-input v-model="form.CountryCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Country EN: " prop="Country">
|
<!-- Country EN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:country')" prop="Country">
|
||||||
<el-input v-model="form.Country" />
|
<el-input v-model="form.Country" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Province CN: " prop="ProvinceCN">
|
<!-- Province CN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:provinceCN')" prop="ProvinceCN">
|
||||||
<el-input v-model="form.ProvinceCN" />
|
<el-input v-model="form.ProvinceCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Province EN: " prop="Province">
|
<!-- Province EN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:province')" prop="Province">
|
||||||
<el-input v-model="form.Province" />
|
<el-input v-model="form.Province" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="City CN: " prop="CityCN">
|
<!-- City CN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:cityCN')" prop="CityCN">
|
||||||
<el-input v-model="form.CityCN" />
|
<el-input v-model="form.CityCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="City EN: " prop="City">
|
<!-- City EN -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:city')" prop="City">
|
||||||
<el-input v-model="form.City" />
|
<el-input v-model="form.City" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<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 :disabled="btnLoading" size="small" type="primary" @click="handleCancel">Cancel</el-button>
|
<el-button
|
||||||
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button>
|
:disabled="btnLoading"
|
||||||
|
size="small"
|
||||||
|
type="primary"
|
||||||
|
@click="handleCancel"
|
||||||
|
>{{ $t('common:button:cancel') }}</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="small"
|
||||||
|
type="primary"
|
||||||
|
:loading="btnLoading"
|
||||||
|
@click="handleSave"
|
||||||
|
>{{ $t('common:button:save') }}</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -63,14 +103,14 @@ export default {
|
|||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
default() {
|
||||||
return {}
|
return {}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
model: {
|
model: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
default() {
|
||||||
return {}
|
return {}
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -87,23 +127,36 @@ export default {
|
|||||||
Province: '',
|
Province: '',
|
||||||
ProvinceCN: '',
|
ProvinceCN: '',
|
||||||
City: '',
|
City: '',
|
||||||
CityCN: ''
|
CityCN: '',
|
||||||
},
|
},
|
||||||
siteList: [],
|
siteList: [],
|
||||||
rules: {
|
rules: {
|
||||||
HospitalNameCN: [{ required: true, message: 'Please specify', trigger: 'blur' }, { max: 50, message: 'The maximum length is 50' }],
|
HospitalNameCN: [
|
||||||
UniversityAffiliated: [{ max: 100, message: 'The maximum length is 100' }],
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
UniversityAffiliatedCN: [{ max: 100, message: 'The maximum length is 100' }],
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
Country: [{ required: true, message: 'Please specify', trigger: 'blur' },
|
],
|
||||||
{ max: 50, message: 'The maximum length is 50' }],
|
UniversityAffiliated: [
|
||||||
CountryCN: [{ max: 50, message: 'The maximum length is 50' }],
|
{ max: 100, message: this.$t('common:ruleMessage:maxLength') + ' 100' },
|
||||||
Province: [{ required: true, message: 'Please specify', trigger: 'blur' },
|
],
|
||||||
{ max: 50, message: 'The maximum length is 50' }],
|
UniversityAffiliatedCN: [
|
||||||
ProvinceCN: [{ max: 50, message: 'The maximum length is 50' }],
|
{ max: 100, message: this.$t('common:ruleMessage:maxLength') + ' 100' },
|
||||||
City: [{ required: true, message: 'Please specify', trigger: 'blur' },
|
],
|
||||||
{ max: 50, message: 'The maximum length is 50' }],
|
Country: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
|
||||||
CityCN: [{ max: 50, message: 'The maximum length is 50' }]
|
CountryCN: [
|
||||||
}
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
|
],
|
||||||
|
Province: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
|
||||||
|
ProvinceCN: [
|
||||||
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
|
],
|
||||||
|
City: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
|
||||||
|
CityCN: [
|
||||||
|
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||||
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
|
],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -114,7 +167,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
siteChange(v) {
|
siteChange(v) {
|
||||||
this.siteList.forEach(o => {
|
this.siteList.forEach((o) => {
|
||||||
if (o.Id === v) {
|
if (o.Id === v) {
|
||||||
this.form.CityCN = o.City
|
this.form.CityCN = o.City
|
||||||
this.form.HospitalNameCN = o.SiteNameCN
|
this.form.HospitalNameCN = o.SiteNameCN
|
||||||
@@ -125,34 +178,37 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getAllSiteList() {
|
getAllSiteList() {
|
||||||
getAllSiteList().then(res => {
|
getAllSiteList()
|
||||||
this.siteList = res.Result
|
.then((res) => {
|
||||||
console.log(this.siteList)
|
this.siteList = res.Result
|
||||||
}).catch(() => {
|
console.log(this.siteList)
|
||||||
reject()
|
})
|
||||||
})
|
.catch(() => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$refs.hospitalForm.validate(valid => {
|
this.$refs.hospitalForm.validate((valid) => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
addOrUpdateHospital(this.form).then(res => {
|
addOrUpdateHospital(this.form)
|
||||||
this.btnLoading = false
|
.then((res) => {
|
||||||
if (res.IsSuccess) {
|
this.btnLoading = false
|
||||||
this.$message.success('Saved successfully')
|
if (res.IsSuccess) {
|
||||||
this.$refs['hospitalForm'].resetFields()
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.$emit('getList')
|
this.$refs['hospitalForm'].resetFields()
|
||||||
this.$emit('close')
|
this.$emit('getList')
|
||||||
}
|
this.$emit('close')
|
||||||
}).catch(() => {
|
}
|
||||||
this.btnLoading = false
|
})
|
||||||
})
|
.catch(() => {
|
||||||
|
this.btnLoading = false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,29 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<box-content>
|
<box-content>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="small" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="Hospital:">
|
<!-- Hospital -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:hospital')">
|
||||||
<el-input v-model="searchData.HospitalName" style="width:100px;" />
|
<el-input v-model="searchData.HospitalName" style="width:100px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Province:">
|
<!-- Province -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:province')">
|
||||||
<el-input v-model="searchData.Province" style="width:100px;" />
|
<el-input v-model="searchData.Province" style="width:100px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="City:">
|
<!-- City -->
|
||||||
|
<el-form-item :label="$t('institutions:hospitals:label:city')">
|
||||||
<el-input v-model="searchData.City" style="width:100px;" />
|
<el-input v-model="searchData.City" style="width:100px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">Reset</el-button>
|
{{ $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-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto;">
|
<span style="margin-left:auto;">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
style="margin-left:auto;"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAddHospital"
|
@click="handleAddHospital"
|
||||||
>New</el-button>
|
>{{ $t('common:button:new') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- hospital列表 -->
|
<!-- hospital列表 -->
|
||||||
@@ -36,92 +44,102 @@
|
|||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
|
<!-- Hospital -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="HospitalName"
|
prop="HospitalName"
|
||||||
label="Hospital"
|
:label="$t('institutions:hospitals:label:hospital')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Hospital CN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="HospitalNameCN"
|
prop="HospitalNameCN"
|
||||||
label="Hospital CN"
|
label="Hospital CN"
|
||||||
|
:label="$t('institutions:hospitals:label:hospitalCN')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- University Affiliated -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="UniversityAffiliated"
|
prop="UniversityAffiliated"
|
||||||
label="University Affiliated"
|
:label="$t('institutions:hospitals:label:universityAffiliated')"
|
||||||
min-width="170"
|
min-width="170"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- University Affiliated CN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="UniversityAffiliatedCN"
|
prop="UniversityAffiliatedCN"
|
||||||
label="University Affiliated CN"
|
:label="$t('institutions:hospitals:label:universityAffiliatedCN')"
|
||||||
min-width="170"
|
min-width="170"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Country -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Country"
|
prop="Country"
|
||||||
label="Country"
|
:label="$t('institutions:hospitals:label:country')"
|
||||||
width="120"
|
width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Country CN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="CountryCN"
|
prop="CountryCN"
|
||||||
label="Country CN"
|
:label="$t('institutions:hospitals:label:countryCN')"
|
||||||
width="140"
|
width="140"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Province -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Province"
|
prop="Province"
|
||||||
label="Province"
|
:label="$t('institutions:hospitals:label:province')"
|
||||||
width="120"
|
width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Province CN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ProvinceCN"
|
prop="ProvinceCN"
|
||||||
label="Province CN"
|
:label="$t('institutions:hospitals:label:provinceCN')"
|
||||||
width="140"
|
width="140"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- City -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="City"
|
prop="City"
|
||||||
label="City"
|
:label="$t('institutions:hospitals:label:city')"
|
||||||
width="120"
|
width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- City CN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="CityCN"
|
prop="CityCN"
|
||||||
label="City CN"
|
:label="$t('institutions:hospitals:label:cityCN')"
|
||||||
width="120"
|
width="130"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column label="Action" width="150">
|
<el-table-column :label="$t('common:action:action')" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-edit-outline"
|
|
||||||
title="编辑"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:edit') }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-delete"
|
|
||||||
title="删除"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:delete') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -190,13 +208,13 @@ export default {
|
|||||||
// 新增医院信息
|
// 新增医院信息
|
||||||
handleAddHospital() {
|
handleAddHospital() {
|
||||||
this.rowData = {}
|
this.rowData = {}
|
||||||
this.editDialog.title = 'Add'
|
this.editDialog.title = this.$t('common:button:new')
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
// 修改医院信息
|
// 修改医院信息
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.rowData = row
|
this.rowData = row
|
||||||
this.editDialog.title = 'Edit'
|
this.editDialog.title = this.$t('common:action:edit')
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
// 删除医院信息
|
// 删除医院信息
|
||||||
|
|||||||
@@ -9,49 +9,50 @@
|
|||||||
label-width="150px"
|
label-width="150px"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="Site Code: " v-if="form.Id" prop="SiteCode">
|
<!-- Site Code -->
|
||||||
|
<el-form-item :label="$t('institutions:sites:label:siteCode')" v-if="form.Id" prop="SiteCode">
|
||||||
<el-input v-model="form.SiteCode" disabled />
|
<el-input v-model="form.SiteCode" disabled />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- 中心名称 -->
|
<!-- 中心名称 -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('trials:customSite:form:siteName')"
|
:label="$t('institutions:sites:label:siteName')"
|
||||||
prop="SiteName"
|
prop="SiteName"
|
||||||
>
|
>
|
||||||
<el-input v-model="form.SiteName" />
|
<el-input v-model="form.SiteName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 中心名称(CN) -->
|
<!-- 中心名称(CN) -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('trials:customSite:form:siteName') + '(CN)'"
|
:label="$t('institutions:sites:label:siteNameCN')"
|
||||||
prop="SiteNameCN"
|
prop="SiteNameCN"
|
||||||
>
|
>
|
||||||
<el-input v-model="form.SiteNameCN" />
|
<el-input v-model="form.SiteNameCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- Alias Name -->
|
||||||
<el-form-item label="Alias Name: ">
|
<el-form-item :label="$t('institutions:sites:label:aliasName')">
|
||||||
<el-input v-model="form.AliasName" />
|
<el-input v-model="form.AliasName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="组织机构代码: ">
|
<!-- <el-form-item label="组织机构代码: ">
|
||||||
<el-input v-model="form.UniqueCode" />
|
<el-input v-model="form.UniqueCode" />
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
|
<!-- Country -->
|
||||||
<el-form-item label="Country: " prop="Country">
|
<el-form-item :label="$t('institutions:sites:label:country')" prop="Country">
|
||||||
<el-input v-model="form.Country" />
|
<el-input v-model="form.Country" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- City -->
|
||||||
<el-form-item label="City: " prop="City">
|
<el-form-item :label="$t('institutions:sites:label:city')" prop="City">
|
||||||
<el-input v-model="form.City" />
|
<el-input v-model="form.City" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Address: " prop="Address">
|
<!-- Address -->
|
||||||
|
<el-form-item :label="$t('institutions:sites:label:address')" prop="Address">
|
||||||
<el-input v-model="form.Address" />
|
<el-input v-model="form.Address" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- Affiliated Hospital -->
|
||||||
<el-form-item label="Affiliated Hospital: ">
|
<el-form-item :label="$t('institutions:sites:label:affiliatedHospital')">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.HospitalId"
|
v-model="form.HospitalId"
|
||||||
clearable
|
clearable
|
||||||
placeholder="Please select"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@@ -62,20 +63,20 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- Director Name -->
|
||||||
<el-form-item label="Director Name: " prop="DirectorName">
|
<el-form-item :label="$t('institutions:sites:label:directorName')" prop="DirectorName">
|
||||||
<el-input v-model="form.DirectorName" />
|
<el-input v-model="form.DirectorName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- Director Phone -->
|
||||||
<el-form-item label="Director Phone: " prop="DirectorPhone">
|
<el-form-item :label="$t('institutions:sites:label:directorPhone')" prop="DirectorPhone">
|
||||||
<el-input v-model="form.DirectorPhone" />
|
<el-input v-model="form.DirectorPhone" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- Contact Name -->
|
||||||
<el-form-item label="Contact Name: " prop="ContactName">
|
<el-form-item :label="$t('institutions:sites:label:contactName')" prop="ContactName">
|
||||||
<el-input v-model="form.ContactName" />
|
<el-input v-model="form.ContactName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- Contact Phone -->
|
||||||
<el-form-item label="Contact Phone: " prop="ContactPhone">
|
<el-form-item :label="$t('institutions:sites:label:contactPhone')" prop="ContactPhone">
|
||||||
<el-input v-model="form.ContactPhone" />
|
<el-input v-model="form.ContactPhone" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -86,14 +87,14 @@
|
|||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleCancel"
|
@click="handleCancel"
|
||||||
>Cancel</el-button
|
>{{ $t('common:button:cancel') }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
:loading="btnLoading"
|
:loading="btnLoading"
|
||||||
@click="handleSave"
|
@click="handleSave"
|
||||||
>Save</el-button
|
>{{ $t('common:button:save') }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -133,35 +134,35 @@ export default {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
SiteName: [
|
SiteName: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
// { max: 50, message: 'The maximum length is 50' }
|
// { max: 50, message: 'The maximum length is 50' }
|
||||||
],
|
],
|
||||||
SiteNameCN: [
|
SiteNameCN: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
// { max: 50, message: 'The maximum length is 50' }
|
// { max: 50, message: 'The maximum length is 50' }
|
||||||
],
|
],
|
||||||
SiteCode: [
|
SiteCode: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
{ max: 50, message: 'The maximum length is 50' },
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
],
|
],
|
||||||
Country: [
|
Country: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
{ max: 50, message: 'The maximum length is 50' },
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
],
|
],
|
||||||
City: [
|
City: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
{ max: 50, message: 'The maximum length is 50' },
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
],
|
],
|
||||||
// HospitalId: [
|
// HospitalId: [
|
||||||
// { required: true, message: 'Please specify', trigger: 'blur' }
|
// { required: true, message: 'Please specify', trigger: 'blur' }
|
||||||
// ],
|
// ],
|
||||||
Address: [
|
Address: [
|
||||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
|
||||||
],
|
],
|
||||||
DirectorName: [{ max: 50, message: 'The maximum length is 50' }],
|
DirectorName: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
|
||||||
DirectorPhone: [{ max: 50, message: 'The maximum length is 50' }],
|
DirectorPhone: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
|
||||||
ContactName: [{ max: 50, message: 'The maximum length is 50' }],
|
ContactName: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
|
||||||
ContactPhone: [{ max: 50, message: 'The maximum length is 50' }],
|
ContactPhone: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
show: false,
|
show: false,
|
||||||
@@ -180,7 +181,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message.success('Saved successfully')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.$refs['siteForm'].resetFields()
|
this.$refs['siteForm'].resetFields()
|
||||||
this.$emit('getList')
|
this.$emit('getList')
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
|
|||||||
@@ -1,46 +1,49 @@
|
|||||||
<template>
|
<template>
|
||||||
<box-content>
|
<box-content>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="small" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="Site Name:">
|
<!-- Site Name -->
|
||||||
|
<el-form-item :label="$t('institutions:sites:label:siteName')">
|
||||||
<el-input v-model="searchData.SiteName" style="width: 120px" />
|
<el-input v-model="searchData.SiteName" style="width: 120px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Alias Name:">
|
<!-- Alias Name -->
|
||||||
|
<el-form-item :label="$t('institutions:sites:label:aliasName')">
|
||||||
<el-input v-model="searchData.AliasName" style="width: 120px" />
|
<el-input v-model="searchData.AliasName" style="width: 120px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Country:">
|
<!-- Country -->
|
||||||
|
<el-form-item :label="$t('institutions:sites:label:country')">
|
||||||
<el-input v-model="searchData.Country" style="width: 120px" />
|
<el-input v-model="searchData.Country" style="width: 120px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="City:">
|
<!-- City -->
|
||||||
|
<el-form-item :label="$t('institutions:sites:label:city')">
|
||||||
<el-input v-model="searchData.City" style="width: 120px" />
|
<el-input v-model="searchData.City" style="width: 120px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch"
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
>Search</el-button
|
{{ $t('common:button:search') }}
|
||||||
>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-refresh-left"
|
icon="el-icon-refresh-left"
|
||||||
@click="handleReset"
|
@click="handleReset"
|
||||||
>Reset</el-button
|
|
||||||
>
|
>
|
||||||
|
{{ $t('common:button:reset') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="margin-left: auto">
|
<div style="margin-left: auto">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
@click="handleAddSystemSite"
|
@click="handleAddSystemSite"
|
||||||
>{{ $t("trial:dictionary:institutions:site:addSystemSite") }}
|
>{{ $t("trial:dictionary:institutions:site:addSystemSite") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
|
||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAddSite"
|
@click="handleAddSite"
|
||||||
>New
|
>
|
||||||
|
{{ $t('common:button:new') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -53,111 +56,131 @@
|
|||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
|
<!-- Site Code -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="SiteCode"
|
prop="SiteCode"
|
||||||
label="Site Code"
|
:label="$t('institutions:sites:label:siteCode')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Site Name -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="SiteName"
|
prop="SiteName"
|
||||||
label="Site Name"
|
:label="$t('institutions:sites:label:siteName')"
|
||||||
min-width="150"
|
min-width="150"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="SiteNameCN"
|
||||||
|
:label="$t('institutions:sites:label:siteNameCN')"
|
||||||
|
min-width="150"
|
||||||
|
show-overflow-tooltip
|
||||||
|
sortable="custom"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- Alias Name -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="AliasName"
|
prop="AliasName"
|
||||||
label="Alias Name"
|
:label="$t('institutions:sites:label:aliasName')"
|
||||||
min-width="150"
|
min-width="150"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
prop="UniqueCode"
|
prop="UniqueCode"
|
||||||
label="组织机构代码"
|
label="组织机构代码"
|
||||||
min-width="130"
|
min-width="130"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/> -->
|
||||||
|
<!-- Country -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Country"
|
prop="Country"
|
||||||
label="Country"
|
:label="$t('institutions:sites:label:country')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- City -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="City"
|
prop="City"
|
||||||
label="City"
|
:label="$t('institutions:sites:label:city')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Address -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Address"
|
prop="Address"
|
||||||
label="Address"
|
:label="$t('institutions:sites:label:address')"
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Affiliated Hospital -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="HospitalName"
|
prop="HospitalName"
|
||||||
label="Affiliated Hospital"
|
:label="$t('institutions:sites:label:affiliatedHospital')"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Director Name -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="DirectorName"
|
prop="DirectorName"
|
||||||
label="Director Name"
|
:label="$t('institutions:sites:label:directorName')"
|
||||||
min-width="160"
|
min-width="160"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Director Phone -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="DirectorPhone"
|
prop="DirectorPhone"
|
||||||
label="Director Phone"
|
:label="$t('institutions:sites:label:directorPhone')"
|
||||||
min-width="150"
|
min-width="150"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Contact Name -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ContactName"
|
prop="ContactName"
|
||||||
label="Contact Name"
|
:label="$t('institutions:sites:label:contactName')"
|
||||||
min-width="150"
|
min-width="150"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Contact Phone -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ContactPhone"
|
prop="ContactPhone"
|
||||||
label="Contact Phone"
|
:label="$t('institutions:sites:label:contactPhone')"
|
||||||
min-width="160"
|
min-width="160"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- CreateTime -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="CreateTime"
|
prop="CreateTime"
|
||||||
label="CreateTime"
|
:label="$t('institutions:sites:label:createTime')"
|
||||||
min-width="160"
|
min-width="160"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="Action" fixed="right" width="150">
|
<el-table-column :label="$t('common:action:action')" fixed="right" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-edit-outline"
|
|
||||||
title="编辑"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:edit') }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-delete"
|
|
||||||
title="删除"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:delete') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -357,7 +380,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
editVisible: false,
|
editVisible: false,
|
||||||
title: "Add",
|
title: this.$t('common:button:new'),
|
||||||
searchData: searchDataDefault(),
|
searchData: searchDataDefault(),
|
||||||
list: [],
|
list: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
@@ -439,13 +462,13 @@ export default {
|
|||||||
// 新增Site信息
|
// 新增Site信息
|
||||||
handleAddSite() {
|
handleAddSite() {
|
||||||
this.rowData = {};
|
this.rowData = {};
|
||||||
this.title = "Add";
|
this.title = this.$t('common:button:new');
|
||||||
this.editVisible = true;
|
this.editVisible = true;
|
||||||
},
|
},
|
||||||
// 编辑Site信息
|
// 编辑Site信息
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.rowData = row;
|
this.rowData = row;
|
||||||
this.title = "Edit";
|
this.title = this.$t('common:action:edit');
|
||||||
this.editVisible = true;
|
this.editVisible = true;
|
||||||
},
|
},
|
||||||
// 删除Site
|
// 删除Site
|
||||||
|
|||||||
@@ -8,16 +8,20 @@
|
|||||||
label-width="150px"
|
label-width="150px"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item label="Sponsor Name: " prop="SponsorName">
|
<!-- Sponsor Name -->
|
||||||
|
<el-form-item :label="$t('institutions:sponsors:label:sponsorName')" prop="SponsorName">
|
||||||
<el-input v-model="form.SponsorName" />
|
<el-input v-model="form.SponsorName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Sponsor NameCN: " prop="SponsorName">
|
<!-- Sponsor NameCN -->
|
||||||
|
<el-form-item :label="$t('institutions:sponsors:label:sponsorNameCN')" prop="SponsorName">
|
||||||
<el-input v-model="form.SponsorNameCN" />
|
<el-input v-model="form.SponsorNameCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Sponsor Code: " prop="SponsorCode">
|
<!-- Sponsor Code -->
|
||||||
|
<el-form-item :label="$t('institutions:sponsors:label:sponsorCode')" prop="SponsorCode">
|
||||||
<el-input v-model="form.SponsorCode" />
|
<el-input v-model="form.SponsorCode" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Level: ">
|
<!-- Level -->
|
||||||
|
<el-form-item :label="$t('institutions:sponsors:label:level')">
|
||||||
<el-switch
|
<el-switch
|
||||||
:disabled="!IsTrialLevel"
|
:disabled="!IsTrialLevel"
|
||||||
v-model="form.IsTrialLevel"
|
v-model="form.IsTrialLevel"
|
||||||
@@ -34,15 +38,17 @@
|
|||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleCancel"
|
@click="handleCancel"
|
||||||
>Cancel</el-button
|
|
||||||
>
|
>
|
||||||
|
{{ $t('common:button:cancel') }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
:loading="btnLoading"
|
:loading="btnLoading"
|
||||||
@click="handleSave"
|
@click="handleSave"
|
||||||
>Save</el-button
|
|
||||||
>
|
>
|
||||||
|
{{ $t('common:button:save') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -75,16 +81,16 @@ export default {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
SponsorName: [
|
SponsorName: [
|
||||||
{ required: true, message: "Please specify", trigger: "blur" },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
|
||||||
{ max: 500, message: "The maximum length is 500" },
|
{ max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
|
||||||
],
|
],
|
||||||
SponsorNameCN: [
|
SponsorNameCN: [
|
||||||
{ required: true, message: "Please specify", trigger: "blur" },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
|
||||||
{ max: 500, message: "The maximum length is 500" },
|
{ max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
|
||||||
],
|
],
|
||||||
SponsorCode: [
|
SponsorCode: [
|
||||||
{ required: true, message: "Please specify", trigger: "blur" },
|
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
|
||||||
{ max: 50, message: "The maximum length is 50" },
|
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -103,7 +109,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false;
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message.success("Saved successfully");
|
this.$message.success(this.$t('common:message:savedSuccessfully'));
|
||||||
this.$refs["sponsorForm"].resetFields();
|
this.$refs["sponsorForm"].resetFields();
|
||||||
this.$emit("getList");
|
this.$emit("getList");
|
||||||
this.$emit("close");
|
this.$emit("close");
|
||||||
|
|||||||
@@ -1,30 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<box-content>
|
<box-content>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="small" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="Sponsor Name:">
|
<!-- Sponsor Name -->
|
||||||
|
<el-form-item :label="$t('institutions:sponsors:label:sponsorName')">
|
||||||
<el-input v-model="searchData.SponsorName" style="width: 100px" />
|
<el-input v-model="searchData.SponsorName" style="width: 100px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch"
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
>Search</el-button
|
{{ $t('common:button:search') }}
|
||||||
>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-refresh-left"
|
icon="el-icon-refresh-left"
|
||||||
@click="handleReset"
|
@click="handleReset"
|
||||||
>Reset</el-button
|
|
||||||
>
|
>
|
||||||
|
{{ $t('common:button:reset') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left: auto">
|
<span style="margin-left: auto">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
style="margin-left: auto"
|
style="margin-left: auto"
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAddSponsor"
|
@click="handleAddSponsor"
|
||||||
>New</el-button
|
>{{ $t('common:button:new') }}</el-button
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -37,30 +37,34 @@
|
|||||||
@sort-change="handleSortByColumn"
|
@sort-change="handleSortByColumn"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
|
<!-- Sponsor Code -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="SponsorCode"
|
prop="SponsorCode"
|
||||||
label="Sponsor Code"
|
:label="$t('institutions:sponsors:label:sponsorCode')"
|
||||||
min-width="100"
|
min-width="100"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Sponsor Name -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="SponsorName"
|
prop="SponsorName"
|
||||||
label="Sponsor Name"
|
:label="$t('institutions:sponsors:label:sponsorName')"
|
||||||
min-width="100"
|
min-width="100"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Sponsor NameCN -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="SponsorNameCN"
|
prop="SponsorNameCN"
|
||||||
label="Sponsor NameCN"
|
:label="$t('institutions:sponsors:label:sponsorNameCN')"
|
||||||
min-width="100"
|
min-width="100"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
<!-- Level -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsTrialLevel"
|
prop="IsTrialLevel"
|
||||||
label="Level"
|
:label="$t('institutions:sponsors:label:level')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
@@ -68,20 +72,20 @@
|
|||||||
<span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span>
|
<span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="Action" min-width="150">
|
<el-table-column :label="$t('common:action:action')" min-width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-edit-outline"
|
|
||||||
title="编辑"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:edit') }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
type="text"
|
||||||
icon="el-icon-delete"
|
|
||||||
title="删除"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
/>
|
>
|
||||||
|
{{ $t('common:button:delete') }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -160,13 +164,13 @@ export default {
|
|||||||
// 新增Sponsor
|
// 新增Sponsor
|
||||||
handleAddSponsor() {
|
handleAddSponsor() {
|
||||||
this.rowData = {};
|
this.rowData = {};
|
||||||
this.title = "Add";
|
this.title = this.$t('common:button:new');
|
||||||
this.editVisible = true;
|
this.editVisible = true;
|
||||||
},
|
},
|
||||||
// 编辑Sponsor
|
// 编辑Sponsor
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.rowData = row;
|
this.rowData = row;
|
||||||
this.title = "Edit";
|
this.title = this.$t('common:action:edit');
|
||||||
this.editVisible = true;
|
this.editVisible = true;
|
||||||
},
|
},
|
||||||
// 删除Sponsor
|
// 删除Sponsor
|
||||||
|
|||||||
@@ -1,16 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="institution-wrapper">
|
<div class="institution-wrapper">
|
||||||
<el-tabs v-model="activeTab" @tab-click="clickTab">
|
<el-tabs v-model="activeTab" @tab-click="clickTab">
|
||||||
<el-tab-pane label="Hospitals" name="Hospitals">
|
<!-- Hospitals -->
|
||||||
|
<el-tab-pane :label="$t('institutions:tab:hospitals')" name="Hospitals">
|
||||||
<Hospitals v-if="activeTab === 'Hospitals'" />
|
<Hospitals v-if="activeTab === 'Hospitals'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="Sites" name="Sites">
|
<!-- Sites -->
|
||||||
|
<el-tab-pane :label="$t('institutions:tab:sites')" name="Sites">
|
||||||
<Sites v-if="activeTab === 'Sites'" />
|
<Sites v-if="activeTab === 'Sites'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="CROs" name="CROs">
|
<!-- CROs -->
|
||||||
|
<el-tab-pane :label="$t('institutions:tab:CROs')" name="CROs">
|
||||||
<CROs v-if="activeTab === 'CROs'" />
|
<CROs v-if="activeTab === 'CROs'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="Sponsors" name="Sponsors">
|
<!-- Sponsors -->
|
||||||
|
<el-tab-pane :label="$t('institutions:tab:sponsors')" name="Sponsors">
|
||||||
<Sponsors v-if="activeTab === 'Sponsors'" />
|
<Sponsors v-if="activeTab === 'Sponsors'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<box-content>
|
<box-content>
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="mini" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="字典表名称:">
|
<el-form-item label="字典表名称:">
|
||||||
<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>
|
||||||
@@ -12,12 +12,24 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="handleReset">Reset</el-button>
|
<el-button
|
||||||
<el-button type="primary" @click="handleSearch">Search</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-form-item>
|
||||||
</el-form>
|
</el-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" @click="handleAdd">新建</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -68,25 +80,22 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="300" fixed="right">
|
<el-table-column label="操作" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleChild(scope.row)"
|
@click="handleChild(scope.row)"
|
||||||
>
|
>
|
||||||
子项
|
子项
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
|
|||||||
@@ -63,18 +63,16 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="300" fixed="right">
|
<el-table-column label="操作" width="150" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<box-content>
|
<box-content>
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="mini" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<el-form-item label="字典表名称:">
|
<el-form-item label="字典表名称:">
|
||||||
<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>
|
||||||
@@ -12,12 +12,24 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="handleReset">Reset</el-button>
|
<el-button
|
||||||
<el-button type="primary" @click="handleSearch">Search</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-form-item>
|
||||||
</el-form>
|
</el-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" @click="handleAdd">新建</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -68,25 +80,22 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="300" fixed="right">
|
<el-table-column label="操作" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleChild(scope.row)"
|
@click="handleChild(scope.row)"
|
||||||
>
|
>
|
||||||
子项
|
子项
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="text"
|
||||||
size="mini"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
|
|||||||
@@ -183,16 +183,13 @@
|
|||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
>{{ $t('common:button:new') }}</el-button>
|
>{{ $t('common:button:new') }}</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- 删除 -->
|
<!-- 删除 -->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
|
||||||
@click="handleDelete(scope.$index)"
|
@click="handleDelete(scope.$index)"
|
||||||
>{{ $t('common:button:delete') }}</el-button>
|
>{{ $t('common:button:delete') }}</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user