明树Git Lab

Commit be4dbfa6 authored by zhanghan's avatar zhanghan

1

parent 0336e52a
Pipeline #112176 passed with stage
in 18 seconds
......@@ -518,6 +518,33 @@
:disabled="isPreview"
v-model="formData.qtdxmjcyssydfxyxdbj"
/>
<el-table
v-if="showBjConditionTable"
:data="formData.qtbjlb"
style="width: 100%; margin-top: 10px"
border
>
<el-table-column type="index" label="序号" width="60" />
<el-table-column prop="lb" label="类别" width="150" />
<el-table-column prop="nr" label="内容">
<template #default="scope">
<el-input
v-model="scope.row.nr"
placeholder="请填写内容"
:disabled="isPreview"
/>
</template>
</el-table-column>
<el-table-column prop="jfgz" label="计分规则">
<template #default="scope">
<el-input
v-model="scope.row.jfgz"
placeholder="请填写计分规则"
:disabled="isPreview"
/>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
......@@ -722,6 +749,7 @@ let formData = reactive({
qtdxmjcyssydfxyxdbj: [],
xmssgczqttgxmtzsylhddgsscktqk: [],
trzyyyzb: [],
qtbjlb: [],
});
let loading = ref(false);
// 责任书类型
......@@ -731,6 +759,7 @@ let zrslxProps = {
};
let selectedFullPath = ref(""); //已选项的全路径名称
const isKeyPersonnel = ref(false);
const showBjConditionTable = ref(false);
watch(
() => formData.zrslx,
(newVal) => {
......@@ -810,6 +839,12 @@ const getStatementInfo = () => {
callback: (res) => {
loading.value = false;
Object.assign(formData, res);
if (formData.zrslx) {
const node = nodeMap.get(formData.zrslx);
if (node) {
changeZrslx(node);
}
}
Object.assign(zrsData.value, res.zrswj);
Object.assign(
zrsjtzbData.value,
......@@ -1434,15 +1469,20 @@ let ndZrs = [
// 选择责任书类型,同步切换责任书具体指标数据
const changeZrslx = (data) => {
let node = data;
let found = false;
let foundKeyPersonnel = false;
let foundUpperOrCompany = false;
while (node) {
if (node.name && node.name.includes("关键人员")) {
found = true;
break;
if (node.name) {
if (node.name.includes("关键人员")) {
foundKeyPersonnel = true;
}
if (node.name.includes("上级单位") || node.name.includes("公司")) {
foundUpperOrCompany = true;
}
}
node = node.parent;
}
isKeyPersonnel.value = found;
isKeyPersonnel.value = foundKeyPersonnel;
if (!data.children || !data.children.length) {
// 点击到最内层子节点
......@@ -1455,6 +1495,20 @@ const changeZrslx = (data) => {
} else {
zrsjtzbData.value = qsmzqZrs;
}
const isLifecycleType =
data.name.includes("全生命周期") ||
data.name.includes("建设期") ||
data.name.includes("运营期");
showBjConditionTable.value = isLifecycleType;
if (showBjConditionTable.value && (!formData.qtbjlb || formData.qtbjlb.length === 0)) {
formData.qtbjlb = [
{ lb: "关键前提条件", nr: "", jfgz: "" },
{ lb: "其他前提条件", nr: "", jfgz: "" },
{ lb: "其他边界条件", nr: "", jfgz: "" },
];
}
}
};
const getSummaries = (param) => {
......
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