diff --git a/src/api/archiveUtilize/archiveEditing.js b/src/api/archiveUtilize/archiveEditing.js index c31f69f..8faeae0 100644 --- a/src/api/archiveUtilize/archiveEditing.js +++ b/src/api/archiveUtilize/archiveEditing.js @@ -14,10 +14,10 @@ export function edit(parameter) { }) } -// 删除档案盒 +// 删除编研 export function del(data) { return request({ - url: 'api/archivesDeposit/del', + url: 'api/archivesUtilize/deleteResearch', method: 'post', data: data }) @@ -40,6 +40,15 @@ export function FetchAddResearchSource(data) { }) } +// 档案编研素材删除 +export function FetchDeleteResearchSource(data) { + return request({ + url: 'api/archivesUtilize/deleteResearchSource', + method: 'post', + data: data + }) +} + // 档案编研素材收集列表 export function FetchInitResearchSourceList(params) { return request({ @@ -48,4 +57,47 @@ export function FetchInitResearchSourceList(params) { }) } -export default { add, edit, del, FetchInitResearchDetails, FetchAddResearchSource, FetchInitResearchSourceList } +// 编辑档案编研在线编研 +export function FetchEditResearchOnline(data) { + return request({ + url: 'api/archivesUtilize/editResearchOnline', + method: 'post', + data: data + }) +} + +// 档案编研在线编研详情 +export function FetchInitResearchOnlineDetails(params) { + return request({ + url: 'api/archivesUtilize/initResearchOnlineDetails' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +// 删除在线编研 +export function FetchDeleteResearchOnline(data) { + return request({ + url: 'api/archivesUtilize/deleteResearchOnline', + method: 'post', + data: data + }) +} + +// 更改在线编研状态 +export function FetchChangeResearchOnlineState(data) { + return request({ + url: 'api/archivesUtilize/changeResearchOnlineState', + method: 'post', + data: data + }) +} + +// 初始化在线编研附件 +export function FetchInitResearchOnlineFileList(params) { + return request({ + url: 'api/archivesUtilize/initResearchOnlineFileList' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +export default { add, edit, del, FetchInitResearchDetails, FetchAddResearchSource, FetchDeleteResearchSource, FetchInitResearchSourceList, FetchEditResearchOnline, FetchInitResearchOnlineDetails, FetchDeleteResearchOnline, FetchChangeResearchOnlineState, FetchInitResearchOnlineFileList } diff --git a/src/api/archivesManage/library.js b/src/api/archivesManage/library.js index 43558ee..042a1c6 100644 --- a/src/api/archivesManage/library.js +++ b/src/api/archivesManage/library.js @@ -41,10 +41,19 @@ export function FetchBusinessFlowDetails(params) { }) } +// 获取主页基础数据 +export function FetchMainData(params) { + return request({ + url: 'api/control/getMainData' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + export default { FetchInitContorlView, FetchPrintData, FetchIntoFlowBusiness, FetchBusinessFlowHistory, - FetchBusinessFlowDetails + FetchBusinessFlowDetails, + FetchMainData } diff --git a/src/assets/images/home-icon1.png b/src/assets/images/home-icon1.png new file mode 100644 index 0000000..3e80f6d Binary files /dev/null and b/src/assets/images/home-icon1.png differ diff --git a/src/assets/images/home-icon2.png b/src/assets/images/home-icon2.png new file mode 100644 index 0000000..43a2915 Binary files /dev/null and b/src/assets/images/home-icon2.png differ diff --git a/src/assets/images/home-icon3.png b/src/assets/images/home-icon3.png new file mode 100644 index 0000000..77057d5 Binary files /dev/null and b/src/assets/images/home-icon3.png differ diff --git a/src/assets/images/home-icon4.png b/src/assets/images/home-icon4.png new file mode 100644 index 0000000..bc7908c Binary files /dev/null and b/src/assets/images/home-icon4.png differ diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index 15fc25b..d8933ec 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -1221,32 +1221,32 @@ input[type ='number'] { .warehouse-svg { margin: 0 10px 1px 0; } -.title-arrow { - position: relative; - display: inline-block; - - &::before { - content: ''; - width: 36px; - height: 12px; - position: absolute; - right: -60px; - top: 50%; - transform: translateY(-50%); - background: url('~@/assets/images/warehouse_arrow_left.png') no-repeat; - } - - &::after { - content: ''; - width: 36px; - height: 12px; - position: absolute; - left: -60px; - top: 50%; - transform: translateY(-50%); - background: url('~@/assets/images/warehouse_arrow_right.png') no-repeat; - } -} +// .title-arrow { +// position: relative; +// display: inline-block; + +// &::before { +// content: ''; +// width: 36px; +// height: 12px; +// position: absolute; +// right: -60px; +// top: 50%; +// transform: translateY(-50%); +// background: url('~@/assets/images/warehouse_arrow_left.png') no-repeat; +// } + +// &::after { +// content: ''; +// width: 36px; +// height: 12px; +// position: absolute; +// left: -60px; +// top: 50%; +// transform: translateY(-50%); +// background: url('~@/assets/images/warehouse_arrow_right.png') no-repeat; +// } +// } .el-switch .el-switch__core{ @include switch-disabled; } diff --git a/src/utils/upload.js b/src/utils/upload.js index a1942ad..5284512 100644 --- a/src/utils/upload.js +++ b/src/utils/upload.js @@ -84,3 +84,17 @@ export function batchMountUpload(api, file, params) { } return axios.post(api, data, config) } + +// 在线编研附件 +export function onlineUpload(api, file, params) { + var data = new FormData() + data.append('file', file) + data.append('researchId', params.researchId) + data.append('researchOnlineId', params.researchOnlineId) + const config = { + headers: { + 'Authorization': getToken() + } + } + return axios.post(api, data, config) +} diff --git a/src/views/archiveUtilize/archiveEditing/form.vue b/src/views/archiveUtilize/archiveEditing/form.vue index a8b1652..3d2a926 100644 --- a/src/views/archiveUtilize/archiveEditing/form.vue +++ b/src/views/archiveUtilize/archiveEditing/form.vue @@ -189,6 +189,8 @@ export default { this.userMainSelected.forEach(item => { this.$refs.userTable.toggleRowSelection(item) }) + } else { + this.$refs.userTable.clearSelection() } } else { if (this.userOtherSelected.length !== 0) { @@ -196,6 +198,8 @@ export default { this.userOtherSelected.forEach(item => { this.$refs.userTable.toggleRowSelection(item) }) + } else { + this.$refs.userTable.clearSelection() } } }) diff --git a/src/views/archiveUtilize/archiveEditing/index.vue b/src/views/archiveUtilize/archiveEditing/index.vue index 6b3e1a8..0493460 100644 --- a/src/views/archiveUtilize/archiveEditing/index.vue +++ b/src/views/archiveUtilize/archiveEditing/index.vue @@ -15,7 +15,7 @@ 搜索 重置 - 我参与得编研 + 我参与得编研 @@ -112,13 +112,9 @@ export default { del: ['admin', 'archiveEditing:del'] }, keyWord: null, - options: [ - { value: 'username', label: '利用人' }, - { value: 'account', label: '利用事由' } - ], - optionVal: '', blurryTime: null, - participants: false + participants: false, + currentResearch: null } }, computed: { @@ -195,16 +191,50 @@ export default { this.$refs.eform.formType = type this.$refs.eform.formVisible = true }, + toDelete(data) { + this.$confirm('此操作将删除当前所选编研主题' + '你是否还要继续?', '提示', { + confirmButtonText: '继续', + cancelButtonText: '取消', + type: 'warning', + dangerouslyUseHTMLString: true + }).then(() => { + const ids = data.map(item => item.id) + const params = { + 'ids': ids, + 'operator': this.user.username + } + crudEditing.del(params).then((res) => { + console.log(res) + if (res.code !== 500) { + this.$message({ message: '删除成功', type: 'success', offset: 8 }) + } else { + this.$message({ message: res.message, type: 'error', offset: 8 }) + } + this.initData() + }).catch(err => { + console.log(err) + }) + }).catch(() => { + }) + }, clickRowHandler(row) { - // this.$refs.table.clearSelection() this.$refs.table.toggleRowSelection(row) }, tableDoubleClick(row) { - // this.$refs.editingDetail.currentRow = row + this.currentResearch = row + this.$refs.editingDetail.archivesTabIndex = 0 this.$refs.editingDetail.getDetail(row) this.$refs.editingDetail.editingDetailVisible = true }, handleCloseDialog(done) { + }, + changeMy(val) { + if (val) { + this.crud.query.participants = this.user.username + } else { + this.crud.query.participants = '' + } + this.crud.toQuery() } } } diff --git a/src/views/archiveUtilize/archiveEditing/module/detail.vue b/src/views/archiveUtilize/archiveEditing/module/detail.vue index 66203d2..7da5fc1 100644 --- a/src/views/archiveUtilize/archiveEditing/module/detail.vue +++ b/src/views/archiveUtilize/archiveEditing/module/detail.vue @@ -10,7 +10,7 @@
  • 素材收集
  • 在线编研
  • -
    双击列表数据查看详情
    +
    双击列表数据查看详情
    @@ -56,12 +56,12 @@
    - +
    - +
    @@ -73,24 +73,18 @@ @@ -136,152 +93,41 @@ export default { } .card-panel { - height: 100px; - // height: 108px; - // cursor: pointer; - font-size: 15px; + display: flex; + justify-content: center; + align-items: center; + height: 148px; + font-size: 14px; position: relative; overflow: hidden; - opacity: 0.86; - // box-shadow: 4px 4px 40px rgba(0, 0, 0, .05); - // border-color: rgba(0, 0, 0, .05); - &.danganzongliang { - color: #21aae1; - background: linear-gradient( - 180deg, - rgba(51, 159, 210, 0.5) 0%, - rgba(56, 158, 225, 0) 100% - ); - border-top: 2px #21aae1 solid; - & span.card-panel-num { - background: linear-gradient(180deg, #ffffff 0%, #21aae1 100%); - } - } - &.danganhezongliang { - color: #793cba; - background: linear-gradient( - 180deg, - rgba(121, 60, 186, 0.5) 0%, - rgba(121, 60, 186, 0) 100% - ); - border-top: 2px #793cba solid; - & span.card-panel-num { - background: linear-gradient(180deg, #ffffff 0%, #793cba 100%); - } - } - &.quanbushebei { - color: #008e81; - background: linear-gradient( - 180deg, - rgba(0, 142, 129, 0.5) 0%, - rgba(0, 142, 129, 0) 100% - ); - border-top: 2px #008e81 solid; + background-color: #fff; + border-radius: 5px; + .card-panel-description{ + color: #545B65; & span.card-panel-num { - background: linear-gradient(180deg, #ffffff 0%, #008e81 100%); + font-size: 36px; + background-color: #0C0E1E; } } - &.zaixianshebei { - color: #c4c859; - background: linear-gradient( - 180deg, - rgba(196, 200, 89, 0.5) 0%, - rgba(196, 200, 89, 0) 100% - ); - border-top: 2px #c4c859 solid; - & span.card-panel-num { - background: linear-gradient(180deg, #ffffff 0%, #bfc458 100%); - } - } - &.lixianshebei { - color: #f65164; - background: linear-gradient( - 180deg, - rgba(246, 81, 100, 0.5) 0%, - rgba(247, 80, 100, 0) 100% - ); - border-top: 2px #f65164 solid; - & span.card-panel-num { - background: linear-gradient(180deg, #ffffff 0%, #f55164 100%); - } - } - // &:hover { - // .card-panel-icon-wrapper { - // color: #fff; - // } - - // .icon-people { - // background: #40c9c6; - // } - - // .icon-message { - // background: #36a3f7; - // } - - // .icon-money { - // background: #f4516c; - // } - - // .icon-shopping { - // background: #34bfa3 - // } - // } - - // .icon-danganzongliang { - // color: #21AAE1; - // } - - // .icon-danganhezongliang { - // color: #793CBA; - // } - - // .icon-quanbushebei { - // color: #008E81; - // } - - // .icon-zaixianshebei { - // color: #C4C859 - // } - - // .icon-lixianshebei { - // color: #F65164 - // } .card-panel-icon-wrapper { - float: left; - margin: 0 10px 0 12px; - padding: 20px; + width: 82px; + margin: 0 30px 0 50px; transition: all 0.38s ease-out; border-radius: 6px; } - .card-panel-icon { - float: left; - font-size: 60px; - } - .card-panel-description { - // float: right; - // font-weight: bold; - margin: 19px; - margin-left: 0px; - + flex: 1; .card-panel-text { - line-height: 30px; - color: rgba(0, 0, 0, 0.45); - font-size: 28px; - margin-bottom: 11px; + color: #0C0E1E; + margin-top: 10px; & span { - // background: linear-gradient(180deg, #FFFFFF 0%, #21AAE1 100%); -webkit-background-clip: text; color: transparent; font-weight: bold; } } - - // .card-panel-num { - // font-size: 20px; - // } } } } diff --git a/src/views/home copy.vue b/src/views/home copy.vue new file mode 100644 index 0000000..58207d6 --- /dev/null +++ b/src/views/home copy.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/src/views/home.vue b/src/views/home.vue index 58207d6..770f05c 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -1,91 +1,132 @@