Browse Source

橙子建站

Szx 3 years ago
parent
commit
88a778646e

+ 6 - 0
src/api/index.ts

@@ -114,6 +114,12 @@ export const getOfficialAccounts = (query: {
 export const getOrangeProductListApi =(query:{app_name:string}):AxiosPromise<IList<OListItem>>=>{
   return axios("/yuewenfx/getProductList",{params:query})
 }
+//橙子建站修改微信公众号
+export const editOrangeWxApi =(query:{appName:string,alias:string,appflag:string})=>{
+
+  return axios("/yuewenfx/editAppFlagsList",{params:query})
+
+}
 //橙子建站回传配置
 export const upDateReportConfigApi =(query:{
   appflag:string,

+ 29 - 13
src/views/_pageOptions/table-account.ts

@@ -27,11 +27,8 @@ export const TableColumnOfAccount = [
   },
   {
     title: "回传条件",
-    width: 140,
-    dataIndex: "module",
-    slots: {
-      customRender: "module",
-    },
+    dataIndex: "condition",
+    width:"300px"
   },
   // {
   //   title: "开始/结束时间",
@@ -101,7 +98,10 @@ export const TableColumnOfLog = [
   {
     title: "回传状态",
     width: 140,
-    dataIndex: "",
+    dataIndex: "report_status",
+    slots: {
+      customRender: "report_status",
+    },
   },
   {
     title: "备注",
@@ -128,9 +128,8 @@ export const TableColumnOfLog = [
     dataIndex: "action",
     width: 140,
     fixed:"right",
-
     slots: {
-      customRender: "report_status",
+      customRender: "report_action",
     },
   },
 ];
@@ -141,6 +140,11 @@ export const TableColumnOfOrange = [
     ellipsis: true,
   },
   {
+    title: "微信号",
+    dataIndex: "alias",
+    ellipsis: true,
+  },
+  {
     title: "所属平台",
     dataIndex: "platform",
     ellipsis: true,
@@ -153,7 +157,7 @@ export const TableColumnOfOrange = [
   {
     title: "操作",
     dataIndex: "action",
-    width: 250,
+    width: 280,
     slots: { customRender: "operation" },
   },
 ];
@@ -163,51 +167,63 @@ export const TableColumnLogOfOrange = [
     title: "订单编号",
     dataIndex: "order_no",
     ellipsis: true,
-    width: 200,
+    width:"140px",
+    fixed:"left",
   },
   {
     title: "uid",
     dataIndex: "guid",
     ellipsis: true,
-    width: 150,
+    width: "140px",
   },
   {
     title: "计划平台",
     dataIndex: "platform",
     ellipsis: true,
-
+    width:"140px"
   },
   {
     title: "注册时间",
     dataIndex: "register_time",
+    width:"140px"
   },
   {
     title: "充值时间",
     dataIndex: "pay_time",
+    width:"140px"
   },
   {
     title: "充值金额",
     dataIndex: "pay_amount",
+    width:"140px"
   },
   {
     title: "回传状态",
     dataIndex: "report_status",
+    width:"140px",
+    slots: {
+      customRender: "report_status",
+    },
   },
   {
     title: "备注",
     dataIndex: "reason",
+    width:"140px"
   },
   {
     title: "回传百分比(%)",
+    width:"140px",
     dataIndex: "back_percentage",
   },
   {
     title: "回传配置百分比(%)",
     dataIndex: "config_back_percentage",
+    width:"140px"
   },
   {
     title: "操作",
     dataIndex: "action",
-    slots: { customRender: "report_status" },
+    fixed:"right",
+    slots: { customRender: "report_action" },
   },
 ];

+ 7 - 21
src/views/account/kuaishou.vue

@@ -17,11 +17,7 @@
       bordered
       :data-source="list"
       @change="onLoadOfficials"
-      
     >
-      <template #module="{ record }">
-        <p>{{ moduleType[record.report_module] }}</p>
-      </template>
       <template #status="{ text }">
         <p>{{ text == 0 ? "关闭" : "开启" }}</p>
       </template>
@@ -86,7 +82,7 @@
             size="small"
             style="width: 150px"
             type="number"
-            placeholder="回传比例"
+            :min="0"
           >
             <template #suffix>
               <a-tooltip title="元">
@@ -128,16 +124,13 @@ import logList from "./log.vue";
 import { TableColumnOfAccount } from "@/views/_pageOptions/table-account";
 import {
   getOfficialAccounts,
-  setChannelRate,
   getOfficialBackConfig,
-  backLogList,
 } from "@/api";
 import { IOfficials, PlanBack } from "#/api";
-import { message, Popconfirm } from "ant-design-vue";
+import { message } from "ant-design-vue";
 import { InfoCircleOutlined } from "@ant-design/icons-vue";
 import {
   setOfficialBackConfig,
-  onUpdateOfficialReportType,
 } from "../../api/index";
 
 const Account = defineComponent({
@@ -198,7 +191,6 @@ const Account = defineComponent({
     const onSearch = (fields: Record<string, string>) => {
       const { name } = fields;
       state.query.official_name = name;
-      console.log(1);
       onLoadOfficials();
     };
     //取消时触发
@@ -231,13 +223,10 @@ const Account = defineComponent({
           item.channel_id,
           "kuaishou"
         );
-        console.log(item);
         if (data.channel_configs[0].id) {
           state.ad_config.id = +data.channel_configs[0].id;
         }
         state.ad_config.channel_id = data.ad_config.channel_id;
-        console.log(state.ad_config.id);
-        console.log(state.ad_config.channel_id);
         state.ad_config.rate = data.channel_configs[0].rate;
         state.report_module = data.report_module;
         state.showConfig = data.report_module == "ad" ? false : true;
@@ -252,17 +241,14 @@ const Account = defineComponent({
           ? (state.hasPopFormData = true)
           : (state.hasPopFormData = false);
         state.popForm = list;
-        console.log(state.popForm)
         state.visible = true;
       } catch (error) {
         console.log("error happened in get back plan data:", error.message);
       }
     };
-  const handlechange=(value:string)=>{
-      console.log(value)
-      state.ad_config.condition=value
-      console.log( state.ad_config.condition)
-  }
+    const handlechange = (value: string) => {
+      state.ad_config.condition = value;
+    };
     const onTabChange = (key: number) => {
       state.currentTab = key;
     };
@@ -283,7 +269,7 @@ const Account = defineComponent({
       if (res.data.success == 0) {
         message.success("保存成功");
       }
-      onLoadOfficials()
+      onLoadOfficials();
     };
     //确定时提交表单
     const handleOk = () => {
@@ -299,7 +285,7 @@ const Account = defineComponent({
       initBackData,
       onTabChange,
       handleOk,
-      handlechange
+      handlechange,
     };
   },
   methods: {

+ 5 - 2
src/views/account/log.vue

@@ -19,10 +19,10 @@
       rowKey="order_no"
       :loading="loading"
       :pagination="tablePageOptions"
-      :scroll="{ x: 1650, y: 3000 }"
+      :scroll="{ x: 1680, y: 3000 }"
 
     >
-      <template #report_status="{ text, record }">
+      <template #report_action="{ text, record }">
         <p v-if="record.report_status == 'success'">已上报</p>
         <a-popconfirm title="是否要继续强制回传?" ok-text="是" cancel-text="否" @confirm="confirmEdit(record)">
           <p v-if="record.report_status != 'success'">
@@ -30,6 +30,9 @@
           </p>
         </a-popconfirm>
       </template>
+        <template #report_status="{ text, record }">
+        <p>{{record.report_status=="success"?"成功":"失败"}}</p>
+      </template>
     </a-table>
   </div>
 </template>

+ 74 - 6
src/views/account/orange.vue

@@ -7,19 +7,46 @@
       @confirm="onSearch"
       @cancel="onCancel"
     ></tool-bar>
-    <a-table bordered :data-source="list" :columns="columns">
+    <a-table bordered :loading="loading" :data-source="list" :columns="columns">
       <template #operation="{ record }">
-        <a-button type="primary" @click="showDrawerMactch(record)"
+        <a-button @click="showDrawerWxEdit(record)" size="small">编辑</a-button>
+        <span style="padding: 10px"></span>
+        <a-button type="primary" @click="showDrawerMactch(record)" size="small"
           >回传配置</a-button
         >
         <span style="padding: 10px"></span>
-        <a-button  @click="showDrawerLog(record)"
+        <a-button @click="showDrawerLog(record)" size="small"
           >回传日志</a-button
         >
       </template>
     </a-table>
 
     <a-modal
+      title="编辑"
+      v-model:visible="visibleWxlog"
+      centered="true"
+      width="40%"
+      class="drawer-back-config"
+      @ok="comfirmWxEdit"
+      @cancel="cancelWxEdit"
+    >
+      <p style="margin-bottom: 15px; font-size: 12px">
+        若公众号信息发生变化请及时在此更新公众号信息
+      </p>
+      <a-form
+        :label-col="{ span: 6 }"
+        :wrapper-col="{ offset: 1 }"
+        :model="wxEditList"
+      >
+        <a-form-item label=" 公众号名称">
+          <a-input v-model:value="wxEditList.appName"> </a-input>
+        </a-form-item>
+        <a-form-item label="微信号">
+          <a-input v-model:value="wxEditList.alias"> </a-input>
+        </a-form-item>
+      </a-form>
+    </a-modal>
+    <a-modal
       title="回传配置"
       v-model:visible="visibleMatchLog"
       centered="true"
@@ -30,6 +57,7 @@
     >
       <OrangeForm
         :formrate="formrate"
+        :condition="condition"
         @getShowFlag="getOrangeShowFlag"
         @initOrangeList="initOrangedata"
         @add="add"
@@ -58,9 +86,11 @@ import ToolBar from "@/components/tool-bar/index.vue";
 import OrangeForm from "./orangeform.vue";
 import {
   //获取列表
+  editOrangeWxApi,
   getOrangeProductListApi,
 } from "@/api";
 import OrangeLog from "./orangelog.vue";
+import { message } from "ant-design-vue";
 
 export default defineComponent({
   components: {
@@ -71,6 +101,7 @@ export default defineComponent({
   setup() {
     const OrForm = ref();
     const state = reactive({
+      loading: true,
       list: ref<OListItem[]>([]),
       searching: false,
       query: {
@@ -87,12 +118,20 @@ export default defineComponent({
         platform: "",
         report_platform: "",
       },
+      //修改微信公众号列表
+      wxEditList: {
+        appName: "",
+        alias: "",
+        appflag:""
+      },
       appflag: "",
       Logappflag: "",
       formrate: "",
+      condition: "",
       columns: TableColumnOfOrange,
       visibleLog: false,
       visibleMatchLog: false,
+      visibleWxlog: false,
     });
     let { meta } = usePagination();
     //回传日志抽屉层
@@ -110,6 +149,7 @@ export default defineComponent({
       state.appflag = match.appflag;
       state.formrate = match.rate.toString();
       localStorage.setItem("OrangeAppflag", state.appflag);
+      state.condition = match.condition;
     };
 
     const initOrangedata = async () => {
@@ -117,6 +157,7 @@ export default defineComponent({
         app_name: "",
       };
       const data = await getOrangeProductListApi(params);
+      state.loading = false;
       state.list = data.data.list;
     };
     onMounted(() => {
@@ -127,11 +168,13 @@ export default defineComponent({
     const onLoadOfficials = (name: string) => {
       let params = JSON.parse(JSON.stringify(state.query));
       params.app_name = name;
+      state.loading = true;
       getOrangeProductListApi(params).then(({ data }) => {
         console.log(data);
         meta.value = data.meta;
         state.list = data.list;
         state.searching = false;
+        state.loading = false;
       });
     };
 
@@ -139,6 +182,7 @@ export default defineComponent({
     const onSearch = (fields: Record<string, string>) => {
       const name = fields.name;
       //在此处发送搜索请求
+      state.loading = false;
       onLoadOfficials(name);
     };
     //取消按钮
@@ -155,6 +199,30 @@ export default defineComponent({
       console.log(OrForm.value.submit);
       OrForm.value.submit();
     };
+
+    //显示微信公众号编辑的弹窗
+    const showDrawerWxEdit = (match: any) => {
+      state.wxEditList.appName = match.app_name;
+      state.wxEditList.alias = match.alias;
+      state.wxEditList.appflag = match.appflag;
+      state.visibleWxlog = true;
+    };
+
+    const editOrangeWx = async () => {
+      const res = await editOrangeWxApi(state.wxEditList);
+      console.log(res)
+      if(res.data.result==1){
+        message.success('保存成功')
+      }
+    };
+    //微信确认按钮弹框 提交表单
+    const comfirmWxEdit = () => {
+      state.visibleWxlog = false;
+      //发送请求
+      editOrangeWx();
+      //刷新页面
+      initOrangedata();
+    };
     return {
       ...toRefs(state),
       onSearch,
@@ -166,9 +234,9 @@ export default defineComponent({
       handleCancel,
       OrForm,
       initOrangedata,
-      add() {
-        console.log("add");
-      },
+      add() {},
+      showDrawerWxEdit,
+      comfirmWxEdit,
     };
   },
 });

+ 46 - 24
src/views/account/orangeform.vue

@@ -4,25 +4,33 @@
       :layout="formState.layout"
       :model="formState"
       v-bind="formItemLayout"
-      :label-col="{ span: 6}" :wrapper-col="{ offset: 1, span: 11 }"
+      :label-col="{ span: 8 }"
+      :wrapper-col="{ offset: 1 }"
     >
       <a-form-item label=" 回传条件">
         <a-select
-          v-model:value="formState.condition"
-          style="width: 150px"
+          v-model:value="orangeReturnItem[currentTab].value"
+          style="width: 160px"
           size="small"
         >
-          <a-select-option :value="'current_day_register_first_recharge'"
+          <!-- <a-select-option :value="'current_day_register_first_recharge'"
             >当日注册当日首充</a-select-option
           >
           <a-select-option :value="' recharge_not_less_than_min_price'"
             >充值金额不小于30元</a-select-option
+          > -->
+          <a-select-option
+            v-for="item in orangeReturnItem"
+            :key="item.desc"
+            :value="item.value"
+            >{{ item.desc }}</a-select-option
           >
         </a-select>
       </a-form-item>
+
       <a-form-item label="回传比例">
         <a-input
-          style="width: 150px"
+          style="width: 160px"
           v-model:value="formState.rate"
           placeholder="请输入回传比例"
           :min="0"
@@ -40,9 +48,10 @@
         <a-input
           v-model:value="formState.price"
           size="small"
-          style="width: 150px"
+          style="width: 160px"
           type="number"
           placeholder="回传比例"
+          :min="0"
         >
           <template #suffix>
             <a-tooltip title="元">
@@ -71,6 +80,7 @@ import {
   watch,
 } from "vue";
 import { upDateReportConfigApi } from "@/api";
+import { InfoCircleOutlined } from "@ant-design/icons-vue";
 import { message } from "ant-design-vue";
 interface FormState {
   layout: "horizontal" | "vertical" | "inline";
@@ -78,24 +88,36 @@ interface FormState {
   rate: string;
   price: string;
 }
-interface OrangeForm {
-  value: string;
-  reportresult: {
-    appflag: string;
-    rate: string;
-    condition: string;
-    price: string;
-  };
-}
+// interface OrangeForm {
+//   value: string;
+//   reportresult: {
+//     appflag: string;
+//     rate: string;
+//     condition: string;
+//     price: string;
+//   };
+// }
 export default defineComponent({
   name: "OrangeForm",
+  components: {
+    InfoCircleOutlined,
+  },
   props: {
     formrate: String || undefined,
+    condition: String,
   },
   emits: ["getShowFlag", "handleOk", "initOrangeList", "add"],
   setup(props, ctx) {
-    const state: OrangeForm = reactive({
+    const state: any = reactive({
       value: "",
+      orangeReturnItem: [
+        {
+          value: "",
+          desc: "当日注册当日首充",
+          _id: 1,
+        },
+      ],
+      currentTab: 0,
       reportresult: {
         appflag: "",
         rate: "",
@@ -131,26 +153,27 @@ export default defineComponent({
         : {};
     });
     //获得app标识
-    console.log(props.formrate);
     watch(props, () => {
-      console.log(props.formrate);
       formState.rate = props.formrate as string;
+      state.orangeReturnItem[0].value = props.condition;
+      
     });
 
     onMounted(() => {
       formState.rate = props.formrate as string;
+      state.orangeReturnItem[0].value =props.condition
+      console.log(state.orangeReturnItem[0].value)
     });
+    //提交回传比例表单
     const submit = async () => {
       state.reportresult.rate = formState.rate;
-      state.reportresult.condition = formState.condition;
+      state.reportresult.condition =
+        state.orangeReturnItem[state.currentTab].value;
       state.reportresult.appflag = localStorage.getItem("OrangeAppflag") || "0";
       state.reportresult.price = formState.price;
-      console.log(state.reportresult);
       const res = await upDateReportConfigApi(state.reportresult);
       if (res.data.result == 1) {
-        console.log(res.data.result);
         ctx.emit("initOrangeList");
-        console.log(ctx, "ctx");
         ctx.emit("add");
         message.success("修改回传比例成功!");
         formState.price = "30";
@@ -160,12 +183,11 @@ export default defineComponent({
       ctx.emit("getShowFlag", showFlag.showflag);
     };
     //点击关闭抽屉层
-
     return {
+      ...toRefs(state),
       formState,
       formItemLayout,
       buttonItemLayout,
-      ...toRefs(state),
       submit,
       OrangeFormMsg,
     };

+ 142 - 131
src/views/account/orangelog.vue

@@ -1,151 +1,162 @@
 <template>
-    <div>
-        <tool-bar :text="['uid']" :label="['uid']" @confirm="onSearch" @cancel="onCancel">
-            <template #picker>
-                <p class="label">充值日期</p>
-                <a-range-picker v-model:value="pickered" format="YYYY/MM/DD" @change="changeTime" />
-            </template>
-        </tool-bar>
+  <div>
+    <tool-bar
+      :text="['uid']"
+      :label="['uid']"
+      @confirm="onSearch"
+      @cancel="onCancel"
+    >
+      <template #picker>
+        <p class="label">充值日期</p>
+        <a-range-picker
+          v-model:value="pickered"
+          format="YYYY/MM/DD"
+          @change="changeTime"
+        />
+      </template>
+    </tool-bar>
 
-        <div>
-            <a-table :columns="columns" :data-source="loglist" bordered>
-                <!-- <template #operation="{ record }">
-                    <a @click="orangeAction(record)" v-if="isShowflag">强制回传</a>
-                    <div v-else>已上报</div>
-                </template> -->
-                <template #report_status="{ text, record }">
-                    <!-- <div>{{record.report_status}}</div> -->
-                    <p v-if="record.report_status == 'success'">已上报</p>
-                    <a-popconfirm
-                        title="是否要继续强制回传?"
-                        ok-text="是"
-                        cancel-text="否"
-                        @confirm="orangeAction(record)"
-                    >
-                        <p v-if="record.report_status != 'success'">
-                            <a>强制回传</a>
-                        </p>
-                    </a-popconfirm>
-                </template>
-            </a-table>
-        </div>
+    <div>
+      <a-table
+        :columns="columns"
+        :data-source="loglist"
+        bordered
+        :loading="loading"
+        :scroll="{ x: 1450, y: 600 }"
+      >
+  
+        <template #report_action="{ text, record }">
+          <p v-if="record.report_status == 'success'">已上报</p>
+          <a-popconfirm
+            title="是否要继续强制回传?"
+            ok-text="是"
+            cancel-text="否"
+            @confirm="orangeAction(record)"
+          >
+            <p v-if="record.report_status != 'success'">
+              <a>强制回传</a>
+            </p>
+          </a-popconfirm>
+        </template>
+        <template #report_status="{ text, record }">
+          <p>{{ record.report_status == "success" ? "成功" : "失败" }}</p>
+        </template>
+      </a-table>
     </div>
+  </div>
 </template>
 
 <script lang="ts">
 import logList from "./log.vue";
 import { TableColumnLogOfOrange } from "@/views/_pageOptions/table-account";
 import ToolBar from "@/components/tool-bar/index.vue";
+import { message } from "ant-design-vue";
 import {
-    defineComponent,
-    onMounted,
-    reactive,
-    watch,
-    toRefs,
-    ref,
+  defineComponent,
+  onMounted,
+  reactive,
+  watch,
+  toRefs,
+  ref,
 } from "@vue/runtime-core";
 import { getOrangeLogListApi, getforceReportApi } from "@/api";
 import { picker } from "@/helper/config/range";
 import { ILogitem } from "#/api";
 export default defineComponent({
-    component: {
-        logList,
-    },
-    props: {
-        Logappflag: String || undefined,
-    },
-    components: {
-        ToolBar,
-    },
-
-    setup(props) {
-        const state = reactive({
-            isShowflag: true,
-            rangePick: picker,
-            list: {
-                guid: "",
-                start_time: "",
-                end_time: "",
-                appflag: "",
-            },
-            orangeActionList: {
-                reportType: "",
-                guid: "",
-                platform: ""
-            },
-            loglist: ref<ILogitem[]>([]), //?
-            columns: TableColumnLogOfOrange,
-            pickered: []
-        });
+  component: {
+    logList,
+  },
+  props: {
+    Logappflag: String || undefined,
+  },
+  components: {
+    ToolBar,
+  },
 
-        const getLogOrangeList = async () => {
-            const res = await getOrangeLogListApi(state.list);
-            console.log(res);
-            if (res) {
-                state.loglist = res.data.list;
-            }
-        };
-        onMounted(() => {
-            console.log(props.Logappflag);
-            state.list.appflag = props.Logappflag as string;
-            getLogOrangeList();
-        });
-        //监听传过来的值appflag
-        watch(props, () => {
-            console.log("该拜年了", props.Logappflag);
-            state.list.appflag = props.Logappflag as string;
-            getLogOrangeList();
-        });
-        const changeTime = (time: string, stringtime: string) => {
-            console.log(stringtime)
-            state.list.start_time = stringtime[0];
-            state.list.end_time = stringtime[1]
-            console.log(state.list)
-        };
-        //搜索时发的异步请求
-        const getSearchList = async () => {
-            const Searchlist = await getOrangeLogListApi(state.list)
-            if (Searchlist.data) {
-                state.loglist = Searchlist.data.list
-                console.log(Searchlist)
-            }
+  setup(props) {
+    const state = reactive({
+      isShowflag: true,
+      rangePick: picker,
+      loading: true,
+      list: {
+        guid: "",
+        start_time: "",
+        end_time: "",
+        appflag: "",
+      },
+      orangeActionList: {
+        appflag: "",
+        guid: "",
+        reportType: "",
+      },
+      loglist: ref<ILogitem[]>([]), //?
+      columns: TableColumnLogOfOrange,
+      pickered: [],
+    });
 
-        }
-        const onSearch = (fields: Record<string, string>) => {
-            console.log(fields)
-            const uid = fields.uid
-            state.list.guid = uid
-            getSearchList()
-            // getOrangeLogListApi(state.list)
-        }
-        const onCancel = () => {
-            state.list.guid = ""
-            state.list.start_time = "",
-                state.list.end_time = "",
-                getSearchList()
-            console.log(2)
-        }
-        //强制回传操作
-        const getOrangeActionRes = async () => {
-            const res = await getforceReportApi(state.orangeActionList as any)
-            
-        }
-        const orangeAction = (record: ILogitem) => {
-            state.orangeActionList.guid = record.guid
-            state.orangeActionList.reportType = record.report_type
-            state.orangeActionList.platform = record.platform
-            console.log(1)
-            // getOrangeActionRes()
-            getLogOrangeList()
-        }
-        return {
-            ...toRefs(state),
-            changeTime,
-            onSearch,
-            onCancel,
-            orangeAction
-        };
-    },
+    const getLogOrangeList = async () => {
+      const res = await getOrangeLogListApi(state.list);
+      if (res) {
+        state.loglist = res.data.list;
+        state.loading = false;
+      }
+    };
+    onMounted(() => {
+      state.list.appflag = props.Logappflag as string;
+      getLogOrangeList();
+    });
+    //监听传过来的值appflag
+    watch(props, () => {
+      state.list.appflag = props.Logappflag as string;
+      getLogOrangeList();
+    });
+    const changeTime = (time: string, stringtime: string) => {
+      state.list.start_time = stringtime[0];
+      state.list.end_time = stringtime[1];
+    };
+    //搜索时发的异步请求
+    const getSearchList = async () => {
+      state.loading = true;
+      const Searchlist = await getOrangeLogListApi(state.list);
+      if (Searchlist.data) {
+        state.loglist = Searchlist.data.list;
+        state.loading = false;
+      }
+    };
+    const onSearch = (fields: Record<string, string>) => {
+      const uid = fields.uid;
+      state.list.guid = uid;
+      getSearchList();
+      // getOrangeLogListApi(state.list)
+    };
+    const onCancel = () => {
+      state.list.guid = "";
+      (state.list.start_time = ""), (state.list.end_time = ""), getSearchList();
+    };
+    //强制回传操作
+    const getOrangeActionRes = async () => {
+      //放入强制回传的参数
+      const res = await getforceReportApi(state.orangeActionList as any);
+      if (res.data.result == "success") {
+        message.success("上报成功!");
+      }
+    };
+    const orangeAction = (record: ILogitem) => {
+      console.log(record)
+      state.orangeActionList.guid = record.guid;
+      state.orangeActionList.appflag = props.Logappflag as string;
+      state.orangeActionList.reportType = record.report_type;
+      getOrangeActionRes();
+      getLogOrangeList();
+    };
+    return {
+      ...toRefs(state),
+      changeTime,
+      onSearch,
+      onCancel,
+      orangeAction,
+    };
+  },
 });
 </script>
 <style lang="scss" scoped>

+ 2 - 0
types/api.d.ts

@@ -89,6 +89,7 @@ export interface ILogitem{
   back_percentage: number,
   config_back_percentage: number,
   report_type:string
+  appflag:string
 }
 
 
@@ -407,6 +408,7 @@ export interface OListItem {
   appflag: string;
   rate: number;
   platform: string;
+  condition:string;
 }
 
 interface IUserAdmin {