forked from drone/command-center-dashboard

shuishen
2025-04-19 0f85a9c9f964e433aa0f2078819cdbda062ebbbf
src/components/CurrentTaskDetails/TaskDetailsRight.vue
@@ -11,7 +11,7 @@
         </div>
      </div>
      <BaseControl v-if="taskDetails.workspace_id" />
      <BaseControl v-if="workspace_id" />
   </div>
</template>
<script setup>
@@ -19,6 +19,7 @@
import BaseControl from '@/components/CurrentTaskDetails/ControlPanel/BaseControl.vue'
const taskDetails = inject('taskDetails')
const workspace_id = inject('workspace_id')
const list = ref([
   { name: '任务编号', value: '', field: 'job_info_num' },
@@ -37,6 +38,10 @@
   () => {
      list.value.forEach(item => {
         item.value = taskDetails?.value?.[item.field] || ''
         if (item.name === '任务频次') {
            const { rep_rule_type = '', rep_rule_val = '' } = taskDetails?.value || {}
            item.value = rep_rule_type + ' -- ' + rep_rule_val
         }
      })
   },
   {
@@ -44,8 +49,6 @@
      deep: true,
   }
)
</script>
<style scoped lang="scss">
@@ -56,7 +59,8 @@
   top: 0;
   width: 297px;
   height: 1002px;
   background: rgba(31, 31, 31, 0.15);
   background: rgba(31, 31, 31, 0.5);
   backdrop-filter: blur(0.5rem);
   border-radius: 0px 40px 40px 0px;
   display: flex;
   flex-direction: column;
@@ -107,6 +111,8 @@
         .itemValue {
            font-weight: bold;
            color: #ffffff;
            word-break: break-all;     /* 强制在任意字符断行 */
            white-space: normal;       /* 允许正常换行 */
         }
      }
   }