wujingjing
2025-03-06 0b778a1d9109f0de9c75e7554c7e30f2cd015ae3
缓存 替换词
已修改7个文件
252 ■■■■ 文件已修改
customer_list/common/static/fonts/ywiconfont/iconfont.css 174 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/common/static/fonts/ywiconfont/iconfont.ttf 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/common/static/fonts/ywiconfont/iconfont.woff 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/common/static/fonts/ywiconfont/iconfont.woff2 补丁 | 查看 | 原始文档 | blame | 历史
src/api/admin/system.ts 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/navBars/breadcrumb/user.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/yw/systemManage/replaceWordMgr/ReplaceWordMgr.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/common/static/fonts/ywiconfont/iconfont.css
@@ -1,8 +1,8 @@
@font-face {
  font-family: "ywifont"; /* Project id 4655417 */
  src: url('iconfont.woff2?t=1735543501948') format('woff2'),
       url('iconfont.woff?t=1735543501948') format('woff'),
       url('iconfont.ttf?t=1735543501948') format('truetype');
  src: url('iconfont.woff2?t=1741254626478') format('woff2'),
       url('iconfont.woff?t=1741254626478') format('woff'),
       url('iconfont.ttf?t=1741254626478') format('truetype');
}
.ywifont {
@@ -13,6 +13,174 @@
  -moz-osx-font-smoothing: grayscale;
}
.ywicon-quote:before {
  content: "\e699";
}
.ywicon-txt:before {
  content: "\e64d";
}
.ywicon-csv:before {
  content: "\e64b";
}
.ywicon-fujian:before {
  content: "\e88a";
}
.ywicon-biaoge:before {
  content: "\e658";
}
.ywicon-unknownfile:before {
  content: "\e678";
}
.ywicon-json:before {
  content: "\e64a";
}
.ywicon-excel:before {
  content: "\e644";
}
.ywicon-pdf:before {
  content: "\e648";
}
.ywicon-word:before {
  content: "\e716";
}
.ywicon-markdown:before {
  content: "\e6ff";
}
.ywicon-qingchu:before {
  content: "\e747";
}
.ywicon-position-fill:before {
  content: "\e642";
}
.ywicon-question:before {
  content: "\e782";
}
.ywicon-lishi:before {
  content: "\e640";
}
.ywicon-dangqianshitu:before {
  content: "\e62f";
}
.ywicon-juxing:before {
  content: "\eb97";
}
.ywicon-diqiu:before {
  content: "\e844";
}
.ywicon-duobianxing:before {
  content: "\e62d";
}
.ywicon-dangqianweizhi:before {
  content: "\e6ca";
}
.ywicon-position:before {
  content: "\e62b";
}
.ywicon-shebei:before {
  content: "\e63f";
}
.ywicon-folder-close:before {
  content: "\e671";
}
.ywicon-jingwuicon_svg-:before {
  content: "\e619";
}
.ywicon-guandao:before {
  content: "\e63c";
}
.ywicon-jianceshebei:before {
  content: "\e6e3";
}
.ywicon-kongxishuiyaliji:before {
  content: "\e706";
}
.ywicon-zichanguanli-zichanweihu:before {
  content: "\e63a";
}
.ywicon-qingshuishuizhiyibiao:before {
  content: "\e7ec";
}
.ywicon-yijifenqu:before {
  content: "\e843";
}
.ywicon-sanjifenqu:before {
  content: "\e7d1";
}
.ywicon-erjifenqu:before {
  content: "\e7d2";
}
.ywicon-fenquguanli:before {
  content: "\e629";
}
.ywicon-jiedianguanli:before {
  content: "\eb64";
}
.ywicon-famen:before {
  content: "\eb47";
}
.ywicon-xiaoqu:before {
  content: "\e612";
}
.ywicon-GIS-tulitucengicon_liuliangji:before {
  content: "\e618";
}
.ywicon-GIS-TL_dayonghu:before {
  content: "\e632";
}
.ywicon-yuanchuanshuibiao:before {
  content: "\e616";
}
.ywicon-zhuti:before {
  content: "\eaec";
}
.ywicon-chajian:before {
  content: "\e69c";
}
.ywicon-shoujidiannao:before {
  content: "\e625";
}
.ywicon-document:before {
  content: "\e6f3";
}
customer_list/common/static/fonts/ywiconfont/iconfont.ttf
Binary files differ
customer_list/common/static/fonts/ywiconfont/iconfont.woff
Binary files differ
customer_list/common/static/fonts/ywiconfont/iconfont.woff2
Binary files differ
src/api/admin/system.ts
@@ -1,6 +1,7 @@
import request from "/@/utils/request";
import type { ExtraConfig } from '/@/utils/request';
import request from '/@/utils/request';
export const GetQuestionReplaceList = async ( req: any = request) => {
export const GetQuestionReplaceList = async (req: any = request) => {
    return req({
        url: '/admin/system/get_question_replace_list',
        method: 'POST',
@@ -9,3 +10,16 @@
        },
    });
};
/**
 * @description 清除缓存
 **/
