Browse Source

考核权限优化,新增申诉内容

dev-xx
马远东 1 year ago
parent
commit
98e6c19560
  1. 33
      src/views/supervise/IndicatorList.vue
  2. 15
      src/views/supervise/classify.vue
  3. 15
      src/views/supervise/management.vue

33
src/views/supervise/IndicatorList.vue

@ -101,15 +101,17 @@
@timeCheck="timesc"
@selectCheck="selectsc"
@selection="selectionChange"
:isselectfun="ProhibitSelection"
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '操作'">
<div class="ElBtnClass">
<!-- -->
<div class="ElBtnClass" >
<el-button text @click="ClassificationIndicatorView(slotProps.scope)"
>查看</el-button
>
<el-button text @click="ClassificationDditing(slotProps.scope)">编辑</el-button>
<el-button text type="primary" @click="CategoryDeletion(slotProps.scope)"
<el-button v-if="slotProps.scope.row.isEdit == '1'" text @click="ClassificationDditing(slotProps.scope)">编辑</el-button>
<el-button v-if="slotProps.scope.row.isEdit == '1'" text type="primary" @click="CategoryDeletion(slotProps.scope)"
>删除</el-button
>
</div>
@ -321,14 +323,24 @@
/>
</el-form-item>
<el-form-item label="异议描述">
<el-form-item label="整改结果回复">
<el-input
v-model="lassificationformedit.objectionRemark"
:rows="4"
type="textarea"
placeholder="请输入异议描述"
placeholder="请输入整改结果回复内容"
/>
</el-form-item>
<el-form-item label="申诉原因">
<el-input
v-model="lassificationformedit.appealReason"
:rows="4"
type="textarea"
placeholder="请输入申诉原因"
/>
</el-form-item>
<div class="el_photo_max">
<el-form-item label="照片" class="el_fotnr">
<el-upload
@ -783,7 +795,13 @@ const selectionChange = list => {
selectionList.value = list;
console.log(selectionList.value, '已经选中的数据');
};
function ProhibitSelection(val,index){
if(val.isEdit=='0'){
return false
}else{
return true
}
}
const searchHide = () => {
search.value = !search.value;
@ -918,6 +936,7 @@ const ClassificationDditing = async val => {
fileList.value = [];
$_findIndicatorsDetail({ id: val.row.id })
.then(res => {
lassificationformedit.value.appealReason = val.row.appealReason; //
console.log(res.data.data.pictures, '图片列表');
url.value = res.data.data.pictures[0].url; //
res.data.data.pictures.forEach(res => {
@ -961,6 +980,7 @@ const ClassificationDditing = async val => {
lassificationformedit.value.objectionRemark = val.row.objectionRemark; //
lassificationformedit.value.textarea = val.row.remark; //
lassificationformedit.value.assessUserName = val.row.assessUserName; //
//
// lassificationformedit.value.IndicatorScore = IndicatorScore.value.find(res=>res.point == val.row.point).id, //
EditID.value = val.row.id; //ID
@ -987,6 +1007,7 @@ const IndicatorEditingFn = () => {
classifyName: Indicatoritems.value.find(
res => res.id == lassificationformedit.value.Indicatoritems
).name, //
appealReason: lassificationformedit.value.appealReason, //
};
console.log(data, '处理好的参数');
Indicatoreditingload.value = true; //

15
src/views/supervise/classify.vue

@ -24,8 +24,8 @@
<el-icon><Plus /></el-icon> </el-button
>
<el-button type="primary" @click="BatchDelete">
<el-icon><Plus /></el-icon></el-button
<el-button type="primary" @click="BatchDelete" icon="Delete">
批量删除</el-button
>
</div>
<!-- 头部右侧按钮模块 -->
@ -49,10 +49,11 @@
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
:isselectfun="ProhibitSelection"
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '操作'">
<div class="ElBtnClass">
<div class="ElBtnClass" v-if="slotProps.scope.row.isEdit == '1'">
<el-button text @click="ClassificationDditing(slotProps.scope)">编辑</el-button>
<el-button text type="primary" @click="CategoryDeletion(slotProps.scope)"
>删除</el-button
@ -328,6 +329,14 @@ const selectionChange = list => {
selectionList.value = list;
console.log(selectionList.value, '已经选中的数据');
};
//
function ProhibitSelection(val,index){
if(val.isEdit=='0'){
return false
}else{
return true
}
}
</script>
<style scoped lang="scss">

15
src/views/supervise/management.vue

@ -49,8 +49,8 @@
<el-icon><Plus /></el-icon> </el-button
>
<el-button type="primary" @click="BatchDelete">
<el-icon><Plus /></el-icon></el-button
<el-button type="primary" @click="BatchDelete" icon="Delete">
批量删除</el-button
>
<el-button type="primary" @click="details.popUpShow.UploadBatch = true" icon="Upload">
@ -78,6 +78,7 @@
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
:isselectfun="ProhibitSelection"
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label == '操作'">
@ -530,11 +531,13 @@ const BatchDelete = () => {
});
return;
}
loadingclassification.value = true; //
let data = {
ids: [],
};
data['ids'] = selectionList.value.map(res => res.id);
data['ids'] = data['ids'].join(',');
console.log(data, '批量删除');
@ -675,6 +678,14 @@ const selectionChange = list => {
selectionList.value = list;
console.log(selectionList.value, '已经选中的数据');
};
function ProhibitSelection(val,index){
if(val.isEdit=='0'){
return false
}else{
return true
}
}
//
const integralAdd = () => {
PointsList.value.push({ integral: 0 });

Loading…
Cancel
Save