Browse Source

修改参数

qin_26
herenshan112 1 month ago
parent
commit
6eaf4ddd07
  1. 3
      src/api/DesignForm/type.ts
  2. 11
      src/api/DesignForm/types.ts
  3. 16
      src/components/DesignForm/public/form/formGroup.vue
  4. 6
      src/views/sysworkflow/lowcodepage/appPage/createAppFormPage.vue
  5. 2
      src/views/sysworkflow/lowcodepage/pageFlow/tableFlow.vue

3
src/api/DesignForm/type.ts

@ -31,8 +31,9 @@ export type CustomerFormPageResult = PageResult<customerFormCont[]>;
//初始化表单基本信息 //初始化表单基本信息
export interface customerFormConfig{ export interface customerFormConfig{
formname:string; formName:string;
formlogo:string; formlogo:string;
signCode:string;
} }
//根据Id获取信息 //根据Id获取信息
export interface getContForId{ export interface getContForId{

11
src/api/DesignForm/types.ts

@ -118,15 +118,26 @@ export interface formData{
qrCodeOutside:boolean, qrCodeOutside:boolean,
qrCodePrintStyle:any, qrCodePrintStyle:any,
qrCodeShowFields:any, qrCodeShowFields:any,
labelPosition:string,
dataSource:string,
dataSourceConfig:{
id: string,
dataBaseName: string,
tableName: string,
tableKey: string,
dsn: {},
}
}; };
config: any; config: any;
events?:any; events?:any;
styles:{ styles:{
labelPosition:"",
divStyle:{}, divStyle:{},
labelStyle:{}, labelStyle:{},
inputStyle:{} inputStyle:{}
}; };
purview?:any[]; purview?:any[];
aiConfig?:any[];
} }
//表单基本信息 //表单基本信息
export interface formTableInfo{ export interface formTableInfo{

16
src/components/DesignForm/public/form/formGroup.vue

@ -52,7 +52,7 @@ watch(
() => props.data, () => props.data,
(v: FormList[]) => { (v: FormList[]) => {
dataList.value = v; dataList.value = v;
console.log("监听表单变化++++++++++>", v); // console.log("++++++++++>", v);
}, },
{ {
deep: true, deep: true,
@ -142,11 +142,11 @@ const draggableAdd = (evt: any) => {
const key = new Date().getTime().toString(); const key = new Date().getTime().toString();
const obj: any = dataList.value[newIndex]; const obj: any = dataList.value[newIndex];
const isNested = evt.target && evt.target.getAttribute("data-type"); // const isNested = evt.target && evt.target.getAttribute("data-type"); //
console.log("设计拖拽事件-----1------->", newIndex); // console.log("-----1------->", newIndex);
console.log("设计拖拽事件-----2------->", key); // console.log("-----2------->", key);
console.log("设计拖拽事件-----3------->", obj); // console.log("-----3------->", obj);
console.log("设计拖拽事件-----4------->", isNested); // console.log("-----4------->", isNested);
console.log("设计拖拽事件-----4------->", dataList.value); // console.log("-----4------->", dataList.value);
if ( if (
(isNested === "not-nested" && notNested(obj.type)) || (isNested === "not-nested" && notNested(obj.type)) ||
((isNested === "not-table" || isNested === "not-flex") && ((isNested === "not-table" || isNested === "not-flex") &&
@ -272,7 +272,7 @@ const groupClick = (item: any, ele?: string) => {
state.gridAdd = item.type === "grid"; state.gridAdd = item.type === "grid";
// state.clone = !notNested(item.type) // state.clone = !notNested(item.type)
state.clone = !notNestedTableFlex(item.type); state.clone = !notNestedTableFlex(item.type);
console.log("点击激活当前--->", store); // console.log("--->", store);
}; };
// //
const getFormItemStyle = (ele: FormList) => { const getFormItemStyle = (ele: FormList) => {
@ -493,7 +493,7 @@ function asfValueChanged(val: any) {
fillFieldsChild = fillFieldsChild.filter((element: any) => { fillFieldsChild = fillFieldsChild.filter((element: any) => {
if (containsDangerousWords(element.filterCondition.gongShi.mathsFormula)) { if (containsDangerousWords(element.filterCondition.gongShi.mathsFormula)) {
//alert("") //alert("")
console.log("筛选条件非法===>" + element.filterCondition.conditionHtml); // console.log("===>" + element.filterCondition.conditionHtml);
} else { } else {
return element; return element;
} }

6
src/views/sysworkflow/lowcodepage/appPage/createAppFormPage.vue

@ -95,12 +95,18 @@ const state = reactive<formStruct>({
tableKey: "", tableKey: "",
dsn: {}, dsn: {},
}, },
qrCodeFlag: false,
qrCodeInside: false,
qrCodeOutside: false,
qrCodePrintStyle: undefined,
qrCodeShowFields: undefined
}, },
config: { config: {
groupKey: props.formKey, groupKey: props.formKey,
classify: 4, classify: 4,
}, },
styles: { styles: {
labelPosition: "",
divStyle: {}, divStyle: {},
labelStyle: {}, labelStyle: {},
inputStyle: {}, inputStyle: {},

2
src/views/sysworkflow/lowcodepage/pageFlow/tableFlow.vue

@ -376,7 +376,7 @@ const changeKeyVal = (key: any, val: any, type: any, attribute: any) => {
/** /**
@ 作者: 秦东 @ 作者: 秦东
@ 时间: 2024-04-09 16:41:20 @ 时间: 2024-04-09 16:41:20
@ 功能: 提交成功回调 @ 功能: 提交成功回调
*/ */
const afterSubmit = (type: string, val?: any) => { const afterSubmit = (type: string, val?: any) => {
// console.log("------------------>",type,val) // console.log("------------------>",type,val)

Loading…
Cancel
Save