|
@@ -489,7 +489,17 @@
|
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
|
>编辑元素公式
|
|
>编辑元素公式
|
|
|
</el-link>
|
|
</el-link>
|
|
|
-
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ class="mg-l-10"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="handlesyncLoad"
|
|
|
|
|
+ @click="handleLinkNodes(scope.$index, scope.row)"
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ curTreeData.nodeType === 1000 ||
|
|
|
|
|
+ curTreeData.nodeType === 1001
|
|
|
|
|
+ "
|
|
|
|
|
+ >关联节点
|
|
|
|
|
+ </el-link>
|
|
|
<el-link
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
class="mg-l-10"
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -710,6 +720,17 @@
|
|
|
<el-dropdown-item command="b">同步其他表单配置</el-dropdown-item>
|
|
<el-dropdown-item command="b">同步其他表单配置</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ class="mg-l-10"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="handlesyncLoad"
|
|
|
|
|
+ @click="handleLinkNodes(scope.$index, scope.row)"
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ curTreeData.nodeType === 1000 ||
|
|
|
|
|
+ curTreeData.nodeType === 1001
|
|
|
|
|
+ "
|
|
|
|
|
+ >关联节点
|
|
|
|
|
+ </el-link>
|
|
|
<el-link
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
class="mg-l-10"
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -952,6 +973,17 @@
|
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
|
>编辑元素公式
|
|
>编辑元素公式
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ class="mg-l-10"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="handlesyncLoad"
|
|
|
|
|
+ @click="handleLinkNodes(scope.$index, scope.row)"
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ curTreeData.nodeType === 1000 ||
|
|
|
|
|
+ curTreeData.nodeType === 1001
|
|
|
|
|
+ "
|
|
|
|
|
+ >关联节点
|
|
|
|
|
+ </el-link>
|
|
|
|
|
|
|
|
<el-link
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
class="mg-l-10"
|
|
@@ -1213,6 +1245,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
v-throttle="2000"
|
|
v-throttle="2000"
|
|
|
@click="saveLinkTab()"
|
|
@click="saveLinkTab()"
|
|
|
|
|
+ :loading="GLExcelLoadingSave"
|
|
|
>确 定</el-button
|
|
>确 定</el-button
|
|
|
>
|
|
>
|
|
|
</span>
|
|
</span>
|
|
@@ -1831,6 +1864,7 @@
|
|
|
<el-table-column align="center" prop="describe" label="描述">
|
|
<el-table-column align="center" prop="describe" label="描述">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.remark"></el-input>
|
|
<el-input v-model="scope.row.remark"></el-input>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="120" align="center">
|
|
<el-table-column label="操作" width="120" align="center">
|
|
@@ -1974,7 +2008,7 @@
|
|
|
></FormulaEdit>
|
|
></FormulaEdit>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<!-- 全局公式 -->
|
|
<!-- 全局公式 -->
|
|
|
- <el-dialog
|
|
|
|
|
|
|
+ <!-- <el-dialog
|
|
|
title=""
|
|
title=""
|
|
|
:visible.sync="formulaCompVisible1"
|
|
:visible.sync="formulaCompVisible1"
|
|
|
fullscreen
|
|
fullscreen
|
|
@@ -1996,7 +2030,7 @@
|
|
|
v-if="formulaCompVisible1"
|
|
v-if="formulaCompVisible1"
|
|
|
>
|
|
>
|
|
|
</FormulaEditone>
|
|
</FormulaEditone>
|
|
|
- </el-dialog>
|
|
|
|
|
|
|
+ </el-dialog> -->
|
|
|
|
|
|
|
|
<!-- 编辑元素 -->
|
|
<!-- 编辑元素 -->
|
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -2300,6 +2334,23 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="资料类型"
|
|
|
|
|
+ prop="remark"
|
|
|
|
|
+
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <el-select v-model="scope.row.remark" placeholder="请选择" multiple @change="handleSelectChange(scope.row)" :disabled="!scope.row.isEdit">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(item, key) in nodeNameList"
|
|
|
|
|
+ :key="key"
|
|
|
|
|
+ :label="item.dictValue"
|
|
|
|
|
+ :value="item.dictKey"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="操作"
|
|
label="操作"
|
|
|
width="150px"
|
|
width="150px"
|
|
@@ -2616,7 +2667,7 @@
|
|
|
lazy
|
|
lazy
|
|
|
:load="loadNode"
|
|
:load="loadNode"
|
|
|
@node-click="handleNodeClick"
|
|
@node-click="handleNodeClick"
|
|
|
- :default-expanded-keys="defaultExpandedKeys"
|
|
|
|
|
|
|
+
|
|
|
:props="defaultProps"
|
|
:props="defaultProps"
|
|
|
:expand-on-click-node="false"
|
|
:expand-on-click-node="false"
|
|
|
highlight-current
|
|
highlight-current
|
|
@@ -2629,39 +2680,85 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<el-card class="box-card-2">
|
|
<el-card class="box-card-2">
|
|
|
|
|
|
|
|
- <div class="table-box">
|
|
|
|
|
- <h4 style="margin-left: 4px;">表单预览</h4>
|
|
|
|
|
- <el-table
|
|
|
|
|
- size="small"
|
|
|
|
|
- ref="proTable1"
|
|
|
|
|
- :data="preTableData1"
|
|
|
|
|
- stripe
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- max-height="300"
|
|
|
|
|
- @selection-change="handleSelectionChange1"
|
|
|
|
|
-
|
|
|
|
|
- >
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- type="selection"
|
|
|
|
|
- width="55">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="tableName"
|
|
|
|
|
- label="表单名称"
|
|
|
|
|
- width="180">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="tableType"
|
|
|
|
|
- :formatter="formatTableType"
|
|
|
|
|
- label="表单类型"
|
|
|
|
|
- width="180">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="tableOwner"
|
|
|
|
|
- :formatter="formatOwner"
|
|
|
|
|
- label="所属方">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- </el-table>
|
|
|
|
|
|
|
+ <div >
|
|
|
|
|
+
|
|
|
|
|
+ <el-tabs type="border-card" v-model="activeName" >
|
|
|
|
|
+ <el-tab-pane label="表单预览" name="表单预览">
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ ref="proTable1"
|
|
|
|
|
+ :data="preTableData1"
|
|
|
|
|
+ stripe
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+
|
|
|
|
|
+ @selection-change="handleSelectionChange1"
|
|
|
|
|
+
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ type="selection"
|
|
|
|
|
+ width="55">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="tableName"
|
|
|
|
|
+ label="表单名称"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="tableType"
|
|
|
|
|
+ :formatter="formatTableType"
|
|
|
|
|
+ label="表单类型"
|
|
|
|
|
+ width="100">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="tableOwner"
|
|
|
|
|
+ width="100"
|
|
|
|
|
+ :formatter="formatOwner"
|
|
|
|
|
+ label="所属方">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="推荐表单" name="推荐表单">
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ ref="proTable2"
|
|
|
|
|
+ :data="recomandData"
|
|
|
|
|
+ stripe
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+
|
|
|
|
|
+ @selection-change="handleSelectionChange2"
|
|
|
|
|
+
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ type="selection"
|
|
|
|
|
+ width="55">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="tableName"
|
|
|
|
|
+ label="表单名称"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="tableType"
|
|
|
|
|
+ :formatter="formatTableType"
|
|
|
|
|
+ label="表单类型"
|
|
|
|
|
+ width="100">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="tableOwner"
|
|
|
|
|
+ width="100"
|
|
|
|
|
+ :formatter="formatOwner"
|
|
|
|
|
+ label="所属方">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="parentName"
|
|
|
|
|
+ label="父节点"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+
|
|
|
|
|
+ </el-tabs>
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
@@ -2831,7 +2928,7 @@ import {
|
|
|
import { getStore, setStore } from "@/util/store";
|
|
import { getStore, setStore } from "@/util/store";
|
|
|
|
|
|
|
|
import { getTempProject,addSync,getNodeStatus,getById } from "@/api/manager/ledger";
|
|
import { getTempProject,addSync,getNodeStatus,getById } from "@/api/manager/ledger";
|
|
|
-import { selectByNodeTable as findNodeTableByCondition1 } from "@/api/manager/wbstree";
|
|
|
|
|
|
|
+import { selectByNodeTable as findNodeTableByCondition1,getRecommendTable } from "@/api/manager/wbstree";
|
|
|
|
|
|
|
|
import { getDictionaryBiz } from "@/api/other";
|
|
import { getDictionaryBiz } from "@/api/other";
|
|
|
import tableSortByType from './tableSortByType'
|
|
import tableSortByType from './tableSortByType'
|
|
@@ -2875,6 +2972,8 @@ export default {
|
|
|
//#region 关联清表
|
|
//#region 关联清表
|
|
|
loading: false,
|
|
loading: false,
|
|
|
GLExcel: false,
|
|
GLExcel: false,
|
|
|
|
|
+ GLExcelLoadingSave: false,
|
|
|
|
|
+
|
|
|
GLExcelFrom: {
|
|
GLExcelFrom: {
|
|
|
id: "",
|
|
id: "",
|
|
|
name: "",
|
|
name: "",
|
|
@@ -3223,6 +3322,8 @@ export default {
|
|
|
saveProTagLoading:false,
|
|
saveProTagLoading:false,
|
|
|
syncTableDialog:false,
|
|
syncTableDialog:false,
|
|
|
preTableData1:[],
|
|
preTableData1:[],
|
|
|
|
|
+ recomandData:[],
|
|
|
|
|
+ activeName:'推荐表单',
|
|
|
formIds:'',
|
|
formIds:'',
|
|
|
saveTableSyncLoad:false,
|
|
saveTableSyncLoad:false,
|
|
|
checkRow:null,
|
|
checkRow:null,
|
|
@@ -4431,17 +4532,32 @@ clearSearch1() {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//跳转到公式配置页面
|
|
//跳转到公式配置页面
|
|
|
- toFormulaEdit(row, type) {
|
|
|
|
|
|
|
+ // toFormulaEdit(row, type) {
|
|
|
|
|
+ // this.curEleTable.hasPartFormula = row.hasPartFormula;
|
|
|
|
|
+ // this.formulaCurRow = row;
|
|
|
|
|
+ // this.formulaCurRow.globaltype = type;
|
|
|
|
|
+ // if (type === 10) {
|
|
|
|
|
+ // this.formulaCompVisible1 = true;
|
|
|
|
|
+ // this.formulaCurRow.elementType = false;
|
|
|
|
|
+ // this.istableType = true;
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // this.formulaCompVisible = true;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ toFormulaEdit(row, type) {
|
|
|
this.curEleTable.hasPartFormula = row.hasPartFormula;
|
|
this.curEleTable.hasPartFormula = row.hasPartFormula;
|
|
|
this.formulaCurRow = row;
|
|
this.formulaCurRow = row;
|
|
|
this.formulaCurRow.globaltype = type;
|
|
this.formulaCurRow.globaltype = type;
|
|
|
- if (type === 10) {
|
|
|
|
|
- this.formulaCompVisible1 = true;
|
|
|
|
|
|
|
+ // if (type === 10) {
|
|
|
|
|
+ // this.formulaCompVisible1 = true;
|
|
|
|
|
+ // this.formulaCurRow.elementType = false;
|
|
|
|
|
+ // this.istableType = true;
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // this.formulaCompVisible1 = true;
|
|
|
|
|
+ // }
|
|
|
|
|
+ this.formulaCompVisible = true;
|
|
|
this.formulaCurRow.elementType = false;
|
|
this.formulaCurRow.elementType = false;
|
|
|
this.istableType = true;
|
|
this.istableType = true;
|
|
|
- } else {
|
|
|
|
|
- this.formulaCompVisible = true;
|
|
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
//关闭公式弹窗
|
|
//关闭公式弹窗
|
|
|
closeformulaComp() {
|
|
closeformulaComp() {
|
|
@@ -4834,14 +4950,14 @@ async saveLinkTab() {
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ this.GLExcelLoadingSave=true;
|
|
|
try {
|
|
try {
|
|
|
const { data: res } = await saveLinkTab({
|
|
const { data: res } = await saveLinkTab({
|
|
|
exceTabId: node.id,
|
|
exceTabId: node.id,
|
|
|
tabId: this.GLExcelFrom.id,
|
|
tabId: this.GLExcelFrom.id,
|
|
|
updateAll:this.isNodeType? false:true,
|
|
updateAll:this.isNodeType? false:true,
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+ this.GLExcelLoadingSave=false;
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: "success",
|
|
type: "success",
|
|
@@ -4883,6 +4999,7 @@ async saveLinkTab() {
|
|
|
this.GLExcel = false;
|
|
this.GLExcel = false;
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
|
|
+ this.GLExcelLoadingSave=false;
|
|
|
console.error("关联清表失败:", error);
|
|
console.error("关联清表失败:", error);
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: "error",
|
|
type: "error",
|
|
@@ -5855,9 +5972,35 @@ async saveLinkTab() {
|
|
|
},
|
|
},
|
|
|
//文件题名(全局按钮)
|
|
//文件题名(全局按钮)
|
|
|
fileTitleHandle(){
|
|
fileTitleHandle(){
|
|
|
|
|
+ this.getNodeNameList();
|
|
|
this.getFileTableData()
|
|
this.getFileTableData()
|
|
|
|
|
+
|
|
|
this.fileTitleVisible = true;
|
|
this.fileTitleVisible = true;
|
|
|
},
|
|
},
|
|
|
|
|
+ handleSelectChange(row) {
|
|
|
|
|
+ // 如果选中了dictKey为'0'的选项
|
|
|
|
|
+ if (row.remark && row.remark.includes('0')) {
|
|
|
|
|
+ // 强制只保留'0'这一个选项
|
|
|
|
|
+ row.remark = ['0'];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 处理其他情况(单个值不拼接逗号,多个值用逗号拼接)
|
|
|
|
|
+ // 由于v-model绑定的是数组,这里无需手动拼接,提交时按需处理即可
|
|
|
|
|
+ // 例如:提交时转换为字符串 row.remark.join(',')
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ getNodeNameList() {
|
|
|
|
|
+ let code = "node_name_type";
|
|
|
|
|
+
|
|
|
|
|
+ getDictionary({
|
|
|
|
|
+ code,
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.nodeNameList = res.data.data;
|
|
|
|
|
+ console.log(this.nodeNameList,'this.nodeNameList');
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
changeRadio(val){
|
|
changeRadio(val){
|
|
|
console.log(val,'val');
|
|
console.log(val,'val');
|
|
|
const fileItem = this.fileTableData[this.chooseFileIndex];
|
|
const fileItem = this.fileTableData[this.chooseFileIndex];
|
|
@@ -5875,6 +6018,11 @@ async saveLinkTab() {
|
|
|
this.fileTableData.forEach((element) => {
|
|
this.fileTableData.forEach((element) => {
|
|
|
element.roleNameVal = element.nameRule.split(",");
|
|
element.roleNameVal = element.nameRule.split(",");
|
|
|
element.ruleName=element.nameVaule.split("-")
|
|
element.ruleName=element.nameVaule.split("-")
|
|
|
|
|
+ console.log(element.remark,'element.ruleName');
|
|
|
|
|
+
|
|
|
|
|
+ if(element.remark){
|
|
|
|
|
+ element.remark=element.remark.split(",")
|
|
|
|
|
+ }
|
|
|
if(element.type===2){
|
|
if(element.type===2){
|
|
|
const list=element.list
|
|
const list=element.list
|
|
|
let arr=[]
|
|
let arr=[]
|
|
@@ -5999,7 +6147,9 @@ async saveLinkTab() {
|
|
|
nameRule:ruleName,
|
|
nameRule:ruleName,
|
|
|
nodeId:ruleSizeVal,
|
|
nodeId:ruleSizeVal,
|
|
|
projectId:this.projectid,
|
|
projectId:this.projectid,
|
|
|
- type:this.fileTitleModel.type
|
|
|
|
|
|
|
+ type:this.fileTitleModel.type,
|
|
|
|
|
+ remark:row.remark.join(',')
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
saveOrUpdateNameRule(
|
|
saveOrUpdateNameRule(
|
|
|
[nameRuleDtos]
|
|
[nameRuleDtos]
|
|
@@ -6074,7 +6224,8 @@ async saveLinkTab() {
|
|
|
nameRule:ruleName,
|
|
nameRule:ruleName,
|
|
|
nodeId:ruleSizeVal,
|
|
nodeId:ruleSizeVal,
|
|
|
projectId:this.projectid,
|
|
projectId:this.projectid,
|
|
|
- type:ele.type
|
|
|
|
|
|
|
+ type:ele.type,
|
|
|
|
|
+ remark:ele.remark.join(',')
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
if(!isCansave){
|
|
if(!isCansave){
|
|
@@ -6399,11 +6550,18 @@ async saveLinkTab() {
|
|
|
|
|
|
|
|
this.syncTableDialog=true
|
|
this.syncTableDialog=true
|
|
|
this.isShowLeft=true
|
|
this.isShowLeft=true
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.activeName='推荐表单'
|
|
|
if(this.$refs.proTable1){
|
|
if(this.$refs.proTable1){
|
|
|
this.$refs.proTable1.clearSelection()
|
|
this.$refs.proTable1.clearSelection()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ if(this.$refs.proTable2){
|
|
|
|
|
+ this.$refs.proTable2.clearSelection()
|
|
|
|
|
+ }
|
|
|
|
|
+ this.recomandData = [];
|
|
|
|
|
+
|
|
|
|
|
+ this.formIds=''
|
|
|
|
|
+ this.getRecommendTableData()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -6424,6 +6582,7 @@ async saveLinkTab() {
|
|
|
this.$message.success(res.data.msg)
|
|
this.$message.success(res.data.msg)
|
|
|
this.syncTableDialog=false
|
|
this.syncTableDialog=false
|
|
|
this.$refs.proTable1.clearSelection()
|
|
this.$refs.proTable1.clearSelection()
|
|
|
|
|
+ this.$refs.proTable2.clearSelection()
|
|
|
this.updateNodeTable()
|
|
this.updateNodeTable()
|
|
|
|
|
|
|
|
}else{
|
|
}else{
|
|
@@ -6434,15 +6593,33 @@ async saveLinkTab() {
|
|
|
},
|
|
},
|
|
|
handleNodeClick(data) {
|
|
handleNodeClick(data) {
|
|
|
|
|
|
|
|
- selectByNodeTable(data.id, this.projectid, this.id).then((res) => {
|
|
|
|
|
- if (res.data.data.length) {
|
|
|
|
|
|
|
+ selectByNodeTable(
|
|
|
|
|
+ data.id, this.projectid, this.id
|
|
|
|
|
+ ).then((res) => {
|
|
|
|
|
+ if (res.data.data&&res.data.data.length) {
|
|
|
this.preTableData1 = res.data.data;
|
|
this.preTableData1 = res.data.data;
|
|
|
} else {
|
|
} else {
|
|
|
this.preTableData1 = [];
|
|
this.preTableData1 = [];
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ getRecommendTableData(){
|
|
|
|
|
+ getRecommendTable(
|
|
|
|
|
+ {
|
|
|
|
|
+ parentId:0,
|
|
|
|
|
+ projectId:this.projectid,
|
|
|
|
|
+ wbsId:this.id,
|
|
|
|
|
+ pKeyId:this.checkRow.pkeyId
|
|
|
|
|
+ }
|
|
|
|
|
+ ).then((res) => {
|
|
|
|
|
+ if (res.data.data&&res.data.data.length) {
|
|
|
|
|
+ this.recomandData = res.data.data;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.recomandData = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
handleSelectionChange1(val) {
|
|
handleSelectionChange1(val) {
|
|
|
|
|
|
|
|
|
|
|
|
@@ -6461,6 +6638,20 @@ async saveLinkTab() {
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ handleSelectionChange2(val) {
|
|
|
|
|
+ if (val.length > 1) {
|
|
|
|
|
+ // 如果选择了多个,只保留最后一个
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.proTable2.clearSelection();
|
|
|
|
|
+ this.$refs.proTable2.toggleRowSelection(val.pop());
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ if(val.length>0){
|
|
|
|
|
+ this.formIds=val[0].pkeyId
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.formIds=''
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
async refreshData(){
|
|
async refreshData(){
|
|
|
this.refreshLoading=true
|
|
this.refreshLoading=true
|
|
|
getNodeStatus({ id:this.curTreeData.primaryKeyId}).then((res) => {
|
|
getNodeStatus({ id:this.curTreeData.primaryKeyId}).then((res) => {
|