|
|
|
@ -78,7 +78,9 @@
|
|
|
|
|
<!-- 头部左侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__left"> |
|
|
|
|
<el-button type="primary" @click="BatchDelete" icon="Delete"> 批量删除</el-button> |
|
|
|
|
<el-button type="primary" @click="exportList" ><el-icon><Download /></el-icon>导出</el-button> |
|
|
|
|
<el-button type="primary" @click="exportList" |
|
|
|
|
><el-icon><Download /></el-icon>导出</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__right"> |
|
|
|
@ -106,12 +108,16 @@
|
|
|
|
|
<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 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 v-if="slotProps.scope.row.isEdit != '0'" text @click="ClassificationDditing(slotProps.scope)">编辑</el-button> |
|
|
|
|
<el-button |
|
|
|
|
v-if="slotProps.scope.row.isEdit != '0'" |
|
|
|
|
text |
|
|
|
|
type="primary" |
|
|
|
|
@click="CategoryDeletion(slotProps.scope)" |
|
|
|
|
>删除</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
@ -167,7 +173,7 @@
|
|
|
|
|
<el-input v-model="lassificationform.point" placeholder="暂无" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="描述"> |
|
|
|
|
<el-form-item label="整改结果"> |
|
|
|
|
<el-input v-model="lassificationform.objectionRemark" placeholder="暂无" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
@ -196,6 +202,14 @@
|
|
|
|
|
" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="申诉原因"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="lassificationform.appealReason" |
|
|
|
|
placeholder=" |
|
|
|
|
暂无 |
|
|
|
|
" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div class="el_photo_max"> |
|
|
|
|
<el-form-item label="照片" class="el_fotnr"> |
|
|
|
|
<el-upload |
|
|
|
@ -264,6 +278,7 @@
|
|
|
|
|
placeholder="请选择指标分类" |
|
|
|
|
style="width: 100%" |
|
|
|
|
@change="ClassificationChange" |
|
|
|
|
:disabled="EditEnable" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in classificationoptions" |
|
|
|
@ -280,6 +295,7 @@
|
|
|
|
|
placeholder="请选择指标项目" |
|
|
|
|
style="width: 100%" |
|
|
|
|
@change="IndicatoritemsChange" |
|
|
|
|
:disabled="EditEnable" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in Indicatoritems" |
|
|
|
@ -296,6 +312,7 @@
|
|
|
|
|
class="m-2" |
|
|
|
|
placeholder="请选择指标分数" |
|
|
|
|
style="width: 100%" |
|
|
|
|
:disabled="EditEnable" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in IndicatorScore" |
|
|
|
@ -320,6 +337,7 @@
|
|
|
|
|
:rows="4" |
|
|
|
|
type="textarea" |
|
|
|
|
placeholder="请输入分数备注" |
|
|
|
|
:disabled="EditEnable" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
@ -420,6 +438,7 @@ const pageSize = ref(50);
|
|
|
|
|
const lassificationform = ref({}); //分类表单 |
|
|
|
|
const lassificationformedit = ref({}); //编辑分类表单 |
|
|
|
|
const title = ref(true); //标题 |
|
|
|
|
const EditEnable = ref(true);//是否可以编辑 |
|
|
|
|
const EditID = ref(true); //编辑需要的ID |
|
|
|
|
const currentPage = ref(1); |
|
|
|
|
const newlyAdded = ref(false); //新增弹窗 |
|
|
|
@ -595,7 +614,6 @@ const Photoviewing = val => {
|
|
|
|
|
dialogImageUrl.value = val.url; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取指标分类 |
|
|
|
|
const Obtainclassification = () => { |
|
|
|
|
$_selectParentCalssifyList().then(res => { |
|
|
|
@ -692,23 +710,23 @@ const BatchDelete = () => {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 导出 |
|
|
|
|
const exportList=()=>{ |
|
|
|
|
const exportList = () => { |
|
|
|
|
ElMessageBox.confirm('是否导出数据?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
console.log('导出数据'); |
|
|
|
|
let data={ |
|
|
|
|
...searchFrom.value |
|
|
|
|
} |
|
|
|
|
$_exportIndicatorsList(data).then(res => { |
|
|
|
|
console.log('导出数据'); |
|
|
|
|
let data = { |
|
|
|
|
...searchFrom.value, |
|
|
|
|
}; |
|
|
|
|
$_exportIndicatorsList(data).then(res => { |
|
|
|
|
downloadXls(res.data, `导出数据.xlsx`); |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 分类删除 |
|
|
|
|
const CategoryDeletion = val => { |
|
|
|
|
ElMessageBox.confirm(`是否删除${val.row.classifyName}分类?`, 'Warning', { |
|
|
|
@ -795,12 +813,12 @@ const selectionChange = list => {
|
|
|
|
|
selectionList.value = list; |
|
|
|
|
console.log(selectionList.value, '已经选中的数据'); |
|
|
|
|
}; |
|
|
|
|
function ProhibitSelection(val,index){ |
|
|
|
|
if(val.isEdit=='0'){ |
|
|
|
|
return false |
|
|
|
|
}else{ |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
function ProhibitSelection(val, index) { |
|
|
|
|
if (val.isEdit == '0') { |
|
|
|
|
return false; |
|
|
|
|
} else { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
const searchHide = () => { |
|
|
|
|
search.value = !search.value; |
|
|
|
@ -932,6 +950,12 @@ const ClassificationIndicatorView = val => {
|
|
|
|
|
|
|
|
|
|
// 编辑弹窗展开 |
|
|
|
|
const ClassificationDditing = async val => { |
|
|
|
|
console.log(val, '编辑弹窗展开'); |
|
|
|
|
if(val.row.isEdit ==1){ |
|
|
|
|
EditEnable.value=false; |
|
|
|
|
}else if(val.row.isEdit == 2){ |
|
|
|
|
EditEnable.value=true; |
|
|
|
|
} |
|
|
|
|
srcList.value = []; |
|
|
|
|
fileList.value = []; |
|
|
|
|
$_findIndicatorsDetail({ id: val.row.id }) |
|
|
|
@ -1015,6 +1039,10 @@ const IndicatorEditingFn = () => {
|
|
|
|
|
.then(res => { |
|
|
|
|
console.log(res, '编辑成功'); |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
IndicatorEditing.value = false; //编辑弹窗关闭 |
|
|
|
|
onLoad(); |
|
|
|
|
} |
|
|
|
@ -1097,7 +1125,7 @@ const timeChange = val => {
|
|
|
|
|
margin-right: 10px; |
|
|
|
|
} |
|
|
|
|
.el-btn { |
|
|
|
|
width: auto; |
|
|
|
|
width: auto; |
|
|
|
|
margin-right: 0; |
|
|
|
|
margin-left: auto; |
|
|
|
|
} |
|
|
|
|