diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue
index ce14444b7..5a10c97cf 100644
--- a/src/components/DesignForm/app/index.vue
+++ b/src/components/DesignForm/app/index.vue
@@ -584,7 +584,7 @@ const editFormSendFlow = (val:any) => {
-
+
diff --git a/src/components/DesignForm/assembly/index.ts b/src/components/DesignForm/assembly/index.ts
index 6a662933c..bae2541ea 100644
--- a/src/components/DesignForm/assembly/index.ts
+++ b/src/components/DesignForm/assembly/index.ts
@@ -1,14 +1,14 @@
import { v4 as uuidv4 } from "uuid";
const selectOption: any = [
- /*{
- label: '标签1',
- value: 'value1'
- },
{
- label: '标签2',
- value: 'value2'
+ label: '选项1',
+ value: '1'
},
{
+ label: '选项2',
+ value: '2'
+ },
+ /*{
label: '标签3',
value: 'value3'
}*/
diff --git a/src/components/DesignForm/designLayout/bianXian.vue b/src/components/DesignForm/designLayout/bianXian.vue
index 2da341053..86fb26ef1 100644
--- a/src/components/DesignForm/designLayout/bianXian.vue
+++ b/src/components/DesignForm/designLayout/bianXian.vue
@@ -117,7 +117,7 @@ const contourProfile = (val:number) => {
@ 功能: 监听颜色
*/
watch(()=>props.dataVal.lineColorVal,(val : any)=>{
- console.log("监听颜色-----1--->",val)
+ // console.log("监听颜色-----1--->",val)
if(val == null || val.length == 0 || val == ""){
delete props.dataVal.lineColorVal;
}
diff --git a/src/components/DesignForm/designLayout/unitBackGround.vue b/src/components/DesignForm/designLayout/unitBackGround.vue
index e05e9374c..1a28201e1 100644
--- a/src/components/DesignForm/designLayout/unitBackGround.vue
+++ b/src/components/DesignForm/designLayout/unitBackGround.vue
@@ -19,7 +19,7 @@ const props = defineProps({
@ 功能: 监听颜色
*/
watch(()=>props.layouytStyle.backgroundColor,(val : any)=>{
- console.log("监听颜色-----1--->",val)
+ // console.log("监听颜色-----1--->",val)
if(val == null || val.length == 0 || val == ""){
delete props.layouytStyle.backgroundColor;
}
diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue
index 2e5655d60..b5b1a8e28 100644
--- a/src/components/DesignForm/formControlAttr.vue
+++ b/src/components/DesignForm/formControlAttr.vue
@@ -1201,9 +1201,12 @@
}
// 多选固定选项增加
const addSelectOption = (type: any) => {
+
+ console.log("选择项添加",controlData.value.type)
+
if (controlData.value.type === 'cascader') {
// 级联时打开弹窗口
- openAttrDialog('cascader')
+ openAttrDialog('cascader',"级联选择器")
} else if (controlData.value.type === 'treeSelect') {
openAttrDialog('treeSelect', '编辑组件下拉选项数据')
} else {
@@ -1213,9 +1216,19 @@
list: []
})
} else {
+ console.log("选择项添加--->controlData.value.options-->",controlData.value.options)
+ let maxVal = 1;
+ if(controlData.value.options && controlData.value.options.length > 0){
+ controlData.value.options.forEach((item:any)=>{
+ if(item.value >= maxVal){
+ maxVal = item.value
+ }
+ })
+ maxVal = maxVal*1 + 1
+ }
controlData.value.options.push({
- label: '',
- value: ''
+ label: '',
+ value: maxVal.toString()
})
}
}
@@ -3154,13 +3167,14 @@ const disabledIstrue = (val:string) => {
v-for="(item, index) in controlData.options"
:key="index"
class="form_cont"
+ label="选项标签"
>
-
+
{
break
case 'labelNameVal':
if(val != ""){
- if(!props.formField.includes(controlData.value.name)){
- chineseToPinyin({title:val,types:8,connector:"",formJson:JSON.stringify(props.formInfo)})
- .then((data:any)=>{
- if(data.code == 0){
- if(data.data != ""){
- if(!fileSignAry.includes(data.data)){
- controlData.value.name = data.data
- fileSignAry.push(data.data)
+ let ary = ["founder","founderTime","editTime","owner","deptOrg"]
+ if (!ary.includes(controlData.value.type)){
+ if(!props.formField.includes(controlData.value.name)){
+ chineseToPinyin({title:val,types:8,connector:"",formJson:JSON.stringify(props.formInfo)})
+ .then((data:any)=>{
+ if(data.code == 0){
+ if(data.data != ""){
+ if(!fileSignAry.includes(data.data)){
+ controlData.value.name = data.data
+ fileSignAry.push(data.data)
+ }else{
+ let isEnd = true;
+ do{
+ let titleVal = data.data + Rand(10000000,99999999)
+ if(!fileSignAry.includes(titleVal)){
+ controlData.value.name = titleVal;
+ fileSignAry.push(titleVal);
+ isEnd=false;
+ }
+ }while(isEnd);
+ }
}else{
- let isEnd = true;
- do{
- let titleVal = data.data + Rand(10000000,99999999)
+ if(!fileSignAry.includes(val)){
+ controlData.value.name = val
+ fileSignAry.push(val)
+ }else{
+ let titleVal = val + Rand(10000000,99999999)
if(!fileSignAry.includes(titleVal)){
controlData.value.name = titleVal;
fileSignAry.push(titleVal);
- isEnd=false;
}
- }while(isEnd);
- }
- }else{
- if(!fileSignAry.includes(val)){
- controlData.value.name = val
- fileSignAry.push(val)
- }else{
- let titleVal = val + Rand(10000000,99999999)
- if(!fileSignAry.includes(titleVal)){
- controlData.value.name = titleVal;
- fileSignAry.push(titleVal);
}
+
}
}
-
- }
- })
+ })
+ }
}
// chineseToPinyin({title:val,types:8,connector:"",formJson:JSON.stringify(props.formInfo)})
// .then((data:any)=>{
@@ -1239,9 +1242,11 @@ const delSelectOption = (index: number, type?: string) => {
}
// 多选固定选项增加
const addSelectOption = (type: any) => {
+
+
if (controlData.value.type === 'cascader') {
// 级联时打开弹窗口
- openAttrDialog('cascader')
+ openAttrDialog('cascader',"级联选择器")
} else if (controlData.value.type === 'treeSelect') {
openAttrDialog('treeSelect', '编辑组件下拉选项数据')
} else {
@@ -1251,9 +1256,18 @@ const addSelectOption = (type: any) => {
list: []
})
} else {
+ let maxVal = 1;
+ if(controlData.value.options && controlData.value.options.length > 0){
+ controlData.value.options.forEach((item:any)=>{
+ if(item.value >= maxVal){
+ maxVal = item.value
+ }
+ })
+ maxVal = maxVal*1 + 1
+ }
controlData.value.options.push({
- label: '',
- value: ''
+ label: '',
+ value: maxVal.toString()
})
}
}
@@ -2649,6 +2663,19 @@ const loadNextPage = () => {
loadingnomore.value = true
}
}
+/**
+@ 作者: 秦东
+@ 时间: 2024-06-22 13:57:55
+@ 功能: 判断该输入框是否不可编辑
+*/
+const disabledIstrue = (val:string) => {
+ let ary = ["creater","creater_time","edit_time","owner","org"]
+ if (ary.includes(val)){
+ return true;
+ }else{
+ return false;
+ }
+}