diff --git a/src/views/teacherInfo/fieldComponent/FieldRowItem.vue b/src/views/teacherInfo/fieldComponent/FieldRowItem.vue
index 6eb7700..fc4e97b 100644
--- a/src/views/teacherInfo/fieldComponent/FieldRowItem.vue
+++ b/src/views/teacherInfo/fieldComponent/FieldRowItem.vue
@@ -61,13 +61,13 @@
this.$set(col.data[e.newIndex].props,"is_table_field",false)
}else{
this.curItem.item.id = this.curItem.item.tag + "_" + Common.getRandom(12);
- if(this.curItem.item.tag !== "label"){
+ // if(this.curItem.item.tag !== "label"){
Object.keys(this.commonConfig).forEach((prop)=>{
this.$set(this.curItem.item.props,prop,this.commonConfig[prop])
});
- }else{
- this.$set(this.curItem.item.props,"label_alignment",this.commonConfig["label_alignment"])
- }
+ // }else{
+ // this.$set(this.curItem.item.props,"label_alignment",this.commonConfig["label_alignment"])
+ // }
if (this.curItem.item.field_type <=24 && this.curItem.item.field_type >= 21){
this.curItem.item.props.show_title = false;
diff --git a/src/views/teacherInfo/fieldComponent/SonForm.vue b/src/views/teacherInfo/fieldComponent/SonForm.vue
index 7dada84..f341945 100644
--- a/src/views/teacherInfo/fieldComponent/SonForm.vue
+++ b/src/views/teacherInfo/fieldComponent/SonForm.vue
@@ -98,7 +98,7 @@
}else{
this.curItem.item.id = this.curItem.item.tag + "_" + Common.getRandom(12);
this.$set(this.curItem.item.props,"is_sonForm_field",true)
- if(this.curItem.item.tag !== "label"){
+ // if(this.curItem.item.tag !== "label"){
Object.keys(this.commonConfig).forEach((prop)=>{
if (prop === "label_alignment"){
this.$set(this.curItem.item.props,"label_alignment",this.data.props.son_label_alignment)
@@ -106,9 +106,9 @@
this.$set(this.curItem.item.props,prop,this.commonConfig[prop])
}
});
- }else{
- this.$set(this.curItem.item.props,"label_alignment",this.data.props.son_label_alignment)
- }
+ // }else{
+ // this.$set(this.curItem.item.props,"label_alignment",this.data.props.son_label_alignment)
+ // }
this.$bus.emit("clickItem",this.curItem.item)
}
},
diff --git a/src/views/teacherInfo/fieldComponent/SonFormFilling.vue b/src/views/teacherInfo/fieldComponent/SonFormFilling.vue
index 041717c..320c001 100644
--- a/src/views/teacherInfo/fieldComponent/SonFormFilling.vue
+++ b/src/views/teacherInfo/fieldComponent/SonFormFilling.vue
@@ -4,8 +4,8 @@
{{data.props.label_prefix + data.field_name + data.props.label_suffix}}
-
添加一条
-
批量删除
+
添加一条
+
批量删除
{return index + 1},align:'center',width:60})
}
this.fieldData.props.data.forEach((item)=>{
- let obj = {align:"center",title:item.props.label_prefix + item.field_name + item.props.label_suffix,dataIndex:item.id + "_json_copy",
- scopedSlots:{customRender:"col"},slots:{title:"headerTitle"},width:item.field_type === 11?300:150};
+ let obj = {align:item.props.label_alignment === "flex-start"?"left":(item.props.label_alignment === "center"?"center":"right"),
+ title:item.props.label_prefix + item.field_name + item.props.label_suffix,dataIndex:item.id + "_json_copy",
+ scopedSlots:{customRender:"col"},slots:{title:"headerTitle"},width:item.field_type === 11?300:150,};
ary.push(obj)
})
@@ -247,16 +248,16 @@
}
.operate-container-style{
width: 100%;
- height: 2.5rem;
+ /*height: 2.5rem;*/
display: flex;
align-content: center;
align-items: center;
justify-items: flex-end;
justify-content: flex-end;
.btn-style{
- margin-left: 0.5rem;
+ /*margin-left: 0.5rem;*/
font-size: 0.875rem;
- height: 2rem;
+ height: 1.5rem;
}
}
.operate-btn-style{
diff --git a/src/views/teacherInfo/fieldComponent/Table.vue b/src/views/teacherInfo/fieldComponent/Table.vue
index 63581c3..f4197dc 100644
--- a/src/views/teacherInfo/fieldComponent/Table.vue
+++ b/src/views/teacherInfo/fieldComponent/Table.vue
@@ -123,13 +123,13 @@
this.$set(this.curItem.item.props,"titleDivider",this.data.props.titleDivider);
this.$set(this.curItem.item.props,"borderColor",this.data.props.borderColor);
this.$set(this.curItem.item.props,"borderSize",this.data.props.borderSize);
- if(this.curItem.item.tag !== "label"){
+ // if(this.curItem.item.tag !== "label"){
Object.keys(this.commonConfig).forEach((prop)=>{
this.$set(this.curItem.item.props,prop,this.commonConfig[prop])
});
- }else{
- this.$set(this.curItem.item.props,"label_alignment",this.commonConfig["label_alignment"])
- }
+ // }else{
+ // this.$set(this.curItem.item.props,"label_alignment",this.commonConfig["label_alignment"])
+ // }
if (this.curItem.item.field_type <=24 && this.curItem.item.field_type >= 21){
this.curItem.item.props.show_title = false;
diff --git a/src/views/teacherInfo/formCommon/EditAndViewForm.vue b/src/views/teacherInfo/formCommon/EditAndViewForm.vue
index 73d8b80..60377cb 100644
--- a/src/views/teacherInfo/formCommon/EditAndViewForm.vue
+++ b/src/views/teacherInfo/formCommon/EditAndViewForm.vue
@@ -677,7 +677,7 @@
json.form_id = field.form_id;
json.child_form_id = field.child_form_id;
let field_type = parseInt(json.field_type);
- if (json.field_type === 1 && json.field_input_type === 2){//系统自动填充
+ if (field_type === 1 && json.field_input_type === 2){//系统自动填充
if (json.filed_auto_input_info === "person_num"){
json.props.value = this.workers_no?this.workers_no:"";
}else if (json.filed_auto_input_info === "person_name"){
@@ -687,36 +687,26 @@
}
}else if(json.is_input_field === 1){//输入场
this.organizeData(json,data)
- }else if(field_type > 200){//子表单、表格 、栅格
- json.field_type = parseInt(field_type.toString().substr(0,2))
- if(parseInt(field_type.toString().substr(2,1)) === 1){//包含其它字段
- if (data){//已经填写过数据的获取子表单填写的数据
- this.sonFormCount += 1;
- this.getChildFormData(json,data.data_id,data.version_no)
- }else{//未填写过数据的 自己构造数据
- if (json.tag === "son_form"){//子表单
- json.props.tableData = [];
- if (json.props.defaultLineCount > 0){//默认显示行数大于1
- for(let i = 0; i < json.props.defaultLineCount; i++){
- let data = {value_id:GUID_UUID.guid()}
- json.props.data.forEach((item)=>{
- // if (item.column_name && item.column_name !== ""){
- // data[item.column_name + "_json"] = _.cloneDeep(item)
- // }else{
- data[item.id + "_json"] = _.cloneDeep(item);
- data[item.id + "_json_copy"] = _.cloneDeep(item)
- // }
- })
- json.props.tableData.push(data)
- }
- }
+ }else if(json.tag === "son_form"){//子表单
+ if (data && data.value_id){//已经填写过数据的获取子表单填写的数据
+ this.sonFormCount += 1;
+ this.getChildFormData(json,data.data_id,data.version_no)
+ }else{//未填写过数据的 自己构造数据
+ json.props.tableData = [];
+ if (json.props.defaultLineCount > 0){//默认显示行数大于1
+ for(let i = 0; i < json.props.defaultLineCount; i++){
+ let data = {value_id:GUID_UUID.guid()}
+ json.props.data.forEach((item)=>{
+ data[item.id + "_json"] = _.cloneDeep(item);
+ data[item.id + "_json_copy"] = _.cloneDeep(item);
+ })
+ json.props.tableData.push(data)
}
}
}
}
this.field_list.push(json);
})
- // this.field_list = field_list;
this.mainFormErgodicComplete = true;//主表单遍历完成
if (this.sonFormCount === this.hasGetFormDataCount){//子表单数据已经全部整理完毕
this.deleteNotMainField();
diff --git a/src/views/teacherInfo/menu/Menu.vue b/src/views/teacherInfo/menu/Menu.vue
index 7672af2..296c3e5 100644
--- a/src/views/teacherInfo/menu/Menu.vue
+++ b/src/views/teacherInfo/menu/Menu.vue
@@ -213,9 +213,10 @@
changeMenu:function () {
if(this.towLevelIndexPath !== -1){//选中的是二级菜单
let twoLevelIndex = parseInt(this.towLevelIndexPath.split("-")[1]);
+ this.letMenuIndex = parseInt(this.towLevelIndexPath.split("-")[0]);
this.selectedMenu = (this.leftMenu[parseInt(this.letMenuIndex)].children)[twoLevelIndex];
StaticParams.menuLocation[0] = this.leftMenu[parseInt(this.letMenuIndex)].purview_name;
- StaticParams.menuLocation[1] = this.selectedMenu.purview_name
+ StaticParams.menuLocation[1] = this.selectedMenu.purview_name;
}else{
this.selectedMenu = this.leftMenu[parseInt(this.letMenuIndex)];
StaticParams.menuLocation[0] = this.selectedMenu.purview_name;
diff --git a/src/views/teacherInfo/systemConfig/FieldAttributeConfig.vue b/src/views/teacherInfo/systemConfig/FieldAttributeConfig.vue
index 66e5bf0..084255f 100644
--- a/src/views/teacherInfo/systemConfig/FieldAttributeConfig.vue
+++ b/src/views/teacherInfo/systemConfig/FieldAttributeConfig.vue
@@ -35,7 +35,7 @@
diff --git a/src/views/teacherInfo/systemConfig/FieldItem.vue b/src/views/teacherInfo/systemConfig/FieldItem.vue
index 2724a4e..60933ef 100644
--- a/src/views/teacherInfo/systemConfig/FieldItem.vue
+++ b/src/views/teacherInfo/systemConfig/FieldItem.vue
@@ -16,14 +16,15 @@
'calc((100% - ' + fieldData.props.label_width + 'rem) * ' + fieldData.props.content_width / 100 +')'),paddingLeft:design ||
fieldData.props.showTitle === false || [21,22,23,24,210,211,230,231,240,241].some((num)=>{return num === fieldData.field_type})?null:'0.5rem',marginBottom:design ||
(design === false && fieldData.props.is_table_field === true)?null:'0.5rem',paddingRight:!design && fieldData.props.is_table_field === true?'0.5rem':null,
- pointerEvents:(design && (fieldData.tag !== 'son_form' && fieldData.tag !== 'grid' && fieldData.tag !== 'table')) || (edit === false && (fieldData.field_type !== 9 && fieldData.field_type !== 10))?'none':null,borderLeft:design ||
+ pointerEvents:(design && (fieldData.tag !== 'son_form' && fieldData.tag !== 'grid' && fieldData.tag !== 'table')) ||
+ (edit === false && (fieldData.field_type !== 9 && fieldData.field_type !== 10))?'none':null,borderLeft:design ||
fieldData.props.show_title === false || [21,22,23,24,230,231,210,211,240,241].some((num)=>{return num === fieldData.field_type}) || fieldData.props.is_sonForm_field === true ||
(fieldData.props.is_table_field && fieldData.props.titleDivider === false)?null:'1px solid #e5e5e5',
borderLeftColor:fieldData.props.is_table_field && fieldData.props.titleDivider === true?fieldData.props.borderColor:'#e5e5e5',
borderLeftWidth:fieldData.props.is_table_field && fieldData.props.titleDivider === true?fieldData.props.borderSize + 'px':'1px'}">
-
+
diff --git a/src/views/teacherInfo/systemConfig/FormDesign.vue b/src/views/teacherInfo/systemConfig/FormDesign.vue
index 4590d77..1e60c57 100644
--- a/src/views/teacherInfo/systemConfig/FormDesign.vue
+++ b/src/views/teacherInfo/systemConfig/FormDesign.vue
@@ -247,7 +247,7 @@ export default {
})
}else{
StaticParams.showPopModal(this,'预览','views/teacherInfo/formCommon/ViewForm.vue',
- {"fieldsList":_.cloneDeep(this.fieldsList),"form_width":this.form_width},false,true,null,"80%","preview-style")
+ {"fieldsList":_.cloneDeep(this.fieldsList),"form_width":this.form_width},false,true,null,"calc(55% + 48px)","preview-style")
}
},
returnList:function(){
diff --git a/src/views/teacherInfo/systemConfig/fieldAndFormConfig.js b/src/views/teacherInfo/systemConfig/fieldAndFormConfig.js
index 2c62263..168379d 100644
--- a/src/views/teacherInfo/systemConfig/fieldAndFormConfig.js
+++ b/src/views/teacherInfo/systemConfig/fieldAndFormConfig.js
@@ -75,7 +75,7 @@ export const baseFields = [
]
export const advancedFields = [
- { field_type: 8, field_name: '证件照',tag:"portrait",icon:"icon-yuangong-01",showTitle:true,content_width:100,props:{max_length:"text"}},
+ // { field_type: 8, field_name: '证件照',tag:"portrait",icon:"icon-yuangong-01",showTitle:true,content_width:100,props:{max_length:"text"}},
{ field_type: 9, field_name: '图片上传',tag:"img",el:"FileUpload.vue",attributeUrl:"FileUploadAttribute",icon:"icon-Img",
props:{value:[],max_length:"text",can_search:false,is_search:false,type:2,title:'上传图片',option:{no_user:""},can_downLoad:true,multiple:true,is_certificate:false,can_delete:true}},