修改附加费
This commit is contained in:
+16
-2
@@ -211,15 +211,29 @@ public class PriceSetController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("@ss.hasPermi('price:set:edit') or @ss.hasPermi('price:set:forceEdit')")
|
@PreAuthorize("@ss.hasPermi('price:set:edit') or @ss.hasPermi('price:set:forceEdit')")
|
||||||
@Log(title = "套餐明细", businessType = BusinessType.UPDATE)
|
@Log(title = "\u5957\u9910\u660e\u7ec6", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping("/detail")
|
@PutMapping("/detail")
|
||||||
public AjaxResult editDetail(@RequestBody PrcPriceSetDetail detail)
|
public AjaxResult editDetail(@RequestBody PrcPriceSetDetail detail)
|
||||||
{
|
{
|
||||||
return toAjax(priceSetService.updateDetail(detail));
|
return toAjax(priceSetService.updateDetail(detail));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Async batch write of detail surcharge snapshots. Returns taskId; poll /save/task/{taskId}.
|
||||||
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('price:set:edit') or @ss.hasPermi('price:set:forceEdit')")
|
@PreAuthorize("@ss.hasPermi('price:set:edit') or @ss.hasPermi('price:set:forceEdit')")
|
||||||
@Log(title = "套餐明细", businessType = BusinessType.DELETE)
|
@Log(title = "\u5957\u9910\u9644\u52a0\u8d39", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/detail/surcharge/async")
|
||||||
|
public AjaxResult batchSurchargeAsync(@RequestBody List<PrcPriceSetDetail> details)
|
||||||
|
{
|
||||||
|
String taskId = priceSetService.submitDetailSurchargeAsync(details);
|
||||||
|
Map<String, Object> payload = new HashMap<String, Object>();
|
||||||
|
payload.put("taskId", taskId);
|
||||||
|
return success(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('price:set:edit') or @ss.hasPermi('price:set:forceEdit')")
|
||||||
|
@Log(title = "\u5957\u9910\u660e\u7ec6", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/detail/{psdIds}")
|
@DeleteMapping("/detail/{psdIds}")
|
||||||
public AjaxResult removeDetail(@PathVariable Long[] psdIds)
|
public AjaxResult removeDetail(@PathVariable Long[] psdIds)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,6 +85,15 @@ public interface IPrcPriceSetService
|
|||||||
/** submit async save, return taskId immediately */
|
/** submit async save, return taskId immediately */
|
||||||
public String submitSaveAsync(PrcPriceSet set);
|
public String submitSaveAsync(PrcPriceSet set);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Submit async batch write of detail surcharge snapshots (product-level pick can hit many rows).
|
||||||
|
* @return taskId for polling getSaveTask
|
||||||
|
*/
|
||||||
|
public String submitDetailSurchargeAsync(List<PrcPriceSetDetail> details);
|
||||||
|
|
||||||
|
/** Sync batch update of detail surcharge snapshots */
|
||||||
|
public int batchUpdateDetailSurcharges(List<PrcPriceSetDetail> details);
|
||||||
|
|
||||||
/** poll async save progress */
|
/** poll async save progress */
|
||||||
public PrcPriceSetSaveTask getSaveTask(String taskId);
|
public PrcPriceSetSaveTask getSaveTask(String taskId);
|
||||||
}
|
}
|
||||||
|
|||||||
+33
@@ -125,6 +125,39 @@ public class PrcPriceSetServiceImpl implements IPrcPriceSetService
|
|||||||
return taskId;
|
return taskId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String submitDetailSurchargeAsync(List<PrcPriceSetDetail> details)
|
||||||
|
{
|
||||||
|
String taskId = IdUtils.fastSimpleUUID();
|
||||||
|
saveAsyncRunner.put(taskId, PrcPriceSetSaveTask.STATUS_PENDING, 0, "queued", null, null);
|
||||||
|
saveAsyncRunner.runSurchargeBatch(taskId, details);
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int batchUpdateDetailSurcharges(List<PrcPriceSetDetail> details)
|
||||||
|
{
|
||||||
|
if (details == null || details.isEmpty())
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
int rows = 0;
|
||||||
|
for (PrcPriceSetDetail detail : details)
|
||||||
|
{
|
||||||
|
if (detail == null || detail.getPsdId() == null)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// Always replace snapshot for this batch API (null would skip in updateDetail)
|
||||||
|
if (detail.getSurcharges() == null)
|
||||||
|
{
|
||||||
|
detail.setSurcharges(new ArrayList<PrcPriceSetVersionSurcharge>());
|
||||||
|
}
|
||||||
|
rows += updateDetail(detail);
|
||||||
|
}
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PrcPriceSetSaveTask getSaveTask(String taskId)
|
public PrcPriceSetSaveTask getSaveTask(String taskId)
|
||||||
{
|
{
|
||||||
|
|||||||
+25
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.price.task;
|
package com.ruoyi.price.task;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@@ -9,6 +10,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import com.ruoyi.common.core.redis.RedisCache;
|
import com.ruoyi.common.core.redis.RedisCache;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
import com.ruoyi.price.domain.PrcPriceSet;
|
import com.ruoyi.price.domain.PrcPriceSet;
|
||||||
|
import com.ruoyi.price.domain.PrcPriceSetDetail;
|
||||||
import com.ruoyi.price.domain.PrcPriceSetSaveTask;
|
import com.ruoyi.price.domain.PrcPriceSetSaveTask;
|
||||||
import com.ruoyi.price.service.IPrcPriceSetService;
|
import com.ruoyi.price.service.IPrcPriceSetService;
|
||||||
|
|
||||||
@@ -51,6 +53,29 @@ public class PrcPriceSetSaveAsyncRunner
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Background write of detail surcharge snapshots for many rows. */
|
||||||
|
@Async("threadPoolTaskExecutor")
|
||||||
|
public void runSurchargeBatch(String taskId, List<PrcPriceSetDetail> details)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
put(taskId, PrcPriceSetSaveTask.STATUS_RUNNING, 10, "saving surcharges", null, null);
|
||||||
|
int rows = priceSetService.batchUpdateDetailSurcharges(details);
|
||||||
|
put(taskId, PrcPriceSetSaveTask.STATUS_SUCCESS, 100, "done", null, null);
|
||||||
|
log.info("async surcharge batch done, taskId={}, rows={}", taskId, rows);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
log.error("async surcharge batch failed, taskId={}", taskId, e);
|
||||||
|
String msg = e.getMessage();
|
||||||
|
if (StringUtils.isEmpty(msg))
|
||||||
|
{
|
||||||
|
msg = e.getClass().getSimpleName();
|
||||||
|
}
|
||||||
|
put(taskId, PrcPriceSetSaveTask.STATUS_FAIL, 100, "failed", null, msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void put(String taskId, String status, int percent, String message, Long priceSetId, String error)
|
public void put(String taskId, String status, int percent, String message, Long priceSetId, String error)
|
||||||
{
|
{
|
||||||
PrcPriceSetSaveTask task = new PrcPriceSetSaveTask();
|
PrcPriceSetSaveTask task = new PrcPriceSetSaveTask();
|
||||||
|
|||||||
@@ -197,6 +197,41 @@ export function updateSetDetail(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Submit async batch write of detail surcharge snapshots and poll until done.
|
||||||
|
* @returns {Promise<{ task: object }>}
|
||||||
|
*/
|
||||||
|
export async function updateSetDetailSurchargeAsync(details, onProgress) {
|
||||||
|
const submitRes = await request({
|
||||||
|
url: '/price/set/detail/surcharge/async',
|
||||||
|
method: 'post',
|
||||||
|
data: details || []
|
||||||
|
})
|
||||||
|
const taskId = pickSaveTaskId(submitRes)
|
||||||
|
if (!taskId) {
|
||||||
|
throw new Error('missing surcharge taskId')
|
||||||
|
}
|
||||||
|
const started = Date.now()
|
||||||
|
const maxMs = 30 * 60 * 1000
|
||||||
|
while (Date.now() - started < maxMs) {
|
||||||
|
const res = await getPriceSetSaveTask(taskId)
|
||||||
|
const task = res.data || {}
|
||||||
|
if (typeof onProgress === 'function') {
|
||||||
|
onProgress(task)
|
||||||
|
}
|
||||||
|
if (task.status === 'SUCCESS') {
|
||||||
|
return { task }
|
||||||
|
}
|
||||||
|
if (task.status === 'FAIL') {
|
||||||
|
const err = new Error(task.error || task.message || 'surcharge save failed')
|
||||||
|
err.task = task
|
||||||
|
throw err
|
||||||
|
}
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 800))
|
||||||
|
}
|
||||||
|
throw new Error('surcharge save timeout')
|
||||||
|
}
|
||||||
|
|
||||||
export function delSetDetail(psdIds) {
|
export function delSetDetail(psdIds) {
|
||||||
return request({
|
return request({
|
||||||
url: '/price/set/detail/' + psdIds,
|
url: '/price/set/detail/' + psdIds,
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="colSurcharge" width="110" align="center">
|
<el-table-column :label="colSurcharge" width="110" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<surcharge-count-cell :list="row.surcharges || []" @click="pickSurcharge(row)" />
|
<surcharge-count-cell :list="row.surcharges || []" @remove="s => removeSurcharge(row, s)" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="colAction" width="90" align="center">
|
<el-table-column :label="colAction" width="90" align="center">
|
||||||
@@ -97,7 +97,7 @@ const props = defineProps({
|
|||||||
productName: { type: String, default: '' },
|
productName: { type: String, default: '' },
|
||||||
rows: { type: Array, default: () => [] }
|
rows: { type: Array, default: () => [] }
|
||||||
})
|
})
|
||||||
const emit = defineEmits(['update:modelValue', 'pick-surcharge', 'row-change'])
|
const emit = defineEmits(['update:modelValue', 'pick-surcharge', 'row-change', 'surcharge-change'])
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
|
|
||||||
@@ -187,6 +187,14 @@ function pickSurcharge(row) {
|
|||||||
emit('pick-surcharge', row || null)
|
emit('pick-surcharge', row || null)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeSurcharge(row, sc) {
|
||||||
|
if (!row || !sc || sc.scId == null) return
|
||||||
|
const scId = String(sc.scId)
|
||||||
|
const next = (row.surcharges || []).filter(s => s && String(s.scId) !== scId)
|
||||||
|
row.surcharges = next
|
||||||
|
emit('surcharge-change', row)
|
||||||
|
}
|
||||||
|
|
||||||
function countryKey(row) {
|
function countryKey(row) {
|
||||||
return String(row.countryCode || row.countryName || '').toUpperCase()
|
return String(row.countryCode || row.countryName || '').toUpperCase()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,11 +35,6 @@
|
|||||||
<dict-tag :options="bms_tax_mode" :value="row.taxMode" />
|
<dict-tag :options="bms_tax_mode" :value="row.taxMode" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column :label="colSurcharge" width="110" align="center">
|
|
||||||
<template #default="{ row }">
|
|
||||||
<surcharge-count-cell :list="productSurcharges(row)" @click="openSurcharge(row)" />
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column :label="colAction" width="220" align="center" fixed="right">
|
<el-table-column :label="colAction" width="220" align="center" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button link type="primary" @click="openPrice(row)">编辑价格</el-button>
|
<el-button link type="primary" @click="openPrice(row)">编辑价格</el-button>
|
||||||
@@ -76,6 +71,7 @@
|
|||||||
:product-name="editName"
|
:product-name="editName"
|
||||||
:rows="editRows"
|
:rows="editRows"
|
||||||
@row-change="onRowPriceChange"
|
@row-change="onRowPriceChange"
|
||||||
|
@surcharge-change="onRowSurchargeChange"
|
||||||
@pick-surcharge="openSurchargeFromDrawer"
|
@pick-surcharge="openSurchargeFromDrawer"
|
||||||
/>
|
/>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -83,7 +79,6 @@
|
|||||||
|
|
||||||
<script setup name="StepDetails">
|
<script setup name="StepDetails">
|
||||||
import PriceEditDrawer from './PriceEditDrawer.vue'
|
import PriceEditDrawer from './PriceEditDrawer.vue'
|
||||||
import SurchargeCountCell from './SurchargeCountCell.vue'
|
|
||||||
import SurchargePickerDialog from './SurchargePickerDialog.vue'
|
import SurchargePickerDialog from './SurchargePickerDialog.vue'
|
||||||
import { useDetailCascade } from '../../composables/usePriceSetRefData'
|
import { useDetailCascade } from '../../composables/usePriceSetRefData'
|
||||||
import {
|
import {
|
||||||
@@ -95,7 +90,7 @@ import {
|
|||||||
surchargeAppliesToRow,
|
surchargeAppliesToRow,
|
||||||
toDetailPayload
|
toDetailPayload
|
||||||
} from '../../utils/priceSet'
|
} from '../../utils/priceSet'
|
||||||
import { updateSetDetail, delSetDetail } from '@/api/price/set'
|
import { updateSetDetail, updateSetDetailSurchargeAsync, delSetDetail } from '@/api/price/set'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
details: { type: Array, required: true },
|
details: { type: Array, required: true },
|
||||||
@@ -120,7 +115,6 @@ const colLevel = '时效等级'
|
|||||||
const colCargo = '走货属性'
|
const colCargo = '走货属性'
|
||||||
const colRegion = '目的区域'
|
const colRegion = '目的区域'
|
||||||
// const colTax = '税模式'
|
// const colTax = '税模式'
|
||||||
const colSurcharge = '附加费'
|
|
||||||
const colAction = '操作'
|
const colAction = '操作'
|
||||||
const colDiscount = '产品折扣'
|
const colDiscount = '产品折扣'
|
||||||
|
|
||||||
@@ -181,21 +175,6 @@ const pulling = ref(false)
|
|||||||
|
|
||||||
function noop() {}
|
function noop() {}
|
||||||
|
|
||||||
/** 该产品所有明细行附加费的并集(按 scId 去重),列表列展示用 */
|
|
||||||
function productSurcharges(row) {
|
|
||||||
const seen = new Set()
|
|
||||||
const list = []
|
|
||||||
;((row && row.rows) || []).forEach(r => {
|
|
||||||
(r.surcharges || []).forEach(s => {
|
|
||||||
const key = s && s.scId != null ? String(s.scId) : (s && s.scName)
|
|
||||||
if (!key || seen.has(key)) return
|
|
||||||
seen.add(key)
|
|
||||||
list.push(s)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
return list
|
|
||||||
}
|
|
||||||
|
|
||||||
/** enter step 3: pull all library products + country prices (skip already added) */
|
/** enter step 3: pull all library products + country prices (skip already added) */
|
||||||
async function pullAllFromLibrary(opts = {}) {
|
async function pullAllFromLibrary(opts = {}) {
|
||||||
const silent = !!opts.silent
|
const silent = !!opts.silent
|
||||||
@@ -320,6 +299,17 @@ async function persistDetail(row, withSurcharge) {
|
|||||||
await updateSetDetail(payload)
|
await updateSetDetail(payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** drawer hover remove surcharge -> write snapshot for this row */
|
||||||
|
async function onRowSurchargeChange(row) {
|
||||||
|
if (!row || !row.psdId) return
|
||||||
|
try {
|
||||||
|
await persistDetail(row, true)
|
||||||
|
proxy.$modal.msgSuccess('附加费已移除')
|
||||||
|
} catch (e) {
|
||||||
|
proxy.$modal.msgError((e && e.message) ? e.message : '附加费移除失败')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** drawer field change -> immediate DB update */
|
/** drawer field change -> immediate DB update */
|
||||||
async function onRowPriceChange(row) {
|
async function onRowPriceChange(row) {
|
||||||
if (!row || !row.psdId) return
|
if (!row || !row.psdId) return
|
||||||
@@ -470,17 +460,25 @@ function onSurchargeConfirm(picked) {
|
|||||||
proxy.$modal.msgWarning('已勾选但未生效:这些附加费配置了适用国家/重量段,与当前明细行不匹配')
|
proxy.$modal.msgWarning('已勾选但未生效:这些附加费配置了适用国家/重量段,与当前明细行不匹配')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (skipped > 0) {
|
const okText = ids.size
|
||||||
Promise.all(targets.filter(r => r.psdId).map(r => persistDetail(r, true))).finally(() => {
|
? (skipped > 0
|
||||||
proxy.$modal.msgWarning(`已纳入 ${applied} 项附加费${scopeText};${skipped} 项因适用国家不匹配被跳过(已写库)`)
|
? `已纳入 ${applied} 项附加费${scopeText};${skipped} 项因适用国家不匹配被跳过`
|
||||||
})
|
: `已纳入 ${ids.size} 项附加费${scopeText}`)
|
||||||
|
: `已清空附加费${scopeText}`
|
||||||
|
const payload = targets.filter(r => r.psdId).map(r => toDetailPayload(r)).map(p => {
|
||||||
|
p.priceSetId = props.priceSetId
|
||||||
|
return p
|
||||||
|
})
|
||||||
|
scVisible.value = false
|
||||||
|
if (!payload.length) {
|
||||||
|
proxy.$modal.msgSuccess(okText)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const okText = ids.size ? `已纳入 ${ids.size} 项附加费${scopeText}` : `已清空附加费${scopeText}`
|
proxy.$modal.msgSuccess(okText + ',正在后台写入…')
|
||||||
Promise.all(targets.filter(r => r.psdId).map(r => persistDetail(r, true))).then(() => {
|
updateSetDetailSurchargeAsync(payload).then(() => {
|
||||||
proxy.$modal.msgSuccess(okText + ',已写入数据库')
|
proxy.$modal.msgSuccess(okText + ',已写入数据库')
|
||||||
}).catch(() => {
|
}).catch(e => {
|
||||||
proxy.$modal.msgSuccess(okText)
|
proxy.$modal.msgError((e && e.message) ? e.message : '附加费后台写入失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,38 +5,49 @@
|
|||||||
placement="top"
|
placement="top"
|
||||||
:width="380"
|
:width="380"
|
||||||
trigger="hover"
|
trigger="hover"
|
||||||
|
:hide-after="120"
|
||||||
>
|
>
|
||||||
<template #default>
|
<template #default>
|
||||||
<div class="sc-count__pop-title">已纳入 {{ list.length }} 项附加费</div>
|
<div class="sc-count__pop-title">已纳入 {{ list.length }} 项附加费</div>
|
||||||
<surcharge-tags :list="list" :popover="false" empty-text="-" />
|
<div class="sc-count__tags">
|
||||||
|
<el-tag
|
||||||
|
v-for="s in list"
|
||||||
|
:key="s.relId || s.scId || s.scName"
|
||||||
|
size="small"
|
||||||
|
type="danger"
|
||||||
|
effect="plain"
|
||||||
|
closable
|
||||||
|
@click.stop
|
||||||
|
@close="onRemove(s)"
|
||||||
|
>{{ surchargeTagLabel(s) }}</el-tag>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-link type="primary" :underline="false" @click="emit('click')">
|
<span class="sc-count__text">{{ list.length }} 项</span>
|
||||||
{{ list.length }} 项
|
|
||||||
</el-link>
|
|
||||||
</template>
|
</template>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<el-link v-else type="info" :underline="false" @click="emit('click')">0</el-link>
|
<span v-else class="sc-count__text is-empty">0</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="SurchargeCountCell">
|
<script setup name="SurchargeCountCell">
|
||||||
/**
|
/**
|
||||||
* 套餐 · 附加费数量单元格(新建第 3 步产品列表 / 价格编辑抽屉共用)
|
* Hover shows included surcharges; closable tag removes one item from the row.
|
||||||
*
|
|
||||||
* 显示当前数量(默认 0);hover 气泡看具体是哪几项,点击进入勾选弹窗调整。
|
|
||||||
*/
|
*/
|
||||||
import SurchargeTags from '../SurchargeTags.vue'
|
import { surchargeTagLabel } from '../../utils/priceSet'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
/** 该行 / 该产品当前纳入的附加费列表 */
|
|
||||||
list: {
|
list: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => []
|
default: () => []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['click'])
|
const emit = defineEmits(['remove'])
|
||||||
|
|
||||||
|
function onRemove(s) {
|
||||||
|
emit('remove', s)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -45,10 +56,23 @@ const emit = defineEmits(['click'])
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
.sc-count__text {
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
cursor: default;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.sc-count__text.is-empty {
|
||||||
|
color: var(--el-text-color-secondary);
|
||||||
|
}
|
||||||
.sc-count__pop-title {
|
.sc-count__pop-title {
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #606266;
|
color: #606266;
|
||||||
}
|
}
|
||||||
|
.sc-count__tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user