Browse Source

优化

pull/63/head
wangxy 3 years ago
parent
commit
14fe55d70a
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      src/views/plan/workbench/homePage/beta/predict/index.vue
  2. +2
    -2
      src/views/plan/workbench/homePage/beta/predict/predictEdit.vue

+ 3
- 0
src/views/plan/workbench/homePage/beta/predict/index.vue View File

@ -21,6 +21,8 @@
<template #default="scope">
<span v-if="item === 'AP_CustDemandVerHead-PlantNr'">{{ getWorkshopName(scope.row['AP_CustDemandVerHead-PlantNr']) }}</span>
<span v-else-if="item === 'AP_CustDemandVerHead-Status'">{{ scope.row['AP_CustDemandVerHead-Status'] == '1' ? '已发布':'未发布' }}</span>
<span v-else-if="item === 'AP_CustDemandVerHead-Valid'">{{ scope.row['AP_CustDemandVerHead-Valid'] == true ? '当前使用':'' }}</span>
<!-- AP_CustDemandVerHead-Valid -->
<span v-else>{{ scope.row[item] }}</span>
</template>
</el-table-column>
@ -53,6 +55,7 @@ export default {
"AP_CustDemandVerHead-CustomerId",
"AP_CustDemandVerHead-VersionId",
"AP_CustDemandVerHead-Descr",
"AP_CustDemandVerHead-Valid",
"AP_CustDemandVerHead-Status",
"AP_CustDemandVerHead-PlanReleaseTime",
"AP_CustDemandVerHead-ActualReleaseTime",


+ 2
- 2
src/views/plan/workbench/homePage/beta/predict/predictEdit.vue View File

@ -59,8 +59,8 @@
<el-button v-if="item.title === '修改'" @click="handleUpload" class="search-button-style">I 导入</el-button>
<el-button class="search-button-style" @click="submitForm">S 保存</el-button>
<el-button v-if="item.title === '修改'" @click="releaseHandle(1)" class="search-button-style">P 发布</el-button>
<el-button v-if="item.title === '修改'" @click="releaseHandle(2)" class="search-button-style">全局发布</el-button>
<el-button v-if="item.title === '修改'" @click="releaseHandle(3)" class="search-button-style">取消发布</el-button>
<el-button v-if="item.title === '修改' && formData['AP_CustDemandVerHead-Status'] === '1'" @click="releaseHandle(2)" class="search-button-style">全局发布</el-button>
<el-button v-if="item.title === '修改' && formData['AP_CustDemandVerHead-Status'] === '1'" @click="releaseHandle(3)" class="search-button-style">取消发布</el-button>
</el-form-item>
</el-col>
</el-row>


Loading…
Cancel
Save