Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中汽测评-信息安全测评系统
web
Commits
aa663a08
Commit
aa663a08
authored
Jan 29, 2024
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "feat(页面组件添加): 新增左侧为标准选择组件""
This reverts commit
62331db5
.
parent
9d91bd0c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
77 deletions
+43
-77
element-variables.scss
src/assets/styles/element-variables.scss
+0
-2
process.scss
src/assets/styles/process.scss
+1
-1
standard.vue
src/components/Page/standard.vue
+2
-9
main.js
src/main.js
+5
-3
getters.js
src/store/getters.js
+2
-1
index.js
src/store/index.js
+2
-0
ModelDataSource.js
src/utils/ModelDataSource.js
+2
-10
index.vue
src/views/setting/standardTerms/index.vue
+20
-50
vue.config.js
vue.config.js
+9
-1
No files found.
src/assets/styles/element-variables.scss
View file @
aa663a08
...
@@ -8,11 +8,9 @@ $--color-primary: #1890ff;
...
@@ -8,11 +8,9 @@ $--color-primary: #1890ff;
$--color-success
:
#13ce66
;
$--color-success
:
#13ce66
;
$--color-warning
:
#ffba00
;
$--color-warning
:
#ffba00
;
$--color-danger
:
#ff4949
;
$--color-danger
:
#ff4949
;
// $--color-info: #1E1E1E;
$--button-font-weight
:
400
;
$--button-font-weight
:
400
;
// $--color-text-regular: #1f2d3d;
$--border-color-light
:
#dfe4ed
;
$--border-color-light
:
#dfe4ed
;
$--border-color-lighter
:
#e6ebf5
;
$--border-color-lighter
:
#e6ebf5
;
...
...
src/assets/styles/process.scss
View file @
aa663a08
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
}
}
.tab-form
{
.tab-form
{
.el-form-item
{
.el-form-item
{
margin-bottom
:
0
;
margin-bottom
:
0
!
important
;
}
}
}
}
.bottom-btn
{
.bottom-btn
{
...
...
src/components/Page/standard.vue
View file @
aa663a08
...
@@ -6,11 +6,11 @@
...
@@ -6,11 +6,11 @@
<div
class=
"page-box"
>
<div
class=
"page-box"
>
<el-card
class=
"box-card"
shadow=
"never"
>
<el-card
class=
"box-card"
shadow=
"never"
>
<template
v-if=
"$slots.tab && $slots.tab.length"
>
<template
v-if=
"$slots.tab && $slots.tab.length"
>
<
div
slot=
"header"
class=
"clearfix"
>
<
!--
<div
slot=
"header"
class=
"clearfix"
>
--
>
<div
class=
"tabList mb10"
>
<div
class=
"tabList mb10"
>
<slot
name=
"tab"
>
</slot>
<slot
name=
"tab"
>
</slot>
</div>
</div>
<
/div
>
<
!--
</div>
--
>
</
template
>
</
template
>
<slot>
</slot>
<slot>
</slot>
</el-card>
</el-card>
...
@@ -40,8 +40,6 @@ export default {
...
@@ -40,8 +40,6 @@ export default {
min-height
:
80vh
;
min-height
:
80vh
;
// background-color: #000;
// background-color: #000;
}
}
.tabList
{
}
.header
{
.header
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
500
;
font-weight
:
500
;
...
@@ -53,9 +51,4 @@ export default {
...
@@ -53,9 +51,4 @@ export default {
width
:
100%
;
width
:
100%
;
box-shadow
:
0
0
4px
#cccccc
;
box-shadow
:
0
0
4px
#cccccc
;
}
}
::v-deep
{
.el-card__header
{
background-color
:
#f9f9f9
;
}
}
</
style
>
</
style
>
src/main.js
View file @
aa663a08
...
@@ -4,7 +4,6 @@ import Cookies from 'js-cookie'
...
@@ -4,7 +4,6 @@ import Cookies from 'js-cookie'
import
Element
from
'element-ui'
import
Element
from
'element-ui'
import
'./assets/styles/element-variables.scss'
import
'./assets/styles/element-variables.scss'
import
'@/assets/styles/index.scss'
// global css
import
'@/assets/styles/index.scss'
// global css
import
'@/assets/styles/ruoyi.scss'
// ruoyi css
import
'@/assets/styles/ruoyi.scss'
// ruoyi css
import
App
from
'./App'
import
App
from
'./App'
...
@@ -40,6 +39,8 @@ import ImageUpload from '@/components/ImageUpload'
...
@@ -40,6 +39,8 @@ import ImageUpload from '@/components/ImageUpload'
import
ImagePreview
from
'@/components/ImagePreview'
import
ImagePreview
from
'@/components/ImagePreview'
// 页面模板
// 页面模板
import
PageStandard
from
'@/components/Page/standard'
import
PageStandard
from
'@/components/Page/standard'
// 标准库搜索模板
import
PageStandardOption
from
'@/components/Page/standardOption'
// 字典标签组件
// 字典标签组件
import
DictTag
from
'@/components/DictTag'
import
DictTag
from
'@/components/DictTag'
// 头部标签组件
// 头部标签组件
...
@@ -72,12 +73,13 @@ Vue.component('FileUpload', FileUpload)
...
@@ -72,12 +73,13 @@ Vue.component('FileUpload', FileUpload)
Vue
.
component
(
'ImageUpload'
,
ImageUpload
)
Vue
.
component
(
'ImageUpload'
,
ImageUpload
)
Vue
.
component
(
'ImagePreview'
,
ImagePreview
)
Vue
.
component
(
'ImagePreview'
,
ImagePreview
)
Vue
.
component
(
'PageStandard'
,
PageStandard
)
Vue
.
component
(
'PageStandard'
,
PageStandard
)
Vue
.
component
(
'PageStandardOption'
,
PageStandardOption
)
Vue
.
component
(
'TalkItem'
,
TalkItem
)
Vue
.
component
(
'TalkItem'
,
TalkItem
)
window
.
ModelDataSource
=
require
(
'./utils/ModelDataSource'
)
Vue
.
use
(
ModelDataSource
)
Vue
.
use
(
directive
)
Vue
.
use
(
directive
)
Vue
.
use
(
plugins
)
Vue
.
use
(
plugins
)
Vue
.
use
(
VueMeta
)
Vue
.
use
(
VueMeta
)
const
ModelDataSource
=
require
(
'./utils/ModelDataSource'
)
Vue
.
use
(
ModelDataSource
)
DictData
.
install
()
DictData
.
install
()
/**
/**
...
...
src/store/getters.js
View file @
aa663a08
...
@@ -16,6 +16,7 @@ const getters = {
...
@@ -16,6 +16,7 @@ const getters = {
topbarRouters
:
state
=>
state
.
permission
.
topbarRouters
,
topbarRouters
:
state
=>
state
.
permission
.
topbarRouters
,
defaultRoutes
:
state
=>
state
.
permission
.
defaultRoutes
,
defaultRoutes
:
state
=>
state
.
permission
.
defaultRoutes
,
sidebarRouters
:
state
=>
state
.
permission
.
sidebarRouters
,
sidebarRouters
:
state
=>
state
.
permission
.
sidebarRouters
,
companyFiles
:
state
=>
state
.
processing
.
companyFiles
companyFiles
:
state
=>
state
.
processing
.
companyFiles
,
standard
:
state
=>
state
.
standard
.
standard
}
}
export
default
getters
export
default
getters
src/store/index.js
View file @
aa663a08
...
@@ -7,6 +7,7 @@ import tagsView from './modules/tagsView'
...
@@ -7,6 +7,7 @@ import tagsView from './modules/tagsView'
import
permission
from
'./modules/permission'
import
permission
from
'./modules/permission'
import
settings
from
'./modules/settings'
import
settings
from
'./modules/settings'
import
processing
from
'./modules/processing'
import
processing
from
'./modules/processing'
import
standard
from
'./modules/standard'
import
getters
from
'./getters'
import
getters
from
'./getters'
Vue
.
use
(
Vuex
)
Vue
.
use
(
Vuex
)
...
@@ -19,6 +20,7 @@ const store = new Vuex.Store({
...
@@ -19,6 +20,7 @@ const store = new Vuex.Store({
tagsView
,
tagsView
,
permission
,
permission
,
processing
,
processing
,
standard
,
settings
settings
},
},
getters
getters
...
...
src/utils/ModelDataSource.js
View file @
aa663a08
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* Model 数据源
* Model 数据源
* 用于 单条记录的增删查改
* 用于 单条记录的增删查改
*/
*/
import
request
from
'@/utils/request'
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
// CommonJS
// CommonJS
if
(
typeof
exports
===
'object'
)
{
if
(
typeof
exports
===
'object'
)
{
...
@@ -14,13 +14,7 @@ import request from '@/utils/request'
...
@@ -14,13 +14,7 @@ import request from '@/utils/request'
}
}
})(
this
,
function
()
{
})(
this
,
function
()
{
let
_
=
require
(
'lodash'
)
let
_
=
require
(
'lodash'
)
let
request
=
require
(
'@/utils/request'
)
let
defaultSettings
=
{
url
:
''
,
dataKey
:
''
,
defaultAttributes
:
{}
}
function
ModelDataSource
(
vm
,
settings
)
{
function
ModelDataSource
(
vm
,
settings
)
{
this
.
vm
=
vm
this
.
vm
=
vm
this
.
settings
=
settings
this
.
settings
=
settings
...
@@ -30,7 +24,6 @@ import request from '@/utils/request'
...
@@ -30,7 +24,6 @@ import request from '@/utils/request'
// this.defaultAttributes = settings.attributes;
// this.defaultAttributes = settings.attributes;
this
.
init
()
this
.
init
()
}
}
ModelDataSource
.
prototype
=
{
ModelDataSource
.
prototype
=
{
vm
:
null
,
vm
:
null
,
settings
:
null
,
settings
:
null
,
...
@@ -42,7 +35,6 @@ import request from '@/utils/request'
...
@@ -42,7 +35,6 @@ import request from '@/utils/request'
return
''
return
''
})
})
},
},
/**
/**
* Fetch
* Fetch
*
*
...
...
src/views/setting/standardTerms/index.vue
View file @
aa663a08
<
template
>
<
template
>
<page-standard>
<page-standard
-option
>
<div
slot=
"tab"
>
<div
slot=
"tab"
>
<!--
<el-radio-group
v-model=
"queryParams.type"
@
input=
"loadData"
>
-->
<el-tabs
v-model=
"queryParams.type"
>
<!--
<el-radio-button-->
<el-tab-pane
<!-- v-for="dict in dict.type.sys_scene_type"-->
v-for=
"(dict, key) in dict.type.sys_scene_type"
<!-- :key="dict.value"-->
:key=
"key"
<!-- :label="dict.value"-->
:label=
"dict.label"
<!-- >-->
:name=
"dict.value"
<!--
{{
dict
.
label
}}
-->
>
<!--
</el-radio-button>
-->
</el-tab-pane>
<!--
</el-radio-group>
-->
</el-tabs>
<el-form
ref=
"queryForm"
:model=
"queryParams"
size=
"small"
:inline=
"true"
>
<el-form-item>
<el-select
v-model=
"queryParams.ask"
clearable
style=
"width: 100%"
@
change=
"loadData"
>
<el-option
key=
"1"
value=
"1"
label=
"汽车整车信息安全技术要求"
></el-option>
<el-option
key=
"2"
value=
"2"
label=
"xxxxx软件升级要求"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-select
v-model=
"queryParams.type"
clearable
style=
"width: 100%"
@
change=
"loadData"
>
<el-option
v-for=
"dict in dict.type.sys_scene_type"
:key=
"dict.value"
:value=
"dict.value"
>
{{
dict
.
value
===
'1'
?
'体系审查'
:
dict
.
value
===
'2'
?
'车型审查'
:
'文档审查'
}}
</el-option
>
</el-select>
</el-form-item>
</el-form>
</div>
</div>
<el-form
<el-form
v-show=
"showSearch"
v-show=
"showSearch"
...
@@ -212,11 +174,11 @@
...
@@ -212,11 +174,11 @@
@
pagination=
"loadData"
@
pagination=
"loadData"
>
>
</pagination>
</pagination>
</page-standard>
</page-standard
-option
>
</template>
</template>
<
script
>
<
script
>
import
page
from
'@/mixins/page'
import
page
from
'@/mixins/page'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
components
:
{},
components
:
{},
dicts
:
[
'sys_scene_type'
],
dicts
:
[
'sys_scene_type'
],
...
@@ -237,12 +199,20 @@ export default {
...
@@ -237,12 +199,20 @@ export default {
refreshList
:
false
refreshList
:
false
}
}
},
},
computed
:
{
...
mapGetters
([
'standard'
])
},
watch
:
{
watch
:
{
refreshList
(
val
)
{
refreshList
(
val
)
{
if
(
val
)
{
if
(
val
)
{
this
.
loadData
()
this
.
loadData
()
this
.
refreshList
=
false
this
.
refreshList
=
false
}
}
},
standard
(
val
)
{
if
(
val
)
{
console
.
log
(
val
)
}
}
}
},
},
methods
:
{
methods
:
{
...
...
vue.config.js
View file @
aa663a08
...
@@ -54,7 +54,15 @@ module.exports = {
...
@@ -54,7 +54,15 @@ module.exports = {
css
:
{
css
:
{
loaderOptions
:
{
loaderOptions
:
{
sass
:
{
sass
:
{
sassOptions
:
{
outputStyle
:
"expanded"
}
sassOptions
:
{
outputStyle
:
"expanded"
},
additionalData
(
content
,
loaderContext
)
{
const
{
resourcePath
,
rootContext
}
=
loaderContext
const
relativePath
=
path
.
relative
(
rootContext
,
resourcePath
)
if
(
relativePath
.
replace
(
/
\\
/g
,
'/'
)
!==
'src/assets/styles/element-variables.scss'
)
{
return
`@import "~@/assets/styles/element-variables.scss";
${
content
}
`
}
return
content
},
}
}
}
}
},
},
...
...
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