Compare commits

...

8 Commits

@ -543,6 +543,7 @@ type ListDocumentRequest struct {
Limit int64 `protobuf:"varint,10,opt,name=limit,proto3" json:"limit,omitempty"`
Ext string `protobuf:"bytes,11,opt,name=ext,proto3" json:"ext,omitempty"`
CreatedAt []string `protobuf:"bytes,12,rep,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
FeeType string `protobuf:"bytes,13,opt,name=fee_type,json=feeType,proto3" json:"fee_type,omitempty"`
}
func (m *ListDocumentRequest) Reset() { *m = ListDocumentRequest{} }
@ -662,6 +663,13 @@ func (m *ListDocumentRequest) GetCreatedAt() []string {
return nil
}
func (m *ListDocumentRequest) GetFeeType() string {
if m != nil {
return m.FeeType
}
return ""
}
// 文档列表
type ListDocumentReply struct {
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
@ -1365,114 +1373,116 @@ func init() {
func init() { proto.RegisterFile("api/v1/document.proto", fileDescriptor_55a584ae3a7fc022) }
var fileDescriptor_55a584ae3a7fc022 = []byte{
// 1711 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x5f, 0x6f, 0x23, 0x49,
0x11, 0xdf, 0xf1, 0xd8, 0x89, 0x5d, 0x76, 0xbc, 0xde, 0xde, 0x38, 0x99, 0x1d, 0x27, 0xb6, 0x77,
0x96, 0x40, 0x2e, 0x42, 0xb1, 0x36, 0x08, 0x1e, 0xee, 0x1e, 0x50, 0x2e, 0xbb, 0x2c, 0x91, 0x10,
0x3a, 0xcd, 0xb2, 0x3a, 0xe9, 0x5e, 0xcc, 0xac, 0xa7, 0xd7, 0x1e, 0x18, 0x7b, 0x86, 0x99, 0x76,
0x4c, 0x22, 0x78, 0xe1, 0x03, 0xa0, 0x93, 0xf8, 0x2a, 0xf0, 0x1d, 0x78, 0x42, 0x27, 0xc1, 0x03,
0x12, 0x0f, 0x9c, 0x76, 0xf9, 0x02, 0x7c, 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 0xff, 0x58, 0x3b, 0x39,
0xfb, 0x97, 0x0e, 0x20, 0x5f, 0x47, 0x9c, 0xd5, 0x03, 0xc1, 0xea, 0x99, 0xf7, 0xd2, 0xb7, 0x4e,
0xcd, 0xdb, 0x8a, 0x0d, 0x11, 0xc8, 0xef, 0x60, 0xaf, 0xf8, 0x8d, 0x46, 0x8e, 0x94, 0xd9, 0x5b,
0xdf, 0x70, 0xa5, 0xee, 0x3f, 0x43, 0xe8, 0x43, 0xb3, 0x14, 0x9a, 0xa7, 0x51, 0xa8, 0x9e, 0x92,
0x59, 0xf0, 0x6f, 0xc9, 0x88, 0xd2, 0xdf, 0x93, 0x72, 0x7f, 0x7d, 0xd8, 0xbd, 0xf0, 0xa9, 0x93,
0xf3, 0xf6, 0x9b, 0xa6, 0x95, 0x8c, 0xee, 0xc9, 0x41, 0x19, 0xd2, 0xc8, 0xf1, 0xfd, 0x4f, 0x7f,
0xf8, 0xd7, 0xf7, 0x7d, 0xed, 0xab, 0xf7, 0x7d, 0xed, 0xeb, 0xf7, 0x7d, 0xed, 0xcb, 0x0f, 0xfd,
0x07, 0x5f, 0x7d, 0xe8, 0x3f, 0xf8, 0xe7, 0x87, 0xfe, 0x03, 0x90, 0x7f, 0x13, 0x3f, 0xd3, 0xbe,
0x78, 0x34, 0x0f, 0x22, 0xea, 0x06, 0x13, 0x69, 0xe8, 0x93, 0xab, 0xe7, 0x6f, 0xb7, 0x10, 0xec,
0x07, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x4c, 0x01, 0x70, 0x8a, 0x14, 0x00, 0x00,
// 1729 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xdd, 0x6e, 0xdb, 0xc8,
0x15, 0x0e, 0x45, 0xd9, 0x96, 0x8e, 0x64, 0x45, 0x99, 0x58, 0x36, 0x4d, 0xdb, 0x92, 0xc2, 0xd4,
0xad,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, 0x90, 0x3f, 0x1a, 0xbf,
0xd0, 0xbe, 0x7e, 0x34, 0x0d, 0x22, 0xea, 0x06, 0x23, 0x09, 0xf4, 0xd9, 0xcd, 0xb3, 0x37, 0x9b,
0x48, 0xf6, 0xa3, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x12, 0x32, 0x62, 0xac, 0xa5, 0x14, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -2737,6 +2747,13 @@ func (m *ListDocumentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.FeeType) > 0 {
i -= len(m.FeeType)
copy(dAtA[i:], m.FeeType)
i = encodeVarintDocument(dAtA, i, uint64(len(m.FeeType)))
i--
dAtA[i] = 0x6a
}
if len(m.CreatedAt) > 0 {
for iNdEx := len(m.CreatedAt) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.CreatedAt[iNdEx])
@ -3680,6 +3697,10 @@ func (m *ListDocumentRequest) Size() (n int) {
n += 1 + l + sovDocument(uint64(l))
}
}
l = len(m.FeeType)
if l > 0 {
n += 1 + l + sovDocument(uint64(l))
}
return n
}
@ -5971,6 +5992,38 @@ func (m *ListDocumentRequest) Unmarshal(dAtA []byte) error {
}
m.CreatedAt = append(m.CreatedAt, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 13:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FeeType", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDocument
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthDocument
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDocument
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.FeeType = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDocument(dAtA[iNdEx:])

@ -86,6 +86,7 @@ message ListDocumentRequest {
int64 limit = 10; // 0pagesize
string ext = 11; //
repeated string created_at = 12; //
string fee_type = 13; //
}
//

@ -276,6 +276,7 @@ func (s *DocumentAPIService) ListDocument(ctx context.Context, req *pb.ListDocum
QueryLike: make(map[string][]interface{}),
QueryRange: make(map[string][2]interface{}),
IsRecommend: req.IsRecommend,
FeeType: req.FeeType,
}
if len(req.Order) > 0 {

@ -63,6 +63,11 @@ func (s *UserAPIService) Register(ctx context.Context, req *pb.RegisterAndLoginR
return nil, status.Errorf(codes.InvalidArgument, "邮箱格式不正确")
}
req.Username = strings.TrimSpace(req.Username)
if util.IsValidEmail(req.Username) || util.IsValidMobile(req.Username) {
return nil, status.Errorf(codes.InvalidArgument, "出于隐私保护,用户名不能是邮箱或手机号码")
}
cfg := s.dbModel.GetConfigOfSecurity(
model.ConfigSecurityEnableCaptchaRegister,
model.ConfigSecurityEnableRegister,
@ -74,7 +79,7 @@ func (s *UserAPIService) Register(ctx context.Context, req *pb.RegisterAndLoginR
}
if cfg.IsClose {
return nil, status.Errorf(codes.InvalidArgument, "网站已关闭,时不允许注册")
return nil, status.Errorf(codes.InvalidArgument, "网站已关闭,时不允许注册")
}
if cfg.EnableCaptchaRegister && !captcha.VerifyCaptcha(req.CaptchaId, req.Captcha) {
@ -502,6 +507,11 @@ func (s *UserAPIService) AddUser(ctx context.Context, req *pb.SetUserRequest) (*
return nil, err
}
req.Username = strings.TrimSpace(req.Username)
if util.IsValidEmail(req.Username) || util.IsValidMobile(req.Username) {
return nil, status.Errorf(codes.InvalidArgument, "出于隐私保护,用户名不能是邮箱或手机号码")
}
err = validate.ValidateStruct(req, s.getValidFieldMap())
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())

@ -47,10 +47,10 @@ func getPermissions() (permissions []Permission) {
{Title: "恢复回收站文档", Description: "", Method: "GRPC", Path: "/api.v1.RecycleAPI/RecoverRecycleDocument"},
{Title: "清空回收站文档", Description: "", Method: "GRPC", Path: "/api.v1.RecycleAPI/ClearRecycleDocument"},
{Title: "删除回收站文档", Description: "", Method: "GRPC", Path: "/api.v1.RecycleAPI/DeleteRecycleDocument"},
{Title: "文章管理", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/ListArticle"},
{Title: "更新文章", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/UpdateArticle"},
{Title: "删除文章", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/DeleteArticle"},
{Title: "创建文章", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/CreateArticle"},
{Title: "文章/单页管理", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/ListArticle"},
{Title: "更新文章/单页", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/UpdateArticle"},
{Title: "删除文章/单页", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/DeleteArticle"},
{Title: "创建文章/单页", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/CreateArticle"},
{Title: "上传文章图片和音视频", Description: "", Method: "POST", Path: "/api/v1/upload/article"},
{Title: "上传文档分类封面", Description: "", Method: "POST", Path: "/api/v1/upload/category"},
{Title: "上传配置图片文件", Description: "", Method: "POST", Path: "/api/v1/upload/config"},
@ -68,7 +68,14 @@ func getPermissions() (permissions []Permission) {
{Title: "更新头像", Description: "", Method: "POST", Path: "/api/v1/upload/avatar"},
{Title: "一键重转失败文档", Description: "", Method: "GRPC", Path: "/api.v1.DocumentAPI/SetDocumentReconvert"},
{Title: "批量修改文档分类", Description: "", Method: "GRPC", Path: "/api.v1.DocumentAPI/SetDocumentsCategory"},
{Title: "惩罚管理", Description: "", Method: "GRPC", Path: "/api.v1.PunishmentAPI/ListPunishment"},
{Title: "编辑导航", Description: "", Method: "GRPC", Path: "/api.v1.NavigationAPI/UpdateNavigation"},
{Title: "新增导航", Description: "", Method: "GRPC", Path: "/api.v1.NavigationAPI/CreateNavigation"},
{Title: "删除导航", Description: "", Method: "GRPC", Path: "/api.v1.NavigationAPI/DeleteNavigation"},
{Title: "获取用户处罚列表", Description: "", Method: "GRPC", Path: "/api.v1.PunishmentAPI/ListPunishment"},
{Title: "获取单个处罚信息", Description: "", Method: "GRPC", Path: "/api.v1.PunishmentAPI/GetPunishment"},
{Title: "取消用户处罚", Description: "", Method: "GRPC", Path: "/api.v1.PunishmentAPI/CancelPunishment"},
{Title: "更新用户处罚", Description: "", Method: "GRPC", Path: "/api.v1.PunishmentAPI/UpdatePunishment"},
{Title: "添加用户处罚", Description: "", Method: "GRPC", Path: "/api.v1.PunishmentAPI/CreatePunishment"},
}
return
}

@ -40,7 +40,7 @@ var DocumentStatusMap = map[int]struct{}{
type Document struct {
Id int64 `form:"id" json:"id,omitempty" gorm:"primaryKey;autoIncrement;column:id;comment:;"`
Title string `form:"title" json:"title,omitempty" gorm:"column:title;type:varchar(255);size:255;comment:文档名称;"`
Keywords string `form:"keywords" json:"keywords,omitempty" gorm:"column:keywords;type:varchar(128);size:128;comment:文档关键字;"`
Keywords string `form:"keywords" json:"keywords,omitempty" gorm:"column:keywords;type:varchar(255);size:255;comment:文档关键字;"`
Description string `form:"description" json:"description,omitempty" gorm:"column:description;type:varchar(255);size:255;comment:文档描述;"`
UserId int64 `form:"user_id" json:"user_id,omitempty" gorm:"column:user_id;type:bigint(20);size:20;default:0;index:user_id;comment:文档所属用户ID;"`
Width int `form:"width" json:"width,omitempty" gorm:"column:width;type:int(11);size:11;default:0;comment:宽;"`
@ -53,7 +53,7 @@ type Document struct {
CommentCount int `form:"comment_count" json:"comment_count,omitempty" gorm:"column:comment_count;type:int(11);size:11;default:0;comment:评论人次;"`
Score int `form:"score" json:"score,omitempty" gorm:"column:score;type:int(11);size:11;default:300;comment:评分3位整数表示500表示5分;"`
ScoreCount int `form:"score_count" json:"score_count,omitempty" gorm:"column:score_count;type:int(11);size:11;default:0;comment:评分数量;"`
Price int `form:"price" json:"price,omitempty" gorm:"column:price;type:int(11);size:11;default:0;comment:价格0表示免费;"`
Price int `form:"price" json:"price,omitempty" gorm:"column:price;type:int(11);size:11;default:0;comment:价格0表示免费;index:idx_price;"`
Size int64 `form:"size" json:"size,omitempty" gorm:"column:size;type:bigint(20);size:20;default:0;comment:文件大小;"`
Ext string `form:"ext" json:"ext,omitempty" gorm:"column:ext;type:varchar(16);size:16;index:idx_ext;comment:文件扩展名"`
Status int `form:"status" json:"status,omitempty" gorm:"column:status;type:smallint(6);size:6;default:0;index:status;comment:文档状态0 待转换1 转换中2 转换完成3 转换失败4 禁用;"`
@ -189,6 +189,7 @@ type OptionGetDocumentList struct {
Sort []string
IsRecycle bool // 是否是回收站模式查询
IsRecommend []bool
FeeType string // 费用类型free免费charge收费
}
// GetDocumentList 获取Document列表
@ -225,6 +226,15 @@ func (m *DBModel) GetDocumentList(opt *OptionGetDocumentList) (documentList []Do
}
}
if opt.FeeType != "" {
switch opt.FeeType {
case "free":
db = db.Where("d.`price` = ?", 0)
case "charge":
db = db.Where("d.`price` > ?", 0)
}
}
if opt.WithCount {
err = db.Group("d.id").Count(&total).Error
if err != nil {

@ -27,6 +27,22 @@ type TableColumn struct {
Comment string `gorm:"Comment"`
}
type TableIndex struct {
Table string `gorm:"column:Table"` // 表名
NonUnique int `gorm:"column:Non_unique"`
KeyName string `gorm:"column:Key_name"` // 索引名称
SeqInIndex int `gorm:"column:Seq_in_index"`
ColumnName string `gorm:"column:Column_name"` // 索引字段名称
Collation string `gorm:"column:Collation"` // 字符集
Cardinality int `gorm:"column:Cardinality"`
SubPart sql.NullInt64 `gorm:"column:Sub_part"`
Packed sql.NullString `gorm:"column:Packed"`
Null string `gorm:"column:Null"`
IndexType string `gorm:"column:Index_type"`
Comment string `gorm:"column:Comment"` // 索引备注
IndexComment string `gorm:"column:Index_comment"`
}
// 默认表前缀
var (
tablePrefix string = "mnt_"
@ -164,9 +180,13 @@ func (m *DBModel) SyncDB() (err error) {
&Navigation{},
&Punishment{},
}
m.alterTableBeforeSyncDB()
if err = m.db.AutoMigrate(tableModels...); err != nil {
m.logger.Fatal("SyncDB", zap.Error(err))
return
}
m.alterTableAfterSyncDB()
if err = m.initDatabase(); err != nil {
m.logger.Fatal("SyncDB", zap.Error(err))
@ -186,6 +206,36 @@ func (m *DBModel) ShowTables() (tables []string, err error) {
return
}
func (m *DBModel) alterTableBeforeSyncDB() {
// 查询mnt_user表将email字段由唯一索引删掉以便变更为普通索引
tableUser := User{}.TableName()
indexes := m.ShowIndexes(tableUser)
m.logger.Debug("alterTableBeforeSyncDB", zap.String("table", tableUser), zap.Any("indexes", indexes))
if len(indexes) > 0 {
for _, index := range indexes {
if index.ColumnName == "email" && index.NonUnique == 0 { // 唯一索引,需要删除原索引
err := m.db.Exec(fmt.Sprintf("alter table %s drop index %s", tableUser, index.KeyName)).Error
if err != nil {
m.logger.Error("alterTableBeforeSyncDB", zap.Error(err))
}
}
}
}
}
func (m *DBModel) alterTableAfterSyncDB() {
}
func (m *DBModel) ShowIndexes(table string) (indexes []TableIndex) {
sql := "show index from " + table
err := m.db.Raw(sql).Find(&indexes).Error
if err != nil {
m.logger.Error("ShowIndexes", zap.Error(err))
}
return
}
// FilterValidFields 过滤掉不存在的字段
func (m *DBModel) FilterValidFields(tableName string, fields ...string) (validFields []string) {
alias := ""

@ -32,7 +32,7 @@ type User struct {
Username string `form:"username" json:"username,omitempty" gorm:"column:username;type:varchar(64);size:64;index:username,unique;comment:用户名;"`
Password string `form:"password" json:"password,omitempty" gorm:"column:password;type:varchar(128);size:128;comment:密码;"`
Mobile string `form:"mobile" json:"mobile,omitempty" gorm:"column:mobile;type:varchar(20);size:20;index:mobile;comment:手机号;"`
Email string `form:"email" json:"email,omitempty" gorm:"column:email;type:varchar(64);size:64;index:idx_email,unique;comment:联系邮箱;"`
Email string `form:"email" json:"email,omitempty" gorm:"column:email;type:varchar(64);size:64;index:idx_email;comment:联系邮箱;"`
Address string `form:"address" json:"address,omitempty" gorm:"column:address;type:varchar(255);size:255;comment:联系地址;"`
Signature string `form:"signature" json:"signature,omitempty" gorm:"column:signature;type:varchar(255);size:255;comment:签名;"`
LastLoginIp string `form:"last_login_ip" json:"last_login_ip,omitempty" gorm:"column:last_login_ip;type:varchar(64);size:64;comment:最后登录 ip 地址;"`

@ -3,6 +3,7 @@ package device
import (
"fmt"
"runtime"
"strings"
"time"
"github.com/shirou/gopsutil/v3/cpu"
@ -51,28 +52,30 @@ func GetMemory() (memInfo MemInfo) {
func GetDisk() (diskInfos []DiskInfo) {
stats, _ := disk.Partitions(true)
if runtime.GOOS != "windows" {
usage, _ := disk.Usage("/")
diskInfos = append(diskInfos, DiskInfo{
DiskName: "/",
Total: usage.Total,
Used: usage.Used,
Free: usage.Free,
Percent: usage.UsedPercent,
})
return
}
for _, stat := range stats {
usage, _ := disk.Usage(stat.Mountpoint)
if usage != nil {
if usage == nil {
continue
}
if strings.ToLower(runtime.GOOS) == "windows" {
diskInfos = append(diskInfos, DiskInfo{
DiskName: stat.Mountpoint,
DiskName: usage.Path,
Total: usage.Total,
Used: usage.Used,
Free: usage.Free,
Percent: usage.UsedPercent,
})
} else {
fstype := strings.ToLower(usage.Fstype)
if strings.Contains(fstype, "ext") || strings.Contains(fstype, "ntfs") || strings.Contains(fstype, "fat") {
diskInfos = append(diskInfos, DiskInfo{
DiskName: usage.Path,
Total: usage.Total,
Used: usage.Used,
Free: usage.Free,
Percent: usage.UsedPercent,
})
}
}
}
return

@ -176,6 +176,13 @@ func IsValidEmail(email string) (yes bool) {
return reg.MatchString(email)
}
// IsValidMobile 验证手机号格式
func IsValidMobile(mobile string) (yes bool) {
pattern := `^1[3456789]\d{9}$`
reg := regexp.MustCompile(pattern)
return reg.MatchString(mobile)
}
// CheckCommandExists 验证命令是否存在
func CheckCommandExists(command string) error {
_, err := exec.LookPath(command)

@ -171,11 +171,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
this.$router.resolve({
query: this.search,
}).href
) {
this.listArticle()
} else {

@ -144,11 +144,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
this.$router.resolve({
query: this.search,
}).href
) {
this.listAttachment()
} else {

@ -143,11 +143,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listBanner()
} else {

@ -175,11 +175,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listComment()
} else {

@ -481,7 +481,7 @@ export default {
},
{
label: 'Mhz',
value: res.data.cpu.mhz,
value: (res.data.cpu.mhz || 0).toFixed(0),
},
{
label: '',

@ -130,11 +130,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listCategory()
} else {

@ -298,11 +298,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listDocument()
} else {

@ -214,11 +214,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listDocument()
} else {

@ -150,11 +150,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.$router.push({
query: this.search,

@ -160,11 +160,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listNavigation()
} else {

@ -155,11 +155,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listReport()
} else {

@ -175,11 +175,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listGroup()
} else {

@ -196,11 +196,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listUser()
} else {

@ -133,11 +133,10 @@ export default {
onSearch(search) {
this.search = { ...this.search, ...search, page: 1 }
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listPermission()
} else {

@ -240,11 +240,10 @@ export default {
page: 1,
}
if (
location.href.lastIndexOf(
this.$router.resolve({
query: this.search,
}).href
) === 0
location.pathname + location.search ===
        this.$router.resolve({
          query: this.search,
        }).href
) {
this.listPunishment()
} else {

@ -77,6 +77,24 @@
>
</div>
</div>
<div class="item-row">
<div class="item-name"></div>
<div class="item-content">
<nuxt-link
v-for="item in feeTypeOptions"
:key="item.value"
:to="{ query: { ...$route.query, fee_type: item.value } }"
class="el-link"
:class="
item.value === $route.query.fee_type ||
(!item.value && !$route.query.fee_type)
? 'el-link--primary'
: 'el-link--default'
"
>{{ item.label }}</nuxt-link
>
</div>
</div>
</el-card>
</el-col>
</el-row>
@ -202,6 +220,11 @@ export default {
{ label: 'TXT', value: 'txt' },
{ label: '', value: 'other' },
],
feeTypeOptions: [
{ label: '', value: '' },
{ label: '', value: 'free' },
{ label: '', value: 'charge' },
],
}
},
head() {
@ -397,6 +420,7 @@ export default {
'ext',
'score',
],
fee_type: this.$route.query.fee_type,
})
if (res.status === 200) {
this.total = res.data.total

@ -210,7 +210,7 @@
icon="el-icon-warning-outline"
></el-button
>
<el-button
<!-- <el-button
type="primary"
icon="el-icon-download"
class="float-right"
@ -218,7 +218,7 @@
:loading="downloading"
@click="downloadDocument"
>({{ formatBytes(document.size) }})</el-button
>
> -->
<el-button
v-if="favorite.id > 0"
type="primary"

@ -522,18 +522,18 @@ export default {
}
.el-card__body {
padding: 15px 0 20px;
max-height: 77px;
max-height: 80px;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
// -webkit-box-orient: vertical;
-webkit-line-clamp: 3;
text-overflow: ellipsis;
}
a {
display: inline-block;
padding: 5px 0;
padding: 2px 0 5px;
text-decoration: none;
margin-right: 10px;
margin-bottom: 5px;
}
}
}

Loading…
Cancel
Save