Просмотр исходного кода

✨ feat<数据录入>: 创建弹窗添加平台信息

xinyan 8 месяцев назад
Родитель
Сommit
3f256d451f

+ 17 - 1
src/views/reportManage/dataCenter/normalDisplay/components/TableDataEntry.vue

@@ -218,6 +218,7 @@ const ySalesData = ref({
 //表格
 let taskId = 0;
 let currentId = 0;
+const currentRow = ref('');
 
 const dayData = [];
 const weekData = [];
@@ -407,6 +408,8 @@ function fetchCurrentTaskData() {
 const editEvent = async (row: RowVO) => {
   taskId = row.task;
   currentId = row.id;
+  currentRow.value = row;
+  console.log("=>(TableDataEntry.vue:412) currentRow.value", currentRow.value);
   Object.assign(taskDataForm, row);
   await currentSalesTip();
   dayFormVisible.value = true;
@@ -990,8 +993,21 @@ onMounted(() => {
       </vxe-grid>
     </div>
   </el-card>
-  <el-dialog v-model="dayFormVisible" :before-close="handleClose" style="border-radius: 10px;" title="创建任务"
+  <el-dialog v-model="dayFormVisible" :before-close="handleClose" style="border-radius: 10px;" :title="`创建任务 : ${currentRow.platformNumber} / ${currentRow.platformName}`"
              width="600">
+    <template #title>
+      <span class="text-xl">创建任务</span>
+      <div class="mt-2" style="display: flex; align-items: center;color: darkgray" >
+        <div style="margin-right: 8px;">
+          平台编号:
+          <span class="italic pl-1 pr-2" >{{ currentRow.platformNumber }}</span>
+        </div>
+        <div>
+          平台名称:
+          <span class="italic pl-1">{{ currentRow.platformName }}</span>
+        </div>
+      </div>
+    </template>
     <el-form
         ref="taskDataFormRef"
         :model="taskDataForm"