jn517618 2 years ago
commit 4c92bd22d3
  1. 1
      src/const/limsConfig/equipmentManage.js
  2. 3
      src/views/inspection/plan.vue
  3. 24
      src/views/inspection/setting/points.vue
  4. 2
      src/views/limsConfig/equipmentManage.vue
  5. 1
      src/views/limsConfig/maintenance.vue
  6. 1
      src/views/oiling/plan.vue
  7. 11
      src/views/oiling/task.vue

@ -209,6 +209,7 @@ export const tableOption = {
label: "dictValue",
value: "dictKey",
},
rules: [{ required: true, message: "请选择运行状态", trigger: "blur" }],
},
{
type: "input",

@ -897,7 +897,7 @@
pointsForm.notes
}}</el-descriptions-item>
<el-descriptions-item span="3" label="图片">
<img style="width:200px;height:200px;" :src="pointsForm.picture" alt="">
<img v-if="pointsForm.picture" style="width:200px;height:200px;" :src="pointsForm.picture" alt="">
</el-descriptions-item>
</el-descriptions>
<div class="add_all">
@ -1391,6 +1391,7 @@ export default {
this.showProjectDialog = true;
this.page[0].current = 1
this.searchProject()
this.$refs.maintainTable.clearSelection();
},
//
removeSpecimen(index, row){

@ -736,8 +736,8 @@
<el-descriptions-item span="3" label="备注">{{
pointsForm.notes
}}</el-descriptions-item>
<el-descriptions-item span="3" label="图片">
<img style="width:200px;height:200px;" :src="pointsForm.picture" alt="">
<el-descriptions-item span="3" label="图片" >
<img style="width:200px;height:200px;" v-if="pointsForm.picture" :src="pointsForm.picture" alt="">
</el-descriptions-item>
</el-descriptions>
<div class="add_all">
@ -1161,9 +1161,18 @@ export default {
// this.fileList.push({url:response.data})
},
handleRemove(file, fileList){
console.log('file ===>',file)
console.log('imgList ===>',this.imgList)
console.log('fileList ===>',this.fileList)
if(file.status == "success"){
this.imgList = this.imgList.filter(item => item != file.url)
this.fileList = this.imgList.filter(item => item.url != file.url)
if(file.response){
this.imgList = this.imgList.filter(item => item != file.response.data)
this.fileList = this.imgList.filter(item => item.url != file.response.data)
}else{
this.imgList = this.imgList.filter(item => item != file.url)
this.fileList = this.imgList.filter(item => item.url != file.url)
}
}
},
//
@ -1242,6 +1251,7 @@ export default {
this.showProjectDialog = true;
this.page[0].current = 1
this.searchProject()
this.$refs.maintainTable.clearSelection();
// getProList({current:1,size:200}).then(res =>{
// this.tableData = res.data.data.records
@ -1359,8 +1369,10 @@ export default {
console.log('res ============>',res)
this.addForm = res.data.data;
this.addForm.orderList = this.addForm.checkItemList
this.imgList.push(process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture)
this.fileList = [{url:process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture}]
this.addForm.picture ? this.imgList.push(process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture) : this.imgList = []
this.fileList = this.addForm.picture ? [{url:process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture}] : []
console.log('file ===>',this.fileList)
console.log('omg ===>',this.imgList)
this.title = '编辑巡检点位'
this.showAddDialog = true;
this.$nextTick(() =>{

@ -332,7 +332,7 @@ export default {
},
methods: {
editDecive(row,index){
row.runStatus = row.runStatus + ''
row.runStatus = row.runStatus ? row.runStatus + '' : ''
this.$refs.crud.rowEdit(row, index)
},

@ -253,6 +253,7 @@ export default {
if(file.response.code == 200){
this.imgList = this.imgList.filter(item => item.url != file.response.data)
}
console.log('img ===>',this.imgList)
},
/**
* 取当前用户的的信息

@ -1161,6 +1161,7 @@ export default {
this.showProjectDialog = true;
this.page[0].current = 1
this.searchProject()
this.$refs.maintainTable.clearSelection();
// getProList({current:1,size:200}).then(res =>{
// this.tableData = res.data.data.records

@ -1592,8 +1592,10 @@ export default {
if(this.addForm.orderList.length !== 0){
this.addForm.orderList.forEach(row => {
this.tableData.map((item,index) =>{
if(item.id == row.id){
this.$refs.maintainTable.toggleRowSelection(this.tableData[index],true);
if(item.id == row.projectId){
this.$nextTick(() =>{
this.$refs.maintainTable.toggleRowSelection(this.tableData[index],true);
})
}
})
});
@ -1689,6 +1691,9 @@ export default {
addSpecimen() {
this.showProjectDialog = true;
this.page[0].current = 1
this.$nextTick(() =>{
this.$refs.maintainTable.clearSelection();
})
this.searchProject()
// getProList({current:1,size:200}).then(res =>{
// this.tableData = res.data.data.records
@ -1830,7 +1835,7 @@ export default {
handleUpload(row, index) {
this.showResultDialog = true;
this.resultForm = row;
this.resultForm.status = 0
// this.resultForm.status = 0
},
handleResult(){
console.log('res ===>',this.resultForm)

Loading…
Cancel
Save