+
@@ -181,7 +181,7 @@ export default {
.list-view-with-head-list {
width: 1px;
- margin-left: 144px;
+ /* margin-left: 144px; */
flex-grow: 1;
}
diff --git a/src/views/modules/pms/shapeStep/config.js b/src/views/modules/pms/shapeStep/config.js
index 64e5b3d..0fb1883 100644
--- a/src/views/modules/pms/shapeStep/config.js
+++ b/src/views/modules/pms/shapeStep/config.js
@@ -20,7 +20,10 @@ export default function () {
fixed: "right",
width: 120,
subcomponent: TableOperaionComponent,
- options: [ { name: "copy", label: "复制", icon: "copy-document" }, { name: "edit", label: "编辑", icon: "edit-outline" }, { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:shapeStep:delete" }],
+ options: [
+ { name: "copy", label: "复制", icon: "copy-document" },
+ { name: "edit", label: "编辑", icon: "edit-outline" },
+ { name: "delete", icon: "delete", label: "删除", promptField: 'code', emitFull: true, permission: "pms:shapeStep:delete" }],
},
];
@@ -96,15 +99,20 @@ export default function () {
refreshOptionsAfterConfirm: true,
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: { clearable: true, filterable: true, placeholder: "请选择砖型" },
- fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 2, externalCode: '', key: '', techId } }),
+ fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 2, key: '', techId } }),
+ cacheFetchedData: true,
+ changeReflects: {
+ fromKey: 'code',
+ toProp: 'code'
+ }
},
],
// [
- // {
- // forceDisabled: true,
- // prop: 'shapeCode',
- // label: '当前砖型'
- // },
+ // {
+ // forceDisabled: true,
+ // prop: 'shapeCode',
+ // label: '当前砖型'
+ // },
// ],
// {
// select: true,
diff --git a/src/views/modules/pms/testingStep/config.js b/src/views/modules/pms/testingStep/config.js
index e490dee..25fe6aa 100644
--- a/src/views/modules/pms/testingStep/config.js
+++ b/src/views/modules/pms/testingStep/config.js
@@ -23,7 +23,7 @@ export default function () {
options: [
{ name: "copy", label: "复制", icon: "copy-document" },
{ name: "edit", label: "编辑", icon: "edit-outline" },
- { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:testingStep:delete" }
+ { name: "delete", icon: "delete", label: "删除", promptField: 'code', emitFull: true, permission: "pms:testingStep:delete" }
],
},
];
@@ -101,7 +101,12 @@ export default function () {
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: { clearable: true, filterable: true, placeholder: "请选择砖型" },
// 下面参数的 techId 是为 /pms/xxx/listUnR 接口定制的,默认为 -1,新增时使用,编辑时传对应的 工艺id
- fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 4, externalCode: '', key: '', techId } }),
+ fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 4, key: '', techId } }),
+ cacheFetchedData: true,
+ changeReflects: {
+ fromKey: 'code',
+ toProp: 'code'
+ }
},
],
// [