|
@@ -1,134 +1,72 @@
|
|
|
<template>
|
|
|
<div class="business-publish-todo-container layout-padding">
|
|
|
<div class="layout-padding-auto layout-padding-view pd20">
|
|
|
- <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
- <el-form-item label="数据范围" prop="QuerySelf" v-auth="'business:publish:todo:querySelf'">
|
|
|
- <el-segmented
|
|
|
- :options="[
|
|
|
- { label: '我的', value: 'true' },
|
|
|
- { label: '全部', value: 'false' },
|
|
|
- ]"
|
|
|
- v-model="state.queryParams.QuerySelf"
|
|
|
- @change="handleQuery"
|
|
|
- :disabled="state.loading"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="省市工单" prop="fastSearch">
|
|
|
- <el-segmented
|
|
|
- :options="fastSearchOptions"
|
|
|
- v-model="fastSearch"
|
|
|
- @change="fastSearchChange"
|
|
|
- :disabled="state.loading"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="工单标题" prop="Title">
|
|
|
- <el-input v-model.trim="state.queryParams.Title" placeholder="工单标题" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="工单编码" prop="No">
|
|
|
- <el-input v-model.trim="state.queryParams.No" placeholder="工单编码" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
- <el-button @click="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <vxe-toolbar
|
|
|
- ref="toolbarRef"
|
|
|
- :loading="state.loading"
|
|
|
- custom
|
|
|
- :refresh="{
|
|
|
- queryMethod: handleQuery,
|
|
|
- }"
|
|
|
- >
|
|
|
- <template #buttons>
|
|
|
+ <vxe-grid v-bind="gridOptions" ref="gridRef" @checkbox-all="selectAllChangeEvent" @checkbox-change="selectChangeEvent">
|
|
|
+ <template #form>
|
|
|
+ <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline :disabled="gridOptions.loading">
|
|
|
+ <el-form-item label="数据范围" prop="QuerySelf" v-auth="'business:publish:todo:querySelf'">
|
|
|
+ <el-segmented
|
|
|
+ :options="[
|
|
|
+ { label: '我的', value: true },
|
|
|
+ { label: '全部', value: false },
|
|
|
+ ]"
|
|
|
+ v-model="state.queryParams.QuerySelf"
|
|
|
+ @change="handleQuery"
|
|
|
+ :disabled="state.loading"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="省市工单" prop="fastSearch">
|
|
|
+ <el-segmented :options="fastSearchOptions" v-model="fastSearch" @change="fastSearchChange" :disabled="state.loading" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="工单标题" prop="Title">
|
|
|
+ <el-input v-model.trim="state.queryParams.Title" placeholder="工单标题" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="工单编码" prop="No">
|
|
|
+ <el-input v-model.trim="state.queryParams.No" placeholder="工单编码" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
+ <el-button @click="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ <template #toolbar_buttons>
|
|
|
<el-button type="primary" @click="onJbExport" :loading="state.loading" :disabled="isChecked"
|
|
|
- ><SvgIcon name="iconfont icon-daochu" class="mr5" />交办单导出<span v-if="checkTable.length">({{checkTable.length}})</span>
|
|
|
+ ><SvgIcon name="iconfont icon-daochu" class="mr5" />交办单导出<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
</el-button>
|
|
|
<el-button type="primary" @click="publishMultiple" v-auth="'business:publish:todo:multiple'" :disabled="isChecked">
|
|
|
- <SvgIcon name="iconfont icon-tianjiawenjian" class="mr5" />批量发布<span v-if="checkTable.length">({{checkTable.length}})</span>
|
|
|
+ <SvgIcon name="iconfont icon-tianjiawenjian" class="mr5" />批量发布<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
</el-button>
|
|
|
<el-button type="primary" @click="onMigration" v-auth="'business:publish:todo:migration'" :disabled="isChecked">
|
|
|
- <SvgIcon name="ele-Rank" class="mr5" />平级移动<span v-if="checkTable.length">({{checkTable.length}})</span>
|
|
|
+ <SvgIcon name="ele-Rank" class="mr5" />平级移动<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
</el-button>
|
|
|
</template>
|
|
|
- </vxe-toolbar>
|
|
|
- <div style="overflow: hidden; width: 100%; height: 100%; flex: 1">
|
|
|
- <vxe-table
|
|
|
- border
|
|
|
- :loading="state.loading"
|
|
|
- :data="state.tableData"
|
|
|
- :column-config="{ resizable: true }"
|
|
|
- :row-config="{ isCurrent: true, isHover: true, height: 30, useKey: true }"
|
|
|
- ref="tableRef"
|
|
|
- @checkbox-all="selectAllChangeEvent"
|
|
|
- @checkbox-change="selectChangeEvent"
|
|
|
- height="auto"
|
|
|
- auto-resize
|
|
|
- show-overflow
|
|
|
- :scrollY="{ enabled: true, gt: 100 }"
|
|
|
- id="businessPublishTodo"
|
|
|
- :custom-config="{ storage: true }"
|
|
|
- >
|
|
|
- <vxe-column type="checkbox" width="60" align="center"></vxe-column>
|
|
|
- <vxe-column field="expiredStatusText" title="超期状态" width="90" align="center">
|
|
|
- <template #default="{ row }">
|
|
|
- <span :class="'overdue-status-' + row.expiredStatus" :title="row.expiredStatusText"></span>
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- <vxe-column field="no" title="工单编码" width="140"></vxe-column>
|
|
|
- <vxe-column field="isProvinceText" title="省/市工单" width="100"></vxe-column>
|
|
|
- <vxe-column field="statusText" title="工单状态" width="100">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-text type="danger" tag="b" v-if="[1, 2, 3, 9, 101, 102, 103, 104, 105, 200].includes(row.status)">{{ row.statusText }}</el-text>
|
|
|
- <span v-else>{{ row.statusText }}</span>
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- <vxe-column field="title" title="工单标题" width="200">
|
|
|
- <template #default="{ row }">
|
|
|
- <order-detail :order="row" @updateList="queryList(true)">{{ row.title }}</order-detail>
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- <vxe-column field="sourceChannel" title="来源渠道" width="100"></vxe-column>
|
|
|
- <vxe-column field="acceptType" title="受理类型" width="100"></vxe-column>
|
|
|
- <vxe-column field="counterSignTypeText" title="是否会签" width="90"></vxe-column>
|
|
|
- <vxe-column field="actualHandleOrgName" title="接办部门" width="140"></vxe-column>
|
|
|
- <vxe-column field="hotspotName" title="热点分类" width="140"></vxe-column>
|
|
|
- <vxe-column field="acceptorName" title="受理人" width="120"></vxe-column>
|
|
|
- <vxe-column field="actualHandleTime" title="接办时间" width="160">
|
|
|
- <template #default="{ row }">
|
|
|
- {{ formatDate(row.actualHandleTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- <vxe-column field="startTime" title="受理时间" width="160">
|
|
|
- <template #default="{ row }">
|
|
|
- {{ formatDate(row.startTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- <vxe-column field="filedTime" title="办结时间" width="160">
|
|
|
- <template #default="{ row }">
|
|
|
- {{ formatDate(row.filedTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- <vxe-column title="操作" fixed="right" width="90" align="center">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-button link type="primary" @click="publish(row)" title="发布工单" v-auth="'business:publish:todo:publish'"> 发布 </el-button>
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- </vxe-table>
|
|
|
- </div>
|
|
|
- <div class="flex-end" style="align-items: center">
|
|
|
- <span v-loading="totalLoading" class="mr10">共 {{ totalCount }} 条</span>
|
|
|
- <!-- sizes-->
|
|
|
- <el-pagination
|
|
|
- layout="prev, pager, next"
|
|
|
- :total="state.total"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :page-size="state.queryParams.PageSize"
|
|
|
- :current-page="state.queryParams.PageIndex"
|
|
|
- @size-change="handleSizeChange"
|
|
|
- :disabled="state.loading"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <template #statusText="{ row }">
|
|
|
+ <el-text type="danger" tag="b" v-if="[1, 2, 3, 9, 101, 102, 103, 104, 105, 200].includes(row.status)">{{ row.statusText }}</el-text>
|
|
|
+ <span v-else>{{ row.statusText }}</span>
|
|
|
+ </template>
|
|
|
+ <template #order_detail="{ row }">
|
|
|
+ <order-detail :order="row" @updateList="queryList(true)">{{ row.title }}</order-detail>
|
|
|
+ </template>
|
|
|
+ <template #action="{ row }">
|
|
|
+ <el-button link type="primary" @click="publish(row)" title="发布工单" v-auth="'business:publish:todo:publish'"> 发布 </el-button>
|
|
|
+ </template>
|
|
|
+ <template #pager>
|
|
|
+ <div class="flex-end" style="align-items: center">
|
|
|
+ <span v-loading="totalLoading" class="mr10">共 {{ totalCount }} 条</span>
|
|
|
+ <!-- sizes-->
|
|
|
+ <el-pagination
|
|
|
+ layout="prev, pager, next"
|
|
|
+ :total="state.total"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :page-size="state.queryParams.PageSize"
|
|
|
+ :current-page="state.queryParams.PageIndex"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ :disabled="state.loading"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </vxe-grid>
|
|
|
</div>
|
|
|
<!-- 工单发布详情 -->
|
|
|
<order-publish ref="orderPublishRef" @updateList="queryList(true)" />
|
|
@@ -163,11 +101,20 @@
|
|
|
:default-time="defaultTimeStartEnd"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="来电主体" prop="IdentityType">
|
|
|
+ <el-select v-model="state.queryParams.IdentityType" placeholder="请选择来电主体" clearable @change="handleQuery">
|
|
|
+ <el-option :value="1" label="市民" />
|
|
|
+ <el-option :value="2" label="企业" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="来电号码" prop="FromPhone">
|
|
|
<el-input v-model.trim="state.queryParams.FromPhone" placeholder="来电号码" clearable @keyup.enter="handleQuery" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="一级部门" prop="OrgLevelOneName">
|
|
|
+ <el-input v-model="state.queryParams.OrgLevelOneName" placeholder="一级部门" clearable @keyup.enter="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="接办部门" prop="ActualHandleOrgName">
|
|
|
- <el-input v-model="state.queryParams.ActualHandleOrgName" placeholder="请填写接办部门名称" clearable @keyup.enter="handleQuery" />
|
|
|
+ <el-input v-model="state.queryParams.ActualHandleOrgName" placeholder="接办部门" clearable @keyup.enter="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="受理类型" prop="AcceptType">
|
|
|
<el-select v-model="state.queryParams.AcceptType" placeholder="请选择受理类型" clearable @change="handleQuery">
|
|
@@ -231,8 +178,7 @@
|
|
|
<script setup lang="tsx" name="businessPublishTodo">
|
|
|
import { computed, defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
|
|
|
-import { formatDate } from '@/utils/formatTime';
|
|
|
-import { batchPublishOrder, publishBaseInfo, publishListFixed, publishListFixedCount } from '@/api/todo/publish';
|
|
|
+import { batchPublishOrder, publishBaseInfo, publishListExport, publishListFixed, publishListFixedCount } from '@/api/todo/publish';
|
|
|
import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
import { useThemeConfig } from '@/stores/themeConfig';
|
|
|
import { storeToRefs } from 'pinia';
|
|
@@ -257,7 +203,7 @@ const state = reactive<any>({
|
|
|
FiledType: null, // 归档类型
|
|
|
IsCountersign: null, // 是否会签
|
|
|
Keyword: null, // 标题
|
|
|
- QuerySelf: 'true', // 是否只查询自己的待发布工单
|
|
|
+ QuerySelf: true, // 是否只查询自己的待发布工单
|
|
|
IsProvinceOrder: null, // 是否省工单
|
|
|
Channel: null,
|
|
|
slTime: [],
|
|
@@ -266,11 +212,112 @@ const state = reactive<any>({
|
|
|
bjTime: [],
|
|
|
FiledTimeStart: null,
|
|
|
FiledTimeEnd: null,
|
|
|
+ IdentityType:null,
|
|
|
+ FromPhone:null,
|
|
|
+ OrgLevelOneName:null,
|
|
|
+ ActualHandleOrgName:null,
|
|
|
},
|
|
|
tableData: [], //表单
|
|
|
loading: false, // 加载
|
|
|
total: 0, // 总数
|
|
|
});
|
|
|
+
|
|
|
+const requestParams = ref<EmptyObjectType>({});
|
|
|
+const gridOptions = reactive<any>({
|
|
|
+ loading: false,
|
|
|
+ border: true,
|
|
|
+ showOverflow: true,
|
|
|
+ columnConfig: {
|
|
|
+ resizable: true,
|
|
|
+ },
|
|
|
+ scrollY: {
|
|
|
+ enabled: true,
|
|
|
+ gt: 100,
|
|
|
+ },
|
|
|
+ toolbarConfig: {
|
|
|
+ zoom: true,
|
|
|
+ custom: true,
|
|
|
+ refresh: {
|
|
|
+ queryMethod: () => {
|
|
|
+ handleQuery();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ tools: [{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }],
|
|
|
+ slots: {
|
|
|
+ buttons: 'toolbar_buttons',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ customConfig: {
|
|
|
+ storage: true,
|
|
|
+ },
|
|
|
+ id: 'businessPublishTodo',
|
|
|
+ rowConfig: { isHover: true, height: 30, isCurrent: true, useKey: true },
|
|
|
+ height: 'auto',
|
|
|
+ columns: [
|
|
|
+ { type: 'checkbox', width: 50, align: 'center' },
|
|
|
+ {
|
|
|
+ field: 'expiredStatusText',
|
|
|
+ title: '状态',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ slots: {
|
|
|
+ default: ({ row }) => {
|
|
|
+ return <span class={'overdue-status-' + row.expiredStatus} title={row.expiredStatusText}></span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { field: 'no', title: '工单编码', width: 140 },
|
|
|
+ { field: 'isProvinceText', title: '省/市工单', width: 90 },
|
|
|
+ {
|
|
|
+ field: 'statusText',
|
|
|
+ title: '工单状态',
|
|
|
+ width: 110,
|
|
|
+ slots: {
|
|
|
+ default: 'statusText',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'title',
|
|
|
+ title: '工单标题',
|
|
|
+ minWidth: 200,
|
|
|
+ slots: { default: 'order_detail' },
|
|
|
+ },
|
|
|
+ { field: 'sourceChannel', title: '来源渠道', width: 110 },
|
|
|
+ { field: 'acceptType', title: '受理类型', width: 110 },
|
|
|
+ { field: 'counterSignTypeText', title: '是否会签', width: 90 },
|
|
|
+ { field: 'actualHandleOrgName', title: '接办部门', width: 140 },
|
|
|
+ { field: 'hotspotName', title: '热点分类', width: 150 },
|
|
|
+ { field: 'acceptorName', title: '受理人', width: 120 },
|
|
|
+ {
|
|
|
+ field: 'actualHandleTime',
|
|
|
+ title: '接办时间',
|
|
|
+ width: 160,
|
|
|
+ formatter: 'formatDate',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'startTime',
|
|
|
+ title: '受理时间',
|
|
|
+ width: 160,
|
|
|
+ formatter: 'formatDate',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'filedTime',
|
|
|
+ title: '办结时间',
|
|
|
+ width: 160,
|
|
|
+ formatter: 'formatDate',
|
|
|
+ },
|
|
|
+ { title: '操作', width: 90, fixed: 'right', align: 'center', slots: { default: 'action' } },
|
|
|
+ ],
|
|
|
+ data: [],
|
|
|
+ params: {
|
|
|
+ exportMethod: publishListExport,
|
|
|
+ exportParams: requestParams,
|
|
|
+ },
|
|
|
+ sortConfig: {
|
|
|
+ remote: true,
|
|
|
+ },
|
|
|
+});
|
|
|
+
|
|
|
const fastSearchOptions = ref([
|
|
|
{
|
|
|
value: 'all',
|
|
@@ -286,15 +333,17 @@ const fastSearchOptions = ref([
|
|
|
},
|
|
|
]);
|
|
|
const fastSearch = ref('all'); // tab位置
|
|
|
-if(themeConfig.value.appScope === 'LuZhou'){
|
|
|
- fastSearchOptions.value = [{
|
|
|
- value: 'city',
|
|
|
- label: '市工单',
|
|
|
- },
|
|
|
+if (themeConfig.value.appScope === 'LuZhou') {
|
|
|
+ fastSearchOptions.value = [
|
|
|
+ {
|
|
|
+ value: 'city',
|
|
|
+ label: '市工单',
|
|
|
+ },
|
|
|
{
|
|
|
value: 'province',
|
|
|
label: '省工单',
|
|
|
- },]
|
|
|
+ },
|
|
|
+ ];
|
|
|
fastSearch.value = 'city';
|
|
|
state.queryParams.IsProvinceOrder = false;
|
|
|
}
|
|
@@ -342,12 +391,12 @@ const handleSizeChange = (val: any) => {
|
|
|
}
|
|
|
};
|
|
|
/** 获取列表 */
|
|
|
-const requestParams = ref<EmptyObjectType>({});
|
|
|
const totalCount = ref(0);
|
|
|
const totalLoading = ref(false);
|
|
|
const queryList = (isQuery: boolean = false) => {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
state.loading = true;
|
|
|
+ gridOptions.loading = true;
|
|
|
requestParams.value = Other.deepClone(state.queryParams);
|
|
|
requestParams.value.CreationTimeStart = state.queryParams.slTime === null ? null : state.queryParams.slTime[0]; // 受理时间
|
|
|
requestParams.value.CreationTimeEnd = state.queryParams.slTime === null ? null : state.queryParams.slTime[1];
|
|
@@ -356,7 +405,7 @@ const queryList = (isQuery: boolean = false) => {
|
|
|
requestParams.value.FiledTimeEnd = state.queryParams.bjTime === null ? null : state.queryParams.bjTime[1];
|
|
|
Reflect.deleteProperty(requestParams.value, 'bjTime'); // 删除无用的参数
|
|
|
requestParams.value.QueryIndex = queryIndex.value; // 数据批次
|
|
|
- if(isQuery) requestParams.value.QueryIndex = 0;
|
|
|
+ if (isQuery) requestParams.value.QueryIndex = 0;
|
|
|
publishListFixed(requestParams.value)
|
|
|
.then((res: any) => {
|
|
|
if (isQuery) {
|
|
@@ -365,15 +414,18 @@ const queryList = (isQuery: boolean = false) => {
|
|
|
totalTable.value = res?.result;
|
|
|
state.total = totalTable.value.length;
|
|
|
state.tableData = getNeedArr(totalTable.value, state.queryParams.PageSize)[state.queryParams.PageIndex - 1]; //当前页的表格数据
|
|
|
+ gridOptions.data = state.tableData;
|
|
|
queryIndex.value = 1; // 请求完成之后,页码加一避免重复
|
|
|
} else {
|
|
|
if (res?.result.length) queryIndex.value++;
|
|
|
totalTable.value = totalTable.value.concat(res?.result);
|
|
|
state.total = totalTable.value.length;
|
|
|
state.tableData = getNeedArr(totalTable.value, state.queryParams.PageSize)[state.queryParams.PageIndex - 1]; //当前页的表格数据
|
|
|
+ gridOptions.data = state.tableData;
|
|
|
}
|
|
|
state.loading = false;
|
|
|
- tableRef.value.clearCheckboxRow();
|
|
|
+ gridOptions.loading = false;
|
|
|
+ gridRef.value.clearCheckboxRow();
|
|
|
checkTable.value = [];
|
|
|
resolve(res);
|
|
|
})
|
|
@@ -391,7 +443,8 @@ const queryList = (isQuery: boolean = false) => {
|
|
|
.catch(() => {
|
|
|
state.loading = false;
|
|
|
totalLoading.value = false;
|
|
|
- tableRef.value.clearCheckboxRow();
|
|
|
+ gridOptions.loading = false;
|
|
|
+ gridRef.value.clearCheckboxRow();
|
|
|
checkTable.value = [];
|
|
|
reject();
|
|
|
});
|
|
@@ -404,11 +457,11 @@ const drawer = ref(false);
|
|
|
const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
if (!formEl) return;
|
|
|
formEl.resetFields();
|
|
|
- state.queryParams.QuerySelf = 'true';
|
|
|
+ state.queryParams.QuerySelf = true;
|
|
|
ruleFormRef.value?.resetFields();
|
|
|
state.queryParams.IsProvinceOrder = null;
|
|
|
fastSearch.value = 'all';
|
|
|
- queryList();
|
|
|
+ queryList(true);
|
|
|
};
|
|
|
// 批量发布
|
|
|
const publishMultiple = () => {
|
|
@@ -465,19 +518,19 @@ const onJbExport = () => {
|
|
|
const ids = checkTable.value.map((item: any) => item.id);
|
|
|
exportAssignment(ids);
|
|
|
};
|
|
|
-const tableRef = ref<RefType>();
|
|
|
const checkTable = ref<EmptyArrayType>([]);
|
|
|
+const gridRef = ref<RefType>();
|
|
|
const selectAllChangeEvent = ({ checked }) => {
|
|
|
- if (tableRef.value) {
|
|
|
- const records = tableRef.value.getCheckboxRecords();
|
|
|
+ if (gridRef.value) {
|
|
|
+ const records = gridRef.value.getCheckboxRecords();
|
|
|
checkTable.value = records;
|
|
|
console.log(checked ? '所有勾选事件' : '所有取消事件', records);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const selectChangeEvent = ({ checked }) => {
|
|
|
- if (tableRef.value) {
|
|
|
- const records = tableRef.value.getCheckboxRecords();
|
|
|
+ if (gridRef.value) {
|
|
|
+ const records = gridRef.value.getCheckboxRecords();
|
|
|
checkTable.value = records;
|
|
|
console.log(checked ? '勾选事件' : '取消事件', records);
|
|
|
}
|
|
@@ -485,13 +538,9 @@ const selectChangeEvent = ({ checked }) => {
|
|
|
const isChecked = computed(() => {
|
|
|
return !Boolean(checkTable.value.length);
|
|
|
});
|
|
|
-const toolbarRef = ref<RefType>();
|
|
|
onMounted(() => {
|
|
|
queryList().then(() => {
|
|
|
getBaseInfo();
|
|
|
});
|
|
|
- if (tableRef.value && toolbarRef.value) {
|
|
|
- tableRef.value.connect(toolbarRef.value);
|
|
|
- }
|
|
|
});
|
|
|
</script>
|