Browse Source

rename data->date

main
SliverHorn 4 years ago
parent
commit
f89184e931
  1. 2
      server/cmd/datas/dictionary_details.go
  2. 2
      server/resource/template/fe/table.vue.tpl
  3. 0
      web/src/utils/date.js
  4. 2
      web/src/view/example/customer/customer.vue
  5. 2
      web/src/view/example/upload/upload.vue
  6. 2
      web/src/view/superAdmin/dictionary/sysDictionary.vue
  7. 2
      web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
  8. 2
      web/src/view/superAdmin/operation/sysOperationRecord.vue

2
server/cmd/datas/dictionary_details.go

@ -16,7 +16,7 @@ func InitSysDictionaryDetail(db *gorm.DB) (err error) {
{gorm.Model{ID: 2, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "mediumint", 2, status, 2, 2}, {gorm.Model{ID: 2, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "mediumint", 2, status, 2, 2},
{gorm.Model{ID: 3, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "int", 3, status, 3, 2}, {gorm.Model{ID: 3, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "int", 3, status, 3, 2},
{gorm.Model{ID: 4, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "bigint", 4, status, 4, 2}, {gorm.Model{ID: 4, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "bigint", 4, status, 4, 2},
{gorm.Model{ID: 5, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "data", 0, status, 0, 3},
{gorm.Model{ID: 5, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "date", 0, status, 0, 3},
{gorm.Model{ID: 6, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "time", 1, status, 1, 3}, {gorm.Model{ID: 6, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "time", 1, status, 1, 3},
{gorm.Model{ID: 7, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "year", 2, status, 2, 3}, {gorm.Model{ID: 7, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "year", 2, status, 2, 3},
{gorm.Model{ID: 8, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "datetime", 3, status, 3, 3}, {gorm.Model{ID: 8, CreatedAt: time.Now(), UpdatedAt: time.Now()}, "datetime", 3, status, 3, 3},

2
server/resource/template/fe/table.vue.tpl

@ -110,7 +110,7 @@ import {
find{{.StructName}}, find{{.StructName}},
get{{.StructName}}List get{{.StructName}}List
} from "@/api/{{.PackageName}}"; // 此处请自行替换地址 } from "@/api/{{.PackageName}}"; // 此处请自行替换地址
import { formatTimeToStr } from "@/utils/data";
import { formatTimeToStr } from "@/utils/date";
import infoList from "@/components/mixins/infoList"; import infoList from "@/components/mixins/infoList";
export default { export default {

0
web/src/utils/data.js → web/src/utils/date.js

2
web/src/view/example/customer/customer.vue

@ -74,7 +74,7 @@ import {
getExaCustomer, getExaCustomer,
getExaCustomerList getExaCustomerList
} from "@/api/customer"; } from "@/api/customer";
import { formatTimeToStr } from "@/utils/data";
import { formatTimeToStr } from "@/utils/date";
import infoList from "@/components/mixins/infoList"; import infoList from "@/components/mixins/infoList";
export default { export default {

2
web/src/view/example/upload/upload.vue

@ -85,7 +85,7 @@ import { mapGetters } from "vuex";
import infoList from "@/components/mixins/infoList"; import infoList from "@/components/mixins/infoList";
import { getFileList, deleteFile } from "@/api/fileUploadAndDownload"; import { getFileList, deleteFile } from "@/api/fileUploadAndDownload";
import { downloadImage } from "@/utils/downloadImg"; import { downloadImage } from "@/utils/downloadImg";
import { formatTimeToStr } from "@/utils/data";
import { formatTimeToStr } from "@/utils/date";
import CustomPic from "@/components/customPic"; import CustomPic from "@/components/customPic";
import UploadImage from "@/components/upload/image.vue"; import UploadImage from "@/components/upload/image.vue";
export default { export default {

2
web/src/view/superAdmin/dictionary/sysDictionary.vue

@ -117,7 +117,7 @@ import {
findSysDictionary, findSysDictionary,
getSysDictionaryList getSysDictionaryList
} from "@/api/sysDictionary"; // } from "@/api/sysDictionary"; //
import { formatTimeToStr } from "@/utils/data";
import { formatTimeToStr } from "@/utils/date";
import infoList from "@/components/mixins/infoList"; import infoList from "@/components/mixins/infoList";
export default { export default {
name: "SysDictionary", name: "SysDictionary",

2
web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue

@ -114,7 +114,7 @@ import {
findSysDictionaryDetail, findSysDictionaryDetail,
getSysDictionaryDetailList getSysDictionaryDetailList
} from "@/api/sysDictionaryDetail"; // } from "@/api/sysDictionaryDetail"; //
import { formatTimeToStr } from "@/utils/data";
import { formatTimeToStr } from "@/utils/date";
import infoList from "@/components/mixins/infoList"; import infoList from "@/components/mixins/infoList";
export default { export default {

2
web/src/view/superAdmin/operation/sysOperationRecord.vue

@ -113,7 +113,7 @@ import {
getSysOperationRecordList, getSysOperationRecordList,
deleteSysOperationRecordByIds deleteSysOperationRecordByIds
} from '@/api/sysOperationRecord' // } from '@/api/sysOperationRecord' //
import { formatTimeToStr } from '@/utils/data'
import { formatTimeToStr } from '@/utils/date'
import infoList from '@/components/mixins/infoList' import infoList from '@/components/mixins/infoList'
export default { export default {

Loading…
Cancel
Save