|
@@ -39,9 +39,9 @@
|
|
|
<el-button type="primary" @click="onObserve" v-auth="'snapshot:allOrder:follow'" :disabled="isChecked" :loading="state.loading"
|
|
|
>添加关注<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
</el-button>
|
|
|
- <!-- <el-button type="primary" @click="onKeynote" v-auth="'snapshot:allOrder:keynote'" :disabled="isChecked" :loading="state.loading"
|
|
|
+ <el-button type="primary" @click="onKeynote" v-auth="'snapshot:allOrder:keynote'" :disabled="isChecked" :loading="state.loading"
|
|
|
>设置重点<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
- </el-button>-->
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
<template #statusTxt="{ row }">
|
|
|
<el-text type="danger" tag="b" v-if="[1, 2, 3, 9, 101, 102, 103, 104, 105, 200].includes(row.status)">{{ row.statusTxt }}</el-text>
|
|
@@ -205,7 +205,7 @@ import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
import { addObserve } from '@/api/query/observe';
|
|
|
import { exportAssignment } from '@/utils/tools';
|
|
|
import Other from '@/utils/other';
|
|
|
-import { getSSPAllBaseData, getSSPAllOrder, getSSPAllOrderExport } from '@/api/snapshot/statistics';
|
|
|
+import { getSSPAllBaseData, getSSPAllOrder, getSSPAllOrderExport, setImportant } from '@/api/snapshot/statistics';
|
|
|
|
|
|
// 引入组件
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
@@ -217,7 +217,7 @@ const state = reactive<any>({
|
|
|
PageSize: 20, // 每页条数
|
|
|
// 查询条件
|
|
|
No: null, // 工单编码
|
|
|
- Title:null,// 工单标题
|
|
|
+ Title: null, // 工单标题
|
|
|
ProvinceNo: null, // 省本地编码
|
|
|
ActualHandlerName: null, // 接办人
|
|
|
IsScreen: null, // 是否甄别
|
|
@@ -515,11 +515,7 @@ const onObserve = () => {
|
|
|
};
|
|
|
// 设置重点
|
|
|
const onKeynote = () => {
|
|
|
- const ids = checkTable.value.map((item: any) => {
|
|
|
- return {
|
|
|
- orderId: item.id,
|
|
|
- };
|
|
|
- });
|
|
|
+ const ids = checkTable.value.map((item: any) => item.id);
|
|
|
ElMessageBox.confirm(`您确定选中的工单设置重点吗?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -528,7 +524,7 @@ const onKeynote = () => {
|
|
|
autofocus: false,
|
|
|
})
|
|
|
.then(() => {
|
|
|
- addObserve({ orderIds: ids }).then(() => {
|
|
|
+ setImportant({ ids }).then(() => {
|
|
|
ElMessage.success('已设置重点');
|
|
|
queryList();
|
|
|
});
|