mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 02:40:23 +08:00
1
This commit is contained in:
parent
0fbc1ad47c
commit
f0bf193077
1
server/.gitignore
vendored
1
server/.gitignore
vendored
@ -36,3 +36,4 @@ main.exe~
|
|||||||
!hotgo/
|
!hotgo/
|
||||||
*.lock
|
*.lock
|
||||||
/bin/package.sh
|
/bin/package.sh
|
||||||
|
internal/packed/packed.go
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
gfcli:
|
gfcli:
|
||||||
build:
|
build:
|
||||||
name: "hotgo" # 编译后的可执行文件名称
|
name: "hotgo" # 编译后的可执行文件名称
|
||||||
# arch: "all" #不填默认当前系统架构,可选:386,amd64,arm,all
|
arch: "amd64" # 不填默认当前系统架构,可选:386,amd64,arm,all
|
||||||
# system: "all" #不填默认当前系统平台,可选:linux,darwin,windows,all
|
system: "linux" # 不填默认当前系统平台,可选:linux,darwin,windows,all
|
||||||
mod: "none"
|
mod: "none"
|
||||||
cgo: 0
|
cgo: 0
|
||||||
packSrc: "resource" # 将resource目录打包进可执行文件,静态资源无需单独部署
|
packSrc: "resource" # 将resource目录打包进可执行文件,静态资源无需单独部署
|
||||||
|
@ -12,7 +12,6 @@ import (
|
|||||||
"github.com/gogf/gf/v2/net/ghttp"
|
"github.com/gogf/gf/v2/net/ghttp"
|
||||||
"github.com/gogf/gf/v2/util/gmeta"
|
"github.com/gogf/gf/v2/util/gmeta"
|
||||||
"hotgo/internal/consts"
|
"hotgo/internal/consts"
|
||||||
"hotgo/internal/library/contexts"
|
|
||||||
"hotgo/internal/library/response"
|
"hotgo/internal/library/response"
|
||||||
"hotgo/utility/charset"
|
"hotgo/utility/charset"
|
||||||
"hotgo/utility/simple"
|
"hotgo/utility/simple"
|
||||||
@ -34,7 +33,7 @@ func (s *sMiddleware) ResponseHandler(r *ghttp.Request) {
|
|||||||
|
|
||||||
contentType := getContentType(r)
|
contentType := getContentType(r)
|
||||||
// 已存在响应
|
// 已存在响应
|
||||||
if contentType != consts.HTTPContentTypeStream && r.Response.BufferLength() > 0 && contexts.Get(r.Context()).Response != nil {
|
if contentType != consts.HTTPContentTypeStream && r.Response.BufferLength() > 0 { // && contexts.Get(r.Context()).Response != nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
//上传结束
|
//上传结束
|
||||||
function finish({ event: Event }) {
|
function finish({ event: Event }) {
|
||||||
const res = eval('(' + Event.target.response + ')');
|
const res = JSON.parse(Event.target.response);
|
||||||
const infoField = componentSetting.upload.apiSetting.infoField;
|
const infoField = componentSetting.upload.apiSetting.infoField;
|
||||||
const { code } = res;
|
const { code } = res;
|
||||||
const msg = res.msg || res.message || '上传失败';
|
const msg = res.msg || res.message || '上传失败';
|
||||||
|
@ -106,6 +106,9 @@
|
|||||||
const message = useMessage();
|
const message = useMessage();
|
||||||
const dialog = useDialog();
|
const dialog = useDialog();
|
||||||
const uploadTitle = ref(props.fileType === 'image' ? '上传图片' : '上传附件');
|
const uploadTitle = ref(props.fileType === 'image' ? '上传图片' : '上传附件');
|
||||||
|
const maxNumber = computed(() => {
|
||||||
|
return props.maxNumber;
|
||||||
|
});
|
||||||
const fileAvatarCSS = computed(() => {
|
const fileAvatarCSS = computed(() => {
|
||||||
return {
|
return {
|
||||||
'--n-merged-size': `var(--n-avatar-size-override, ${props.width * 0.8}px)`,
|
'--n-merged-size': `var(--n-avatar-size-override, ${props.width * 0.8}px)`,
|
||||||
@ -245,7 +248,7 @@
|
|||||||
|
|
||||||
//上传结束
|
//上传结束
|
||||||
function finish({ event: Event }) {
|
function finish({ event: Event }) {
|
||||||
const res = eval('(' + Event.target.response + ')');
|
const res = JSON.parse(Event.target.response);
|
||||||
const infoField = componentSetting.upload.apiSetting.infoField;
|
const infoField = componentSetting.upload.apiSetting.infoField;
|
||||||
const imgField = componentSetting.upload.apiSetting.imgField;
|
const imgField = componentSetting.upload.apiSetting.imgField;
|
||||||
const { code } = res;
|
const { code } = res;
|
||||||
@ -289,6 +292,7 @@
|
|||||||
getFileExt,
|
getFileExt,
|
||||||
Preview,
|
Preview,
|
||||||
previewRef,
|
previewRef,
|
||||||
|
maxNumber,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -175,7 +175,6 @@
|
|||||||
negativeText: '取消',
|
negativeText: '取消',
|
||||||
onPositiveClick: () => {
|
onPositiveClick: () => {
|
||||||
Delete(record).then((_res) => {
|
Delete(record).then((_res) => {
|
||||||
console.log('_res:' + JSON.stringify(_res));
|
|
||||||
message.success('操作成功');
|
message.success('操作成功');
|
||||||
reloadTable();
|
reloadTable();
|
||||||
});
|
});
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
v-for="panel in slavePanels"
|
v-for="panel in slavePanels"
|
||||||
:key="panel"
|
:key="panel"
|
||||||
:name="panel"
|
:name="panel"
|
||||||
v-show="slavePanels.length > 0 && slavePanels !== []"
|
v-show="slavePanels.length > 0"
|
||||||
>
|
>
|
||||||
<EditSlaveCell
|
<EditSlaveCell
|
||||||
v-model:value="genInfo"
|
v-model:value="genInfo"
|
||||||
|
@ -342,7 +342,6 @@
|
|||||||
negativeText: '取消',
|
negativeText: '取消',
|
||||||
onPositiveClick: () => {
|
onPositiveClick: () => {
|
||||||
Delete(record).then((_res) => {
|
Delete(record).then((_res) => {
|
||||||
console.log('_res:' + JSON.stringify(_res));
|
|
||||||
message.success('操作成功');
|
message.success('操作成功');
|
||||||
reloadTable();
|
reloadTable();
|
||||||
});
|
});
|
||||||
|
@ -228,7 +228,6 @@
|
|||||||
onPositiveClick: () => {
|
onPositiveClick: () => {
|
||||||
Delete(record)
|
Delete(record)
|
||||||
.then((_res) => {
|
.then((_res) => {
|
||||||
console.log('_res:' + JSON.stringify(_res));
|
|
||||||
message.success('操作成功');
|
message.success('操作成功');
|
||||||
reloadTable();
|
reloadTable();
|
||||||
})
|
})
|
||||||
@ -251,7 +250,6 @@
|
|||||||
onPositiveClick: () => {
|
onPositiveClick: () => {
|
||||||
Delete({ id: checkedIds.value })
|
Delete({ id: checkedIds.value })
|
||||||
.then((_res) => {
|
.then((_res) => {
|
||||||
console.log('_res:' + JSON.stringify(_res));
|
|
||||||
message.success('操作成功');
|
message.success('操作成功');
|
||||||
reloadTable();
|
reloadTable();
|
||||||
})
|
})
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.view-account {
|
.view-account {
|
||||||
background-image: url('~@/assets/images/login.svg');
|
background-image: url('@/assets/images/login.svg');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 50%;
|
background-position: 50%;
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
|
@ -200,10 +200,8 @@
|
|||||||
positiveText: '确定',
|
positiveText: '确定',
|
||||||
negativeText: '取消',
|
negativeText: '取消',
|
||||||
onPositiveClick: () => {
|
onPositiveClick: () => {
|
||||||
console.log('DeleteMenu formParams:' + JSON.stringify(formParams));
|
|
||||||
DeleteDict({ ...formParams })
|
DeleteDict({ ...formParams })
|
||||||
.then(async (_res) => {
|
.then(async (_res) => {
|
||||||
console.log('_res:' + JSON.stringify(_res));
|
|
||||||
message.success('操作成功');
|
message.success('操作成功');
|
||||||
// handleReset();
|
// handleReset();
|
||||||
await loadData();
|
await loadData();
|
||||||
|
Loading…
Reference in New Issue
Block a user