update
This commit is contained in:
@@ -4,6 +4,7 @@ import useTableQuery from "../../../../hooks/useTableQuery.js";
|
||||
import Api from "../../../../api/index.js";
|
||||
import Filter from "../../../../components/Filter/index.vue";
|
||||
import EditInfoModal from "./components/EditInfoModal.vue";
|
||||
import {copy} from "../../../../utils/index.js";
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@@ -144,7 +145,7 @@ const {loading, pagination, initFetchData, fetchData} = useTableQuery({
|
||||
<template v-slot:action="{record}">
|
||||
<div class="flex gap-[20px]">
|
||||
<EditInfoModal :id="record.id" @success="fetchData"></EditInfoModal>
|
||||
<a-link :hoverable="false">卡密</a-link>
|
||||
<a-link :hoverable="false" @click="copy(record.password)">卡密</a-link>
|
||||
</div>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
@@ -227,8 +227,14 @@ const changeStatus = async (record) => {
|
||||
}">沟通记录
|
||||
</a-link>
|
||||
<look-backfill-modal :item="record"></look-backfill-modal>
|
||||
<settlement :task="record" :disabled="record.is_settlement === 2"
|
||||
@success="fetchData"></settlement>
|
||||
<settlement :task="record" :disabled="!(record.is_settlement === 0 && record.children_status === 4)"
|
||||
@success="fetchData">
|
||||
<a-link :hoverable="false"
|
||||
:disabled="!(record.is_settlement === 0 && record.children_status === 4)"
|
||||
status="success">
|
||||
{{ record.settlement_text }}
|
||||
</a-link>
|
||||
</settlement>
|
||||
</div>
|
||||
</template>
|
||||
<template v-slot:why="{record}">
|
||||
|
||||
@@ -5,6 +5,7 @@ import OriginTag from "../../../../../components/OriginTag/index.vue";
|
||||
import Api from "../../../../../api/index.js";
|
||||
import {Message} from "@arco-design/web-vue";
|
||||
import {useSystemStore} from "../../../../../pinia/SystemStore/index.js";
|
||||
import {openUrl} from "../../../../../utils/index.js";
|
||||
|
||||
const SystemStore = useSystemStore();
|
||||
const columns = computed(() => {
|
||||
@@ -73,7 +74,26 @@ const passTask = async (id, task_backfill_id) => {
|
||||
:columns="columns">
|
||||
<template v-slot:backData="{record}">
|
||||
<div class="flex flex-col">
|
||||
<a-link v-for="v in record.back?.content_arr" :hoverable="false" :href="v">{{ v }}</a-link>
|
||||
<template v-if="record?.back?.material_type === 1">
|
||||
<div v-for="v in record?.back?.content_arr" class="!flex items-center gap-[12px]">
|
||||
<div class="flex-shrink-0">
|
||||
<a-image width="30" height="30" :src="v" fit="cover"></a-image>
|
||||
</div>
|
||||
<a-link @click="openUrl(v)" :hoverable="false">
|
||||
{{ v }}
|
||||
</a-link>
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="record?.back?.material_type === 2">
|
||||
<a-link v-for="v in record?.back?.content_arr" @click="openUrl(v)" :hoverable="false">
|
||||
{{ v }}
|
||||
</a-link>
|
||||
</template>
|
||||
<template v-if="record?.back?.material_type === 3">
|
||||
<div v-for="v in record?.back?.content_arr">
|
||||
{{ v }}
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -180,8 +180,13 @@ const {loading, pagination, initFetchData, fetchData} = useTableQuery({
|
||||
</a-badge>
|
||||
</template>
|
||||
<template v-slot:zfzt="{record}">
|
||||
<settlement :task="record" :disabled="record.is_settlement > 0"
|
||||
@success="fetchData"></settlement>
|
||||
<settlement :task="record" :disabled="!(record.is_settlement === 0 && record.status === 4)"
|
||||
@success="fetchData">
|
||||
<a-link :hoverable="false" :disabled="!(record.is_settlement === 0 && record.status === 4)"
|
||||
status="success">
|
||||
{{ record.settlement_text }}
|
||||
</a-link>
|
||||
</settlement>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import router from "../router/index.js";
|
||||
import {useSystemStore} from "../pinia/SystemStore/index.js";
|
||||
import {Message} from "@arco-design/web-vue";
|
||||
|
||||
export const toPath = (path, query = {}, flag = false) => {
|
||||
router.push({
|
||||
@@ -66,3 +67,11 @@ export const findSwappedIds = (original, swapped) => {
|
||||
|
||||
return [id1, id2];
|
||||
};
|
||||
|
||||
export const copy = (text) => {
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
Message.success('字符串已复制到剪贴板');
|
||||
}).catch(err => {
|
||||
Message.warning('复制失败');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user