diff --git a/shandan-system/src/main/resources/static/css/sys/file/fileView.css b/shandan-system/src/main/resources/static/css/sys/file/fileView.css index f25595e..1ad2dd8 100644 --- a/shandan-system/src/main/resources/static/css/sys/file/fileView.css +++ b/shandan-system/src/main/resources/static/css/sys/file/fileView.css @@ -51,6 +51,8 @@ ul.file-viewer-tab li:hover { } .file-property .field-name{ width: 70px; + text-align: right; + padding-right: 10px; } .file-property .field-value{ flex: 1; diff --git a/shandan-system/src/main/resources/static/js/sys/file/view.js b/shandan-system/src/main/resources/static/js/sys/file/view.js index bb8b4b2..7e580a5 100644 --- a/shandan-system/src/main/resources/static/js/sys/file/view.js +++ b/shandan-system/src/main/resources/static/js/sys/file/view.js @@ -9,6 +9,9 @@ layui.use(['layer', 'laytpl', 'dropdown', 'carousel', 'form', 'datalabel'], function () { for (let col in file) { switch (col) { + case 'secretLevel': + $(`label[name="${col}"]`).text(DICT.getText('secret_level', file[col])); + break; case 'taskNature': $(`label[name="${col}"]`).text(DICT.getText('task_nature', file[col])); break; @@ -26,7 +29,10 @@ layui.use(['layer', 'laytpl', 'dropdown', 'carousel', 'form', 'datalabel'], func } } break; - case 'secretLevel': + case 'exerciseData': + $(`label[name="${col}"]`).text(file[col] == 0 ? '否' : '是'); + break; + case '': $(`label[name="${col}"]`).text(DICT.getText('secret_level', file[col])); break; default: diff --git a/shandan-system/src/main/resources/view/sys/file/fileView.html b/shandan-system/src/main/resources/view/sys/file/fileView.html index 8c8b03a..5815ed2 100644 --- a/shandan-system/src/main/resources/view/sys/file/fileView.html +++ b/shandan-system/src/main/resources/view/sys/file/fileView.html @@ -35,45 +35,13 @@ -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - +
+ +