diff --git a/src/api/modules/report.js b/src/api/modules/report.js
index 7077d69..e193a26 100644
--- a/src/api/modules/report.js
+++ b/src/api/modules/report.js
@@ -10,6 +10,14 @@ export function reportUploadPicFile (data) {
})
}
export default {
+ // 修改上传人
+ changeUploader (data) {
+ return request({
+ url: '/api/report/changeUploader',
+ method: 'post',
+ data: data
+ })
+ },
// 日志列表
reportLogList (data) {
return request({
diff --git a/src/views/Report/ReportManager.vue b/src/views/Report/ReportManager.vue
index 736f2e8..e4ef589 100644
--- a/src/views/Report/ReportManager.vue
+++ b/src/views/Report/ReportManager.vue
@@ -29,13 +29,14 @@
- 操作日志
+ 操作日志
标签维护
报告上传
+ 更改上传人
-
+
@@ -65,7 +66,9 @@
-
+
+
{{ rowIndex + (q.pageNo - 1) * q.pageSize + 1 }}
@@ -82,6 +85,7 @@
+
编辑
@@ -110,7 +114,7 @@
-
+
@@ -181,7 +185,10 @@
-
+
@@ -199,6 +206,9 @@ export default {
},
data() {
return {
+ visibleOrgTable:false,
+ orgTableVal:'',
+ orgTableValName:'',
treeKey:'',
watermarkText: '', // 水印
fullscreen: false,
@@ -221,37 +231,10 @@ export default {
treeData: [
],
filterText:'',
- filterText2:'',
+ filterText2:'',
checkedKeys:[],
- tagsForm: {
- tags01: {
- name: '',
- parentId: '0',
- type: '1',
- id: '',
- childList: [
- // {name: '无', type: '1', id: '', parentId: ''},
- ]
- },
- tags02: {
- name: '',
- parentId: '0',
- type: '2',
- id: '',
- childList: [
- // {name: '无', type: '2', id: '', parentId: ''},
- ]
- },
- tags03: {
- name: '',
- parentId: '0',
- type: '3',
- id: '',
- childList: [
- // {name: '无', type: '3', id: '', parentId: ''},
- ]
- },
- },
+ checkIds:[],
+ checkList: [],
/* =============================================== 报告上传 =============================================== */
dialogReport: false, // 报告上传
reportF: {
@@ -328,6 +311,59 @@ export default {
},
methods: {
+ isTreeOk(checkedList){
+ const parts = []
+ const partsName = []
+ console.log(checkedList, '0009999')
+ checkedList.map((item, index) => {
+ parts.push(item.userId || item.USID)
+ partsName.push(item.uname)
+ })
+ // 调用更改接口
+ this.$api.report.changeUploader({
+ reportIds:this.checkIds,
+ userId:parts.toString()
+ }).then(res=>{
+ if(res.ok){
+ this.$message.success(res.data)
+ }
+ this.reportList();
+ })
+ },
+ changeName(){
+ if(this.checkList.length==0){
+ this.$message.warning('请至少选择一条报告')
+ return
+ }
+ let already=this.checkList.filter(item =>{
+ if( +item.isAct == 0){
+ return item
+ }
+ })
+ if(already.length>0) {
+ let name=already.map(item=>item.name)
+ this.$message.warning("当前选择的"+name.join(',')+"已经在流程中")
+ return
+ }
+ this.checkList.
+ this.orgTableVal = ''
+ this.orgTableValName = ''
+ this.visibleOrgTable = true
+ },
+ selectAllEvent({checked}) {
+ const records = this.$refs.xTable.getCheckboxRecords()
+ this.checkList = records
+ this.checkIds = records.map(item => {
+ return item.id
+ })
+ },
+ selectChangeEvent({checked}) {
+ const records = this.$refs.xTable.getCheckboxRecords()
+ this.checkList = records
+ this.checkIds = records.map(item => {
+ return item.id
+ })
+ },
setCheckedNodes(node, checked) {
node.checked = checked;
if (node.children && node.children.length > 0) {