Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
sensorConsult
Commits
cd803054
Commit
cd803054
authored
Jul 28, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内容管理-产品
parent
5a2006ed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
edit.vue
src/views/backstage/contentMgt/productTabulate/edit.vue
+1
-3
index.vue
src/views/backstage/contentMgt/productTabulate/index.vue
+4
-4
hardware.vue
src/views/homepage/product/hardware.vue
+6
-6
index.vue
src/views/homepage/product/index.vue
+1
-1
No files found.
src/views/backstage/contentMgt/productTabulate/edit.vue
View file @
cd803054
...
@@ -4,9 +4,7 @@
...
@@ -4,9 +4,7 @@
<el-form
ref=
"formViewRef"
:model=
"formData"
:rules=
"rules"
:status-icon=
"true"
label-width=
"240px"
>
<el-form
ref=
"formViewRef"
:model=
"formData"
:rules=
"rules"
:status-icon=
"true"
label-width=
"240px"
>
<el-form-item
label=
"产品类型名称:"
class=
"form-cell"
prop=
"xxx"
>
<el-form-item
label=
"产品类型名称:"
class=
"form-cell"
prop=
"xxx"
>
<div
class=
"cell-box"
>
<div
class=
"cell-box"
>
<el-select
v-model=
"formData.productType"
disabled
placeholder=
"无"
class=
"cell-select"
>
<el-input
v-model=
"formData.productType"
disabled
placeholder=
"暂无"
class=
"cell-input"
/>
<el-option
v-for=
"item in dict.product_type"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"产品ID:"
class=
"form-cell"
prop=
"xxx"
>
<el-form-item
label=
"产品ID:"
class=
"form-cell"
prop=
"xxx"
>
...
...
src/views/backstage/contentMgt/productTabulate/index.vue
View file @
cd803054
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<!--工具栏-->
<!--工具栏-->
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<el-select
v-model=
"query.productType"
clearable
placeholder=
"请选择产品类型"
style=
"width: 150px"
>
<!--
<el-select
v-model=
"query.productType"
clearable
placeholder=
"请选择产品类型"
style=
"width: 150px"
>
--
>
<el-option
v-for=
"item in dict.product_type"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/
>
<!--
<el-option
v-for=
"item in dict.product_type"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
--
>
</el-select
>
<!--
</el-select>
--
>
<el-select
v-model=
"query.status"
clearable
placeholder=
"请选择状态"
style=
"width: 120px"
>
<el-select
v-model=
"query.status"
clearable
placeholder=
"请选择状态"
style=
"width: 120px"
>
<el-option
v-for=
"item in dict.issue_status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
<el-option
v-for=
"item in dict.issue_status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-select>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<div
class=
"content"
>
<div
class=
"content"
>
<el-table
id=
"dataTable"
ref=
"dataTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width:auto;min-height: 70vh"
>
<el-table
id=
"dataTable"
ref=
"dataTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width:auto;min-height: 70vh"
>
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
:index=
"indexMethod"
/>
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
:index=
"indexMethod"
/>
<el-table-column
prop=
"productType"
label=
"产品类型名称"
:formatter=
"(row, col, val)=>
{return dict.label.product_type[val]}"
/>
<el-table-column
prop=
"productType"
label=
"产品类型名称"
/>
<el-table-column
label=
"状态"
width=
"100"
>
<el-table-column
label=
"状态"
width=
"100"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
:style=
"'color:'+textColors[scope.row.status]"
>
{{
dict
.
label
.
issue_status
[
scope
.
row
.
status
]
}}
</div>
<div
:style=
"'color:'+textColors[scope.row.status]"
>
{{
dict
.
label
.
issue_status
[
scope
.
row
.
status
]
}}
</div>
...
...
src/views/homepage/product/hardware.vue
View file @
cd803054
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
</el-row>
</el-row>
<el-row
style=
"padding-top: 10px"
>
<el-row
style=
"padding-top: 10px"
>
<el-col
:span=
"2"
>
<el-col
:span=
"2"
>
<div
class=
"search-item"
:class=
"query.type===
undefined
?'active':''"
>
<div
class=
"search-item"
:class=
"query.type===
''
?'active':''"
>
<span
class=
"touch label"
@
click=
"setQuertType()"
>
默认排序
</span>
<span
class=
"touch label"
@
click=
"setQuertType(
''
)"
>
默认排序
</span>
<span
v-if=
"query.type===
undefined
"
>
<span
v-if=
"query.type===
''
"
>
<i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/>
<i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/>
<i
v-else
class=
"el-icon-sort-down touch"
/>
<i
v-else
class=
"el-icon-sort-down touch"
/>
</span>
</span>
...
@@ -151,8 +151,8 @@ export default {
...
@@ -151,8 +151,8 @@ export default {
title
:
''
,
title
:
''
,
query
:
{
query
:
{
keyword
:
''
,
keyword
:
''
,
area
:
undefined
,
area
:
''
,
type
:
undefined
,
type
:
''
,
sort
:
false
sort
:
false
},
},
areaOpts
:
[],
areaOpts
:
[],
...
@@ -291,7 +291,7 @@ export default {
...
@@ -291,7 +291,7 @@ export default {
},
},
methods
:
{
methods
:
{
onDictReady
(
dict
)
{
onDictReady
(
dict
)
{
this
.
areaOpts
=
[{
value
:
undefined
,
label
:
'
全部
'
},
...
dict
.
area_province
]
this
.
areaOpts
=
[{
value
:
''
,
label
:
'
全部
'
},
...
dict
.
area_province
]
this
.
title
=
dict
.
product_type
[
this
.
$route
.
params
.
type
-
1
].
label
this
.
title
=
dict
.
product_type
[
this
.
$route
.
params
.
type
-
1
].
label
},
},
keywordClick
(
item
,
type
)
{
keywordClick
(
item
,
type
)
{
...
...
src/views/homepage/product/index.vue
View file @
cd803054
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<el-row
style=
"padding-top: 10px"
>
<el-row
style=
"padding-top: 10px"
>
<el-col
:span=
"2"
>
<el-col
:span=
"2"
>
<div
class=
"search-item"
:class=
"query.type===''?'active':''"
>
<div
class=
"search-item"
:class=
"query.type===''?'active':''"
>
<span
class=
"touch label"
@
click=
"setQuertType()"
>
默认排序
</span>
<span
class=
"touch label"
@
click=
"setQuertType(
''
)"
>
默认排序
</span>
<span
v-if=
"query.type===''"
>
<span
v-if=
"query.type===''"
>
<i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/>
<i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/>
<i
v-else
class=
"el-icon-sort-down touch"
/>
<i
v-else
class=
"el-icon-sort-down touch"
/>
...
...
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