bugfix 0706 doc
This commit is contained in:
@@ -272,9 +272,11 @@ export default {
|
||||
// payload: { type: string, data: string | number | object }
|
||||
switch (type) {
|
||||
case "delete": {
|
||||
let hintMsg = "name" in data ? `确定要删除记录 "${data.name}" 吗?` : "确定删除该记录?";
|
||||
|
||||
let currenPageListLength = this.dataList.length;
|
||||
// 确认是否删除
|
||||
return this.$confirm(`确定要删除 "${data.name}" 吗?`, "提示", {
|
||||
return this.$confirm(hintMsg, "提示", {
|
||||
confirmButtonText: "确认",
|
||||
cancelButtonText: "我再想想",
|
||||
type: "warning",
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function () {
|
||||
{ type: "index", label: "序号" },
|
||||
{ width: 90, prop: "code", label: "原料编码" },
|
||||
{ width: 240, prop: "description", label: "原料描述" },
|
||||
{ width: 90, prop: "name", label: "原料名称" },
|
||||
{ width: 90, prop: "name", label: "中文名称" },
|
||||
{ width: 120, prop: "maxSize", label: "原料最大尺寸", filter: val => val ?? '-' },
|
||||
{ width: 90, prop: "typeDictValue", label: "类型", filter: dictFilter("material_category") }, // subcomponent: {/** TODO: create a new component for this option */} },
|
||||
{ prop: "baseMaterialCode", label: "基础原料编码" },
|
||||
@@ -175,7 +175,12 @@ export default function () {
|
||||
// },
|
||||
],
|
||||
[
|
||||
{ input: true, label: "堆积密度(g/cm³)", prop: "density", elparams: { placeholder: "请输入堆积密度" } },
|
||||
{
|
||||
input: true, label: "堆积密度(g/cm³)",
|
||||
prop: "density",
|
||||
rules: [{ type: "number", message: "请输入正确的数字类型", trigger: "blur", transform: (val) => Number(val) }],
|
||||
elparams: { placeholder: "请输入堆积密度" }
|
||||
},
|
||||
{
|
||||
input: true,
|
||||
label: "加料下限",
|
||||
|
||||
Reference in New Issue
Block a user