diff --git a/src/api/cai/version.js b/src/api/cai/version.js
new file mode 100644
index 0000000..d0dd5f3
--- /dev/null
+++ b/src/api/cai/version.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询版本列表
+export function listVersion(query) {
+ return request({
+ url: '/cai/version/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询版本详细
+export function getVersion(id) {
+ return request({
+ url: '/cai/version/' + id,
+ method: 'get'
+ })
+}
+
+// 新增版本
+export function addVersion(data) {
+ return request({
+ url: '/cai/version',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改版本
+export function updateVersion(data) {
+ return request({
+ url: '/cai/version',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除版本
+export function delVersion(id) {
+ return request({
+ url: '/cai/version/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/constant/statusMap.js b/src/constant/statusMap.js
index 004b392..ec4f2dd 100644
--- a/src/constant/statusMap.js
+++ b/src/constant/statusMap.js
@@ -86,6 +86,11 @@ export const isAnchorList = [
{ value: 0, label: '否',listClass: listClass.info},
]
+export const enableStatusList = [
+ { value: 1, label: '正常'},
+ { value: 0, label: '禁用'},
+]
+
export const booleanList = [
{ value: true, label: '是',listClass: listClass.danger},
{ value: false, label: '否',listClass: listClass.info},
@@ -297,3 +302,7 @@ export const systemPushTypeList = [
{ value: 3, label: '多图文消息',listClass: listClass.warning},
{ value: 4, label: '纯图文消息',listClass: listClass.warning},
]
+export const versionPlatformList = [
+ { value: 1, label: '安卓'},
+ { value: 2, label: 'IOS'},
+]
diff --git a/src/views/cai/version/index.vue b/src/views/cai/version/index.vue
new file mode 100644
index 0000000..c90fd48
--- /dev/null
+++ b/src/views/cai/version/index.vue
@@ -0,0 +1,198 @@
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/cai/version/version-add-update-dialog.vue b/src/views/cai/version/version-add-update-dialog.vue
new file mode 100644
index 0000000..2339d56
--- /dev/null
+++ b/src/views/cai/version/version-add-update-dialog.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vue.config.js b/vue.config.js
index 5d3da61..0ca3e4c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,8 +35,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target: `http://localhost:8080`,
- // target: `http://124.222.254.188:9779/prod-api`,
+ // target: `http://localhost:8080`,
+ target: `http://124.222.254.188:9779/prod-api`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''