Commit 3b75ba64 by yiyu.li

bug

parent c8dff077
...@@ -134,19 +134,19 @@ export default { ...@@ -134,19 +134,19 @@ export default {
{ {
title: "工装编号", title: "工装编号",
key: "fixtureName", key: "fixtureName",
render: (h, params) => { // render: (h, params) => {
return h( // return h(
"a", // "a",
{ // {
on: { // on: {
click: () => { // click: () => {
// this.show1 = true; // // this.show1 = true;
}, // },
}, // },
}, // },
"look" // "look"
); // );
}, // },
}, },
{ {
title: "产品编号", title: "产品编号",
...@@ -155,23 +155,35 @@ export default { ...@@ -155,23 +155,35 @@ export default {
{ {
title: "工件编号", title: "工件编号",
key: "sn", key: "sn",
render: (h, params) => { // render: (h, params) => {
return h( // return h(
"a", // "a",
{ // {
on: { // on: {
click: () => { // click: () => {
// this.show2 = true; // // this.show2 = true;
}, // },
}, // },
}, // },
"look" // "look"
); // );
}, // },
}, },
{ {
title: "状态", title: "状态",
key: "status", key: "status",
render: (h, params) => {
let str = "";
str =
params.row.status == 1
? "待上料"
: params.row.status == 2
? "生产中"
: params.row.status == 3
? "待下料"
: "";
return h("div", str);
},
}, },
{ {
title: "最后更新时间", title: "最后更新时间",
......
...@@ -399,6 +399,17 @@ export default { ...@@ -399,6 +399,17 @@ export default {
pagesize: 10, pagesize: 10,
columns2: [ columns2: [
{ {
type: "index2",
title: this.$t("1008"),
key: "xuhao",
render: (h, params) => {
return h(
"span",
params.index+ 1
);
},
},
{
title: "子工装类型", title: "子工装类型",
key: "category", key: "category",
}, },
...@@ -468,7 +479,7 @@ export default { ...@@ -468,7 +479,7 @@ export default {
}, },
created() { created() {
this.columns1 = this.$time.initTableTitle(this.columns1); this.columns1 = this.$time.initTableTitle(this.columns1);
// this.columns2 = this.$time.initTableTitle(this.columns2); this.columns2 = this.$time.initTableTitle(this.columns2);
this.initFrockType(); this.initFrockType();
this.tosearch(); this.tosearch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment