diff --git a/.env.development b/.env.development index 267e4f5..f1134dc 100644 --- a/.env.development +++ b/.env.development @@ -3,5 +3,5 @@ ENV='development' # base api VUE_APP_BASE_API=http://sstt-dangan.ali251.langye.net -VUE_APP_UPLOAD_API=http://sstt-dangan.ali251.langye.net +VUE_APP_UPLOAD_API=http://sstt-dangan.ali251.langye.net/api/admin/upload-file VUE_APP_PREVIEW_API=http://view.ali251.langye.net:8012/onlinePreview diff --git a/.env.production b/.env.production index 13b56c5..8b70940 100644 --- a/.env.production +++ b/.env.production @@ -3,5 +3,5 @@ ENV = 'production' # base api VUE_APP_BASE_API = http://sstt-dangan.ali251.langye.net -VUE_APP_UPLOAD_API =http://sstt-dangan.ali251.langye.net +VUE_APP_UPLOAD_API =http://sstt-dangan.ali251.langye.net/api/admin/upload-file VUE_APP_PREVIEW_API=http://view.ali251.langye.net:8012/onlinePreview diff --git a/src/utils/common.js b/src/utils/common.js index 5523d65..e874c24 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -1,4 +1,7 @@ -let base = { +let base = { + isNull(p){ + return p == '' || p == undefined || p == null || p == 'undefined' || p == 'null'; + }, isPhone(val) { return /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(val) }, diff --git a/src/views/catalog/index.vue b/src/views/catalog/index.vue index 52836ea..2d451f6 100644 --- a/src/views/catalog/index.vue +++ b/src/views/catalog/index.vue @@ -59,8 +59,7 @@ name: '', table_name: 'catalogs', page: 1, - page_size: 999, - + page_size: 999, }, list: [], table_item: [{ diff --git a/src/views/record/components/addRecord.vue b/src/views/record/components/addRecord.vue new file mode 100644 index 0000000..058809a --- /dev/null +++ b/src/views/record/components/addRecord.vue @@ -0,0 +1,274 @@ + + + + + + + *标题: + + + + + + + + + + 发布日期: + + + + + + + + + + + *所属目录: + + + + + + + + + + + 附件: + + + + 点击上传 + + + + + + + + 内容: + + + + + + + + + + + + + + diff --git a/src/views/record/index.vue b/src/views/record/index.vue new file mode 100644 index 0000000..52d997d --- /dev/null +++ b/src/views/record/index.vue @@ -0,0 +1,212 @@ + + + + + + + + + + + + + 查询 + + + 新增 + + + + + + + + + + + + + + + + + + + + 编辑 + + 删除 + + + + + + + + + + + + + + + + diff --git a/vue.config.js b/vue.config.js index ef1c4b0..5201527 100644 --- a/vue.config.js +++ b/vue.config.js @@ -25,7 +25,7 @@ module.exports = { * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', - outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public', + outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项