export const clearSystemCacheByPost = (extraData: ExtraConfig = {}) =>
    request({
        url: `/admin/system/clear_system_cache`,
        method: 'post',
        params: {},
        data: {},
        ...extraData,
    });
src/layout/navBars/breadcrumb/user.vue
@@ -18,22 +18,18 @@
                </el-dropdown-menu>
            </template>
        </el-dropdown>
        <!-- <el-dropdown :show-timeout="70" :hide-timeout="50" trigger="click" @command="onLanguageChange">
            <div class="layout-navbars-breadcrumb-user-icon">
                <i
                    class="myiconfont"
                    :class="state.disabledI18n === 'en' ? 'icon-fuhao-yingwen' : 'icon-fuhao-zhongwen'"
                    :title="$t('message.user.title1')"
                ></i>
        <el-dropdown :show-timeout="70" :hide-timeout="50" trigger="click" @command="clearSystemCache">
            <div class="layout-navbars-breadcrumb-user-icon" @click="clearSystemCache">
                <i class="ywifont ywicon-qingchu !text-[15px]" title="清除缓存"></i>
            </div>
            <template #dropdown>
            <!-- <template #dropdown>
                <el-dropdown-menu>
                    <el-dropdown-item command="zh-cn" :disabled="state.disabledI18n === 'zh-cn'">简体中文</el-dropdown-item>
                    <el-dropdown-item command="en" :disabled="state.disabledI18n === 'en'">English</el-dropdown-item>
                    <el-dropdown-item command="zh-tw" :disabled="state.disabledI18n === 'zh-tw'">繁體中文</el-dropdown-item>
                </el-dropdown-menu>
            </template>
        </el-dropdown> -->
            </template> -->
        </el-dropdown>
        <div class="layout-navbars-breadcrumb-user-icon" @click="onSearchClick">
            <el-icon :title="$t('message.user.title2')">
                <ele-Search />
@@ -102,6 +98,23 @@
import other from '/@/utils/other';
import { clearAccessTokens } from '/@/utils/request';
import { Local } from '/@/utils/storage';
import { clearSystemCacheByPost } from '/@/api/admin/system';
const clearSystemCache = () => {
    ElMessageBox.confirm(`确定清除系统缓存?`, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
    }).then(async () => {
        const res = await clearSystemCacheByPost();
        if (res?.json_ok) {
            ElMessage.success('清除成功');
        } else {
            ElMessage.error('清除失败');
        }
    });
};
// 引入组件
const UserNews = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/userNews.vue'));
const Search = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/search.vue'));
@@ -233,7 +246,6 @@
        initI18nOrSize('globalComponentSize', 'disabledSize');
        initI18nOrSize('globalI18n', 'disabledI18n');
    }
});
</script>
src/views/project/yw/systemManage/replaceWordMgr/ReplaceWordMgr.vue
@@ -24,13 +24,13 @@
        </template>
        <template #header>
            <el-form ref="queryFormRef" :inline="true" :model="queryParams" class="relative">
                <el-form-item label="标题" prop="title">
                <el-form-item label="问题" prop="title">
                    <el-input
                        v-model="queryParams.question"
                        style="width: 226.4px"
                        placeholder="标题"
                        placeholder="问题"
                        clearable
                        @input="() => terminologyQuery()"
                        @input="debounceQueryTable"
                    />
                </el-form-item>
                <el-form-item>
@@ -108,7 +108,7 @@
//#region ====================== 左侧树数据,tree init ======================
const leftTreeRef = useCompRef(LeftTreeByMgr);
const treeLoading = ref(false);
const currentListID = computed(() => currentNode.value?.group_id);
const currentListID = computed(() => currentNode.value?.id);
const currentNode = ref(null);
const handleClickNode = (data) => {
@@ -153,21 +153,11 @@
const queryParams = ref({
    question: '',
});
const { query: queryTerminology, queryData: showQuotaList } = useSearch(tableData, queryParams);
const displayTableData = computed(() => {
    const result = showQuotaList.value.filter((item) => item.agent_group == currentListID.value);
    return result ?? [];
const { resetQuery, handleQueryTable, displayTableData } = useQueryTable(tableData, queryParams, () => {
    displayTableData.value = tableData.value;
});
const terminologyQuery = debounce(queryTerminology);
watch(
    () => queryParams.value.title,
    (val) => {
        terminologyQuery();
    }
);
const { resetQuery } = useQueryTable(tableData, queryParams, () => {
    showQuotaList.value = tableData.value;
});
const debounceQueryTable = debounce(handleQueryTable, 400);
//#endregion
//#region ====================== prompt查看 ======================