Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-purchase
Project
Project
Details
Activity
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-purchase
Commits
3a86fa2d
Commit
3a86fa2d
authored
Dec 08, 2020
by
zhangdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
捷安菜后台样式
parent
01a8e223
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
502 additions
and
452 deletions
+502
-452
main.css
src/assets/css/main.css
+1
-1
Sidebar.vue
src/components/common/Sidebar.vue
+2
-1
dataTable.vue
src/components/dataTable.vue
+256
-238
nopageTable.vue
src/components/nopageTable.vue
+4
-5
queryTable.vue
src/components/queryTable.vue
+198
-183
administrationList.vue
src/pages/purchaser/bid/administrationList.vue
+1
-1
jurisdictionList.vue
src/pages/purchaser/organization/jurisdictionList.vue
+12
-6
home.vue
src/pages/supply/home/home.vue
+19
-14
jurisdictionList.vue
src/pages/supply/organization/jurisdictionList.vue
+8
-2
request.js
src/utils/request.js
+1
-1
No files found.
src/assets/css/main.css
View file @
3a86fa2d
...
...
@@ -22,7 +22,7 @@ a {
.content-box
{
min-width
:
1
2
00px
;
min-width
:
1
4
00px
;
/* width:1670px; */
position
:
absolute
;
left
:
250px
;
...
...
src/components/common/Sidebar.vue
View file @
3a86fa2d
...
...
@@ -23,7 +23,7 @@
:index=
"subItem.index"
:key=
"subItem.index"
>
<template
slot=
"title"
>
{{
subItem
.
label
}}
</
template
>
<template
slot=
"title"
>
{{
subItem
.
label
}}
</
template
>
<el-menu-item
v-for=
"(threeItem,i) in subItem.children"
:key=
"i"
...
...
@@ -34,6 +34,7 @@
v-else
:index=
"subItem.index"
:key=
"subItem.index"
style=
"font-size:12px"
>
{{ subItem.label }}
</el-menu-item>
</template>
</el-submenu>
...
...
src/components/dataTable.vue
View file @
3a86fa2d
<
template
>
<div
class=
"data-table"
>
<!--面包 -->
<el-breadcrumb
v-if=
"breads.length>0"
separator=
"/"
style=
"margin-bottom:30px"
>
<el-breadcrumb-item
v-for=
"(item,index) in breads"
:key=
"index"
>
{{
item
}}
</el-breadcrumb-item>
</el-breadcrumb>
<!--条件查询 -->
<el-form
ref=
"checkData"
:size=
"size"
:label-width=
"labelWidth"
:model=
"objInput"
inline
>
<el-form-item
v-for=
"(item,index) in checklist"
:label=
"item.title"
:key=
"index"
:prop=
"item.model"
>
<!-- 输入框 -->
<el-input
v-if=
"item.type==='input'"
v-model
.
trim=
"objInput[item.model]"
:size=
"size"
:style=
"
{width: item.width}" :disabled="item.disabled" placeholder="请输入" clearable maxlength="30">
</el-input>
<!-- 下拉框 -->
<el-select
v-if=
"item.type==='select'"
v-model=
"objInput[item.model]"
:style=
"
{width: item.width}" :size="size" placeholder="请选择" clearable @change="item.change(checklist[item.prop])">
<el-option
v-for=
"op in item.selectlist"
:label=
"op.label"
:value=
"op.value"
:key=
"op.value"
></el-option>
</el-select>
<!-- 时间范围选择器 -->
<el-date-picker
v-if=
"item.type=='timeRange'"
v-model=
"objInput[item.model]"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<div
v-if=
"checklist.length>0"
class=
"checklist-button"
>
<el-button
type=
"primary"
@
click=
"query"
>
查询
</el-button>
<el-button
@
click=
"rest('checkData')"
>
重置
</el-button>
<slot
name=
"moreButton"
></slot>
</div>
</el-form>
<!-- 表格 -->
<el-table
:data=
"tableData"
:style=
"
{marginTop: tableTop + 'px'}" border style="width:100%" @selection-change="handleSelectionChange">
<el-table-column
v-if=
"isIndex"
type=
"index"
width=
"100"
label=
"序号"
align=
"center"
>
</el-table-column>
<template
v-for=
"(col, index) in columns"
>
<!-- check -->
<el-table-column
v-if=
"col.selection"
:key=
"index"
align=
"left"
type=
"selection"
width=
"100"
></el-table-column>
<!-- 操作列/自定义列 -->
<slot
v-else-if=
"col.slot"
:name=
"col.slot"
></slot>
<!-- 普通列 -->
<el-table-column
v-else
:key=
"index"
:prop=
"col.prop"
:label=
"col.label"
:width=
"col.width"
:formatter=
"col.formatter"
:sortable=
"col.sortable"
align=
"center"
>
</el-table-column>
</
template
>
</el-table>
<!-- 分页 -->
<div
v-if=
"isPageobj"
:style=
"{ marginBottom: marginBottom + 'px', marginTop: marginTop + 'px' }"
class=
"flex-center"
>
<el-pagination
:current-page=
"pageObj.currentPage"
:page-sizes=
"sizes"
:page-size=
"pageObj.size"
:total=
"total"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
>
</el-pagination>
<div
class=
"data-table"
>
<!--面包 -->
<el-breadcrumb
v-if=
"breads.length > 0"
separator=
"/"
style=
"margin-bottom: 30px"
>
<el-breadcrumb-item
v-for=
"(item, index) in breads"
:key=
"index"
>
{{
item
}}
</el-breadcrumb-item>
</el-breadcrumb>
<!--条件查询 -->
<el-form
ref=
"checkData"
:size=
"size"
:label-width=
"labelWidth"
:model=
"objInput"
inline
>
<el-form-item
v-for=
"(item, index) in checklist"
:label=
"item.title"
:key=
"index"
:prop=
"item.model"
>
<!-- 输入框 -->
<el-input
v-if=
"item.type === 'input'"
v-model
.
trim=
"objInput[item.model]"
:size=
"size"
:style=
"
{ width: item.width }"
:disabled="item.disabled"
placeholder="请输入"
clearable
maxlength="30"
>
</el-input>
<!-- 下拉框 -->
<el-select
v-if=
"item.type === 'select'"
v-model=
"objInput[item.model]"
:style=
"
{ width: item.width }"
:size="size"
placeholder="请选择"
clearable
@change="item.change(checklist[item.prop])"
>
<el-option
v-for=
"op in item.selectlist"
:label=
"op.label"
:value=
"op.value"
:key=
"op.value"
></el-option>
</el-select>
<!-- 时间范围选择器 -->
<el-date-picker
v-if=
"item.type == 'timeRange'"
v-model=
"objInput[item.model]"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<div
v-if=
"checklist.length > 0"
class=
"checklist-button"
>
<el-button
type=
"primary"
@
click=
"query"
>
查询
</el-button>
<el-button
@
click=
"rest('checkData')"
>
重置
</el-button>
<slot
name=
"moreButton"
></slot>
</div>
</el-form>
<!-- 表格 -->
<el-table
:data=
"tableData"
:style=
"
{ marginTop: tableTop + 'px' }"
border
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column
v-if=
"isIndex"
type=
"index"
width=
"100"
label=
"序号"
align=
"center"
>
</el-table-column>
<template
v-for=
"(col, index) in columns"
>
<!-- check -->
<el-table-column
v-if=
"col.selection"
:key=
"index"
align=
"left"
type=
"selection"
width=
"100"
></el-table-column>
<!-- 操作列/自定义列 -->
<slot
v-else-if=
"col.slot"
:name=
"col.slot"
></slot>
<!-- 普通列 -->
<el-table-column
v-else
:key=
"index"
:prop=
"col.prop"
:label=
"col.label"
:width=
"col.width"
:formatter=
"col.formatter"
:sortable=
"col.sortable"
align=
"center"
>
</el-table-column>
</
template
>
</el-table>
<!-- 分页 -->
<div
v-if=
"isPageobj"
:style=
"{ marginBottom: marginBottom + 'px', marginTop: marginTop + 'px' }"
class=
"flex-center"
>
<el-pagination
:current-page=
"pageObj.currentPage"
:page-sizes=
"sizes"
:page-size=
"pageObj.size"
:total=
"total"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
>
</el-pagination>
</div>
</div>
</div>
</template>
<
script
>
import
{
getTime1
}
from
'@utils/time'
import
{
getList
}
from
'@api/common/list'
import
{
getTime1
}
from
'@utils/time'
;
import
{
getList
}
from
'@api/common/list'
;
export
default
{
name
:
'dataTable'
,
props
:
{
isIndex
:
{
type
:
Boolean
,
default
:
false
},
isPageobj
:
{
type
:
Boolean
,
default
:
true
},
labelWidth
:
{
type
:
String
,
default
:
'100px'
},
size
:
{
type
:
String
,
default
:
'medium'
},
// tableData: {
// type: Array,
// default() {
// return []
// }
// },
columns
:
{
type
:
Array
,
default
()
{
return
[]
}
},
sizes
:
{
type
:
Array
,
default
()
{
return
[
10
,
15
,
20
]
}
},
pageObj
:
{
type
:
Object
,
default
()
{
return
{}
}
},
breads
:
{
type
:
Array
,
default
()
{
return
[]
}
},
checklist
:
{
type
:
Array
,
default
()
{
return
[]
}
},
tableTop
:
{
type
:
Number
,
default
:
0
},
marginTop
:
{
type
:
Number
,
default
:
200
},
marginBottom
:
{
type
:
Number
,
default
:
100
},
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
objInput
:
{},
ceshi
:
{},
tableData
:
[],
total
:
1
}
},
created
()
{
console
.
log
(
"分页"
)
if
(
this
.
checklist
.
length
>
0
)
{
const
obj
=
{}
this
.
checklist
.
forEach
((
item
)
=>
{
obj
[
item
.
model
]
=
''
})
this
.
objInput
=
obj
}
this
.
getauditList
()
},
//
methods
:
{
async
getauditList
()
{
let
pageObj
=
this
.
pageObj
let
url
=
this
.
url
const
{
code
,
data
,
total
}
=
await
getList
(
pageObj
,
url
)
if
(
code
===
200
)
{
for
(
let
item
of
data
){
if
(
item
.
endTime
){
item
.
end
=
getTime1
(
item
.
endTime
)
}
name
:
'dataTable'
,
props
:
{
isIndex
:
{
type
:
Boolean
,
default
:
false
},
isPageobj
:
{
type
:
Boolean
,
default
:
true
},
size
:
{
type
:
String
,
default
:
'medium'
},
// tableData: {
// type: Array,
// default() {
// return []
// }
// },
columns
:
{
type
:
Array
,
default
()
{
return
[];
}
},
sizes
:
{
type
:
Array
,
default
()
{
return
[
10
,
15
,
20
];
}
},
pageObj
:
{
type
:
Object
,
default
()
{
return
{};
}
},
breads
:
{
type
:
Array
,
default
()
{
return
[];
}
},
checklist
:
{
type
:
Array
,
default
()
{
return
[];
}
},
tableTop
:
{
type
:
Number
,
default
:
0
},
marginTop
:
{
type
:
Number
,
default
:
200
},
marginBottom
:
{
type
:
Number
,
default
:
100
},
url
:
{
type
:
String
,
default
:
''
}
this
.
tableData
=
data
this
.
total
=
total
}
},
// async list(pageObj) {
// let url = this.url
// const { code, data } = await getList(pageObj, url)
// if (code === 200) {
// for(let item of data){
// item.createTime=getTime1(item.createTime)
// item.endTime=getTime1(item.endTime)
// }
// this.tableData = data
// this.total = total
// }
// },
handleSizeChange
(
val
)
{
let
pageObj
=
this
.
pageObj
pageObj
.
size
=
val
this
.
getauditList
(
pageObj
)
console
.
log
(
`每页
${
val
}
条`
)
},
handleCurrentChange
(
val
)
{
let
pageObj
=
this
.
pageObj
pageObj
.
currentPage
=
val
this
.
getauditList
(
pageObj
)
console
.
log
(
`当前页:
${
val
}
`
)
},
// 查询
query
()
{
let
message
=
this
.
objInput
;
this
.
pageObj
.
currentPage
=
1
Object
.
assign
(
message
,
this
.
pageObj
)
this
.
pageObj
=
message
this
.
getauditList
()
data
()
{
return
{
objInput
:
{},
ceshi
:
{},
tableData
:
[],
total
:
1
,
labelWidth
:
''
};
},
// check选择id
handleSelectionChange
(
val
)
{
this
.
$emit
(
'sendSelection'
,
val
)
},
// 重置
rest
(
data
)
{
this
.
$refs
[
data
].
resetFields
()
this
.
pageObj
.
currentPage
=
1
this
.
pageObj
.
size
=
10
this
.
getauditList
(
this
.
pageObj
);
},
handlerelease
()
{
console
.
log
(
'1'
)
created
()
{
if
(
this
.
checklist
.
length
>
0
)
{
let
length
=
this
.
checklist
[
0
].
title
.
length
;
this
.
labelWidth
=
length
*
25
+
""
const
obj
=
{};
this
.
checklist
.
forEach
((
item
)
=>
{
obj
[
item
.
model
]
=
''
;
});
this
.
objInput
=
obj
;
}
this
.
getauditList
();
},
indexMethod
(
index
)
{
return
index
+
1
//
methods
:
{
async
getauditList
()
{
let
pageObj
=
this
.
pageObj
;
let
url
=
this
.
url
;
const
{
code
,
data
,
total
}
=
await
getList
(
pageObj
,
url
);
if
(
code
===
200
)
{
for
(
let
item
of
data
)
{
if
(
item
.
endTime
)
{
item
.
end
=
getTime1
(
item
.
endTime
);
}
}
this
.
tableData
=
data
;
this
.
total
=
total
;
}
},
// async list(pageObj) {
// let url = this.url
// const { code, data } = await getList(pageObj, url)
// if (code === 200) {
// for(let item of data){
// item.createTime=getTime1(item.createTime)
// item.endTime=getTime1(item.endTime)
// }
// this.tableData = data
// this.total = total
// }
// },
handleSizeChange
(
val
)
{
let
pageObj
=
this
.
pageObj
;
pageObj
.
size
=
val
;
this
.
getauditList
(
pageObj
);
console
.
log
(
`每页
${
val
}
条`
);
},
handleCurrentChange
(
val
)
{
let
pageObj
=
this
.
pageObj
;
pageObj
.
currentPage
=
val
;
this
.
getauditList
(
pageObj
);
console
.
log
(
`当前页:
${
val
}
`
);
},
// 查询
query
()
{
let
message
=
this
.
objInput
;
this
.
pageObj
.
currentPage
=
1
;
Object
.
assign
(
message
,
this
.
pageObj
);
this
.
pageObj
=
message
;
this
.
getauditList
();
},
// check选择id
handleSelectionChange
(
val
)
{
this
.
$emit
(
'sendSelection'
,
val
);
},
// 重置
rest
(
data
)
{
this
.
$refs
[
data
].
resetFields
();
this
.
pageObj
.
currentPage
=
1
;
this
.
pageObj
.
size
=
10
;
this
.
getauditList
(
this
.
pageObj
);
},
handlerelease
()
{
console
.
log
(
'1'
);
},
indexMethod
(
index
)
{
return
index
+
1
;
}
}
}
}
};
</
script
>
<
style
scoped
>
.check
{
flex-wrap
:
wrap
;
}
.check
{
flex-wrap
:
wrap
;
}
.check
>
div
{
margin-right
:
50px
;
margin-bottom
:
20px
;
}
.check
>
div
{
margin-right
:
50px
;
margin-bottom
:
20px
;
}
.check
{
margin-bottom
:
30px
}
.checklist-button
{
display
:
inline-block
;
margin-left
:
5
0px
;
margin-bottom
:
30px
}
.check
{
margin-bottom
:
30px
;
}
.checklist-button
{
margin-left
:
50px
;
margin-bottom
:
3
0px
;
float
:
right
;
}
</
style
>
src/components/nopageTable.vue
View file @
3a86fa2d
...
...
@@ -68,10 +68,6 @@ export default {
type
:
Boolean
,
default
:
false
},
labelWidth
:
{
type
:
String
,
default
:
'100px'
},
size
:
{
type
:
String
,
default
:
'medium'
...
...
@@ -126,11 +122,14 @@ export default {
data
()
{
return
{
objInput
:
{},
ceshi
:
{}
ceshi
:
{},
labelWidth
:
""
}
},
created
()
{
if
(
this
.
checklist
.
length
>
0
)
{
let
length
=
Number
(
this
.
checklist
[
0
].
title
.
length
)
;
this
.
labelWidth
=
length
*
25
+
""
const
obj
=
{}
this
.
checklist
.
forEach
((
item
)
=>
{
obj
[
item
.
model
]
=
''
...
...
src/components/queryTable.vue
View file @
3a86fa2d
<
template
>
<div
class=
"data-table"
>
<!--面包 -->
<el-breadcrumb
v-if=
"breads.length>0"
separator=
"/"
style=
"margin-bottom:30px"
>
<el-breadcrumb-item
v-for=
"(item,index) in breads"
:key=
"index"
>
{{
item
}}
</el-breadcrumb-item>
</el-breadcrumb>
<!--条件查询 -->
<el-form
ref=
"checkData"
:size=
"size"
:label-width=
"labelWidth"
:model=
"objInput"
inline
>
<el-form-item
v-for=
"(item,index) in checklist"
:label=
"item.title"
:key=
"index"
:prop=
"item.model"
>
<!-- 输入框 -->
<el-input
v-if=
"item.type==='input'"
v-model
.
trim=
"objInput[item.model]"
:size=
"size"
:style=
"
{width: item.width}" :disabled="item.disabled" placeholder="请输入" clearable maxlength="30">
</el-input>
<!-- 下拉框 -->
<el-select
v-if=
"item.type==='select'"
v-model=
"objInput[item.model]"
:style=
"
{width: item.width}" :size="size" placeholder="请选择" clearable @change="item.change(checklist[item.prop])">
<el-option
v-for=
"op in item.selectlist"
:label=
"op.label"
:value=
"op.id"
:key=
"op.id"
></el-option>
</el-select>
<!-- 时间范围选择器 -->
<el-date-picker
v-if=
"item.type=='timeRange'"
v-model=
"objInput[item.model]"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<div
v-if=
"checklist.length>0"
class=
"checklist-button"
>
<el-button
type=
"primary"
@
click=
"query"
>
查询
</el-button>
<el-button
@
click=
"rest('checkData')"
>
重置
</el-button>
<slot
name=
"moreButton"
></slot>
</div>
</el-form>
<!-- 表格 -->
<el-table
:data=
"tableData"
:style=
"
{marginTop: tableTop + 'px'}" border style="width:100%" @selection-change="handleSelectionChange">
<el-table-column
v-if=
"isIndex"
type=
"index"
width=
"100"
label=
"序号"
align=
"center"
>
</el-table-column>
<template
v-for=
"(col, index) in columns"
>
<!-- check -->
<el-table-column
v-if=
"col.selection"
:key=
"index"
align=
"left"
type=
"selection"
width=
"100"
></el-table-column>
<!-- 操作列/自定义列 -->
<slot
v-else-if=
"col.slot"
:name=
"col.slot"
></slot>
<!-- 普通列 -->
<el-table-column
v-else
:key=
"index"
:prop=
"col.prop"
:label=
"col.label"
:width=
"col.width"
:formatter=
"col.formatter"
:sortable=
"col.sortable"
align=
"center"
>
</el-table-column>
</
template
>
</el-table>
</div>
<div
class=
"data-table"
>
<!--面包 -->
<el-breadcrumb
v-if=
"breads.length > 0"
separator=
"/"
style=
"margin-bottom: 30px"
>
<el-breadcrumb-item
v-for=
"(item, index) in breads"
:key=
"index"
>
{{
item
}}
</el-breadcrumb-item>
</el-breadcrumb>
<!--条件查询 -->
<el-form
ref=
"checkData"
:size=
"size"
:label-width=
"labelWidth"
:model=
"objInput"
inline
>
<el-form-item
v-for=
"(item, index) in checklist"
:label=
"item.title"
:key=
"index"
:prop=
"item.model"
>
<!-- 输入框 -->
<el-input
v-if=
"item.type === 'input'"
v-model
.
trim=
"objInput[item.model]"
:size=
"size"
:style=
"
{ width: item.width }"
:disabled="item.disabled"
placeholder="请输入"
clearable
maxlength="30"
>
</el-input>
<!-- 下拉框 -->
<el-select
v-if=
"item.type === 'select'"
v-model=
"objInput[item.model]"
:style=
"
{ width: item.width }"
:size="size"
placeholder="请选择"
clearable
@change="item.change(checklist[item.prop])"
>
<el-option
v-for=
"op in item.selectlist"
:label=
"op.label"
:value=
"op.id"
:key=
"op.id"
></el-option>
</el-select>
<!-- 时间范围选择器 -->
<el-date-picker
v-if=
"item.type == 'timeRange'"
v-model=
"objInput[item.model]"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<div
v-if=
"checklist.length > 0"
class=
"checklist-button"
>
<el-button
type=
"primary"
@
click=
"query"
>
查询
</el-button>
<el-button
@
click=
"rest('checkData')"
>
重置
</el-button>
<slot
name=
"moreButton"
></slot>
</div>
</el-form>
<!-- 表格 -->
<el-table
:data=
"tableData"
:style=
"
{ marginTop: tableTop + 'px' }"
border
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column
v-if=
"isIndex"
type=
"index"
width=
"100"
label=
"序号"
align=
"center"
>
</el-table-column>
<template
v-for=
"(col, index) in columns"
>
<!-- check -->
<el-table-column
v-if=
"col.selection"
:key=
"index"
align=
"left"
type=
"selection"
width=
"100"
></el-table-column>
<!-- 操作列/自定义列 -->
<slot
v-else-if=
"col.slot"
:name=
"col.slot"
></slot>
<!-- 普通列 -->
<el-table-column
v-else
:key=
"index"
:prop=
"col.prop"
:label=
"col.label"
:width=
"col.width"
:formatter=
"col.formatter"
:sortable=
"col.sortable"
align=
"center"
>
</el-table-column>
</
template
>
</el-table>
</div>
</template>
<
script
>
import
{
queryList
}
from
'@api/common/list'
import
{
queryList
}
from
'@api/common/list'
;
export
default
{
name
:
'dataTable'
,
props
:
{
isIndex
:
{
type
:
Boolean
,
default
:
false
name
:
'dataTable'
,
props
:
{
isIndex
:
{
type
:
Boolean
,
default
:
false
},
size
:
{
type
:
String
,
default
:
'medium'
},
// tableData: {
// type: Array,
// default() {
// return []
// }
// },
columns
:
{
type
:
Array
,
default
()
{
return
[];
}
},
breads
:
{
type
:
Array
,
default
()
{
return
[];
}
},
checklist
:
{
type
:
Array
,
default
()
{
return
[];
}
},
tableTop
:
{
type
:
Number
,
default
:
0
},
marginTop
:
{
type
:
Number
,
default
:
200
},
marginBottom
:
{
type
:
Number
,
default
:
100
},
url
:
{
type
:
String
,
default
:
''
},
sendData
:
{
type
:
Object
,
default
()
{
return
{};
}
}
},
labelWidth
:
{
type
:
String
,
default
:
'100px'
data
()
{
return
{
objInput
:
{},
ceshi
:
{},
tableData
:
[],
labelWidth
:
''
};
},
size
:
{
type
:
String
,
default
:
'medium'
created
()
{
if
(
this
.
checklist
.
length
>
0
)
{
let
length
=
Number
(
this
.
checklist
[
0
].
title
.
length
);
this
.
labelWidth
=
length
*
25
+
""
const
obj
=
{};
this
.
checklist
.
forEach
((
item
)
=>
{
obj
[
item
.
model
]
=
''
;
});
this
.
objInput
=
obj
;
}
this
.
getqueryList
();
},
// tableData: {
// type: Array,
// default() {
// return []
// }
// },
columns
:
{
type
:
Array
,
default
()
{
return
[]
}
},
breads
:
{
type
:
Array
,
default
()
{
return
[]
}
},
checklist
:
{
type
:
Array
,
default
()
{
return
[]
}
},
tableTop
:
{
type
:
Number
,
default
:
0
},
marginTop
:
{
type
:
Number
,
default
:
200
},
marginBottom
:
{
type
:
Number
,
default
:
100
},
url
:
{
type
:
String
,
default
:
''
},
sendData
:{
type
:
Object
,
default
()
{
return
{}
}
}
},
data
()
{
return
{
objInput
:
{},
ceshi
:
{},
tableData
:[]
//
methods
:
{
// 查询
query
()
{
this
.
getqueryList
();
},
// check选择id
handleSelectionChange
(
val
)
{
this
.
$emit
(
'sendSelection'
,
val
);
},
// 重置
rest
(
data
)
{
this
.
$refs
[
data
].
resetFields
();
this
.
getqueryList
();
},
//
async
getqueryList
()
{
try
{
let
message
=
{};
let
sendData
=
this
.
sendData
;
Object
.
assign
(
sendData
,
this
.
objInput
);
const
{
data
,
code
}
=
await
queryList
(
sendData
,
this
.
url
);
if
(
code
===
200
)
{
console
.
log
(
data
);
this
.
tableData
=
data
;
}
}
catch
(
e
)
{
console
.
log
(
e
);
}
}
}
},
created
()
{
if
(
this
.
checklist
.
length
>
0
)
{
const
obj
=
{}
this
.
checklist
.
forEach
((
item
)
=>
{
obj
[
item
.
model
]
=
''
})
this
.
objInput
=
obj
};
this
.
getqueryList
();
},
//
methods
:
{
// 查询
query
()
{
this
.
getqueryList
();
},
// check选择id
handleSelectionChange
(
val
)
{
this
.
$emit
(
'sendSelection'
,
val
)
},
// 重置
rest
(
data
)
{
this
.
$refs
[
data
].
resetFields
()
this
.
getqueryList
();
},
//
async
getqueryList
()
{
try
{
let
message
=
{};
let
sendData
=
this
.
sendData
Object
.
assign
(
sendData
,
this
.
objInput
)
const
{
data
,
code
}
=
await
queryList
(
sendData
,
this
.
url
)
if
(
code
===
200
)
{
console
.
log
(
data
);
this
.
tableData
=
data
}
}
catch
(
e
)
{
console
.
log
(
e
)
}
}
}
}
};
</
script
>
<
style
scoped
>
.check
{
flex-wrap
:
wrap
;
}
.check
{
flex-wrap
:
wrap
;
}
.check
>
div
{
margin-right
:
50px
;
margin-bottom
:
20px
;
}
.check
>
div
{
margin-right
:
50px
;
margin-bottom
:
20px
;
}
.check
{
margin-bottom
:
30px
}
.checklist-button
{
display
:
inline-block
;
margin-left
:
50px
;
margin-bottom
:
30px
}
.check
{
margin-bottom
:
30px
;
}
.checklist-button
{
display
:
inline-block
;
margin-left
:
50px
;
margin-bottom
:
30px
;
}
</
style
>
src/pages/purchaser/bid/administrationList.vue
View file @
3a86fa2d
...
...
@@ -2,7 +2,7 @@
<div>
<div
class=
"content"
>
<dataTable
:columns=
"columns"
:page-obj=
"pageObj"
:breads=
"breads"
:checklist=
"checklist"
url=
"/tender-project/list"
>
<el-button
slot=
"moreButton"
type=
"primary"
style=
"margin-left: 50px;"
@
click=
"handlerelease"
>
发布项目
</el-button>
<el-button
slot=
"moreButton"
type=
"primary"
@
click=
"handlerelease"
>
发布项目
</el-button>
<el-table-column
slot=
"operate"
label=
"项目类型"
align=
"center"
fixed=
"right"
width=
"100"
>
<template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.bidType==0"
>
公开招标
</div>
...
...
src/pages/purchaser/organization/jurisdictionList.vue
View file @
3a86fa2d
<
template
>
<div>
<div
class=
"content"
>
<dataBreadcrumb
:breads=
"breads"
></dataBreadcrumb>
<el-button
type=
"primary"
@
click=
"add"
>
创建新的角色
</el-button>
<dataTable
:table-data=
"tableData"
:columns=
"columns"
:is-pageobj=
"false"
:tableTop=
"
3
0"
>
<dataBreadcrumb
:breads=
"breads"
:breadbottom=
"0"
></dataBreadcrumb>
<el-button
type=
"primary"
@
click=
"add"
class=
"add"
>
创建新的角色
</el-button>
<dataTable
:table-data=
"tableData"
:columns=
"columns"
:is-pageobj=
"false"
:tableTop=
"
5
0"
>
<el-table-column
slot=
"operate"
label=
"操作"
align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"see(scope.row)"
>
查看
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"handdelete(scope.row)"
v-if=
"scope.row.roleId
!==
1"
>
删除
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"handdelete(scope.row)"
v-if=
"scope.row.roleId
!==
1"
>
删除
</el-button>
</
template
>
</el-table-column>
</dataTable>
...
...
@@ -16,7 +16,7 @@
</template>
<
script
>
import
{
roleList
,
roledelete
}
from
'@api/purchaser/organization'
;
import
{
roleList
,
roledelete
}
from
'@api/purchaser/organization'
;
import
dataTable
from
'@components/nopageTable.vue'
;
import
dataBreadcrumb
from
'@components/dataBreadcrumb.vue'
;
export
default
{
...
...
@@ -73,7 +73,7 @@ export default {
console
.
log
(
e
);
}
},
see
(
row
)
{
see
(
row
)
{
this
.
$router
.
push
(
`/purchaser/organization/jurisdictionSee?id=
${
row
.
roleId
}
`
);
},
add
()
{
...
...
@@ -97,4 +97,10 @@ export default {
</
script
>
<
style
scoped
>
.add
{
position
:
absolute
;
top
:
10px
;
left
:
180px
;
}
</
style
>
src/pages/supply/home/home.vue
View file @
3a86fa2d
...
...
@@ -15,7 +15,13 @@
</li>
</ul>
<h2>
项目信息
</h2>
<dataTable
:table-data=
"tabledata"
:columns=
"columns"
>
</dataTable>
<dataTable
:table-data=
"tabledata"
:columns=
"columns"
>
<el-table-column
slot=
"operate"
label=
"当前状态"
align=
"left"
width=
"500"
>
<template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
state
}}
</div>
</
template
>
</el-table-column>
</dataTable>
<!-- <h2 class="se-h2">待办事项</h2>
<ul class="project-list flex">
<li v-for="item in projectlist" :key="item.id">
...
...
@@ -133,15 +139,14 @@ export default {
//表格第一行
columns
:
[
{
label
:
'当前状态'
,
prop
:
'state'
selection
:
true
},
{
label
:
'数量'
,
prop
:
'number'
slot
:
'operate'
},
{
slot
:
'opration'
label
:
'数量'
,
prop
:
'number'
}
],
tabledata
:
[
...
...
@@ -217,16 +222,16 @@ export default {
}
.user-list
>
li
{
margin-right
:
70px
;
font-size
:
30px
;
color
:
#fff
font-size
:
30px
;
color
:
#fff
;
}
.user-list
>
li
>
p
{
font-size
:
18px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
.user-list
>
li
>
p
{
font-size
:
18px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
}
.user-list
>
li
>
i
{
color
:
#fff
.user-list
>
li
>
i
{
color
:
#fff
;
}
h5
{
margin-top
:
30px
;
...
...
src/pages/supply/organization/jurisdictionList.vue
View file @
3a86fa2d
...
...
@@ -2,8 +2,8 @@
<div>
<div
class=
"content"
>
<dataBreadcrumb
:breads=
"breads"
></dataBreadcrumb>
<el-button
type=
"primary"
@
click=
"add"
>
创建新的角色
</el-button>
<dataTable
:table-data=
"tableData"
:columns=
"columns"
:is-pageobj=
"false"
:tableTop=
"
3
0"
>
<el-button
type=
"primary"
@
click=
"add"
class=
"add"
>
创建新的角色
</el-button>
<dataTable
:table-data=
"tableData"
:columns=
"columns"
:is-pageobj=
"false"
:tableTop=
"
5
0"
>
<el-table-column
slot=
"operate"
label=
"操作"
align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"see(scope.row)"
>
查看
</el-button>
...
...
@@ -97,4 +97,10 @@ export default {
</
script
>
<
style
scoped
>
.add
{
position
:
absolute
;
top
:
10px
;
left
:
180px
;
}
</
style
>
src/utils/request.js
View file @
3a86fa2d
...
...
@@ -7,7 +7,7 @@ import {requestUrl,homeUrl} from "./common.js"
// 创建axios实例
const
service
=
axios
.
create
({
baseURL
:
`/apis`
,
//
baseURL:"http://www.eugood.cn/apis",
baseURL
:
"http://www.eugood.cn/apis"
,
timeout
:
35000
// 请求超时时间
})
...
...
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