Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
93564734
authored
2023-06-26 11:16:09 +0800
by
tianhaohao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev' of
http://yun.pashanhoo.com:9090/bdc/bdcdj-web
into dev
2 parents
9400b940
ba4ae044
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
201 additions
and
347 deletions
package.json
public/config.json
src/views/djbworkflow/djbBook/components/blxxtabs/fdcq.vue
src/views/djbworkflow/mixin/index.js
src/views/djbworkflow/workFrame.vue
src/views/workflow/components/dialog/addTdyt.vue
src/views/workflow/components/tdytTable.vue
package.json
View file @
9356473
...
...
@@ -10,7 +10,6 @@
"dependencies"
:
{
"@antv/g2"
:
"^4.2.8"
,
"@babel/polyfill"
:
"^7.12.1"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"axios"
:
"^0.21.1"
,
"bpmn-js"
:
"^7.4.0"
,
"bpmn-js-properties-panel"
:
"^0.37.2"
,
...
...
public/config.json
View file @
9356473
{
"TITLE"
:
"不动产登记系统"
,
"SERVERAPI"
:
"/bdcdj-ssq"
,
"ip"
:
"http://192.168.2.38"
,
"SERVERAPI"
:
"/bdcdj"
,
"IDCARDURL"
:
"http://127.0.0.1:33088/function=get_idcard&readnew=0"
}
}
\ No newline at end of file
...
...
src/views/djbworkflow/djbBook/components/blxxtabs/fdcq.vue
View file @
9356473
...
...
@@ -76,22 +76,22 @@
<el-input
v-model=
"ruleForm.qlxx.zl"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"ruleForm.fdcq2.ftjzmj"
>
<el-form-item
label=
"土地使用权人:"
>
<el-input
v-model=
"ruleForm.fdcq2.tdsyqr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"ruleForm.fdcq2.ftjzmj"
>
<el-form-item
label=
"独用土地面积:"
>
<el-input
v-model=
"ruleForm.fdcq2.dytdmj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"ruleForm.fdcq2.ftjzmj"
>
<el-form-item
label=
"分摊土地面积:"
>
<el-input
v-model=
"ruleForm.fdcq2.fttdmj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"ruleForm.fdcq2.ftjzmj"
>
<!-- 下拉框 -->
<el-form-item
label=
"土地性质:"
style=
"margin-bottom:3px"
>
<treeselect
v-model=
"ruleForm.fdcq2.jedw"
placeholder=
""
...
...
@@ -99,7 +99,7 @@
:show-count=
"true"
:options=
"dictData['A45']"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"ruleForm.fdcq2.ftjzmj"
>
<el-form-item
label=
"房地产交易价格:"
>
<div
style=
"display:flex"
>
<el-input
v-model=
"ruleForm.fdcq2.qjjg"
style=
"width:500%"
></el-input>
...
...
@@ -164,7 +164,7 @@
<el-input
v-model=
"ruleForm.fdcq2.zyjzmj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"ruleForm.fdcq2.ftjzmj"
>
<el-form-item
label=
"分摊建筑面积:"
>
<el-input
v-model=
"ruleForm.fdcq2.ftjzmj"
></el-input>
</el-form-item>
...
...
@@ -221,8 +221,8 @@
</div>
<tdytTable
:tableData=
"ruleForm.tdytqxList"
@
upDate
Qlr
xxList=
"upDateTdytxxList"
:viewtype=
"$route.query.viewtype"
/>
@
upDate
Tdyt
xxList=
"upDateTdytxxList"
/>
<div
class=
"slxx_title title-block"
>
权利人信息
<div
class=
"triangle"
></div>
...
...
@@ -258,7 +258,7 @@
</el-col>
</el-row>
<qlrCommonTable
:tableData=
"ruleForm.qlr
List
"
:tableData=
"ruleForm.qlr
Data
"
@
upDateQlrxxList=
"upDateQlrxxList"
:key=
"key"
:viewtype=
"$route.query.viewtype"
...
...
@@ -286,147 +286,122 @@
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
"vuex"
;
import
{
Init
,
saveData
}
from
"@/api/workflow/jsydsyqFlow.js"
;
import
{
init
}
from
"@/api/djbbl.js"
;
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
;
import
tdytTable
from
"@/views/workflow/components/tdytTable"
;
// import the component
import
Treeselect
from
'@riophae/vue-treeselect'
// import the styles
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
export
default
{
components
:
{
qlrCommonTable
,
tdytTable
,
Treeselect
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
]),
import
{
mapGetters
}
from
"vuex"
;
import
{
Init
,
saveData
}
from
"@/api/workflow/jsydsyqFlow.js"
;
import
{
init
}
from
"@/api/djbbl.js"
;
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
;
import
tdytTable
from
"@/views/workflow/components/tdytTable"
;
export
default
{
components
:
{
qlrCommonTable
,
tdytTable
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
]),
},
data
()
{
return
{
//表单是否可操作
propsParam
:
this
.
$attrs
,
ableOperation
:
true
,
key
:
0
,
isShow
:
false
,
disabled
:
true
,
czrOptions
:
[],
ruleForm
:
{},
//传递参数\
rules
:
{},
};
},
created
()
{
this
.
loadData
();
},
mounted
()
{},
methods
:
{
loadData
()
{
console
.
log
(
"房地产权"
,
this
.
propsParam
);
init
(
this
.
propsParam
.
bsmRepair
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
ruleForm
=
res
.
result
;
console
.
log
(
"this.ruleForm"
,
this
.
ruleForm
);
this
.
isShow
=
true
;
}
});
},
data
()
{
return
{
// 键名转换,方法默认是label和children进行树状渲染
normalizer
(
node
)
{
//方法
if
(
node
.
children
==
null
||
node
.
children
==
'null'
)
{
delete
node
.
children
;
}
return
{
id
:
node
.
dcode
,
label
:
node
.
dname
}
},
//表单是否可操作
propsParam
:
this
.
$attrs
,
ableOperation
:
true
,
key
:
0
,
isShow
:
false
,
disabled
:
true
,
czrOptions
:
[],
ruleForm
:
{},
//传递参数\
rules
:
{},
};
// 更新土地用途信息
upDateTdytxxList
(
val
)
{
console
.
log
(
"VAL"
,
val
);
this
.
ruleForm
.
tdytqxList
&&
(
this
.
ruleForm
.
tdytqxList
=
_
.
cloneDeep
(
val
));
this
.
key
++
;
},
created
()
{
this
.
loadData
();
// 更新权利人信息
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
&&
(
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
));
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
this
.
key
++
;
},
mounted
()
{
},
methods
:
{
loadData
()
{
console
.
log
(
"房地产权"
,
this
.
propsParam
);
init
(
this
.
propsParam
.
bsmRepair
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
ruleForm
=
res
.
result
;
this
.
isShow
=
true
;
// this.tableData = res.result;
// if (this.tableData.length < datas.columns().emptycolNum) {
// this.emptycolNum =
// datas.columns().emptycolNum - this.tableData.length;
// } else {
// this.emptycolNum = 0;
// }
}
// 更新义务人信息
upDateYwrxxList
(
val
)
{
this
.
ruleForm
.
ywrList
&&
(
this
.
ruleForm
.
ywrList
=
_
.
cloneDeep
(
val
));
this
.
key
++
;
},
onSubmit
()
{
console
.
log
(
"this.ruleForm大信息"
,
this
.
ruleForm
);
if
(
this
.
ruleForm
.
qlrList
.
length
==
0
)
{
this
.
$message
({
showClose
:
true
,
message
:
"请确认权利人信息"
,
type
:
"error"
,
});
},
// 更新土地用途信息
upDateTdytxxList
(
val
)
{
console
.
log
(
"VAL"
,
val
);
this
.
ruleForm
.
tdytqxList
&&
(
this
.
ruleForm
.
tdytqxList
=
_
.
cloneDeep
(
val
));
this
.
key
++
;
},
// 更新权利人信息
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
&&
(
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
));
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
this
.
key
++
;
},
// 更新义务人信息
upDateYwrxxList
(
val
)
{
this
.
ruleForm
.
ywrList
&&
(
this
.
ruleForm
.
ywrList
=
_
.
cloneDeep
(
val
));
this
.
key
++
;
},
onSubmit
()
{
console
.
log
(
"this.ruleForm大信息"
,
this
.
ruleForm
);
if
(
this
.
ruleForm
.
qlrList
.
length
==
0
)
{
return
false
;
}
if
(
this
.
ruleForm
.
qlxx
.
gyfs
==
"0"
)
{
if
(
this
.
ruleForm
.
qlrList
.
length
>
1
)
{
this
.
$message
({
showClose
:
true
,
message
:
"
请确认权利人信息
"
,
message
:
"
共有方式:单独所有,权利人只能是一个人
"
,
type
:
"error"
,
});
return
false
;
}
if
(
this
.
ruleForm
.
qlxx
.
gyfs
==
"0"
)
{
if
(
this
.
ruleForm
.
qlrList
.
length
>
1
)
{
this
.
$message
({
showClose
:
true
,
message
:
"共有方式:单独所有,权利人只能是一个人"
,
type
:
"error"
,
});
return
false
;
}
this
.
ruleForm
.
qlrList
[
0
].
sfczr
=
"1"
;
}
if
(
this
.
ruleForm
.
qlxx
.
gyfs
==
"1"
)
{
//是否分别持证
if
(
this
.
ruleForm
.
qlxx
.
sqfbcz
==
"1"
)
{
//是
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
this
.
ruleForm
.
qlrList
[
0
].
sfczr
=
"1"
;
}
if
(
this
.
ruleForm
.
qlxx
.
gyfs
==
"1"
)
{
//是否分别持证
if
(
this
.
ruleForm
.
qlxx
.
sqfbcz
==
"1"
)
{
//是
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
item
.
sfczr
=
"1"
;
});
}
else
{
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
zjh
==
this
.
ruleForm
.
czr
)
{
item
.
sfczr
=
"1"
;
});
}
else
{
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
zjh
==
this
.
ruleForm
.
czr
)
{
item
.
sfczr
=
"1"
;
}
else
{
item
.
sfczr
=
"0"
;
}
});
}
}
else
{
item
.
sfczr
=
"0"
;
}
});
}
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
(
{
showClose
:
true
,
message
:
"保存成功!"
,
type
:
"success
"
,
});
this
.
$store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
this
.
$message
(
{
showClose
:
true
,
message
:
res
.
messag
e
,
type
:
"error"
,
});
}
}
);
}
,
}
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"保存成功!
"
,
type
:
"success"
,
}
);
this
.
$store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
this
.
$message
({
showClose
:
tru
e
,
message
:
res
.
message
,
type
:
"error"
,
}
);
}
}
);
},
};
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
/
deep
/
.vue-treeselect__menu-container
{
transition
:
0.3s
!important
;
}
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
</
style
>
...
...
src/views/djbworkflow/mixin/index.js
View file @
9356473
...
...
@@ -79,20 +79,16 @@ export default {
})
break
;
case
"B2"
:
//材料分屏按钮
this
.
splitScreen
=
this
.
splitScreen
?
false
:
true
;
this
.
$store
.
dispatch
(
"app/set1tScreen"
,
this
.
splitScreen
);
if
(
this
.
splitScreen
)
{
//如果当前选项卡为材料信息内容,递减到上一个选项卡内容
if
(
this
.
tabName
==
this
.
clxxTab
.
value
)
{
this
.
tabName
=
this
.
tabList
[
this
.
clxxIndex
-
1
].
value
;
this
.
getFromRouter
(
this
.
tabList
[
this
.
clxxIndex
-
1
].
value
);
}
//删除材料信息选项卡数据
this
.
tabList
.
splice
(
this
.
clxxIndex
,
1
);
}
else
{
//新增材料信息选项卡数据
this
.
tabList
.
splice
(
this
.
clxxIndex
,
0
,
this
.
clxxTab
);
}
this
.
closefp
()
// if (this.splitScreen) {
// //如果当前选项卡为材料信息内容,递减到上一个选项卡内容
// if (this.tabName == this.clxxTab.value) {
// this.tabName = this.tabList[0].value;
// this.getFromRouter(this.tabList[0].value);
// }
// }
break
;
case
"B3"
:
//材料导入
document
.
getElementById
(
"cldr"
).
click
();
...
...
src/views/djbworkflow/workFrame.vue
View file @
9356473
...
...
@@ -73,7 +73,7 @@
<
script
>
import
WorkFlow
from
"./mixin/index"
;
import
{
getForm
}
from
"./flowform"
;
import
{
getStepFormInfo
}
from
"@/api/fqsq.js"
import
{
getStepFormInfo
}
from
"@/api/fqsq.js"
;
import
NoticeBar
from
"@/components/NoticeBar/index"
;
import
ProcessViewer
from
"./components/processViewer.vue"
;
// 引入左侧菜单
...
...
@@ -118,12 +118,9 @@ export default {
//设置表单传递数据
currentSelectProps
:
{},
// 首次拿到的业务信息
oneSelectProps
:{},
oneSelectProps
:
{},
//材料信息选择卡索引
clxxIndex
:
""
,
//材料信息选项卡对象
clxxTab
:
{},
oneget
:
true
,
oneget
:
true
,
//页面监听时间
_beforeUnload_time
:
""
,
treedata
:
{},
...
...
@@ -132,60 +129,55 @@ export default {
};
},
mounted
()
{
// this.getleftMenubl()
// this.getleftMenubl()
},
methods
:
{
stepForm
(
qllx
)
{
this
.
oneSelectProps
.
qllx
=
qllx
if
(
this
.
$refs
.
Menu
.
supplementarylist
.
length
){
getStepFormInfo
(
this
.
oneSelectProps
).
then
((
res
)
=>
{
this
.
$nextTick
(
function
()
{
this
.
tabList
=
res
.
result
this
.
tabName
=
this
.
tabList
[
0
].
value
;
this
.
getFromRouter
(
this
.
tabName
)
stepForm
(
qllx
)
{
this
.
oneSelectProps
.
qllx
=
qllx
;
if
(
this
.
$refs
.
Menu
.
supplementarylist
.
length
)
{
getStepFormInfo
(
this
.
oneSelectProps
).
then
((
res
)
=>
{
this
.
$nextTick
(
function
()
{
this
.
tabList
=
res
.
result
;
this
.
tabName
=
this
.
tabList
[
0
].
value
;
this
.
getFromRouter
(
this
.
tabName
);
});
})
}
},
// 获取右侧菜单
})
;
}
},
// 获取右侧菜单
// getleftMenubl() {
// leftMenubl(this.bsmSlsq).then((res) => {
// this.supplementarylist = res.result;
// })
// },
getQllxByBdcdyid
()
{
if
(
this
.
currentSelectProps
.
bdcdyid
){
getQllxByBdcdyid
({
bdcdyid
:
this
.
currentSelectProps
.
bdcdyid
}).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$refs
.
qllxlist
.
qllxlistdata
=
res
.
result
;
this
.
$refs
.
qllxlist
.
dialogVisible
=
true
;
if
(
this
.
currentSelectProps
.
bdcdyid
)
{
getQllxByBdcdyid
({
bdcdyid
:
this
.
currentSelectProps
.
bdcdyid
}).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$refs
.
qllxlist
.
qllxlistdata
=
res
.
result
;
this
.
$refs
.
qllxlist
.
dialogVisible
=
true
;
}
}
}
);
);
}
},
// 获取右侧选项卡
getCurrentSelectProps
(
val
)
{
if
(
val
.
bdcdyid
)
{
if
(
val
.
bdcdyid
)
{
this
.
oneSelectProps
=
val
;
}
this
.
currentSelectProps
=
val
;
if
(
this
.
currentSelectProps
.
bsmRepair
)
{
this
.
stepForm
(
this
.
currentSelectProps
.
qllx
)
}
else
if
(
!
this
.
oneget
)
{
this
.
stepForm
(
this
.
currentSelectProps
.
qllx
);
}
else
if
(
!
this
.
oneget
)
{
this
.
getdjblist
();
}
if
(
this
.
oneget
){
this
.
oneget
=
false
this
.
stepForm
(
this
.
currentSelectProps
.
qllx
)
if
(
this
.
oneget
)
{
this
.
oneget
=
false
;
this
.
stepForm
(
this
.
currentSelectProps
.
qllx
);
}
},
// 获取渲染登记簿列表
getdjblist
()
{
...
...
@@ -196,22 +188,23 @@ export default {
if
(
res
.
code
===
200
)
{
this
.
treedata
=
loadTreeData
(
res
.
result
,
this
.
bdcdyh
);
this
.
$nextTick
(
function
()
{
this
.
defaultNode
=
getNode
(
this
.
currentSelectProps
.
qllx
,
{
linShi
:
0
,
xianShi
:
0
,
liShi
:
0
},
);
this
.
defaultNode
=
getNode
(
this
.
currentSelectProps
.
qllx
,
{
linShi
:
0
,
xianShi
:
0
,
liShi
:
0
,
});
this
.
tabName
=
this
.
defaultNode
.
id
;
//data[0].id为默认选中的节点
});
let
settree
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
treedata
));
this
.
tabdata
=
[
...
settree
,
...
settree
[
1
].
children
[
0
].
children
[
0
].
children
,
];
this
.
tabdata
.
forEach
((
item
,
index
,
arr
)
=>
{
arr
[
index
].
name
=
item
.
label
;
arr
[
index
].
value
=
item
.
id
;
});
this
.
tabList
=
this
.
tabdata
;
let
settree
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
treedata
));
this
.
tabdata
=
[
...
settree
,
...
settree
[
1
].
children
[
0
].
children
[
0
].
children
,
];
this
.
tabdata
.
forEach
((
item
,
index
,
arr
)
=>
{
arr
[
index
].
name
=
item
.
label
;
arr
[
index
].
value
=
item
.
id
;
});
this
.
tabList
=
this
.
tabdata
;
}
});
},
...
...
@@ -221,11 +214,18 @@ export default {
},
//切换选项卡内容组件
getFromRouter
(
tabname
)
{
console
.
log
(
"tabname"
,
tabname
);
this
.
componentTag
=
getForm
(
tabname
);
},
closefp
()
{
console
.
log
(
"点击分屏"
);
this
.
splitScreen
=
this
.
splitScreen
?
false
:
true
;
this
.
$store
.
dispatch
(
"app/set1tScreen"
,
this
.
splitScreen
);
this
.
getFromRouter
(
this
.
tabList
[
0
].
value
);
this
.
clxxForm
=
getForm
(
this
.
tabList
[
1
].
value
);
},
// 增加补录记录
addRepairRecord
(
row
,
del
)
{
addRepairRecord
(
row
,
del
)
{
let
from
=
{
bsmQlxx
:
""
,
bsmSlsq
:
this
.
bsmSlsq
,
...
...
@@ -235,33 +235,34 @@ export default {
};
if
(
row
)
{
from
.
bsmQlxx
=
row
.
bsmQlxx
;
if
(
del
)
{
if
(
del
)
{
from
.
operate
=
del
;
}
else
{
from
.
operate
=
row
.
bsmQlxx
?
"U"
:
"C"
;
}
else
{
from
.
operate
=
row
.
bsmQlxx
?
"U"
:
"C"
;
}
from
.
qllx
=
row
.
qllx
;
}
addRepairRecord
(
from
).
then
((
res
)
=>
{
if
(
res
.
code
==
'200'
){
this
.
$refs
.
qllxlist
.
dialogVisible
=
false
;
this
.
$nextTick
(()
=>
{
this
.
$refs
.
Menu
.
getleftMenubl
(
res
.
result
);
this
.
$message
({
type
:
"success"
,
message
:
"补录成功!"
,
});
});
}
else
{
this
.
$alert
(
res
.
message
,
'提示'
,
{
confirmButtonText
:
'确定'
,
type
:
'warning'
addRepairRecord
(
from
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
"200"
)
{
this
.
$refs
.
qllxlist
.
dialogVisible
=
false
;
this
.
$nextTick
(()
=>
{
this
.
$refs
.
Menu
.
getleftMenubl
(
res
.
result
);
this
.
$message
({
type
:
"success"
,
message
:
"补录成功!"
,
});
});
}
else
{
this
.
$alert
(
res
.
message
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"warning"
,
});
}
})
.
catch
((
res
)
=>
{
console
.
log
(
"错"
,
res
);
});
}
}).
catch
((
res
)
=>
{
console
.
log
(
"错"
,
res
);
});;
},
},
};
...
...
src/views/workflow/components/dialog/addTdyt.vue
deleted
100644 → 0
View file @
9400b94
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-17 10:39:47
-->
<
template
>
<dialogBox
title=
"土地用途信息"
width=
"60%"
isMain
v-model=
"myValue"
:isFullscreen=
"false"
@
submitForm=
"submitForm"
@
closeDialog=
"closeDialog"
:isButton=
"showButton"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"138px"
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"土地用途"
prop=
"tdyt"
>
<el-input
v-model=
"ruleForm.tdyt"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"土地使用权限"
prop=
"syqx"
>
<el-input
v-model=
"ruleForm.syqx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"土地使用结束时间"
prop=
"jssj"
>
<el-date-picker
v-model=
"ruleForm.jssj"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
>
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"土地使用起止时间"
prop=
"qzsj"
>
<el-date-picker
v-model=
"ruleForm.qzsj"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
>
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
</dialogBox>
</
template
>
z x addTdyt
<
script
>
import
{
mapGetters
}
from
"vuex"
;
export
default
{
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
details
:
{
type
:
Object
,
default
:
{}
},
showButton
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
myValue
:
this
.
value
,
ruleForm
:
{
tdyt
:
""
,
syqx
:
""
,
jssj
:
""
,
qzsj
:
""
},
rules
:
{
tdyt
:
[{
required
:
true
,
message
:
"土地用途"
,
trigger
:
"blur"
}],
syqx
:
[{
required
:
true
,
message
:
"土地使用权限"
,
trigger
:
"blur"
}],
jssj
:
[{
required
:
true
,
message
:
"土地使用结束时间"
,
trigger
:
"blur"
}],
qzsj
:
[{
required
:
true
,
message
:
"土地使用起止时间"
,
trigger
:
"blur"
}],
},
};
},
watch
:
{
value
(
val
)
{
console
.
log
(
"val"
,
val
);
this
.
myValue
=
_
.
cloneDeep
(
val
);
},
details
:
{
handler
:
function
(
val
,
oldVal
)
{
console
.
log
(
"val2"
,
val
);
this
.
ruleForm
=
val
;
},
deep
:
true
,
},
},
methods
:
{
closeDialog
()
{
this
.
$emit
(
"input"
,
false
);
this
.
$refs
[
"ruleForm"
].
resetFields
();
},
submitForm
()
{
console
.
log
(
"this.ruleForm"
,
this
.
ruleForm
);
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$emit
(
"input"
,
false
);
this
.
$emit
(
"updateDetail"
,
_
.
cloneDeep
(
this
.
ruleForm
));
}
else
{
return
false
;
}
});
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/dialogBoxheader.scss"
;
.submit-button
{
text-align
:
center
;
height
:
52px
;
padding-top
:
10px
;
background-color
:
#fff
;
}
</
style
>
src/views/workflow/components/tdytTable.vue
View file @
9356473
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment