| | |
| | | <el-table-column prop="Title" label="机车号"></el-table-column> |
| | | <el-table-column label="视频数量"> |
| | | <template slot-scope="scope"> |
| | | <div>{{ scope.row.LKGList.length }}</div> |
| | | <div>{{ scope.row.VideoList.length }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | >取消分配</span |
| | | > |
| | | <span |
| | | @click="cancelDistribute(scope.row)" |
| | | @click="cancelAssign(scope.row)" |
| | | v-show="taskType == 2" |
| | | >取消指派</span |
| | | > |
| | |
| | | <template slot-scope="scope"> |
| | | <div |
| | | class="video-item" |
| | | v-for="video in scope.row.LKGList" |
| | | v-for="video in scope.row.VideoList" |
| | | :key="video.ID" |
| | | > |
| | | {{ video.VideoName }} |
| | |
| | | addToAssignList, |
| | | getTaskList, |
| | | distributeTask, |
| | | cancelMission, |
| | | cancelMission,cancelAssign, |
| | | } from "@/api/shuohuang"; |
| | | export default { |
| | | data() { |
| | |
| | | actCollapseName: "", |
| | | personList: [], |
| | | memberChecked: [], |
| | | taskTableData: null, |
| | | taskTableData: [], |
| | | taskVideoChecked: [], |
| | | notAssignedOnly: false, |
| | | isIndeterminate: false, |
| | |
| | | checkedCount > 0 && checkedCount < this.personList.length; |
| | | }, |
| | | cancelDistribute(row) { |
| | | let arr = row.LKGList.map(x => x.ID); |
| | | cancelMission({ LkgIDs: arr }).then((res) => { |
| | | let arr = row.VideoList.map(x => x.ID); |
| | | cancelMission({ VideoIDs: arr }).then((res) => { |
| | | if (res.success) { |
| | | this.$notify({ |
| | | type: "success", |
| | | message: res.msg, |
| | | }); |
| | | this.refreshAll(); |
| | | } |
| | | }); |
| | | }, |
| | | cancelAssign(row) { |
| | | let arr = row.VideoList.map(x => x.ID); |
| | | cancelAssign({ VideoIDs: arr }).then((res) => { |
| | | if (res.success) { |
| | | this.$notify({ |
| | | type: "success", |
| | |
| | | this.renderTaskTable(); |
| | | }, |
| | | taskTableSelection(val) { |
| | | let arr = val.map((item) => item.LKGList.map((x) => x.ID)); |
| | | let arr = val.map((item) => item.VideoList.map((x) => x.ID)); |
| | | this.taskVideoChecked = arr; |
| | | }, |
| | | renderTaskTable() { |
| | |
| | | return a.map((item) => item.ID); |
| | | }); |
| | | addToAssignList({ |
| | | UserID: this.memberChecked, |
| | | LkgIDs: arr, |
| | | HandlerUserID: this.memberChecked, |
| | | VideoIDs: arr, |
| | | }).then((res) => { |
| | | if (res.success) { |
| | | this.$notify({ |
| | |
| | | // _this.orgTreeDialogVisible = false; |
| | | }); |
| | | }, |
| | | // deepNodeChildren(node) { |
| | | // if (node.ChildDept && node.ChildDept.length > 0) { |
| | | // return node.ChildDept.map((child) => { |
| | | // let childObj = {}; |
| | | // childObj.id = child.ID; |
| | | // childObj.label = child.Name; |
| | | // childObj.Status = child.Status; |
| | | // if (child.ChildDept) { |
| | | // childObj.children = this.deepNodeChildren(child); |
| | | // } |
| | | // if (child.UserLst) { |
| | | // childObj.children = this.deepNodeChildren(child); |
| | | // } |
| | | // return childObj; |
| | | // }); |
| | | // } else if (node.UserLst && node.UserLst.length > 0) { |
| | | // return node.UserLst.map((child) => { |
| | | // let childObj = {}; |
| | | // childObj.id = child.ID; |
| | | // childObj.label = child.Name; |
| | | // childObj.Status = child.Status; |
| | | // return childObj; |
| | | // }); |
| | | // } |
| | | // }, |
| | | // checkOrgNode(a, b, c) { |
| | | // this.checkedOrg = a; |
| | | // }, |
| | | // getOrganizeTreeData() { |
| | | // let _this = this; |
| | | // getOrganizeTree().then((res) => { |
| | | // _this.organizeData = res.data.map((item) => { |
| | | // let obj = {}; |
| | | // obj.id = item.ID; |
| | | // obj.label = item.Name; |
| | | // obj.Status = item.Status; |
| | | // obj.children = _this.deepNodeChildren(item); |
| | | // return obj; |
| | | // }); |
| | | // }); |
| | | // }, |
| | | distributeTask() { |
| | | let _this = this; |
| | | distributeTask({ |
| | | LkgIDs: this.taskVideoChecked, |
| | | VideoIDs: this.taskVideoChecked, |
| | | distributerID: "" |
| | | }).then((res) => { |
| | | _this.renderTaskTable(); |
| | | }); |
| | | }, |
| | | // selOrg () { |
| | | // this.orgTreeDialogVisible = true; |
| | | // }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | .video-list { |
| | | margin-top: 14px; |
| | | text-align: left; |
| | | height: 420px; |
| | | overflow: auto; |
| | | .el-checkbox-group { |
| | | margin-bottom: 20px; |
| | | .el-checkbox__label { |