Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
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
wangweidong
patzn-cloud-web-back-soil
Commits
bebc920a
Commit
bebc920a
authored
Jun 19, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
a6219c3a
3103e905
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
25 deletions
+57
-25
AutoCompletes.vue
components/base/AutoCompletes.vue
+37
-11
CityNameCascader.vue
components/base/CityNameCascader.vue
+1
-1
MeterContractReview.vue
pages/meter-contract/contract-review/MeterContractReview.vue
+19
-13
MeterContractReviewAddEdit.vue
...r-contract/contract-review/MeterContractReviewAddEdit.vue
+0
-0
No files found.
components/base/AutoCompletes.vue
View file @
bebc920a
...
...
@@ -24,7 +24,7 @@
style=
"width:100%;"
>
<Input
v-model=
"
v
alue"
v-model=
"
dataV
alue"
:name=
"name"
:placeholder=
"placeholder"
:class=
"
{'iview-input-error':showError === ''}"
...
...
@@ -45,6 +45,17 @@
<
script
>
export
default
{
// props: [
// 'name',
// 'showKey',
// 'placeholder',
// 'downData',
// 'value',
// 'showError',
// 'blur',
// 'focus',
// 'handleObj'
// ],
props
:
{
name
:
null
,
showKey
:
null
,
...
...
@@ -59,20 +70,28 @@ export default {
},
data
()
{
return
{
selectObj
:
{}
selectObj
:
{}
,
// value: null
dataValue
:
this
.
value
,
dataHandObj
:
this
.
handleObj
// isFocus: false
}
},
watch
:
{
value
:
function
(
newVal
,
oldVal
)
{
console
.
log
(
newVal
)
this
.
dataValue
=
newVal
}
},
mounted
()
{},
methods
:
{
// 选择
_dropDown
(
data
)
{
this
.
$emit
(
'on-result-change'
,
'select'
,
data
,
this
.
handle
Obj
)
this
.
$emit
(
'on-result-change'
,
'select'
,
data
,
this
.
dataHand
Obj
)
if
(
this
.
showKey
)
{
this
.
v
alue
=
data
[
this
.
showKey
]
this
.
dataV
alue
=
data
[
this
.
showKey
]
}
else
{
this
.
v
alue
=
data
this
.
dataV
alue
=
data
}
this
.
selectObj
=
data
// this.isFocus = false;
...
...
@@ -81,23 +100,30 @@ export default {
_query
()
{
if
(
this
.
showKey
)
{
const
obj
=
{}
obj
[
this
.
showKey
]
=
this
.
v
alue
this
.
$emit
(
'on-result-change'
,
'query'
,
obj
,
this
.
handle
Obj
)
obj
[
this
.
showKey
]
=
this
.
dataV
alue
this
.
$emit
(
'on-result-change'
,
'query'
,
obj
,
this
.
dataHand
Obj
)
}
else
{
this
.
$emit
(
'on-result-change'
,
'query'
,
this
.
value
,
this
.
handleObj
)
this
.
$emit
(
'on-result-change'
,
'query'
,
this
.
dataValue
,
this
.
dataHandObj
)
// console.log(this.dataValue)
}
},
_inputBlur
()
{
if
(
this
.
v
alue
&&
this
.
blur
!==
undefined
)
{
if
(
this
.
dataV
alue
&&
this
.
blur
!==
undefined
)
{
// 失去焦点有值时触发
this
.
$emit
(
'on-result-change'
,
'blur'
,
''
,
this
.
handle
Obj
)
this
.
$emit
(
'on-result-change'
,
'blur'
,
''
,
this
.
dataHand
Obj
)
}
},
// 聚焦
_inputFocus
()
{
// this.isFocus = true;
console
.
log
(
'默认单位名'
,
this
.
value
,
this
.
dataValue
)
if
(
this
.
focus
!==
undefined
)
{
this
.
$emit
(
'on-result-change'
,
'focus'
,
''
,
this
.
handle
Obj
)
this
.
$emit
(
'on-result-change'
,
'focus'
,
''
,
this
.
dataHand
Obj
)
}
}
}
...
...
components/base/CityNameCascader.vue
View file @
bebc920a
...
...
@@ -16,7 +16,7 @@
transfer
change-on-select
>
<Input
v-model=
"value"
v-model=
"value
.join(' ')
"
@
on-change=
"_clear"
placeholder=
"请选择省、市、区"
readonly
...
...
pages/meter-contract/contract-review/MeterContractReview.vue
View file @
bebc920a
...
...
@@ -6,24 +6,24 @@
<Row>
<!--查询-->
<Col
span=
"24"
style=
"margin-top: 10px"
>
<Form
v-show=
"searchOpen"
id=
"formId
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"formId"
v-show=
"searchOpen
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"实验室名称:"
>
<Input
v-model=
"formObj.name"
name=
"name"
placeholder=
"请输入实验室名称"
clearable
@
on-enter=
"_formSearch"
/>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
name=
"name"
placeholder=
"请输入实验室名称"
clearable
/>
</Form-item>
<Form-item
class=
"search-item"
label=
"资质:"
>
<Input
v-model=
"formObj.aptitude"
name=
"aptitude"
placeholder=
"请输入资质"
clearable
@
on-enter=
"_formSearch"
/>
<Input
v-model=
"formObj.aptitude"
@
on-enter=
"_formSearch"
name=
"aptitude"
placeholder=
"请输入资质"
clearable
/>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
</Form-item>
</Form>
</Col>
<!--操作-->
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
class=
"contHide
"
@
on-result-change=
"_btnClick
"
></btn-list>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick
"
class=
"contHide
"
></btn-list>
</Col>
<!--表格-->
<Col
span=
"24"
>
...
...
@@ -48,25 +48,31 @@
<FileManage
ref=
"FileManage"
></FileManage>
<MeterSendOperation
ref=
"operationModal"
></MeterSendOperation>
<MeterSubcontractorEdit
ref=
"editSubcontractorModal"
@
on-result-change=
"_formSearch"
></MeterSubcontractorEdit>
<MeterSubcontractorAddEdit
ref=
"addEditModal"
></MeterSubcontractorAddEdit>
</div>
</template>
<
script
>
import
{
meterContract
,
meterSubcontractor
}
from
'../../../api'
import
MeterSubcontractorEdit
from
'./MeterContractReviewEdit'
import
MeterSubcontractorAddEdit
from
'./MeterContractReviewAddEdit'
import
MeterSendOperation
from
'./MeterContractReviewOperation'
export
default
{
components
:
{
MeterSubcontractorEdit
,
MeterSendOperation
},
components
:
{
MeterSubcontractorEdit
,
MeterSendOperation
,
MeterSubcontractorAddEdit
},
data
()
{
return
{
currentComponent
:
''
,
formId
:
'meterSubcontractorFormId'
,
searchOpen
:
false
,
btn
:
[
//
{
//
type: 'success',
//
id: '',
// name: '提交
'
//
}
{
type
:
'success'
,
id
:
''
,
name
:
'添加
'
}
],
iconMsg
:
[
{
...
...
@@ -235,7 +241,7 @@ export default {
this
.
_getById
(
id
)
}
else
{
// 添加
this
.
$refs
.
editSubcontractor
Modal
.
_open
()
this
.
$refs
.
addEdit
Modal
.
_open
()
}
},
// 追加项目
...
...
pages/meter-contract/contract-review/MeterContractReviewAddEdit.vue
0 → 100644
View file @
bebc920a
This diff is collapsed.
Click to expand it.
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