---用户管理,网元管理等中英文
This commit is contained in:
@@ -34,11 +34,11 @@ function fnEdit(v: boolean) {
|
||||
/**提交保存 */
|
||||
function fnSave() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要提交当前变更的版权声明吗?`,
|
||||
onOk() {
|
||||
// 发送请求
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
state.loading = true;
|
||||
changeValue({ key: 'sys.copyright', value: state.copyright }).then(
|
||||
res => {
|
||||
|
||||
@@ -48,11 +48,11 @@ function fnBeforeUpload(file: FileType) {
|
||||
/**上传变更 */
|
||||
function fnUpload(up: UploadRequestOption) {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要上传登录界面背景文件吗?`,
|
||||
onOk() {
|
||||
// 发送请求
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
state.loading = true;
|
||||
let formData = new FormData();
|
||||
formData.append('file', up.file);
|
||||
@@ -88,11 +88,11 @@ function fnEdit(v: boolean) {
|
||||
/**提交保存 */
|
||||
function fnSave() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要提交当前变更的登录界面背景吗?`,
|
||||
onOk() {
|
||||
// 发送请求
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
state.loading = true;
|
||||
changeValue({ key: 'sys.loginBackground', value: state.filePath }).then(
|
||||
res => {
|
||||
@@ -114,11 +114,11 @@ function fnSave() {
|
||||
/**还原初始背景 */
|
||||
function fnRevert() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要将背景图还原到系统初始默认的背景吗?`,
|
||||
onOk() {
|
||||
// 发送请求
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
state.loading = true;
|
||||
state.filePath = '#';
|
||||
changeValue({ key: 'sys.loginBackground', value: state.filePath }).then(
|
||||
|
||||
@@ -50,11 +50,11 @@ function fnBeforeUpload(file: FileType) {
|
||||
/**上传变更 */
|
||||
function fnUpload(up: UploadRequestOption) {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要上传LOGO文件吗?`,
|
||||
onOk() {
|
||||
// 发送请求
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
state.loading = true;
|
||||
let formData = new FormData();
|
||||
formData.append('file', up.file);
|
||||
@@ -100,7 +100,7 @@ function fnEdit(v: boolean) {
|
||||
/**提交保存 */
|
||||
function fnSave() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要提交当前变更的LOGO文件吗?`,
|
||||
onOk() {
|
||||
const reqArr = [];
|
||||
@@ -120,7 +120,7 @@ function fnSave() {
|
||||
}
|
||||
|
||||
// 发送请求
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
state.loading = true;
|
||||
Promise.all(reqArr).then(resArr => {
|
||||
state.loading = false;
|
||||
|
||||
@@ -34,11 +34,11 @@ function fnEdit(v: boolean) {
|
||||
/**提交保存 */
|
||||
function fnSave() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要提交当前变更的系统名称吗?`,
|
||||
onOk() {
|
||||
// 发送请求
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
state.loading = true;
|
||||
changeValue({ key: 'sys.title', value: state.title }).then(res => {
|
||||
state.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user