Commit 500a92bc authored by xinzhedeai's avatar xinzhedeai

公司日期切换问题处理

parent 564274f3
......@@ -685,9 +685,13 @@ var reqApis = function(){
"isTechSme": { 'type': 'select', 'name': '是否科技型中小企业', table:0, inputCombine_1:'Y', inputCombineArr_1: {
"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, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"techSmeDate": { 'type': 'date', 'name': '最新评选日期', table:0,form:0, inputCombine_2:'Y',inputCombineArr_2: {}},
"isHighTech": { 'type': 'select', 'name': '是否高新技术企业', table:0, inputCombine_1:'Y' , inputCombineArr_1: {
"isHighTech":{'name': '是否高新技术企业','type':'select'},
......
......@@ -286,11 +286,16 @@ export default {
});
},
watch: {
'basicActv':{
'form.visible':{
handler(newValue) {
// console.log('模态框显隐!!!', this.catchItem['isHighGrowthInnovative'])
setTimeout(()=>{ // 用于详情弹窗显隐处理
[{
console.log('编辑表单模态框显隐11!!!', this.form.item)
const tempArr = [{
key: 'incubationStatus', // 企业孵化状态
subKey: 'graduationDate' // 子元素(随着主元素值改变而显隐处理)
},{
key: 'isHighGrowthInnovative', // 主元素
subKey: 'highGrowthInnovativeDate' // 子元素(随着主元素值改变而显隐处理)
},
......@@ -318,80 +323,125 @@ export default {
key: 'isGazelle',
subKey: 'gazelleDate'
}
].forEach((item, index)=>{
this.toggleDateElement(item.subKey, this.catchItem[item.key]);
]
tempArr.forEach((item, index)=>{
if( this.form.item[item.key]){ // 根据下拉列表获取当前对应的父下拉框的值
this.Dict.baseInfo[item.subKey].form = 1 // 父下拉框值为是,则显示子元素
}else{
this.Dict.baseInfo[item.subKey].form = 0
}
})
// 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");
// },
// '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'
// }
// ].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");
// // },
},
methods: {
beforeUpload(file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment