cloud-web-corejs 1.0.54-dev.274 → 1.0.54-dev.276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,40 @@
1
- export const constantRoutes = [
2
- /*{
3
- path: "",
4
- component: () => import("@/layout/index"),
5
- children: []
6
- }*/
7
- /*{
8
- path: "/test",
9
- component: () => import("@/views/test/excelImport.vue"),
10
- hidden: true
11
- },
12
- {
13
- path: "/test2",
14
- component: () => import("@/views/test/test2.vue"),
15
- hidden: true
16
- },*/
17
- /*{
18
- path: "/barcode",
19
- component: () => import("@/views/test/barcode/test.vue"),
20
- hidden: true
21
- },*/
22
- ];
23
-
1
+ export const constantRoutes = [
2
+ {
3
+ path: "",
4
+ component: () => import("@/layout/index"),
5
+ children: [
6
+ {
7
+ path: "/pmd/product/common/product_display/detail/:id",
8
+ component: () =>
9
+ import("@/views/pmd/product/common/product_display/detail"),
10
+ name: "productDisplayEdit",
11
+ meta: {
12
+ title: "产品详情",
13
+ paramField: "id",
14
+ menuUrl: "/pmd/product/common/product_display/detail",
15
+ },
16
+ },
17
+ ],
18
+ },
19
+
20
+ /*{
21
+ path: "",
22
+ component: () => import("@/layout/index"),
23
+ children: []
24
+ }*/
25
+ /*{
26
+ path: "/test",
27
+ component: () => import("@/views/test/excelImport.vue"),
28
+ hidden: true
29
+ },
30
+ {
31
+ path: "/test2",
32
+ component: () => import("@/views/test/test2.vue"),
33
+ hidden: true
34
+ },*/
35
+ /*{
36
+ path: "/barcode",
37
+ component: () => import("@/views/test/barcode/test.vue"),
38
+ hidden: true
39
+ },*/
40
+ ];
@@ -5,7 +5,7 @@
5
5
  :reportTemplate.sync="formTemplate" :conditionParam.sync="conditionParam"
6
6
  :formInsData.sync="formInsData"
7
7
  v-if="showRender" visible-key="showRender" :parent-target="_self" @reload="$baseReload()"
8
- :dataId.sync="dataId" :param="param"/>
8
+ :dataId.sync="dataId" :param="param" @openCopyEditTab="openCopyEditTab"/>
9
9
  </div>
10
10
  </div>
11
11
 
@@ -112,6 +112,7 @@ export default {
112
112
  }
113
113
  n.call(this, dataId, this.formCode, toDo);
114
114
  } else {
115
+ this.formData = this.$attrs.formData ?? {};
115
116
  this.showRender = true;
116
117
  }
117
118
  },
@@ -135,6 +136,9 @@ export default {
135
136
  }
136
137
  })
137
138
  }
139
+ },
140
+ openCopyEditTab(formData){
141
+ this.$emit("openCopyEditTab",formData)
138
142
  }
139
143
  }
140
144
  };
@@ -3,9 +3,9 @@
3
3
  <template v-if="layoutType=='PC'">
4
4
  <x-tabs ref="xTabs" v-model="activeName" class="tab-box">
5
5
  <el-tab-pane :label="$t2('常规')" name="first">
6
- <vFormRender :formCode="formCode2" :dataId.sync="dataId" :param="param"
6
+ <vFormRender :formCode="formCode2" :dataId.sync="dataId" :param="param" :formData="formData"
7
7
  v-if="showEdit" visible-key="showEdit" :parent-target="_self"
8
- @reload="$reloadHandle"></vFormRender>
8
+ @reload="reload" @openCopyEditTab="openCopyEditTab"></vFormRender>
9
9
  </el-tab-pane>
10
10
  <el-tab-pane :label="$t2('列表')" name="second">
11
11
  <div class="grid-height">
@@ -19,7 +19,7 @@
19
19
  :closable="true">
20
20
  <vFormRender :formCode="formCode2" :dataId.sync="tab.dataId" :param="tab.param"
21
21
  v-if="tab.showContent" :parent-target="_self"
22
- @reload="reloadTabContent"></vFormRender>
22
+ @reload="(...args)=>{formData = {};reloadTabContent(...args)}" @openCopyEditTab="openCopyEditTab"></vFormRender>
23
23
  </el-tab-pane>
24
24
  </template>
25
25
  </x-tabs>
@@ -78,7 +78,8 @@ export default {
78
78
  dataId: null,
79
79
  showEditDialog: false,
80
80
  param: {},
81
- multiTabLabelField:null
81
+ multiTabLabelField:null,
82
+ formData:null
82
83
  };
83
84
  },
84
85
  created() {
@@ -129,6 +130,7 @@ export default {
129
130
  this.showEdit = false;
130
131
  this.showEditDialog = true;
131
132
  this.param = param
133
+ this.formData = null;
132
134
  this.$openEditView('showEdit');
133
135
  }
134
136
 
@@ -142,6 +144,24 @@ export default {
142
144
  this.$openEditView('showEdit');
143
145
  });
144
146
  },
147
+
148
+ openCopyEditTab(formData) {
149
+ this.dataId = null
150
+ this.activeName = 'first';
151
+ this.showEdit = false;
152
+ this.showEditDialog = true;
153
+ // this.param = param
154
+ this.formData = formData;
155
+ this.$openEditView('showEdit');
156
+ },
157
+ reload(...args){
158
+ this.formData = {};
159
+ this.$reloadHandle(...args)
160
+ },
161
+ reload2(){
162
+ this.formData = {};
163
+ this.$reloadHandle(...arguments)
164
+ }
145
165
  }
146
166
  };
147
167
  </script>