0000
This commit is contained in:
@@ -138,6 +138,13 @@ const crudOptions = ref({
|
||||
{
|
||||
dataIndex: "suggest"
|
||||
},
|
||||
{
|
||||
formType: "divider",
|
||||
title: "解决问题"
|
||||
},
|
||||
{
|
||||
dataIndex: "solve"
|
||||
},
|
||||
{
|
||||
formType: "divider",
|
||||
title: "人员信息"
|
||||
@@ -322,14 +329,48 @@ const columns = ref([
|
||||
dataIndex: "suggest",
|
||||
addDefaultValue: ""
|
||||
},
|
||||
{
|
||||
title: "处理方式",
|
||||
hide: true,
|
||||
dataIndex: "solve",
|
||||
addDefaultValue: "",
|
||||
formType: "textarea"
|
||||
},
|
||||
{
|
||||
title: "提单人",
|
||||
dataIndex: "postPerson",
|
||||
search: true,
|
||||
hide: true,
|
||||
formType: "select",
|
||||
commonRules: [{ required: true, message: "提单人必填" }],
|
||||
dict: { url: "system/user/list", translation: true, props: { label: "name", value: "name" } }
|
||||
},
|
||||
{
|
||||
title: "悬挂状态",
|
||||
dataIndex: "hang",
|
||||
search: false,
|
||||
addDisplay: false,
|
||||
editDisplay: false,
|
||||
align: "center",
|
||||
customRender: ({ record }) => {
|
||||
// 判断是否为悬挂状态record.hang[Boolean]
|
||||
let tagObj
|
||||
if (record.hang) {
|
||||
tagObj = (
|
||||
<a-tag size="small" bordered color="green">
|
||||
有关联用例
|
||||
</a-tag>
|
||||
)
|
||||
} else {
|
||||
tagObj = (
|
||||
<a-tag size="small" bordered color="red">
|
||||
悬挂
|
||||
</a-tag>
|
||||
)
|
||||
}
|
||||
return <a-space size="mini">{tagObj}</a-space>
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "是否关联",
|
||||
dataIndex: "related",
|
||||
|
||||
@@ -149,6 +149,13 @@ const crudOptions = ref({
|
||||
{
|
||||
dataIndex: "suggest"
|
||||
},
|
||||
{
|
||||
formType: "divider",
|
||||
title: "解决问题"
|
||||
},
|
||||
{
|
||||
dataIndex: "solve"
|
||||
},
|
||||
{
|
||||
formType: "divider",
|
||||
title: "人员信息"
|
||||
@@ -327,6 +334,13 @@ const crudColumns = ref([
|
||||
dataIndex: "suggest",
|
||||
addDefaultValue: ""
|
||||
},
|
||||
{
|
||||
title: "处理方式",
|
||||
hide: true,
|
||||
dataIndex: "solve",
|
||||
addDefaultValue: "",
|
||||
formType: "textarea"
|
||||
},
|
||||
{
|
||||
title: "提单人",
|
||||
dataIndex: "postPerson",
|
||||
|
||||
@@ -213,14 +213,14 @@ const crudColumns = ref([
|
||||
formType: "input-number"
|
||||
},
|
||||
{
|
||||
title: "纯注释",
|
||||
title: "纯注释?",
|
||||
hide: true,
|
||||
align: "center",
|
||||
dataIndex: "pure_code_line",
|
||||
formType: "input-number"
|
||||
},
|
||||
{
|
||||
title: "混合行",
|
||||
title: "混合行?",
|
||||
hide: true,
|
||||
align: "center",
|
||||
dataIndex: "mix_line",
|
||||
|
||||
@@ -28,7 +28,16 @@ const projectId = ref(route.query.id)
|
||||
// 标识显示字段
|
||||
const showType = (record) => {
|
||||
let key_string = parseInt(record.key.substring(record.key.lastIndexOf("-") + 1)) + 1
|
||||
return "YL-" + record.ident + "-" + key_string.toString().padStart(3, "0")
|
||||
let k_string_array = record.key.split("-")
|
||||
let demand_key = parseInt(k_string_array.slice(-2)[0]) + 1
|
||||
return (
|
||||
"YL-" +
|
||||
record.ident +
|
||||
"-" +
|
||||
demand_key.toString().padStart(3, "0") +
|
||||
"-" +
|
||||
key_string.toString().padStart(3, "0")
|
||||
)
|
||||
}
|
||||
// crud设置
|
||||
const crudOptions = ref({
|
||||
@@ -38,7 +47,7 @@ const crudOptions = ref({
|
||||
delete: { show: true, api: caseApi.delete },
|
||||
// 处理新增删除后树状图显示
|
||||
beforeOpenAdd: function () {
|
||||
let key_split = route.query.key.split("-")
|
||||
let key_split = route.query.key.split("-")
|
||||
let round_key = key_split[0]
|
||||
let dut_key = key_split[1]
|
||||
let design_key = key_split[2]
|
||||
@@ -51,7 +60,7 @@ const crudOptions = ref({
|
||||
return true
|
||||
},
|
||||
beforeOpenEdit: function (record) {
|
||||
let key_split = route.query.key.split("-")
|
||||
let key_split = route.query.key.split("-")
|
||||
let round_key = key_split[0]
|
||||
let dut_key = key_split[1]
|
||||
let design_key = key_split[2]
|
||||
|
||||
Reference in New Issue
Block a user