修改发布系统名称及logo图标

This commit is contained in:
yangjun 2025-07-02 10:42:16 +08:00
parent 63962c46af
commit d8ca663d88
7 changed files with 242 additions and 8 deletions

8
.env
View File

@ -3,10 +3,10 @@
# VITE_PORT = 3100 # VITE_PORT = 3100
# # 网站标题 # # 网站标题
# VITE_GLOB_APP_TITLE = 运维平台 # VITE_GLOB_APP_TITLE = 护理单元运维平台
# # 简称,此变量只能是字符/下划线 # # 简称,此变量只能是字符/下划线
# VITE_GLOB_APP_SHORT_NAME = 运维平台 # VITE_GLOB_APP_SHORT_NAME = 护理单元运维平台
# # 单点登录服务端地址 # # 单点登录服务端地址
# VITE_GLOB_APP_CAS_BASE_URL=http://cas.test.com:8443/cas # VITE_GLOB_APP_CAS_BASE_URL=http://cas.test.com:8443/cas
@ -29,10 +29,10 @@
VITE_PORT = 3100 VITE_PORT = 3100
# 网站标题 # 网站标题
VITE_GLOB_APP_TITLE = 运营平台 VITE_GLOB_APP_TITLE = 护理单元运营平台
# 简称,此变量只能是字符/下划线 # 简称,此变量只能是字符/下划线
VITE_GLOB_APP_SHORT_NAME = 运营平台 VITE_GLOB_APP_SHORT_NAME = 护理单元运营平台
# 单点登录服务端地址 # 单点登录服务端地址
VITE_GLOB_APP_CAS_BASE_URL=http://cas.test.com:8443/cas VITE_GLOB_APP_CAS_BASE_URL=http://cas.test.com:8443/cas

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -68,7 +68,7 @@
} }
.aui-logo { .aui-logo {
width: 180px; width: 230px;
height: 80px; height: 80px;
position: absolute; position: absolute;
top: 8%; top: 8%;
@ -77,7 +77,7 @@
} }
.aui-logo2 { .aui-logo2 {
width: 180px; width: 230px;
height: 80px; height: 80px;
position: absolute; position: absolute;
top: 18%; top: 18%;

View File

@ -28,6 +28,7 @@
</BasicTable> </BasicTable>
<!-- 表单区域 --> <!-- 表单区域 -->
<NuIssueInfoModal ref="registerModal" @success="handleSuccess"></NuIssueInfoModal> <NuIssueInfoModal ref="registerModal" @success="handleSuccess"></NuIssueInfoModal>
<IssueInfoDetailModal ref="issueInfoDetailModal" @success="handleSuccess"></IssueInfoDetailModal>
</div> </div>
</template> </template>
@ -39,12 +40,14 @@
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './IssueInfo.api'; import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './IssueInfo.api';
import { downloadFile } from '/@/utils/common/renderUtils'; import { downloadFile } from '/@/utils/common/renderUtils';
import NuIssueInfoModal from './components/IssueInfoModal.vue' import NuIssueInfoModal from './components/IssueInfoModal.vue'
import IssueInfoDetailModal from './components/IssueInfoDetailModal.vue'
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '/@/store/modules/user';
const formRef = ref(); const formRef = ref();
const queryParam = reactive<any>({}); const queryParam = reactive<any>({});
const toggleSearchStatus = ref<boolean>(false); const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref(); const registerModal = ref();
const issueInfoDetailModal = ref();
const userStore = useUserStore(); const userStore = useUserStore();
//table //table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
@ -118,8 +121,8 @@
* 详情 * 详情
*/ */
function handleDetail(record: Recordable) { function handleDetail(record: Recordable) {
registerModal.value.disableSubmit = true; issueInfoDetailModal.value.disableSubmit = true;
registerModal.value.edit(record); issueInfoDetailModal.value.edit(record);
} }
/** /**

View File

@ -0,0 +1,154 @@
<template>
<a-spin :spinning="confirmLoading">
<JFormContainer :disabled="disabled">
<template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="NuIssueInfoForm">
<a-row style="padding:14px;">
<a-col :span="24" style="text-align: center;">
<p>
<span>发版类型</span>
<span>{{formData.issueType_dictText}}</span>
</p>
</a-col>
<a-col :span="24" style="margin-top: 20px;">
<!-- <p>发版内容</p> -->
<div v-html="formData.content"></div>
</a-col>
</a-row>
</a-form>
</template>
</JFormContainer>
</a-spin>
</template>
<script lang="ts" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JEditor from '/@/components/Form/src/jeecg/components/JEditor.vue';
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../IssueInfo.api';
import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: () => ({})},
formBpm: { type: Boolean, default: true }
});
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({
id: '',
issueType: '',
issueType_dictText: '',
content: '',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
const confirmLoading = ref<boolean>(false);
//
const validatorRules = reactive({
});
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
//
const disabled = computed(()=>{
if(props.formBpm === true){
if(props.formData.disabled === false){
return false;
}else{
return true;
}
}
return props.formDisabled;
});
/**
* 新增
*/
function add() {
edit({});
}
/**
* 编辑
*/
function edit(record) {
nextTick(() => {
resetFields();
const tmpData = {};
Object.keys(formData).forEach((key) => {
if(record.hasOwnProperty(key)){
tmpData[key] = record[key]
}
})
//
Object.assign(formData, tmpData);
});
}
/**
* 提交数据
*/
async function submitForm() {
try {
//
await validate();
} catch ({ errorFields }) {
if (errorFields) {
const firstField = errorFields[0];
if (firstField) {
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
}
}
return Promise.reject(errorFields);
}
confirmLoading.value = true;
const isUpdate = ref<boolean>(false);
//
let model = formData;
if (model.id) {
isUpdate.value = true;
}
//
for (let data in model) {
//
if (model[data] instanceof Array) {
let valueType = getValueType(formRef.value.getProps, data);
//
if (valueType === 'string') {
model[data] = model[data].join(',');
}
}
}
await saveOrUpdate(model, isUpdate.value)
.then((res) => {
if (res.success) {
createMessage.success(res.message);
emit('ok');
} else {
createMessage.warning(res.message);
}
})
.finally(() => {
confirmLoading.value = false;
});
}
defineExpose({
add,
edit,
submitForm,
});
</script>
<style lang="less" scoped>
.antd-modal-form {
padding: 14px;
}
</style>

View File

@ -0,0 +1,77 @@
<template>
<j-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
<NuIssueInfoForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></NuIssueInfoForm>
</j-modal>
</template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import NuIssueInfoForm from './IssueInfoDetailForm.vue'
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
const title = ref<string>('');
const width = ref<number>(800);
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();
const emit = defineEmits(['register', 'success']);
/**
* 新增
*/
function add() {
title.value = '新增';
visible.value = true;
nextTick(() => {
registerForm.value.add();
});
}
/**
* 编辑
* @param record
*/
function edit(record) {
title.value = disableSubmit.value ? '详情' : '编辑';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);
});
}
/**
* 确定按钮点击事件
*/
function handleOk() {
registerForm.value.submitForm();
}
/**
* form保存回调事件
*/
function submitCallback() {
handleCancel();
emit('success');
}
/**
* 取消按钮回调事件
*/
function handleCancel() {
visible.value = false;
}
defineExpose({
add,
edit,
disableSubmit,
});
</script>
<style lang="less">
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none !important;
}
</style>
<style lang="less" scoped></style>