Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuIncubator
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
Kimber
GaoQuIncubator
Commits
427aa059
Commit
427aa059
authored
Nov 05, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业信息 日期开给联动问题处理
parent
500a92bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
144 deletions
+132
-144
httpApi.js
src/assets/js/httpApi.js
+1
-5
index.vue
src/views/business/basicInfo/index.vue
+131
-139
No files found.
src/assets/js/httpApi.js
View file @
427aa059
...
...
@@ -686,12 +686,8 @@ var reqApis = function(){
"
isTechSme
"
:{
'
name
'
:
'
是否科技型中小企业
'
,
'
type
'
:
'
select
'
},
"
techSmeDate
"
:{
'
name
'
:
'
最新评选日期
'
},
},
change
:
function
(
val
){
var
Dict
=
this
.
Dict
;
Dict
.
baseInfo
.
techSmeDate
.
form
=
~~
(
val
===
true
);
}
},
// inputCombine_1 组合框中的父输入框
"
techSmeDate
"
:
{
'
type
'
:
'
date
'
,
'
name
'
:
'
最新评选日期
'
,
table
:
0
,
form
:
0
,
inputCombine_2
:
'
Y
'
,
inputCombineArr_2
:
{}},
"
techSmeDate
"
:
{
'
type
'
:
'
date
'
,
'
name
'
:
'
最新评选日期
'
,
table
:
0
,
mode
:
7
,
inputCombine_2
:
'
Y
'
,
inputCombineArr_2
:
{}},
"
isHighTech
"
:
{
'
type
'
:
'
select
'
,
'
name
'
:
'
是否高新技术企业
'
,
table
:
0
,
inputCombine_1
:
'
Y
'
,
inputCombineArr_1
:
{
"
isHighTech
"
:{
'
name
'
:
'
是否高新技术企业
'
,
'
type
'
:
'
select
'
},
...
...
src/views/business/basicInfo/index.vue
View file @
427aa059
...
...
@@ -288,41 +288,15 @@ export default {
watch
:
{
'
form.visible
'
:{
handler
(
newValue
)
{
console
.
log
(
'
编辑表单模态框显隐11!!!
'
,
this
.
form
.
item
)
handler
(
newValue
)
{
/**
* 针对form处理逻辑,企业孵化装填字段好用,单独处理。(是否科技型中小也可以,不过为了布局,暂不放在这里面处理)
*/
// console.log('编辑表单模态框显隐11!!!', this.form.item)
const
tempArr
=
[{
key
:
'
incubationStatus
'
,
// 企业孵化状态
subKey
:
'
graduationDate
'
// 子元素(随着主元素值改变而显隐处理)
},{
key
:
'
isHighGrowthInnovative
'
,
// 主元素
subKey
:
'
highGrowthInnovativeDate
'
// 子元素(随着主元素值改变而显隐处理)
},
{
key
:
'
isHighTech
'
,
subKey
:
'
highTechDate
'
},
{
key
:
'
isAdvancedTechService
'
,
subKey
:
'
advancedTechServiceDate
'
},
{
key
:
'
isSpecializedSpecialEnterprises
'
,
subKey
:
'
specializedSpecialEnterprisesDate
'
},
{
key
:
'
isTechSme
'
,
subKey
:
'
techSmeDate
'
},
{
key
:
'
isLittleGiant
'
,
subKey
:
'
littleGiantDate
'
},
{
key
:
'
isGazelle
'
,
subKey
:
'
gazelleDate
'
}
}
]
tempArr
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
form
.
item
[
item
.
key
]){
// 根据下拉列表获取当前对应的父下拉框的值
...
...
@@ -331,117 +305,135 @@ export default {
this
.
Dict
.
baseInfo
[
item
.
subKey
].
form
=
0
}
})
setTimeout
(()
=>
{
// 用于详情弹窗显隐处理
[{
key
:
'
isHighGrowthInnovative
'
,
// 主元素
subKey
:
'
highGrowthInnovativeDate
'
// 子元素(随着主元素值改变而显隐处理)
},
{
key
:
'
isHighTech
'
,
subKey
:
'
highTechDate
'
},
{
key
:
'
isTechSme
'
,
subKey
:
'
techSmeDate
'
},
{
key
:
'
isAdvancedTechService
'
,
subKey
:
'
advancedTechServiceDate
'
},
{
key
:
'
isSpecializedSpecialEnterprises
'
,
subKey
:
'
specializedSpecialEnterprisesDate
'
},
{
key
:
'
isLittleGiant
'
,
subKey
:
'
littleGiantDate
'
},
{
key
:
'
isGazelle
'
,
subKey
:
'
gazelleDate
'
}
].
forEach
((
item
,
index
)
=>
{
this
.
toggleDateElement
(
item
.
subKey
,
this
.
form
.
item
[
item
.
key
]);
})
},
1000
)
},
immediate
:
true
// 立即调用处理函数
},
// 'basicActv':{
// handler(newValue) {
// // 针对联动输入框显隐设置
// console.log('模态框显隐!!!', this.Dict)
// setTimeout(()=>{ // 用于详情弹窗显隐处理
// [{
// key: 'isHighGrowthInnovative', // 主元素
// subKey: 'highGrowthInnovativeDate' // 子元素(随着主元素值改变而显隐处理)
// },
// {
// key: 'isHighTech',
// subKey: 'highTechDate'
// },
// {
// key: 'isAdvancedTechService',
// subKey: 'advancedTechServiceDate'
// },
// {
// key: 'isSpecializedSpecialEnterprises',
// subKey: 'specializedSpecialEnterprisesDate'
// },
// {
// key: 'isTechSme',
// subKey: 'techSmeDate'
// },
// {
// key: 'isLittleGiant',
// subKey: 'littleGiantDate'
// },
// {
// key: 'isGazelle',
// subKey: 'gazelleDate'
// }
// 'basicActv':{
// handler(newValue) {
// // 针对联动输入框显隐设置
// console.log('模态框显隐!!!', this.Dict)
// setTimeout(()=>{ // 用于详情弹窗显隐处理
// [{
// key: 'isHighGrowthInnovative', // 主元素
// subKey: 'highGrowthInnovativeDate' // 子元素(随着主元素值改变而显隐处理)
// },
// {
// key: 'isHighTech',
// subKey: 'highTechDate'
// },
// {
// key: 'isAdvancedTechService',
// subKey: 'advancedTechServiceDate'
// },
// {
// key: 'isSpecializedSpecialEnterprises',
// subKey: 'specializedSpecialEnterprisesDate'
// },
// {
// key: 'isLittleGiant',
// subKey: 'littleGiantDate'
// },
// {
// key: 'isGazelle',
// subKey: 'gazelleDate'
// }
// ].forEach((item, index)=>{
// this.toggleDateElement(item.subKey, this.catchItem[item.key]);
// })
// // this.toggleDateElement("highGrowthInnovativeDate", this.form.item.isHighGrowthInnovative);
// },1000)
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isHighGrowthInnovative"(newVal, oldVal) {
// // this.toggleDateElement("highGrowthInnovativeDate");
// // },
// "form.item.isHighGrowthInnovative": {
// handler(newValue) {
// this.toggleDateElement("highGrowthInnovativeDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isHighTech"(newVal, oldVal) {
// // this.toggleDateElement("highTechDate");
// // },
// "form.item.isHighTech": {
// handler(newValue) {
// this.toggleDateElement("highTechDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// "form.item.isAdvancedTechService": {
// handler(newValue) {
// this.toggleDateElement("advancedTechServiceDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isAdvancedTechService"(newVal, oldVal) {
// // this.toggleDateElement("advancedTechServiceDate");
// // },
// "form.item.isSpecializedSpecialEnterprises": {
// handler(newValue) {
// this.toggleDateElement("specializedSpecialEnterprisesDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isSpecializedSpecialEnterprises"(newVal, oldVal) {
// // this.toggleDateElement("specializedSpecialEnterprisesDate");
// // },
// "form.item.isTechSme": {
// handler(newValue) {
// this.toggleDateElement("techSmeDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isTechSme"(newVal, oldVal) {
// // this.toggleDateElement("techSmeDate");
// // },
// "form.item.isLittleGiant": {
// handler(newValue) {
// this.toggleDateElement("littleGiantDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isLittleGiant"(newVal, oldVal) {
// // this.toggleDateElement("littleGiantDate");
// // },
// "form.item.isGazelle": {
// handler(newValue) {
// this.toggleDateElement("gazelleDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isGazelle"(newVal, oldVal) {
// // this.toggleDateElement("gazelleDate");
// // },
// ].forEach((item, index)=>{
// this.toggleDateElement(item.subKey, this.catchItem[item.key]);
// })
// // this.toggleDateElement("highGrowthInnovativeDate", this.form.item.isHighGrowthInnovative);
// },1000)
// },
// immediate: true // 立即调用处理函数
// },
"
form.item.isHighGrowthInnovative
"
:
{
handler
(
newValue
)
{
this
.
toggleDateElement
(
"
highGrowthInnovativeDate
"
,
newValue
);
},
immediate
:
true
// 立即调用处理函数
},
"
form.item.isHighTech
"
:
{
handler
(
newValue
)
{
this
.
toggleDateElement
(
"
highTechDate
"
,
newValue
);
},
immediate
:
true
,
// 立即调用处理函数
deep
:
true
,
},
"
form.item.isAdvancedTechService
"
:
{
handler
(
newValue
)
{
this
.
toggleDateElement
(
"
advancedTechServiceDate
"
,
newValue
);
},
immediate
:
true
// 立即调用处理函数
},
"
form.item.isSpecializedSpecialEnterprises
"
:
{
handler
(
newValue
)
{
this
.
toggleDateElement
(
"
specializedSpecialEnterprisesDate
"
,
newValue
);
},
immediate
:
true
// 立即调用处理函数
},
"
form.item.isTechSme
"
:
{
handler
(
newValue
)
{
this
.
toggleDateElement
(
"
techSmeDate
"
,
newValue
);
},
immediate
:
true
// 立即调用处理函数
},
"
form.item.isLittleGiant
"
:
{
handler
(
newValue
)
{
this
.
toggleDateElement
(
"
littleGiantDate
"
,
newValue
);
},
immediate
:
true
// 立即调用处理函数
},
"
form.item.isGazelle
"
:
{
handler
(
newValue
)
{
this
.
toggleDateElement
(
"
gazelleDate
"
,
newValue
);
},
immediate
:
true
// 立即调用处理函数
},
},
methods
:
{
beforeUpload
(
file
)
{
...
...
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