1、服务指令-服务指令库增加功能提示

2、服务指令-服务指令库-修改镜像码查询错误提示语
This commit is contained in:
1378012178@qq.com 2025-12-25 13:17:20 +08:00
parent f267f83dff
commit 496e8133d2
2 changed files with 21 additions and 4 deletions

View File

@ -258,8 +258,22 @@
<template #tableTitle>
<a-button type="primary" @click="directiveSyncCodeMangeFunc" v-show="!!ownOrgCode"
preIcon="ant-design:setting-outlined">镜像码管理</a-button>
<a-button type="primary" @click="handleDirectiveMainOpen"
preIcon="ant-design:profile-outlined">服务指令库</a-button>
<a-button type="primary" @click="handleDirectiveMainOpen" preIcon="ant-design:profile-outlined">
服务指令库
</a-button>
<span style="margin-top: -3px;margin-left: -3px;z-index: 999;">
<a-tooltip placement="right">
<template #title>
<span>
通过分享服务指令库的镜像码可将本平台的服务指令拉取至其他平台同步使用
<br />
也可复制其他平台的镜像码将其他平台的服务指令拉到至本平台同步使用
</span>
</template>
<QuestionCircleOutlined style="color: red;" />
</a-tooltip>
</span>
</template>
<!--操作栏-->
<template #action="{ record }">
@ -419,6 +433,7 @@ import AbnormalDirectiveList from './components/AbnormalDirectiveList.vue'
import CompareDirectiveList from './components/CompareDirectiveList.vue'
import { idListByDS } from './ConfigServiceDirective.api';
import CanAddDirectiveList from '/@/views/services/canadddirective/CanAddDirectiveList.vue'
import { QuestionCircleOutlined } from '@ant-design/icons-vue';
const { createMessage, createConfirm } = useMessage();
@ -1106,7 +1121,7 @@ async function updateSyncCodeFunc() {
iconType: 'warning',
title: '更新镜像码',
content: '更新后旧的镜像码无法继续使用,是否确认更新?',
onOk:async () => {
onOk: async () => {
syncCode.value = ''
let res = await updateSyncCode({ 'orgCode': ownOrgCode.value })
syncCode.value = res.result

View File

@ -343,7 +343,9 @@ function getSelectedIds() {
async function searchOrgCode() {
let res = await getOrgCodeBySyncCode({ 'syncCode': targetOrgCodeSV.value })
if (!res.result || res.result == -1) {
createMessage.error('镜像码错误');
createMessage.error('无效镜像码');
} else if (res.result == -2) {
createMessage.error('无法使用本机构镜像码');
} else {
targetOrgCode.value = res.result
init()