Commit ea83385f authored by 祁正's avatar 祁正

feat(通知单内容维护):列表页

parent 553ad48d
...@@ -563,10 +563,8 @@ function confirmClick(formRef) { ...@@ -563,10 +563,8 @@ function confirmClick(formRef) {
if (valid) { if (valid) {
drawerQueryParams.value.certificationResponsiblePerson = drawerQueryParams.value.certificationResponsiblePerson.join(",") drawerQueryParams.value.certificationResponsiblePerson = drawerQueryParams.value.certificationResponsiblePerson.join(",")
console.log(drawerQueryParams.value)
insert(drawerQueryParams.value).then(res=>{ insert(drawerQueryParams.value).then(res=>{
console.log("新增结果",res)
if(res.code === 200){ if(res.code === 200){
ElMessage.success("新增成功") ElMessage.success("新增成功")
cancelClick() cancelClick()
...@@ -611,9 +609,7 @@ const beforeClose = (done) => { ...@@ -611,9 +609,7 @@ const beforeClose = (done) => {
//提示框确认删除操作 //提示框确认删除操作
function handleDelete(){ function handleDelete(){
//删除操作 //删除操作
console.log("删除",delId.value)
deleteNotificationManagementById(delId.value).then(res=>{ deleteNotificationManagementById(delId.value).then(res=>{
console.log(res)
if(res.code === 200){ if(res.code === 200){
ElMessage.success("删除成功") ElMessage.success("删除成功")
undoDialogVisible.value = false undoDialogVisible.value = false
...@@ -626,13 +622,11 @@ function hideDeleteDialog(){ ...@@ -626,13 +622,11 @@ function hideDeleteDialog(){
} }
function addPerson(row){ function addPerson(row){
console.log(row)
tObj.value.id = row.id tObj.value.id = row.id
dialogTitle.value = '维护需求人('+row.notificationNumber+' -'+row.businessUnitName+'-'+row.vehicleModelCode+')'; dialogTitle.value = '维护需求人('+row.notificationNumber+' -'+row.businessUnitName+'-'+row.vehicleModelCode+')';
dialogVisible.value = true dialogVisible.value = true
getPersonnelInfoByIdsInfoByIds(row.certificationResponsiblePerson).then(res=>{ getPersonnelInfoByIdsInfoByIds(row.certificationResponsiblePerson).then(res=>{
console.log(res)
personTableList.value = res.data personTableList.value = res.data
}) })
} }
...@@ -657,11 +651,9 @@ function remove(row){ ...@@ -657,11 +651,9 @@ function remove(row){
return item.userId return item.userId
}).join(",") }).join(",")
updateCertificationManager(tObj.value).then(res=>{ updateCertificationManager(tObj.value).then(res=>{
console.log(res)
if(res.code === 200){ if(res.code === 200){
ElMessage.success("移除成功") ElMessage.success("移除成功")
getPersonnelInfoByIdsInfoByIds(tObj.value.endArrStr).then(res=>{ getPersonnelInfoByIdsInfoByIds(tObj.value.endArrStr).then(res=>{
console.log(res)
personTableList.value = res.data personTableList.value = res.data
}) })
} }
...@@ -704,9 +696,7 @@ function drawerColse(){ ...@@ -704,9 +696,7 @@ function drawerColse(){
//获取列表 //获取列表
function getList(){ function getList(){
console.log("查询参数",queryParams.value)
list(queryParams.value).then(res=>{ list(queryParams.value).then(res=>{
console.log(res)
tableList.value = res.rows tableList.value = res.rows
total.value = res.total total.value = res.total
}) })
...@@ -730,7 +720,6 @@ function cancelClick(){ ...@@ -730,7 +720,6 @@ function cancelClick(){
//提交方法 //提交方法
const handleSelectionSubmit = (selectedItems) => { const handleSelectionSubmit = (selectedItems) => {
const t = toRaw(selectedItems) const t = toRaw(selectedItems)
console.log('已选中的项:', t); // 处理已选择的用户
if(dialogVisible.value){ if(dialogVisible.value){
//添加人员-编辑人员对话框的时候-多选 //添加人员-编辑人员对话框的时候-多选
...@@ -742,11 +731,9 @@ const handleSelectionSubmit = (selectedItems) => { ...@@ -742,11 +731,9 @@ const handleSelectionSubmit = (selectedItems) => {
tObj.value.endArrStr = combinedArray.join(","); tObj.value.endArrStr = combinedArray.join(",");
updateCertificationManager(tObj.value).then(res=>{ updateCertificationManager(tObj.value).then(res=>{
console.log(res)
if(res.code === 200){ if(res.code === 200){
ElMessage.success("添加成功") ElMessage.success("添加成功")
getPersonnelInfoByIdsInfoByIds(tObj.value.endArrStr).then(res=>{ getPersonnelInfoByIdsInfoByIds(tObj.value.endArrStr).then(res=>{
console.log(res)
personTableList.value = res.data personTableList.value = res.data
}) })
} }
...@@ -770,7 +757,6 @@ const handleSelectionSubmit = (selectedItems) => { ...@@ -770,7 +757,6 @@ const handleSelectionSubmit = (selectedItems) => {
function getALLUserDeptList(){ function getALLUserDeptList(){
getALLUserList().then(res=>{ getALLUserList().then(res=>{
userList.value = res.data userList.value = res.data
console.log(res.data)
let list = res.data let list = res.data
// 提取所有用户的昵称和id // 提取所有用户的昵称和id
for(let i in list){ for(let i in list){
...@@ -779,7 +765,6 @@ function getALLUserDeptList(){ ...@@ -779,7 +765,6 @@ function getALLUserDeptList(){
allUserList.value.push(list2[i2]) allUserList.value.push(list2[i2])
} }
} }
console.log("123",allUserList.value)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment