Ver Fonte

手动运行列表的下载限制和车辆配置详情的canvas

zhangliang2 há 3 anos atrás
pai
commit
f2acbe71f2

+ 1 - 1
src/views/modelLibrary/vehicleConfigurationDetail.vue

@@ -420,7 +420,7 @@ export default {
             let item = this.vehicleNameList.find((i) => i.id == id);
             this.form.vehicleDescription = item.description;
             this.modelImgSrc = this.getImgUrl(item.vehicleTopView);
-            this.$refs.canvasSensor.drawBg();
+            // this.$refs.canvasSensor.drawBg();
         },
         // 验证各传感器数组的每一项表单数据是否齐全
         validateSensorsList() {

+ 8 - 2
src/views/workManagement/manualRunProjectList.vue

@@ -168,7 +168,11 @@
         >
             <div class="checkboxPanel">
                 <el-checkbox-group v-model="downType">
-                    <el-checkbox label="工作报告" class="labelA"></el-checkbox>
+                    <el-checkbox
+                        label="工作报告"
+                        class="labelA"
+                        :disabled="downDisabled"
+                    ></el-checkbox>
                     <el-checkbox label="任务文件包"></el-checkbox>
                 </el-checkbox-group>
             </div>
@@ -260,6 +264,7 @@ export default {
             downType: [],
             dialogVisible: false,
             curRow: {}, // 当前row
+            downDisabled: false, // 用于判断是否可下载工作报告
         };
     },
     methods: {
@@ -418,12 +423,13 @@ export default {
         },
         downRow(row) {
             this.curRow = row;
+            this.downDisabled = row.nowRunState === "30" ? false : true;
             this.dialogVisible = true;
         },
         confirmDown() {
             let url = "";
             let fileName = this.curRow.projectName;
-            
+
             if (this.downType.length === 0) {
                 this.$message.info("请先选择下载类型");
                 return;