|
@@ -12,8 +12,11 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item class="state">
|
|
|
当前状态:
|
|
|
- <a style="color: #999999; cursor: pointer" @click="toDetection" v-if="moldDetail.state == 0">静止</a>
|
|
|
+ <a style="color: #909399; cursor: pointer" @click="toDetection" v-if="moldDetail.state == 0">静止</a>
|
|
|
<a style="color: #00CD66; cursor: pointer" @click="toDetection" v-if="moldDetail.state == 1">运行</a>
|
|
|
+ <a style="color: #F56C6C; cursor: pointer" @click="toDetection" v-if="moldDetail.state == 2">告警</a>
|
|
|
+ <a style="color: #909399; cursor: pointer" @click="toDetection" v-if="moldDetail.state == 3">待报废</a>
|
|
|
+ <a style="color: #909399; cursor: pointer" @click="toDetection" v-if="moldDetail.state == 4">已报废</a>
|
|
|
<span class="tips">(点击查看运行状态)</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -191,7 +194,7 @@
|
|
|
<el-button size="small" @click="dowloadfile(scope.row.id)">下载</el-button>
|
|
|
</a>
|
|
|
<el-button size="small"
|
|
|
- v-if="scope.row.uplodtorId == user.id && scope.row.state <= 0"
|
|
|
+ v-if="(scope.row.uplodtorId == user.id && scope.row.state <= 0) || (scope.row.state == 3 && user.parentId == 1 && user.subordinateType == 0)"
|
|
|
@click="deleteFile(scope.row.id)" type="danger">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -249,9 +252,9 @@
|
|
|
<!-- <el-button size="small" @click="dowloadfile(scope.row.id)" v-if="download == 1 && scope.row.state == 3 ">
|
|
|
<a :href="scope.row.fileUrl" :download="scope.row.fileName">下载 </a>
|
|
|
</el-button> -->
|
|
|
- <!-- <el-button size="small"
|
|
|
- v-if="scope.row.uplodtorId == user.id && scope.row.state <= 0"
|
|
|
- @click="deleteFile(scope.row.id)" type="danger">删除</el-button> -->
|
|
|
+ <el-button size="small"
|
|
|
+ v-if="scope.row.state == 3 && user.parentId == 1 && user.subordinateType == 0"
|
|
|
+ @click="deleteFile(scope.row.id)" type="danger">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -289,7 +292,7 @@
|
|
|
<el-button size="small" @click="dowloadfile(scope.row.id)">下载</el-button>
|
|
|
</a>
|
|
|
<el-button size="small"
|
|
|
- v-if="scope.row.uplodtorId == user.id && scope.row.state <= 0"
|
|
|
+ v-if="(scope.row.uplodtorId == user.id && scope.row.state <= 0) || (scope.row.state == 3 && user.parentId == 1 && user.subordinateType == 0)"
|
|
|
@click="deleteFile(scope.row.id)" type="danger">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -328,7 +331,7 @@
|
|
|
<el-button size="small" @click="dowloadfile(scope.row.id)">下载</el-button>
|
|
|
</a>
|
|
|
<el-button size="small"
|
|
|
- v-if="scope.row.uplodtorId == user.id && scope.row.state <= 0"
|
|
|
+ v-if="(scope.row.uplodtorId == user.id && scope.row.state <= 0) || (scope.row.state == 3 && user.parentId == 1 && user.subordinateType == 0)"
|
|
|
@click="deleteFile(scope.row.id)" type="danger">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -410,7 +413,7 @@
|
|
|
v-if="approve == 1 && (scope.row.state == 0 || (scope.row.state == 1 && user.subordinateType == 1) || (scope.row.state == 2 && user.subordinateType == 0))"
|
|
|
@click="checkOpen(scope.row)">审批</el-button>
|
|
|
<el-button size="small"
|
|
|
- v-if="scope.row.uplodtorId == user.id && scope.row.state <= 0"
|
|
|
+ v-if="(scope.row.uplodtorId == user.id && scope.row.state <= 0) || (scope.row.state == 3 && user.parentId == 1 && user.subordinateType == 0)"
|
|
|
@click="deleteFile(scope.row.id)" type="danger">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -1610,7 +1613,7 @@
|
|
|
message: "更新成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
- this.$router.push("/moldList/" + res.data.id );
|
|
|
+ this.$router.push("/moldList/" + res.data.id + '/0');
|
|
|
this.detailId = res.data.id;
|
|
|
this.getDetail();
|
|
|
} else {
|