Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
091a6d45
Commit
091a6d45
authored
Jul 01, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/shuiluo
parents
994681fd
59041a03
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
282 additions
and
31 deletions
+282
-31
src/api/organization.js
src/api/organization.js
+19
-0
src/components/table/index.vue
src/components/table/index.vue
+1
-1
src/components/table/my_item.vue
src/components/table/my_item.vue
+2
-2
src/pages/system/view/organization/OrgManagement.vue
src/pages/system/view/organization/OrgManagement.vue
+0
-4
src/pages/system/view/organization/index.js
src/pages/system/view/organization/index.js
+0
-3
src/pages/system/view/parameter/ParamManagement.vue
src/pages/system/view/parameter/ParamManagement.vue
+0
-4
src/pages/system/view/parameter/business/form.vue
src/pages/system/view/parameter/business/form.vue
+65
-0
src/pages/system/view/parameter/business/index.vue
src/pages/system/view/parameter/business/index.vue
+72
-0
src/pages/system/view/parameter/index.js
src/pages/system/view/parameter/index.js
+0
-3
src/pages/system/view/parameter/operation/form.vue
src/pages/system/view/parameter/operation/form.vue
+43
-0
src/pages/system/view/parameter/operation/index.vue
src/pages/system/view/parameter/operation/index.vue
+62
-0
src/pages/user/components/todo.vue
src/pages/user/components/todo.vue
+3
-0
src/router/async/router.map.js
src/router/async/router.map.js
+0
-13
src/router/config.js
src/router/config.js
+15
-1
No files found.
src/api/organization.js
View file @
091a6d45
...
...
@@ -28,6 +28,21 @@ function updateOrgApi(data) {
return
putReq
(
'
/api/v1/organizations
'
,
data
);
}
function
addBusinessApi
(
data
)
{
return
postReq
(
'
/api/v1/parameters/business
'
,
data
);
}
function
updateBusinessApi
(
data
)
{
return
putReq
(
'
/api/v1/parameters/business
'
,
data
);
}
function
addOperationApi
(
data
)
{
return
postReq
(
'
/api/v1/parameters/operation
'
,
data
);
}
function
updateOperationApi
(
data
)
{
return
putReq
(
'
/api/v1/parameters/operation
'
,
data
);
}
export
default
{
addJobs
:
addJobsApi
,
updateJobs
:
updateJobsApi
,
...
...
@@ -36,4 +51,8 @@ export default {
getOrganizationDetails
:
getOrganizationDetailsApi
,
addOrg
:
addOrgApi
,
updateOrg
:
updateOrgApi
,
addBusiness
:
addBusinessApi
,
updateBusiness
:
updateBusinessApi
,
addOperation
:
addOperationApi
,
updateOperation
:
updateOperationApi
,
};
src/components/table/index.vue
View file @
091a6d45
...
...
@@ -2,7 +2,7 @@
<div>
<my-card
v-if=
"$scopedSlots.search"
>
<a-form-model
:model=
"queryForm"
layout=
"horizontal"
>
<a-row
:gutter=
"
24
"
>
<a-row
:gutter=
"
16
"
>
<slot
name=
"search"
:query=
"queryForm"
/>
</a-row>
</a-form-model>
...
...
src/components/table/my_item.vue
View file @
091a6d45
<
template
>
<a-col
v-bind=
"span"
>
<a-form-model-item
v-bind=
"layout"
>
<slot
class=
"tw-w-full"
/>
<slot
/>
</a-form-model-item>
</a-col>
</
template
>
...
...
@@ -11,7 +11,7 @@ export default {
data
()
{
return
{
span
:
{
xs
:
24
,
sm
:
24
,
lg
:
12
,
xl
:
6
},
layout
:
{
labelCol
:
{
span
:
5
},
wrapperCol
:
{
span
:
19
},
...
this
.
$attrs
},
layout
:
{
labelCol
:
{
span
:
6
},
wrapperCol
:
{
span
:
18
},
...
this
.
$attrs
},
};
},
};
...
...
src/pages/system/view/organization/OrgManagement.vue
deleted
100644 → 0
View file @
994681fd
<
template
>
<h1>
Menu Management
</h1>
</
template
>
\ No newline at end of file
src/pages/system/view/organization/index.js
deleted
100644 → 0
View file @
994681fd
import
OrgManagement
from
'
./OrgManagement
'
;
export
default
OrgManagement
;
\ No newline at end of file
src/pages/system/view/parameter/ParamManagement.vue
deleted
100644 → 0
View file @
994681fd
<
template
>
<h1>
Menu Management
</h1>
</
template
>
\ No newline at end of file
src/pages/system/view/parameter/business/form.vue
0 → 100644
View file @
091a6d45
<
template
>
<a-form-model
layout=
"vertical"
:model=
"form"
:rules=
"rules"
ref=
"DrawerForm"
>
<a-form-model-item
label=
"语言"
prop=
"paramLocale"
>
<a-select
v-model=
"form.paramLocale"
:options=
"langList"
placeholder=
"请选择"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"参数模块"
prop=
"paramModule"
>
<a-input
v-model=
"form.paramModule"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"参数编码"
prop=
"paramCode"
>
<a-input
v-model=
"form.paramCode"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"参数值"
prop=
"paramValue"
>
<a-input
v-model=
"form.paramValue"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"参数名称"
prop=
"paramName"
>
<a-input
v-model=
"form.paramName"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"显示顺序"
prop=
"paramIndex"
>
<a-input
v-model=
"form.paramIndex"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"说明"
prop=
"remark"
>
<a-textarea
v-model=
"form.remark"
:disabled=
"isView"
:rows=
"4"
/>
</a-form-model-item>
</a-form-model>
</
template
>
<
script
>
import
Api
from
'
@/api/organization
'
;
import
FormMixin
from
'
@/components/FormMixin
'
;
import
{
globalConfig
}
from
'
@/config
'
;
import
{
formatObj
}
from
'
@/utils
'
;
export
default
{
mixins
:
[
FormMixin
],
data
()
{
return
{
rules
:
{
paramLocale
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramModule
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramCode
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramValue
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramName
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramIndex
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
},
langList
:
[],
};
},
async
mounted
()
{
this
.
langList
=
await
formatObj
(
globalConfig
.
langs
,
{
value
:
'
key
'
,
label
:
'
name
'
,
key
:
'
key
'
});
},
methods
:
{
add
()
{
return
Api
.
addBusiness
({
...
this
.
form
});
},
edit
()
{
return
Api
.
updateBusiness
({
...
this
.
form
});
},
},
};
</
script
>
src/pages/system/view/parameter/business/index.vue
0 → 100644
View file @
091a6d45
<
template
>
<my-table
url=
"/api/v1/parameters/business"
rowKey=
"paramId"
:addBtn=
"addBtn"
ref=
"table"
:scroll=
"
{ x: true }"
>
<template
#drawer
>
<Form
ref=
"form"
/>
</
template
>
<
template
#search=
"{ query }"
>
<MyFormModelItem
label=
"语言"
>
<a-select
v-model=
"query.paramLocale"
:options=
"langList"
placeholder=
"请选择"
/>
</MyFormModelItem>
<MyFormModelItem
label=
"参数模块"
>
<a-input
v-model=
"query.paramModule"
placeholder=
"请输入"
/>
</MyFormModelItem>
<MyFormModelItem
label=
"参数编码"
>
<a-input
v-model=
"query.paramCode"
placeholder=
"请输入"
/>
</MyFormModelItem>
<MyFormModelItem
label=
"参数名称"
>
<a-input
v-model=
"query.paramName"
placeholder=
"请输入"
/>
</MyFormModelItem>
</
template
>
<a-table-column
title=
"语言"
data-index=
"paramLocale"
/>
<a-table-column
title=
"参数模块"
data-index=
"paramModule"
/>
<a-table-column
title=
"参数编码"
data-index=
"paramCode"
/>
<a-table-column
title=
"参数值"
data-index=
"paramValue"
/>
<a-table-column
title=
"参数名称"
data-index=
"paramName"
/>
<a-table-column
title=
"说明"
data-index=
"remark"
/>
<a-table-column
title=
"显示顺序"
data-index=
"paramIndex"
/>
<a-table-column
title=
"操作"
fixed=
"right"
>
<
template
#default=
"row"
>
<a
@
click=
"() => view(row, 1)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<PopconfirmDelete
:url=
"`/api/v1/parameters/business/$
{row.paramId}`" :cb="refreshTable" />
</
template
>
</a-table-column>
</my-table>
</template>
<
script
>
import
PopconfirmDelete
from
'
@/components/popconfirm_delete/index.vue
'
;
import
MyFormModelItem
from
'
@/components/table/my_item.vue
'
;
import
{
globalConfig
}
from
'
@/config
'
;
import
{
formatObj
}
from
'
@/utils
'
;
import
Form
from
'
./form.vue
'
;
export
default
{
components
:
{
Form
,
PopconfirmDelete
,
MyFormModelItem
},
data
()
{
return
{
addBtn
:
{
width
:
600
,
onOk
:
()
=>
this
.
$refs
[
'
form
'
]?.
submit
()
},
langList
:
[],
};
},
async
mounted
()
{
this
.
langList
=
await
formatObj
(
globalConfig
.
langs
,
{
value
:
'
key
'
,
label
:
'
name
'
,
key
:
'
key
'
});
},
methods
:
{
refreshTable
()
{
this
.
$refs
[
'
table
'
]?.
getData
();
},
view
(
data
,
type
)
{
this
.
$refs
[
'
table
'
]?.
show
({
type
});
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'
form
'
].
setData
({
...
data
},
type
);
});
},
},
};
</
script
>
\ No newline at end of file
src/pages/system/view/parameter/index.js
deleted
100644 → 0
View file @
994681fd
import
ParamManagement
from
'
./ParamManagement
'
;
export
default
ParamManagement
;
\ No newline at end of file
src/pages/system/view/parameter/operation/form.vue
0 → 100644
View file @
091a6d45
<
template
>
<a-form-model
layout=
"vertical"
:model=
"form"
:rules=
"rules"
ref=
"DrawerForm"
>
<a-form-model-item
label=
"参数模块"
prop=
"paramModule"
>
<a-input
v-model=
"form.paramModule"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"参数编码"
prop=
"paramCode"
>
<a-input
v-model=
"form.paramCode"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"参数值"
prop=
"paramValue"
>
<a-input
v-model=
"form.paramValue"
placeholder=
"请输入"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"说明"
prop=
"remark"
>
<a-textarea
v-model=
"form.remark"
:disabled=
"isView"
:rows=
"4"
/>
</a-form-model-item>
</a-form-model>
</
template
>
<
script
>
import
Api
from
'
@/api/organization
'
;
import
FormMixin
from
'
@/components/FormMixin
'
;
export
default
{
mixins
:
[
FormMixin
],
data
()
{
return
{
rules
:
{
paramModule
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramCode
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramValue
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
paramIndex
:
[{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
}],
},
};
},
methods
:
{
add
()
{
return
Api
.
addOperation
({
...
this
.
form
});
},
edit
()
{
return
Api
.
updateOperation
({
...
this
.
form
});
},
},
};
</
script
>
src/pages/system/view/parameter/operation/index.vue
0 → 100644
View file @
091a6d45
<
template
>
<my-table
url=
"/api/v1/parameters/operation"
rowKey=
"paramId"
:addBtn=
"addBtn"
ref=
"table"
:scroll=
"
{ x: true }"
>
<template
#drawer
>
<Form
ref=
"form"
/>
</
template
>
<
template
#search=
"{ query }"
>
<MyFormModelItem
label=
"参数模块"
>
<a-input
v-model=
"query.paramModule"
placeholder=
"请输入"
/>
</MyFormModelItem>
<MyFormModelItem
label=
"参数编码"
>
<a-input
v-model=
"query.paramCode"
placeholder=
"请输入"
/>
</MyFormModelItem>
<MyFormModelItem
label=
"参数值"
>
<a-input
v-model=
"query.paramValue"
placeholder=
"请输入"
/>
</MyFormModelItem>
</
template
>
<a-table-column
title=
"参数模块"
data-index=
"paramModule"
/>
<a-table-column
title=
"参数编码"
data-index=
"paramCode"
/>
<a-table-column
title=
"参数值"
data-index=
"paramValue"
/>
<a-table-column
title=
"说明"
data-index=
"remark"
/>
<a-table-column
title=
"操作"
fixed=
"right"
>
<
template
#default=
"row"
>
<a
@
click=
"() => view(row, 1)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<PopconfirmDelete
:url=
"`/api/v1/parameters/operation/$
{row.paramId}`" :cb="refreshTable" />
</
template
>
</a-table-column>
</my-table>
</template>
<
script
>
import
PopconfirmDelete
from
'
@/components/popconfirm_delete/index.vue
'
;
import
MyFormModelItem
from
'
@/components/table/my_item.vue
'
;
import
{
globalConfig
}
from
'
@/config
'
;
import
{
formatObj
}
from
'
@/utils
'
;
import
Form
from
'
./form.vue
'
;
export
default
{
components
:
{
Form
,
PopconfirmDelete
,
MyFormModelItem
},
data
()
{
return
{
addBtn
:
{
width
:
600
,
onOk
:
()
=>
this
.
$refs
[
'
form
'
]?.
submit
()
},
};
},
methods
:
{
refreshTable
()
{
this
.
$refs
[
'
table
'
]?.
getData
();
},
view
(
data
,
type
)
{
this
.
$refs
[
'
table
'
]?.
show
({
type
});
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'
form
'
].
setData
({
...
data
},
type
);
});
},
},
};
</
script
>
\ No newline at end of file
src/pages/user/components/todo.vue
View file @
091a6d45
<
template
>
<h1>
TODO
</h1>
</
template
>
src/router/async/router.map.js
View file @
091a6d45
...
...
@@ -54,18 +54,5 @@ const routerMap = {
name
:
'
菜单管理
'
,
component
:
()
=>
import
(
'
@/pages/system/view/menu
'
),
},
organization_management
:
{
name
:
'
组织管理
'
,
component
:
()
=>
import
(
'
@/pages/system/view/organization
'
),
},
role_management
:
{
name
:
'
角色管理
'
,
component
:
()
=>
import
(
'
@/pages/system/view/role
'
),
},
parameter_management
:
{
name
:
'
参数管理
'
,
component
:
()
=>
import
(
'
@/pages/system/view/parameter
'
),
},
};
export
default
routerMap
;
src/router/config.js
View file @
091a6d45
...
...
@@ -110,7 +110,21 @@ const options = {
{
path
:
'
parameter_management
'
,
name
:
'
参数管理
'
,
component
:
()
=>
import
(
'
@/pages/system/view/parameter
'
),
component
:
BlankTemplateView
,
children
:
[
{
path
:
'
business_management
'
,
name
:
'
业务参数
'
,
component
:
()
=>
import
(
'
@/pages/system/view/parameter/business/index.vue
'
),
},
{
path
:
'
operation_management
'
,
name
:
'
运维参数
'
,
component
:
()
=>
import
(
'
@/pages/system/view/parameter/operation/index.vue
'
),
},
],
},
{
path
:
'
log_management
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment