diff --git a/src/iscs_new/core/form/elementConst.js b/src/iscs_new/core/form/elementConst.js
index 19c5e1c58..b07d415c6 100644
--- a/src/iscs_new/core/form/elementConst.js
+++ b/src/iscs_new/core/form/elementConst.js
@@ -259,18 +259,18 @@ const elementConst = {
]
}
},
- [graphicType.Arrow]: {
- type: graphicType.Arrow,
- name:'箭头',
- formList: {
- style: [
+ // [graphicType.Arrow]: {
+ // type: graphicType.Arrow,
+ // name:'箭头',
+ // formList: {
+ // style: [
- ],
- shape: [
+ // ],
+ // shape: [
- ]
- }
- },
+ // ]
+ // }
+ // },
[graphicType.Polyline]: {
type: graphicType.Polyline,
name:'多边形折线段',
@@ -773,6 +773,87 @@ const elementConst = {
}
]
}
+ },
+ [graphicType.Star]: {
+ type: graphicType.Star,
+ name:'星形',
+ formList: {
+ style: [
+ ...form2ShapeStyle,
+ {
+ prop: 'fill',
+ label: '填充样式',
+ type: types.Color,
+ rules:[
+ { required: true, message:'请输入填充样式', trigger: 'blur' }
+ ],
+ value: '#fff',
+ description: '填充样式。'
+ }
+ ],
+ shape: [
+ {
+ prop: 'cx',
+ label: '圆心横坐标',
+ type: types.Number,
+ precision: 0,
+ step:1,
+ rules:[
+ { required: true, message:'请输入圆心横坐标', trigger: 'blur' }
+ ],
+ value: 0,
+ description: ''
+ },
+ {
+ prop: 'cy',
+ label: '圆心纵坐标',
+ type: types.Number,
+ precision: 0,
+ step:1,
+ rules:[
+ { required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
+ ],
+ value: 0,
+ description: ''
+ },
+ {
+ prop: 'n',
+ label: '瓣数',
+ type: types.Number,
+ precision: 0,
+ step:1,
+ rules:[
+ { required: true, message:'请输入瓣数', trigger: 'blur' }
+ ],
+ value: 5,
+ description: '如瓣数等于 5 时,是我们熟悉的五角星。'
+ },
+ {
+ prop: 'r',
+ label: '半径',
+ type: types.Number,
+ precision: 0,
+ step:1,
+ rules:[
+ { required: true, message:'请输入半径', trigger: 'blur' }
+ ],
+ value: 10,
+ description: ''
+ },
+ {
+ prop: 'r0',
+ label: '内半径',
+ type: types.Number,
+ precision: 0,
+ step:1,
+ rules:[
+ { required: true, message:'请输入内半径', trigger: 'blur' }
+ ],
+ value: 5,
+ description: ''
+ }
+ ]
+ }
}
};
-export default elementConst
+export default elementConst;
diff --git a/src/iscs_new/plugins/shapeBuilder/entry.vue b/src/iscs_new/plugins/shapeBuilder/entry.vue
index 8845212e4..09e55cdfd 100644
--- a/src/iscs_new/plugins/shapeBuilder/entry.vue
+++ b/src/iscs_new/plugins/shapeBuilder/entry.vue
@@ -17,6 +17,7 @@ import shapeType from '@/iscs_new/constant/shapeType.js';
import orders from '@/iscs_new/utils/orders';
import elementConst from '@/iscs_new/core/form/elementConst';
import formBuilder from '@/iscs_new/core/form/formBuilder';
+import { EventBus } from '@/scripts/event-bus';
export default {
data () {
@@ -35,6 +36,7 @@ export default {
model.base.position = [300, 100];
model.stateList = [];
this.$iscs && this.$iscs.render([{model, action: {shapeType: shapeType.Element, order: orders.Add}}]);
+ EventBus.$emit('getComposeElemList');
}
}
};
diff --git a/src/views/iscs_new/components/eachFormItem.vue b/src/views/iscs_new/components/eachFormItem.vue
new file mode 100644
index 000000000..c93470766
--- /dev/null
+++ b/src/views/iscs_new/components/eachFormItem.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/iscs_new/components/tableForm.vue b/src/views/iscs_new/components/tableForm.vue
index c30613d62..de5245e2d 100644
--- a/src/views/iscs_new/components/tableForm.vue
+++ b/src/views/iscs_new/components/tableForm.vue
@@ -3,12 +3,45 @@
添加
-
+
-
- {{ 111 }}
-
+
+
@@ -35,6 +68,7 @@
删除
+
@@ -43,28 +77,83 @@