diff --git a/package.json b/package.json index 808498f..fa3638e 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "element-ui": "^2.15.6", "file-saver": "1.3.8", "fuse.js": "3.4.4", + "highlight.js": "^11.5.1", "js-beautify": "^1.10.2", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,6 +50,7 @@ "qs": "^6.10.1", "screenfull": "4.2.0", "sortablejs": "1.8.4", + "vkbeautify": "^0.99.3", "vue": "^2.6.14", "vue-count-to": "^1.0.13", "vue-cropper": "0.4.9", @@ -60,6 +62,7 @@ "vuedraggable": "2.20.0", "vuex": "3.1.0", "wangeditor": "^4.7.11", + "x2js": "^3.4.3", "xlsx": "^0.17.4" }, "devDependencies": { diff --git a/src/assets/styles/archives-manage.scss b/src/assets/styles/archives-manage.scss index 4429b00..256f64f 100644 --- a/src/assets/styles/archives-manage.scss +++ b/src/assets/styles/archives-manage.scss @@ -6,6 +6,32 @@ $arcRed:#F65163; $arcGreen: #1AAE93; $arcCyan: #0FBED9; +::v-deep.input-prepend{ + position: relative; + .el-input__inner { + padding-left: 80px; + } + .el-input-group__prepend { + position: absolute; + left: 0; + top: 0; + color: #fff; + background-color: transparent; + border: none; + height: 32px; + line-height: 32px; + .el-input__inner { + padding-left: 15px; + } + } +} +.packing-head{ + display: flex; + justify-content: space-between; + ::v-deep .el-input__inner { + padding-left: 90px; + } +} .container-main{ .left-tree-item{ margin-bottom: 20px; @@ -141,7 +167,7 @@ $arcCyan: #0FBED9; ::v-deep .is-scrolling-left, ::v-deep .is-scrolling-middle, ::v-deep .is-scrolling-right{ - min-height: calc(100vh - 430px) !important; + min-height: calc(100vh - 434px) !important; } } ::v-deep .archives-table.el-table .el-table__fixed-right{ @@ -149,11 +175,12 @@ $arcCyan: #0FBED9; box-shadow: -5px 5px 10px 1px rgba(15,164,222,0.16); } +// archives - tab .archives-tab{ position: relative; display: flex; flex-direction: row; - padding: 0 70px; + padding: 0 35px; font-size: 16px; border-bottom: 1px solid #339CFF; z-index: 1001; @@ -179,8 +206,93 @@ $arcCyan: #0FBED9; } // 上传附件 +.upload-dialog{ + ::v-deep.el-dialog{ + width: 940px; + .el-dialog__body{ + padding: 20px 0; + } + } +} .upload-file{ .upload-curd{ - margin: 20px 32px; + display: flex; + flex-direction: row; + margin: 0 32px 20px 32px; + } + .upload-demo{ + position: relative; + margin-right: 10px; + ::v-deep .el-upload-list{ + display: none; + position: absolute; + left: 0; + bottom: 0; + } } +} +.screenshot{ + display: block; + margin: 0 auto; + object-fit: cover; +} +.file-down, +.packing-handle-btn{ + display: block; + width: 66px; + height: 28px; + line-height: 28px; + padding: 0; + color: #fff; + border-radius: 2px; + margin: 0 auto; + &::before{ + margin-right: 5px; + } +} +.file-down{ + background-color: #339CFF; + border-color: #339CFF; +} +.packing-handle-btn{ + background-color: $arcPurple; + border-color: $arcPurple; +} + +.drag-tip { + display: block; + padding-left: 20px; + padding-bottom: 10px; + font-style: normal; + font-weight: bold; + color: #fff; +} + +// 档案详情 +.base-info{ + padding-top: 20px; + color: #fff; + .base-info-item{ + display: flex; + flex-direction: row; + margin-bottom: 20px; + span{ + display: block; + width: 160px; + text-align: right; + color: #3A99FD; + } + p{ + flex: 1; + } + } +} +::v-deep.hljs{ + color: #fff; + background-color: transparent; +} + +.selct-data-head{ + color: #fff; + line-height: 32px; } \ No newline at end of file diff --git a/src/main.js b/src/main.js index 65eb83c..30f914a 100644 --- a/src/main.js +++ b/src/main.js @@ -46,6 +46,9 @@ Vue.use(Element, { size: Cookies.get('size') || 'small' // set element-ui default size }) +import X2js from 'x2js' // xml数据处理插件 +Vue.prototype.$x2js = new X2js() // 创建x2js对象,挂到vue原型上 + Vue.config.productionTip = false new Vue({ diff --git a/src/views/archivesManage/archivesCheck/data1.json b/src/views/archivesManage/archivesCheck/data1.json index 71dda51..7f5f107 100644 --- a/src/views/archivesManage/archivesCheck/data1.json +++ b/src/views/archivesManage/archivesCheck/data1.json @@ -51,7 +51,7 @@ }, { "id":"6e604355ff1e47e8b48117dca36420c7", - "isCheckNum":"PD-202205250840", + "isCheckNum":"PD-202205250841", "isContainPath":"父区域-子区域,父区域-子区域1", "isCheckState":"执行中", "isStoreNum":"233", @@ -63,7 +63,7 @@ }, { "id":"6f4a6631d9d3424b960793704f3757b3", - "isCheckNum":"PD-202205250840", + "isCheckNum":"PD-202205250841", "isContainPath":"父区域-子区域,父区域-子区域1", "isCheckState":"执行中", "isStoreNum":"233", @@ -75,7 +75,7 @@ }, { "id":"76e29d5c0a0541bfb1ee9da432183b15", - "isCheckNum":"PD-202205250840", + "isCheckNum":"PD-202205250842", "isContainPath":"父区域-子区域,父区域-子区域1", "isCheckState":"已执行", "isStoreNum":"233", @@ -87,7 +87,7 @@ }, { "id":"a0ffdd94161146c49161662c3f9a70cd", - "isCheckNum":"PD-202205250840", + "isCheckNum":"PD-202205250842", "isContainPath":"父区域-子区域,父区域-子区域1", "isCheckState":"已执行", "isStoreNum":"233", diff --git a/src/views/archivesManage/archivesCheck/index.vue b/src/views/archivesManage/archivesCheck/index.vue index 8a15e48..cb8d5e3 100644 --- a/src/views/archivesManage/archivesCheck/index.vue +++ b/src/views/archivesManage/archivesCheck/index.vue @@ -45,28 +45,29 @@ height="calc(100vh - 315px)" @selection-change="selectionChangeHandler" @row-click="clickRowHandler" + @row-dblclick="handleDbClick" > - - - - + + + + - - - - - - - + + + + + + + @@ -84,6 +85,8 @@ + + @@ -91,19 +94,27 @@ diff --git a/src/views/archivesManage/archivesList/archivesDetail.vue b/src/views/archivesManage/archivesList/archivesDetail.vue index b10ce10..0df230b 100644 --- a/src/views/archivesManage/archivesList/archivesDetail.vue +++ b/src/views/archivesManage/archivesList/archivesDetail.vue @@ -1,28 +1,39 @@