|
@@ -8,7 +8,6 @@
|
|
<p class="label">平台</p>
|
|
<p class="label">平台</p>
|
|
<a-select class="full-width"
|
|
<a-select class="full-width"
|
|
v-model:value="query.platform">
|
|
v-model:value="query.platform">
|
|
-<<<<<<< HEAD
|
|
|
|
<a-select-option v-for="platform in platforms"
|
|
<a-select-option v-for="platform in platforms"
|
|
:key="platform.value"
|
|
:key="platform.value"
|
|
:value="platform.value">{{platform.label}}</a-select-option>
|
|
:value="platform.value">{{platform.label}}</a-select-option>
|
|
@@ -21,23 +20,10 @@
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data-source="list"
|
|
:data-source="list"
|
|
@change="onLoadOfficials" />
|
|
@change="onLoadOfficials" />
|
|
-=======
|
|
|
|
- <a-select-option value="platform1">平台1</a-select-option>
|
|
|
|
- <a-select-option value="platform2">平台2</a-select-option>
|
|
|
|
- <a-select-option value="platform3">平台3</a-select-option>
|
|
|
|
- </a-select>
|
|
|
|
- </div>
|
|
|
|
- </tool-bar>
|
|
|
|
- <a-table :loading="loading"
|
|
|
|
- :pagination="tablePageOptions"
|
|
|
|
- :columns="columns"
|
|
|
|
- :data-source="list"></a-table>
|
|
|
|
->>>>>>> ✨ 公众号管理接口对接
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
-<<<<<<< HEAD
|
|
|
|
import {
|
|
import {
|
|
computed,
|
|
computed,
|
|
defineComponent,
|
|
defineComponent,
|
|
@@ -52,12 +38,6 @@ import {
|
|
import ToolBar from "@/components/tool-bar/index.vue";
|
|
import ToolBar from "@/components/tool-bar/index.vue";
|
|
|
|
|
|
import useApp from "@/hooks/useApp";
|
|
import useApp from "@/hooks/useApp";
|
|
-=======
|
|
|
|
-import { defineComponent, onMounted, reactive, ref, toRefs } from "vue";
|
|
|
|
-
|
|
|
|
-import ToolBar from "@/components/tool-bar/index.vue";
|
|
|
|
-
|
|
|
|
->>>>>>> ✨ 公众号管理接口对接
|
|
|
|
import usePagination from "@/hooks/usePagination";
|
|
import usePagination from "@/hooks/usePagination";
|
|
|
|
|
|
import { TableColumnOfAccount } from "@/views/_pageOptions/table-account";
|
|
import { TableColumnOfAccount } from "@/views/_pageOptions/table-account";
|
|
@@ -70,16 +50,10 @@ const Account = defineComponent({
|
|
},
|
|
},
|
|
setup() {
|
|
setup() {
|
|
let { loading, meta, tablePageOptions } = usePagination();
|
|
let { loading, meta, tablePageOptions } = usePagination();
|
|
-<<<<<<< HEAD
|
|
|
|
const { store } = useApp();
|
|
const { store } = useApp();
|
|
|
|
|
|
const state = reactive({
|
|
const state = reactive({
|
|
platforms: computed(() => store.getters.platforms),
|
|
platforms: computed(() => store.getters.platforms),
|
|
-=======
|
|
|
|
-
|
|
|
|
- const state = reactive({
|
|
|
|
- platform: "platform1",
|
|
|
|
->>>>>>> ✨ 公众号管理接口对接
|
|
|
|
list: ref<IOfficials[]>([]),
|
|
list: ref<IOfficials[]>([]),
|
|
columns: TableColumnOfAccount,
|
|
columns: TableColumnOfAccount,
|
|
searching: false,
|
|
searching: false,
|
|
@@ -96,7 +70,6 @@ const Account = defineComponent({
|
|
onLoadOfficials();
|
|
onLoadOfficials();
|
|
};
|
|
};
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
|
const onLoadOfficials = (query?: { current: number }) => {
|
|
const onLoadOfficials = (query?: { current: number }) => {
|
|
let params = state.query;
|
|
let params = state.query;
|
|
if (query) params.page = query.current;
|
|
if (query) params.page = query.current;
|
|
@@ -104,13 +77,6 @@ const Account = defineComponent({
|
|
getOfficialAccounts(params).then(({ data }) => {
|
|
getOfficialAccounts(params).then(({ data }) => {
|
|
state.list = data.list;
|
|
state.list = data.list;
|
|
meta.value = data.meta;
|
|
meta.value = data.meta;
|
|
-=======
|
|
|
|
- const onLoadOfficials = () => {
|
|
|
|
- loading.value = true;
|
|
|
|
- getOfficialAccounts(state.query).then(({ data }) => {
|
|
|
|
- state.list = data.list;
|
|
|
|
- meta = data.meta;
|
|
|
|
->>>>>>> ✨ 公众号管理接口对接
|
|
|
|
loading.value = false;
|
|
loading.value = false;
|
|
state.searching = false;
|
|
state.searching = false;
|
|
});
|
|
});
|
|
@@ -118,7 +84,6 @@ const Account = defineComponent({
|
|
|
|
|
|
onMounted(onLoadOfficials);
|
|
onMounted(onLoadOfficials);
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
|
return {
|
|
return {
|
|
...toRefs(state),
|
|
...toRefs(state),
|
|
loading,
|
|
loading,
|
|
@@ -126,9 +91,6 @@ const Account = defineComponent({
|
|
onSearch,
|
|
onSearch,
|
|
onLoadOfficials,
|
|
onLoadOfficials,
|
|
};
|
|
};
|
|
-=======
|
|
|
|
- return { ...toRefs(state), loading, tablePageOptions, onSearch };
|
|
|
|
->>>>>>> ✨ 公众号管理接口对接
|
|
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
|