|
|
@ -85,9 +85,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="knowledgeLubeList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data="knowledgeLubeList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<!-- <el-table-column label="主键标识" align="center" prop="knowledgeLubeId" />-->
|
|
|
|
<!-- <el-table-column label="主键标识" align="center" prop="knowledgeLubeId" />-->
|
|
|
|
<el-table-column label="经验编号" align="center" prop="experienceCode" />
|
|
|
|
<el-table-column label="经验编号" align="center" prop="experienceCode" />
|
|
|
|
<!-- <el-table-column label="设备类型ID,关联dms_base_device_type的device_type_id" align="center" prop="deviceTypeId" />-->
|
|
|
|
<!-- <el-table-column label="设备类型ID,关联dms_base_device_type的device_type_id" align="center" prop="deviceTypeId" />-->
|
|
|
|
<el-table-column label="设备类型" align="center" prop="deviceTypeId" >
|
|
|
|
<el-table-column label="设备类型" align="center" prop="deviceTypeId" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
@ -100,7 +100,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- <el-table-column label="润滑部位,关联dms_base_lube_station的lube_station_id" align="center" prop="lubeStationId" />-->
|
|
|
|
<!-- <el-table-column label="润滑部位,关联dms_base_lube_station的lube_station_id" align="center" prop="lubeStationId" />-->
|
|
|
|
<el-table-column label="润滑部位" align="center" prop="lubeStationId" >
|
|
|
|
<el-table-column label="润滑部位" align="center" prop="lubeStationId" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
@ -150,9 +150,9 @@
|
|
|
|
<el-form-item label="经验编号" prop="experienceCode">
|
|
|
|
<el-form-item label="经验编号" prop="experienceCode">
|
|
|
|
<el-input v-model="form.experienceCode" placeholder="请输入经验编号" />
|
|
|
|
<el-input v-model="form.experienceCode" placeholder="请输入经验编号" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="设备类型ID,关联dms_base_device_type的device_type_id" prop="deviceTypeId">-->
|
|
|
|
<!-- <el-form-item label="设备类型ID,关联dms_base_device_type的device_type_id" prop="deviceTypeId">-->
|
|
|
|
<!-- <el-input v-model="form.deviceTypeId" placeholder="请输入设备类型ID,关联dms_base_device_type的device_type_id" />-->
|
|
|
|
<!-- <el-input v-model="form.deviceTypeId" placeholder="请输入设备类型ID,关联dms_base_device_type的device_type_id" />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="设备类型" prop="deviceTypeId" >
|
|
|
|
<el-form-item label="设备类型" prop="deviceTypeId" >
|
|
|
|
<el-select v-model="form.deviceTypeId" placeholder="请选择设备类型">
|
|
|
|
<el-select v-model="form.deviceTypeId" placeholder="请选择设备类型">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -163,9 +163,9 @@
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="润滑部位,关联dms_base_lube_station的lube_station_id" prop="lubeStationId">-->
|
|
|
|
<!-- <el-form-item label="润滑部位,关联dms_base_lube_station的lube_station_id" prop="lubeStationId">-->
|
|
|
|
<!-- <el-input v-model="form.lubeStationId" placeholder="请输入润滑部位,关联dms_base_lube_station的lube_station_id" />-->
|
|
|
|
<!-- <el-input v-model="form.lubeStationId" placeholder="请输入润滑部位,关联dms_base_lube_station的lube_station_id" />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="润滑部位" prop="lubeStationId" >
|
|
|
|
<el-form-item label="润滑部位" prop="lubeStationId" >
|
|
|
|
<el-select v-model="form.lubeStationId" placeholder="请选择润滑部位">
|
|
|
|
<el-select v-model="form.lubeStationId" placeholder="请选择润滑部位">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -176,9 +176,9 @@
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="润滑标准" prop="protocolCode">-->
|
|
|
|
<!-- <el-form-item label="润滑标准" prop="protocolCode">-->
|
|
|
|
<!-- <el-input v-model="form.protocolCode" placeholder="请输入润滑标准" />-->
|
|
|
|
<!-- <el-input v-model="form.protocolCode" placeholder="请输入润滑标准" />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="润滑标准" prop="protocolCode" >
|
|
|
|
<el-form-item label="润滑标准" prop="protocolCode" >
|
|
|
|
<el-select v-model="form.protocolCode" placeholder="请选择润滑标准">
|
|
|
|
<el-select v-model="form.protocolCode" placeholder="请选择润滑标准">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -317,7 +317,8 @@ export default {
|
|
|
|
beforePictureUpload(file){
|
|
|
|
beforePictureUpload(file){
|
|
|
|
//每次进来初始化 isCommonName 为true
|
|
|
|
//每次进来初始化 isCommonName 为true
|
|
|
|
this.isCommonName = true;
|
|
|
|
this.isCommonName = true;
|
|
|
|
const isJPG = file.type === 'image/jpeg';
|
|
|
|
/* const isJPG = file.type === 'image/jpeg';*!/*/
|
|
|
|
|
|
|
|
const isAllowedType = file.type === 'image/jpeg' || file.type === 'image/png'; // 允许JPG和PNG格式
|
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
|
//判断是否有相同的图片,如何有即提示并添加失败
|
|
|
|
//判断是否有相同的图片,如何有即提示并添加失败
|
|
|
|
if(this.fileListPut.length > 0){
|
|
|
|
if(this.fileListPut.length > 0){
|
|
|
@ -328,8 +329,12 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
if (!isJPG) {
|
|
|
|
if (!isJPG) {
|
|
|
|
this.$message.error('请上传图片格式的文件!');
|
|
|
|
this.$message.error('请上传图片格式的文件!');
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
if (!isAllowedType) {
|
|
|
|
|
|
|
|
this.$message.error('请上传JPG或PNG图片格式的文件!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!isLt2M) {
|
|
|
|
if (!isLt2M) {
|
|
|
|
this.$message.error('上传的图片不能超过2MB!');
|
|
|
|
this.$message.error('上传的图片不能超过2MB!');
|
|
|
@ -365,7 +370,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 查询润滑标准信息列表 */
|
|
|
|
/** 查询润滑标准信息列表 */
|
|
|
|
getLubeStandard() {
|
|
|
|
getLubeStandard() {
|
|
|
|
listLubeStandard(this.queryParams).then(response => {
|
|
|
|
listLubeStandard(this.queryParams).then(response => {
|
|
|
@ -478,7 +482,7 @@ export default {
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const knowledgeLubeCodes = row.experienceCode || this.codes;
|
|
|
|
const knowledgeLubeCodes = row.experienceCode || this.codes;
|
|
|
|
const knowledgeLubeIds = row.knowledgeLubeId || this.ids;
|
|
|
|
const knowledgeLubeIds = row.knowledgeLubeId || this.ids;
|
|
|
|
this.$modal.confirm('是否确认删除润滑知识库编号为"' + knowledgeLubeCodes + '"的数据项?').then(function() {
|
|
|
|
this.$modal.confirm('是否确认删除润滑知识库编号为"' + knowledgeLubeCodes + '"的数据项?').then(function () {
|
|
|
|
return delKnowledgeLube(knowledgeLubeIds);
|
|
|
|
return delKnowledgeLube(knowledgeLubeIds);
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|