diff --git a/ant-design-vue-jeecg/src/views/operationtool/ZyOperationtoolList.vue b/ant-design-vue-jeecg/src/views/operationtool/ZyOperationtoolList.vue
index 32c45952..df811154 100644
--- a/ant-design-vue-jeecg/src/views/operationtool/ZyOperationtoolList.vue
+++ b/ant-design-vue-jeecg/src/views/operationtool/ZyOperationtoolList.vue
@@ -4,6 +4,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
@@ -13,17 +29,17 @@
新增
导出
-
- 导入
-
+
+
+
-
-
-
- 删除
-
- 批量操作
-
+
+
+
+
+
+
+
@@ -71,19 +87,13 @@
编辑
-
- 更多
-
-
+
详情
-
-
+
handleDelete(record.id)">
删除
-
-
-
+
@@ -109,6 +119,15 @@
},
data () {
return {
+ labelCol: {
+ xs: { span: 24 },
+ sm: { span: 7 },
+ },
+ wrapperCol: {
+ xs: { span: 24 },
+ sm: { span: 12 },
+ md: { span: 10 },
+ },
description: '工序工具管理页面',
// 表头
columns: [
@@ -122,20 +141,25 @@
return parseInt(index)+1;
}
},
+ {
+ title:'工序编号',
+ align:"center",
+ dataIndex: 'operationid'
+ },
{
title:'工序',
align:"center",
dataIndex: 'operationid_dictText'
},
{
- title:'机器',
+ title:'工具编号',
align:"center",
- dataIndex: 'device_dictText'
+ dataIndex: 'toolid'
},
{
title:'工具',
align:"center",
- dataIndex: 'tools'
+ dataIndex: 'toolid_dictText'
},
{
title: '操作',
diff --git a/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolForm.vue b/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolForm.vue
index adaefce0..e9938473 100644
--- a/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolForm.vue
+++ b/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolForm.vue
@@ -3,19 +3,43 @@
-
+
-
+
+
-
-
-
+
+
+
+
-
-
+
+
+
@@ -43,6 +67,8 @@
},
data () {
return {
+ id:'',
+ code:'',
model:{
},
labelCol: {
@@ -76,10 +102,20 @@
add () {
this.edit(this.modelDefault);
},
+ add1 (id) {
+ this.id=id;
+ this.model.operationid=id;
+ console.log(this.model.processId)
+ },
edit (record) {
this.model = Object.assign({}, record);
this.visible = true;
},
+ edit1 (record,code) {
+ this.model = Object.assign({}, record);
+ this.code=code;
+ this.visible = true;
+ },
submitForm () {
const that = this;
// 触发表单验证
diff --git a/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolModal.vue b/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolModal.vue
index c9dada23..c9233e2a 100644
--- a/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolModal.vue
+++ b/ant-design-vue-jeecg/src/views/operationtool/modules/ZyOperationtoolModal.vue
@@ -35,12 +35,24 @@
this.$refs.realForm.add();
})
},
+ add1 (id) {
+ this.visible=true
+ this.$nextTick(()=>{
+ this.$refs.realForm.add1(id);
+ })
+ },
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
})
},
+ edit1 (record,code) {
+ this.visible=true
+ this.$nextTick(()=>{
+ this.$refs.realForm.edit1(record,code);
+ })
+ },
close () {
this.$emit('close');
this.visible = false;