liyongli 3 mesiacov pred
rodič
commit
5626026115

+ 4 - 4
src/views/OriginalityPage.vue

@@ -29,12 +29,12 @@
   <el-table :data="tableData" stripe style="width: 100%">
     <el-table-column prop="creativeName" label="名称">
       <template #default="scope">
-        <el-button text @click="() => linkSourceMaterial(scope.row.creativeId)">{{
+        <el-button text @click="() => linkSourceMaterial(scope.row.creativeId, true)">{{
           scope.row.creativeName
         }}</el-button>
       </template>
     </el-table-column>
-    <el-table-column prop="statusDesc" label="状态" width="80" />
+    <el-table-column prop="statusDesc" label="排期状态" width="80" />
     <el-table-column prop="publishStatusDesc" label="发布状态" width="80" />
     <el-table-column prop="startDate" label="生效日期" width="120" />
     <el-table-column prop="endDate" label="结束日期" width="120" />
@@ -506,9 +506,9 @@ const changeStatus = (id: number, status: number, text: string) => {
   })
 }
 
-const linkSourceMaterial = (id: string | number) => {
+const linkSourceMaterial = (id: string | number, show = false) => {
   // 跳转到相关素材
-  router.push('/authorized/sourceMaterial?creativeId=' + id)
+  router.push('/authorized/sourceMaterial?creativeId=' + id + '&show=' + show)
 }
 
 const publishAsTreeFunc = (id: number) => {

+ 2 - 1
src/views/SourceMaterialPage.vue

@@ -238,7 +238,7 @@ const form = ref<ISourceMaterialProps>({
 const pages = reactive<Pages>({
   pageNum: 1,
   pageSize: 10,
-  creativeId: undefined,
+  creativeId: queryRouter?.show ? query.value : undefined,
 })
 
 const tableData = ref<SourceMaterialList>([])
@@ -283,6 +283,7 @@ const moreAdd = () => {
       message: '添加成功',
       type: 'success',
     })
+    onSubmit()
   })
 }