13 changed files with 2276 additions and 933 deletions
@ -0,0 +1,466 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<el-table v-loading="loading" :data="divisionRateList"> |
|||
<el-table-column label="序号" type="index" width="100" align="center" /> |
|||
|
|||
<!-- <el-table-column label="单位工程id" align="center" prop="unitId" /> --> |
|||
<el-table-column |
|||
label="单位工程名称" |
|||
align="center" |
|||
prop="unitName" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="分部工程名称" |
|||
align="center" |
|||
prop="divisionalWork" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="评定时间" |
|||
align="center" |
|||
prop="evaluateTime" |
|||
min-width="120" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.evaluateTime, "{y}-{m}-{d}") }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="质量等级" |
|||
align="center" |
|||
prop="qualityLevel" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="单元工程优良率" |
|||
align="center" |
|||
prop="cellProjectRate" |
|||
min-width="120" |
|||
/> |
|||
<!-- <el-table-column |
|||
label="关键部位和重要隐藏单元优良率" |
|||
align="center" |
|||
prop="majorCellRate" |
|||
/> |
|||
<el-table-column |
|||
label="分部工程质量评定表" |
|||
align="center" |
|||
prop="divisionalAttachment" |
|||
/> --> |
|||
|
|||
<el-table-column |
|||
label="操作" |
|||
align="center" |
|||
class-name="small-padding fixed-width" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-edit" |
|||
@click="handleUpdate(scope.row)" |
|||
v-hasPermi="['build:divisionRate:edit']" |
|||
>修改</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['build:divisionRate:remove']" |
|||
>删除</el-button |
|||
> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<pagination |
|||
v-show="total > 0" |
|||
:total="total" |
|||
:page.sync="queryParams.pageNum" |
|||
:limit.sync="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
|
|||
<!-- 添加或修改分部工程质量评定对话框 --> |
|||
<el-dialog |
|||
:title="title" |
|||
:visible.sync="open" |
|||
width="1200px" |
|||
append-to-body |
|||
@close="closeDialog" |
|||
:close-on-click-modal="false" |
|||
> |
|||
<el-form ref="form" :model="form" :rules="rules" label-width="150px"> |
|||
<!-- <el-form-item label="单位工程id" prop="unitId"> |
|||
<el-input v-model="form.unitId" placeholder="请输入单位工程id" /> |
|||
</el-form-item> --> |
|||
<el-form-item label="单位工程名称" prop="unitName"> |
|||
<!-- <el-input v-model="form.unitName" placeholder="请输入单位工程名称" /> --> |
|||
<el-select |
|||
v-model="form.unitName" |
|||
placeholder="请选择单位工程名称" |
|||
filterable |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
> |
|||
<el-option |
|||
v-for="dict in unitProjectOptions" |
|||
:key="dict.id" |
|||
:label="dict.unitProjectName" |
|||
:value="dict.unitProjectName" |
|||
@click.native="chooseUnitProjectName(dict)" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="分部工程名称" prop="divisionalWork"> |
|||
<!-- <el-input |
|||
v-model="form.divisionalWork" |
|||
placeholder="请输入分部工程名称" |
|||
:disabled="divProjectOptions.length === 0" |
|||
/> --> |
|||
<el-select |
|||
v-model="form.divisionalWork" |
|||
placeholder="请选择单位工程名称" |
|||
filterable |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
:disabled="divProjectOptionsStatus" |
|||
> |
|||
<el-option |
|||
v-for="dict in divProjectOptions" |
|||
:key="dict.id" |
|||
:label="dict.divisionalWork" |
|||
:value="dict.divisionalWork" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="评定时间" prop="evaluateTime"> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
v-model="form.evaluateTime" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择评定时间" |
|||
> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="质量等级" prop="qualityLevel"> |
|||
<!-- <el-input v-model="form.qualityLevel" placeholder="请输入质量等级" /> --> |
|||
<el-select |
|||
v-model="form.qualityLevel" |
|||
placeholder="请选择质量等级" |
|||
filterable |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
> |
|||
<el-option |
|||
v-for="dict in qualityLevelOptions" |
|||
:key="dict.dictLabel + dict.id" |
|||
:label="dict.dictLabel" |
|||
:value="dict.dictValue" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="单元工程优良率" prop="cellProjectRate"> |
|||
<el-input |
|||
v-model="form.cellProjectRate" |
|||
placeholder="请输入单元工程优良率" |
|||
> |
|||
<template slot="append">%</template> |
|||
</el-input> |
|||
</el-form-item> |
|||
<el-form-item label="关键部位和重要隐藏单元优良率" prop="majorCellRate"> |
|||
<el-input |
|||
v-model="form.majorCellRate" |
|||
placeholder="请输入关键部位和重要隐藏单元优良率" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="分部工程质量评定表" prop="divisionalAttachment"> |
|||
<el-input |
|||
v-model="form.divisionalAttachment" |
|||
placeholder="请输入分部工程质量评定表" |
|||
/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button type="primary" @click="submitForm">确 定</el-button> |
|||
<el-button @click="cancel">取 消</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
listDivisionRate, |
|||
getDivisionRate, |
|||
delDivisionRate, |
|||
addDivisionRate, |
|||
updateDivisionRate, |
|||
exportDivisionRate, |
|||
} from "@/api/build/divisionRate"; |
|||
import { listUnitProject } from "@/api/build/unitProject"; |
|||
import { formUnitGetSubProject } from "@/api/build/subProject"; |
|||
|
|||
export default { |
|||
name: "DivisionRate", |
|||
props: ["proNo", "proCode"], |
|||
data() { |
|||
return { |
|||
// 遮罩层 |
|||
loading: true, |
|||
// 选中数组 |
|||
ids: [], |
|||
// 非单个禁用 |
|||
single: true, |
|||
// 非多个禁用 |
|||
multiple: true, |
|||
// 显示搜索条件 |
|||
showSearch: true, |
|||
// 总条数 |
|||
total: 0, |
|||
// 分部工程质量评定表格数据 |
|||
divisionRateList: [], |
|||
// 弹出层标题 |
|||
title: "", |
|||
// 是否显示弹出层 |
|||
open: false, |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 3, |
|||
ids: null, |
|||
data: { |
|||
unitId: null, |
|||
unitName: null, |
|||
divisionalWork: null, |
|||
evaluateTime: null, |
|||
qualityLevel: null, |
|||
cellProjectRate: null, |
|||
majorCellRate: null, |
|||
divisionalAttachment: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
}, |
|||
}, |
|||
// 表单参数 |
|||
form: {}, |
|||
// 表单校验 |
|||
rules: {}, |
|||
unitProjectOptions: [], |
|||
divProjectOptions: [], |
|||
divProjectOptionsStatus: true, |
|||
qualityLevelOptions: [], |
|||
}; |
|||
}, |
|||
created() { |
|||
listUnitProject({ |
|||
data: { |
|||
proNo: this.proNo, |
|||
proCode: this.proCode, |
|||
}, |
|||
}).then((response) => { |
|||
this.unitProjectOptions = response.records; |
|||
}); |
|||
|
|||
this.getList(); |
|||
|
|||
this.getDicts("quality_level").then((response) => { |
|||
this.qualityLevelOptions = response.data; |
|||
}); |
|||
}, |
|||
methods: { |
|||
closeDialog() { |
|||
this.divProjectOptionsStatus = true; |
|||
}, |
|||
chooseUnitProjectName(data) { |
|||
this.form.unitId = data.id; |
|||
formUnitGetSubProject(data.id).then((response) => { |
|||
console.log(response); |
|||
this.divProjectOptions = response.data; |
|||
this.divProjectOptionsStatus = false; |
|||
}); |
|||
}, |
|||
/** 查询分部工程质量评定列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listDivisionRate(this.queryParams).then((response) => { |
|||
this.divisionRateList = response.records; |
|||
this.total = response.total; |
|||
this.loading = false; |
|||
}); |
|||
}, |
|||
// 取消按钮 |
|||
cancel() { |
|||
this.open = false; |
|||
this.reset(); |
|||
}, |
|||
// 表单重置 |
|||
reset() { |
|||
this.form = { |
|||
id: null, |
|||
unitId: null, |
|||
unitName: null, |
|||
divisionalWork: null, |
|||
evaluateTime: null, |
|||
qualityLevel: null, |
|||
cellProjectRate: null, |
|||
majorCellRate: null, |
|||
divisionalAttachment: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
createTime: null, |
|||
updateTime: null, |
|||
remark: null, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data: { |
|||
id: null, |
|||
unitId: null, |
|||
unitName: null, |
|||
divisionalWork: null, |
|||
evaluateTime: null, |
|||
qualityLevel: null, |
|||
cellProjectRate: null, |
|||
majorCellRate: null, |
|||
divisionalAttachment: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
createTime: null, |
|||
updateTime: null, |
|||
remark: null, |
|||
}, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
/** 搜索按钮操作 */ |
|||
handleQuery() { |
|||
this.queryParams.pageNum = 1; |
|||
this.getList(); |
|||
}, |
|||
/** 重置按钮操作 */ |
|||
resetQuery() { |
|||
this.resetQueryForm(); |
|||
this.handleQuery(); |
|||
}, |
|||
// 多选框选中数据 |
|||
handleSelectionChange(selection) { |
|||
this.ids = selection.map((item) => item.id); |
|||
this.single = selection.length !== 1; |
|||
this.multiple = !selection.length; |
|||
}, |
|||
/** 新增按钮操作 */ |
|||
handleAdd() { |
|||
this.reset(); |
|||
this.open = true; |
|||
this.title = "添加分部工程质量评定"; |
|||
}, |
|||
/** 修改按钮操作 */ |
|||
handleUpdate(row) { |
|||
this.reset(); |
|||
const id = row.id || this.ids; |
|||
getDivisionRate(id).then((response) => { |
|||
this.form = response.data; |
|||
// console.log(response.data); |
|||
if (response.data.unitId) this.divProjectOptionsStatus = false; |
|||
formUnitGetSubProject(response.data.unitId).then((res) => { |
|||
// console.log(res.data.id, res.data); |
|||
this.divProjectOptions = res.data; |
|||
}); |
|||
this.open = true; |
|||
this.title = "修改分部工程质量评定"; |
|||
}); |
|||
}, |
|||
/** 提交按钮 */ |
|||
submitForm() { |
|||
this.$refs["form"].validate((valid) => { |
|||
if (valid) { |
|||
if (this.form.id != null) { |
|||
updateDivisionRate(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} else { |
|||
addDivisionRate(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("新增成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if (ids) { |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return delDivisionRate(ids); |
|||
}) |
|||
.then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}) |
|||
.catch(function () {}); |
|||
} else { |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
}, |
|||
/** 导出按钮操作 */ |
|||
handleExport() { |
|||
const queryParams = this.queryParams; |
|||
let message = "是否确认导出所有的数据项?"; |
|||
if (this.ids) { |
|||
message = "是否确认导出选中的数据项?"; |
|||
queryParams.ids = this.ids; |
|||
} |
|||
this.$confirm(message, "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return exportDivisionRate(queryParams); |
|||
}) |
|||
.then((response) => { |
|||
this.downloadFile(response, true, response.msg); |
|||
// this.download(response.msg); |
|||
}) |
|||
.catch(function () {}); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@import "@/assets/css/dialog.scss"; |
|||
</style> |
@ -0,0 +1,380 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<el-table v-loading="loading" :data="unitRateList"> |
|||
<!-- <el-table-column type="selection" width="55" align="center" /> --> |
|||
<el-table-column label="序号" type="index" width="100" align="center" /> |
|||
|
|||
<el-table-column |
|||
label="单位工程名称" |
|||
align="center" |
|||
prop="unitName" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="评定时间" |
|||
align="center" |
|||
prop="evaluateTime" |
|||
min-width="120" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.evaluateTime, "{y}-{m}-{d}") }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="分部工程优良率" |
|||
align="center" |
|||
prop="divisionalRate" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="主要分部工程优良率" |
|||
align="center" |
|||
prop="majorDivisionalRate" |
|||
min-width="150" |
|||
/> |
|||
<el-table-column |
|||
label="外观质量优良率" |
|||
align="center" |
|||
prop="appearanceRate" |
|||
min-width="120" |
|||
/> |
|||
|
|||
<el-table-column |
|||
label="操作" |
|||
align="center" |
|||
class-name="small-padding fixed-width" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-edit" |
|||
@click="handleUpdate(scope.row)" |
|||
v-hasPermi="['build:unitRate:edit']" |
|||
>修改</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['build:unitRate:remove']" |
|||
>删除</el-button |
|||
> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<pagination |
|||
v-show="total > 0" |
|||
:total="total" |
|||
:page.sync="queryParams.pageNum" |
|||
:limit.sync="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
|
|||
<!-- 添加或修改单位工程质量评定对话框 --> |
|||
<el-dialog |
|||
:title="title" |
|||
:visible.sync="open" |
|||
width="1200px" |
|||
append-to-body |
|||
:close-on-click-modal="false" |
|||
> |
|||
<el-form ref="form" :model="form" :rules="rules" label-width="150px"> |
|||
<el-form-item label="单位工程名称" prop="unitName"> |
|||
<!-- <el-input v-model="form.unitName" placeholder="请输入单位工程名称" /> --> |
|||
<el-select |
|||
v-model="form.unitName" |
|||
placeholder="请选择单位工程名称" |
|||
filterable |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
> |
|||
<el-option |
|||
v-for="dict in unitProjectOptions" |
|||
:key="dict.id" |
|||
:label="dict.unitProjectName" |
|||
:value="dict.unitProjectName" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="评定时间" prop="evaluateTime"> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
v-model="form.evaluateTime" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择评定时间" |
|||
> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="分部工程优良率" prop="divisionalRate"> |
|||
<el-input |
|||
v-model="form.divisionalRate" |
|||
placeholder="请输入分部工程优良率" |
|||
> |
|||
<template slot="append">%</template> |
|||
</el-input> |
|||
</el-form-item> |
|||
<el-form-item label="主要分部工程优良率" prop="majorDivisionalRate"> |
|||
<el-input |
|||
v-model="form.majorDivisionalRate" |
|||
placeholder="请输入主要分部工程优良率" |
|||
> |
|||
<template slot="append">%</template> |
|||
</el-input> |
|||
</el-form-item> |
|||
<el-form-item label="外观优良率" prop="appearanceRate"> |
|||
<el-input |
|||
v-model="form.appearanceRate" |
|||
placeholder="请输入外观优良率" |
|||
> |
|||
<template slot="append">%</template> |
|||
</el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button type="primary" @click="submitForm">确 定</el-button> |
|||
<el-button @click="cancel">取 消</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
listUnitRate, |
|||
getUnitRate, |
|||
delUnitRate, |
|||
addUnitRate, |
|||
updateUnitRate, |
|||
exportUnitRate, |
|||
} from "@/api/build/unitRate"; |
|||
import { listUnitProject } from "@/api/build/unitProject"; |
|||
|
|||
export default { |
|||
name: "UnitRate", |
|||
props: ["proNo", "proCode"], |
|||
data() { |
|||
return { |
|||
// 遮罩层 |
|||
loading: true, |
|||
// 选中数组 |
|||
ids: [], |
|||
// 非单个禁用 |
|||
single: true, |
|||
// 非多个禁用 |
|||
multiple: true, |
|||
// 显示搜索条件 |
|||
showSearch: true, |
|||
// 总条数 |
|||
total: 0, |
|||
// 单位工程质量评定表格数据 |
|||
unitRateList: [], |
|||
// 弹出层标题 |
|||
title: "", |
|||
// 是否显示弹出层 |
|||
open: false, |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 3, |
|||
ids: null, |
|||
data: { |
|||
unitName: null, |
|||
evaluateTime: null, |
|||
divisionalRate: null, |
|||
majorDivisionalRate: null, |
|||
appearanceRate: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
}, |
|||
}, |
|||
// 表单参数 |
|||
form: {}, |
|||
// 表单校验 |
|||
rules: {}, |
|||
unitProjectOptions: [], |
|||
}; |
|||
}, |
|||
created() { |
|||
listUnitProject({ |
|||
data: { |
|||
proNo: this.proNo, |
|||
proCode: this.proCode, |
|||
}, |
|||
}).then((response) => { |
|||
this.unitProjectOptions = response.records; |
|||
}); |
|||
|
|||
this.getList(); |
|||
}, |
|||
methods: { |
|||
/** 查询单位工程质量评定列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listUnitRate(this.queryParams).then((response) => { |
|||
this.unitRateList = response.records; |
|||
this.total = response.total; |
|||
this.loading = false; |
|||
}); |
|||
}, |
|||
// 取消按钮 |
|||
cancel() { |
|||
this.open = false; |
|||
this.reset(); |
|||
}, |
|||
// 表单重置 |
|||
reset() { |
|||
this.form = { |
|||
id: null, |
|||
unitName: null, |
|||
evaluateTime: null, |
|||
divisionalRate: null, |
|||
majorDivisionalRate: null, |
|||
appearanceRate: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
createTime: null, |
|||
updateTime: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
remark: null, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data: { |
|||
id: null, |
|||
unitName: null, |
|||
evaluateTime: null, |
|||
divisionalRate: null, |
|||
majorDivisionalRate: null, |
|||
appearanceRate: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
createTime: null, |
|||
updateTime: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
remark: null, |
|||
}, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
/** 搜索按钮操作 */ |
|||
handleQuery() { |
|||
this.queryParams.pageNum = 1; |
|||
this.getList(); |
|||
}, |
|||
/** 重置按钮操作 */ |
|||
resetQuery() { |
|||
this.resetQueryForm(); |
|||
this.handleQuery(); |
|||
}, |
|||
// 多选框选中数据 |
|||
handleSelectionChange(selection) { |
|||
this.ids = selection.map((item) => item.id); |
|||
this.single = selection.length !== 1; |
|||
this.multiple = !selection.length; |
|||
}, |
|||
/** 新增按钮操作 */ |
|||
handleAdd() { |
|||
this.reset(); |
|||
this.open = true; |
|||
this.title = "添加单位工程质量评定"; |
|||
}, |
|||
/** 修改按钮操作 */ |
|||
handleUpdate(row) { |
|||
this.reset(); |
|||
const id = row.id || this.ids; |
|||
getUnitRate(id).then((response) => { |
|||
this.form = response.data; |
|||
this.open = true; |
|||
this.title = "修改单位工程质量评定"; |
|||
}); |
|||
}, |
|||
/** 提交按钮 */ |
|||
submitForm() { |
|||
this.$refs["form"].validate((valid) => { |
|||
if (valid) { |
|||
if (this.form.id != null) { |
|||
updateUnitRate(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} else { |
|||
addUnitRate(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("新增成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if (ids) { |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return delUnitRate(ids); |
|||
}) |
|||
.then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}) |
|||
.catch(function () {}); |
|||
} else { |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
}, |
|||
/** 导出按钮操作 */ |
|||
handleExport() { |
|||
const queryParams = this.queryParams; |
|||
let message = "是否确认导出所有的数据项?"; |
|||
if (this.ids) { |
|||
message = "是否确认导出选中的数据项?"; |
|||
queryParams.ids = this.ids; |
|||
} |
|||
this.$confirm(message, "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return exportUnitRate(queryParams); |
|||
}) |
|||
.then((response) => { |
|||
this.downloadFile(response, true, response.msg); |
|||
// this.download(response.msg); |
|||
}) |
|||
.catch(function () {}); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@import "@/assets/css/dialog.scss"; |
|||
</style> |
@ -0,0 +1,28 @@ |
|||
<template> |
|||
<div>检测报告统计</div> |
|||
</template> |
|||
<script> |
|||
import { |
|||
listAttachmentRate, |
|||
listAttachment, |
|||
getAttachment, |
|||
delAttachment, |
|||
addAttachment, |
|||
updateAttachment, |
|||
exportAttachment, |
|||
} from "@/api/build/attachment"; |
|||
|
|||
export default { |
|||
props: ["supervisionId"], |
|||
created() { |
|||
listAttachmentRate({ |
|||
data: { |
|||
supervisionId: this.supervisionId, |
|||
}, |
|||
}).then((res) => { |
|||
console.log(5484864684684, res); |
|||
}); |
|||
}, |
|||
methods: {}, |
|||
}; |
|||
</script> |
@ -1,515 +1,181 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<el-form |
|||
:model="queryParams" |
|||
ref="queryForm" |
|||
:inline="true" |
|||
v-show="showSearch" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="工程监测id" prop="supervisionId"> |
|||
<el-input |
|||
v-model="queryParams.data.supervisionId" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="reportAttachment"> |
|||
<el-input |
|||
v-model="queryParams.data.reportAttachment" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="isOk"> |
|||
<el-input |
|||
v-model="queryParams.data.isOk" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="reportAttachmentName"> |
|||
<el-input |
|||
v-model="queryParams.data.reportAttachmentName" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="uploadTime"> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 200px" |
|||
v-model="queryParams.uploadTime" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择工程监测id" |
|||
> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="remarks"> |
|||
<el-input |
|||
v-model="queryParams.data.remarks" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="createUid"> |
|||
<el-input |
|||
v-model="queryParams.data.createUid" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="updateUid"> |
|||
<el-input |
|||
v-model="queryParams.data.updateUid" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="owerDept"> |
|||
<el-input |
|||
v-model="queryParams.data.owerDept" |
|||
placeholder="请输入工程监测id" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="reportType"> |
|||
<el-select |
|||
v-model="queryParams.data.reportType" |
|||
placeholder="请选择工程监测id" |
|||
clearable |
|||
size="small" |
|||
> |
|||
<el-option label="请选择字典生成" value="" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button |
|||
type="cyan" |
|||
icon="el-icon-search" |
|||
size="mini" |
|||
@click="handleQuery" |
|||
>搜索</el-button |
|||
> |
|||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
|||
>重置</el-button |
|||
> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div> |
|||
<!-- ===============分部工程质量评定==================== --> |
|||
<div class="listTitle"> |
|||
<span>分部工程质量评定</span> |
|||
<span class="addBtn" @click="openDivDiglog"> |
|||
<i class="el-icon-plus"></i> |
|||
新增 |
|||
</span> |
|||
</div> |
|||
<divAssess ref="divAssess" :proNo="proNo" :proCode="proCode" /> |
|||
<!-- ===============单位工程质量评定==================== --> |
|||
<div class="listTitle"> |
|||
<span>单位工程质量评定</span> |
|||
<span class="addBtn" @click="openUnitDiglog"> |
|||
<i class="el-icon-plus"></i> |
|||
新增 |
|||
</span> |
|||
</div> |
|||
<unitAssess ref="unitAssess" :proNo="proNo" :proCode="proCode" /> |
|||
|
|||
<el-row :gutter="10" class="mb8"> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="primary" |
|||
icon="el-icon-plus" |
|||
size="mini" |
|||
@click="handleAdd" |
|||
v-hasPermi="['build:attachment:add']" |
|||
>新增</el-button |
|||
> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="success" |
|||
icon="el-icon-edit" |
|||
size="mini" |
|||
:disabled="single" |
|||
@click="handleUpdate" |
|||
v-hasPermi="['build:attachment:edit']" |
|||
>修改</el-button |
|||
> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="danger" |
|||
icon="el-icon-delete" |
|||
size="mini" |
|||
:disabled="multiple" |
|||
@click="handleDelete" |
|||
v-hasPermi="['build:attachment:remove']" |
|||
>删除</el-button |
|||
> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="warning" |
|||
icon="el-icon-download" |
|||
size="mini" |
|||
@click="handleExport" |
|||
v-hasPermi="['build:attachment:export']" |
|||
>导出</el-button |
|||
> |
|||
</el-col> |
|||
<right-toolbar |
|||
:showSearch.sync="showSearch" |
|||
@queryTable="getList" |
|||
></right-toolbar> |
|||
</el-row> |
|||
|
|||
<el-table |
|||
v-loading="loading" |
|||
:data="attachmentList" |
|||
@selection-change="handleSelectionChange" |
|||
> |
|||
<el-table-column type="selection" width="55" align="center" /> |
|||
<el-table-column label="序号" type="index" width="50" align="center" /> |
|||
|
|||
<el-table-column label="工程监测id" align="center" prop="supervisionId" /> |
|||
<el-table-column |
|||
label="工程监测id" |
|||
align="center" |
|||
prop="reportAttachment" |
|||
/> |
|||
<el-table-column label="工程监测id" align="center" prop="isOk" /> |
|||
<el-table-column |
|||
label="工程监测id" |
|||
align="center" |
|||
prop="reportAttachmentName" |
|||
/> |
|||
<el-table-column |
|||
label="工程监测id" |
|||
align="center" |
|||
prop="uploadTime" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.uploadTime, "{y}-{m}-{d}") }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="工程监测id" align="center" prop="remarks" /> |
|||
<el-table-column label="工程监测id" align="center" prop="createUid" /> |
|||
<el-table-column label="工程监测id" align="center" prop="updateUid" /> |
|||
<el-table-column label="工程监测id" align="center" prop="owerDept" /> |
|||
<el-table-column label="工程监测id" align="center" prop="reportType" /> |
|||
<el-table-column |
|||
label="操作" |
|||
align="center" |
|||
class-name="small-padding fixed-width" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-edit" |
|||
@click="handleUpdate(scope.row)" |
|||
v-hasPermi="['build:attachment:edit']" |
|||
>修改</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['build:attachment:remove']" |
|||
>删除</el-button |
|||
> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<pagination |
|||
v-show="total > 0" |
|||
:total="total" |
|||
:page.sync="queryParams.pageNum" |
|||
:limit.sync="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
|
|||
<!-- 添加或修改工程质量报告对话框 --> |
|||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
|||
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
|||
<el-form-item label="工程监测id" prop="supervisionId"> |
|||
<el-input |
|||
v-model="form.supervisionId" |
|||
placeholder="请输入工程监测id" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="reportAttachment"> |
|||
<el-input |
|||
v-model="form.reportAttachment" |
|||
placeholder="请输入工程监测id" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="isOk"> |
|||
<el-input v-model="form.isOk" placeholder="请输入工程监测id" /> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="reportAttachmentName"> |
|||
<el-input |
|||
v-model="form.reportAttachmentName" |
|||
placeholder="请输入工程监测id" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="uploadTime"> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 200px" |
|||
v-model="form.uploadTime" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择工程监测id" |
|||
> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="remarks"> |
|||
<el-input v-model="form.remarks" placeholder="请输入工程监测id" /> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="createUid"> |
|||
<el-input v-model="form.createUid" placeholder="请输入工程监测id" /> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="updateUid"> |
|||
<el-input v-model="form.updateUid" placeholder="请输入工程监测id" /> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="owerDept"> |
|||
<el-input v-model="form.owerDept" placeholder="请输入工程监测id" /> |
|||
</el-form-item> |
|||
<el-form-item label="工程监测id" prop="reportType"> |
|||
<el-select v-model="form.reportType" placeholder="请选择工程监测id"> |
|||
<el-option label="请选择字典生成" value="" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button type="primary" @click="submitForm">确 定</el-button> |
|||
<el-button @click="cancel">取 消</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
<div class="listTitle"> |
|||
<span>项目评定</span> |
|||
</div> |
|||
<div class="footerForm"> |
|||
<el-row :gutter="15"> |
|||
<el-form ref="form" :model="form"> |
|||
<el-col :span="8"> |
|||
<el-form-item |
|||
label="项目是否完成评定" |
|||
label-width="124px" |
|||
prop="isEvaluate" |
|||
> |
|||
<el-radio v-model="form.isEvaluate" label="1">是</el-radio> |
|||
<el-radio v-model="form.isEvaluate" label="0">否</el-radio> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item |
|||
label="评定时间" |
|||
prop="evaluateTime" |
|||
label-width="84px" |
|||
> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
v-model="form.evaluateTime" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择评定时间" |
|||
> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item |
|||
label="质量等级" |
|||
label-width="84px" |
|||
prop="qualityLevel" |
|||
> |
|||
<el-select |
|||
v-model="form.qualityLevel" |
|||
placeholder="请选择质量等级" |
|||
filterable |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
> |
|||
<el-option |
|||
v-for="dict in qualityLevelOptions" |
|||
:key="dict.dictLabel + dict.id" |
|||
:label="dict.dictLabel" |
|||
:value="dict.dictValue" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="24" style="text-align: right; margin-top: 10px"> |
|||
<el-button type="primary" @click="submitForm">保存</el-button> |
|||
</el-col> |
|||
</el-form> |
|||
</el-row> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import divAssess from "./components/divAssess.vue"; |
|||
import unitAssess from "./components/unitAssess.vue"; |
|||
import { |
|||
listAttachment, |
|||
getAttachment, |
|||
delAttachment, |
|||
addAttachment, |
|||
updateAttachment, |
|||
exportAttachment, |
|||
} from "@/api/build/attachment"; |
|||
|
|||
listInfo, |
|||
getInfo, |
|||
delInfo, |
|||
addInfo, |
|||
updateInfo, |
|||
exportInfo, |
|||
} from "@/api/build/projectInfo"; |
|||
export default { |
|||
name: "Attachment", |
|||
props: ["proNo", "proCode"], |
|||
components: { |
|||
divAssess, |
|||
unitAssess, |
|||
}, |
|||
data() { |
|||
return { |
|||
// 遮罩层 |
|||
loading: true, |
|||
// 选中数组 |
|||
ids: [], |
|||
// 非单个禁用 |
|||
single: true, |
|||
// 非多个禁用 |
|||
multiple: true, |
|||
// 显示搜索条件 |
|||
showSearch: true, |
|||
// 总条数 |
|||
total: 0, |
|||
// 工程质量报告表格数据 |
|||
attachmentList: [], |
|||
// 弹出层标题 |
|||
title: "", |
|||
// 是否显示弹出层 |
|||
open: false, |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
ids: null, |
|||
data: { |
|||
supervisionId: null, |
|||
reportAttachment: null, |
|||
isOk: null, |
|||
reportAttachmentName: null, |
|||
uploadTime: null, |
|||
remarks: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
owerDept: null, |
|||
reportType: null, |
|||
}, |
|||
}, |
|||
// 表单参数 |
|||
form: {}, |
|||
// 表单校验 |
|||
rules: {}, |
|||
qualityLevelOptions: [], |
|||
}; |
|||
}, |
|||
created() { |
|||
this.getList(); |
|||
this.getDicts("quality_level").then((response) => { |
|||
this.qualityLevelOptions = response.data; |
|||
}); |
|||
}, |
|||
methods: { |
|||
/** 查询工程质量报告列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listAttachment(this.queryParams).then((response) => { |
|||
this.attachmentList = response.records; |
|||
this.total = response.total; |
|||
this.loading = false; |
|||
getInfo(this.$route.query.baseDataId).then((response) => { |
|||
// console.log("response,", response); |
|||
this.form = response.data; |
|||
console.log("basedata", this.form); |
|||
}); |
|||
}, |
|||
// 取消按钮 |
|||
cancel() { |
|||
this.open = false; |
|||
this.reset(); |
|||
}, |
|||
// 表单重置 |
|||
reset() { |
|||
this.form = { |
|||
id: null, |
|||
supervisionId: null, |
|||
reportAttachment: null, |
|||
isOk: null, |
|||
reportAttachmentName: null, |
|||
uploadTime: null, |
|||
remarks: null, |
|||
createTime: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
reportType: null, |
|||
}; |
|||
this.resetForm("form"); |
|||
openDivDiglog() { |
|||
this.$refs.divAssess.handleAdd(); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data: { |
|||
id: null, |
|||
supervisionId: null, |
|||
reportAttachment: null, |
|||
isOk: null, |
|||
reportAttachmentName: null, |
|||
uploadTime: null, |
|||
remarks: null, |
|||
createTime: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
reportType: null, |
|||
}, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
/** 搜索按钮操作 */ |
|||
handleQuery() { |
|||
this.queryParams.pageNum = 1; |
|||
this.getList(); |
|||
}, |
|||
/** 重置按钮操作 */ |
|||
resetQuery() { |
|||
this.resetQueryForm(); |
|||
this.handleQuery(); |
|||
}, |
|||
// 多选框选中数据 |
|||
handleSelectionChange(selection) { |
|||
this.ids = selection.map((item) => item.id); |
|||
this.single = selection.length !== 1; |
|||
this.multiple = !selection.length; |
|||
}, |
|||
/** 新增按钮操作 */ |
|||
handleAdd() { |
|||
this.reset(); |
|||
this.open = true; |
|||
this.title = "添加工程质量报告"; |
|||
}, |
|||
/** 修改按钮操作 */ |
|||
handleUpdate(row) { |
|||
this.reset(); |
|||
const id = row.id || this.ids; |
|||
getAttachment(id).then((response) => { |
|||
this.form = response.data; |
|||
this.open = true; |
|||
this.title = "修改工程质量报告"; |
|||
}); |
|||
openUnitDiglog() { |
|||
this.$refs.unitAssess.handleAdd(); |
|||
}, |
|||
/** 提交按钮 */ |
|||
submitForm() { |
|||
this.$refs["form"].validate((valid) => { |
|||
if (valid) { |
|||
if (this.form.id != null) { |
|||
updateAttachment(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} else { |
|||
addAttachment(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("新增成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
updateInfo(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
}); |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if (ids) { |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return delAttachment(ids); |
|||
}) |
|||
.then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}) |
|||
.catch(function () {}); |
|||
} else { |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
}, |
|||
/** 导出按钮操作 */ |
|||
handleExport() { |
|||
const queryParams = this.queryParams; |
|||
let message = "是否确认导出所有的数据项?"; |
|||
if (this.ids) { |
|||
message = "是否确认导出选中的数据项?"; |
|||
queryParams.ids = this.ids; |
|||
} |
|||
this.$confirm(message, "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return exportAttachment(queryParams); |
|||
}) |
|||
.then((response) => { |
|||
this.downloadFile(response, true, response.msg); |
|||
// this.download(response.msg); |
|||
}) |
|||
.catch(function () {}); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@import "@/assets/css/dialog.scss"; |
|||
// ::v-deep { |
|||
// .el-dialog { |
|||
// margin-top: 10vh !important; |
|||
// } |
|||
// } |
|||
.footerForm { |
|||
background: #fff; |
|||
padding: 10px; |
|||
::v-deep { |
|||
.el-form-item { |
|||
margin-bottom: 0; |
|||
} |
|||
} |
|||
} |
|||
.listTitle { |
|||
font-size: 14px; |
|||
padding-left: 10px; |
|||
padding-right: 30px; |
|||
margin: 20px 0; |
|||
border-left: 2px solid #36b29e; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
span:nth-child(1) { |
|||
font-weight: bold; |
|||
} |
|||
.addBtn { |
|||
color: #36b29e; |
|||
cursor: pointer; |
|||
} |
|||
.addBtn:hover { |
|||
color: #31a08e; |
|||
} |
|||
} |
|||
</style> |
|||
|
File diff suppressed because it is too large
Loading…
Reference in new issue