Browse Source

Merge branch 'cygx_14.3' into debug

bding 5 months ago
parent
commit
d3cf35bb1d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/cygx/pushrulesPages.vue

+ 5 - 5
src/views/cygx/pushrulesPages.vue

@@ -37,7 +37,7 @@ const getChooseList = async () => {
   const res = await getUserChoose();
   if (res.Ret === 200) {
     const { Data } = res;
-    IsRefuse.value = Data.IsRefuse;
+    IsPush.value = Data.IsPush;
     IsSubjective.value = Data.IsSubjective;
     IsObjective.value = Data.IsObjective;
     permissionList.value = Data.List;
@@ -79,14 +79,14 @@ const allInHandleCheck = (e) => {
   CheckListPushAll.value = followAll.value = uninterestedAll.value = e;
 };
 // 推送更新内容
-const IsRefuse = ref(0);
+const IsPush = ref(0);
 const IsSubjective = ref(0);
 const IsObjective = ref(0);
 
 // 推送规则的请求
 const pushHandle = async () => {
   const res = await postChooseSubmitPush({
-    IsRefuse: IsRefuse.value,
+    IsPush: IsPush.value,
     IsSubjective: IsSubjective.value ? 1 : 0,
     IsObjective: IsObjective.value ? 1 : 0,
   });
@@ -185,9 +185,9 @@ onMounted(() => {
             <span>推送更新内容</span>
             <span>(重点关注+接受推送) </span>
           </div>
-          <Switch v-model="IsRefuse" :active-value="1" :inactive-value="0" @change="pushHandle" />
+          <Switch v-model="IsPush" :active-value="1" :inactive-value="0" @change="pushHandle" />
         </div>
-        <div class="distinguish" v-show="IsRefuse">
+        <div class="distinguish" v-show="IsPush">
           <div class="distinguish-content">
             <Checkbox key="one" @toggle="pushHandle" :name="1" v-model="IsObjective" icon-size="14" shape="square" checked-color="#E2C586">请向我推送【客观类】内容</Checkbox>
             <p class="check-explain">(线上/线下调研及调研纪要、产业跟踪、季度跟踪)</p>