|
@@ -350,9 +350,10 @@
|
|
</p>
|
|
</p>
|
|
<div class="mg-t-10"></div>
|
|
<div class="mg-t-10"></div>
|
|
</div>
|
|
</div>
|
|
- <div style="flex: 1; position: relative; height: calc(100vh - 260px);overflow-y: auto;" v-if="isNodeType">
|
|
|
|
|
|
+ <div style="flex: 1; position: relative; height: calc(100vh - 260px);overflow-y: auto;" >
|
|
<!-- 施工方分类 -->
|
|
<!-- 施工方分类 -->
|
|
- <template v-if="tableListByType.length > 0">
|
|
|
|
|
|
+ <template v-if="isNodeType">
|
|
|
|
+ <template v-if="tableListByType.length > 0">
|
|
<div class="category-section" v-for="(item, index) in tableListByType" :key="index">
|
|
<div class="category-section" v-for="(item, index) in tableListByType" :key="index">
|
|
<div class="category-header">{{item.title}}</div>
|
|
<div class="category-header">{{item.title}}</div>
|
|
<el-table
|
|
<el-table
|
|
@@ -492,13 +493,93 @@
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+ <el-empty description="暂无数据" v-else ></el-empty>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <el-table
|
|
|
|
+ :data="formData"
|
|
|
|
+ border
|
|
|
|
+ height="100%"
|
|
|
|
+ style="width: 100%; position: absolute"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="tableName"
|
|
|
|
+ label="表单名称"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="tableType"
|
|
|
|
+ :formatter="formatTableType"
|
|
|
|
+ label="表单类型"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="fillRate"
|
|
|
|
+ label="填报率"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="是否关联清表"
|
|
|
|
+ prop="isLinkTable"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-if="scope.row.isLinkTable == 2">是</span>
|
|
|
|
+ <span v-else>否</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="tableOwner"
|
|
|
|
+ :formatter="formatOwner"
|
|
|
|
+ label="所属方"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center" width="250">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-link type="primary" @click="Associationlist(scope)"
|
|
|
|
+ >关联清表
|
|
|
|
+ </el-link>
|
|
|
|
+ <el-link
|
|
|
|
+ class="mg-l-10"
|
|
|
|
+
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="
|
|
|
|
+ scope.row.excelId == -1 || scope.row.excelId == null
|
|
|
|
+ "
|
|
|
|
+ @click="
|
|
|
|
+ rightClick(
|
|
|
|
+ scope.row.pkeyId,
|
|
|
|
+ scope.row.excelId,
|
|
|
|
+ scope.row.id,
|
|
|
|
+ scope.row.initTableName,
|
|
|
|
+ scope.row.initTableId
|
|
|
|
+ )
|
|
|
|
+ "
|
|
|
|
+ >编辑元素
|
|
|
|
+ </el-link>
|
|
|
|
+
|
|
|
|
+ <el-link
|
|
|
|
+ class="mg-l-10"
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="
|
|
|
|
+ scope.row.excelId == -1 || scope.row.excelId == null
|
|
|
|
+ "
|
|
|
|
+ @click="adjustExcel(scope.row.pkeyId, scope.row.excelId)"
|
|
|
|
+ >调整表单
|
|
|
|
+ </el-link>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <template v-if="leftType == 4">
|
|
|
|
|
|
+ <template v-if="leftType == 4&&isNodeType" >
|
|
<div style="flex: 1; position: relative; height: calc(100vh - 260px);overflow-y: auto;">
|
|
<div style="flex: 1; position: relative; height: calc(100vh - 260px);overflow-y: auto;">
|
|
<!-- 施工方分类 -->
|
|
<!-- 施工方分类 -->
|
|
<template v-if="tableListByType.length > 0">
|
|
<template v-if="tableListByType.length > 0">
|
|
@@ -588,7 +669,16 @@
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
>编辑元素公式
|
|
>编辑元素公式
|
|
</el-link>
|
|
</el-link>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ <el-dropdown @command="handleCommand($event,scope.row)" v-if="isNodeType">
|
|
|
|
+ <el-button type="text" class="mg-l-10">
|
|
|
|
+ 表单同步<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item command="a">同步到项目下所有表单</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="b">同步其他表单配置</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
<el-link
|
|
<el-link
|
|
class="mg-l-10"
|
|
class="mg-l-10"
|
|
type="danger"
|
|
type="danger"
|
|
@@ -640,9 +730,9 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ </template>
|
|
|
|
+ <el-empty description="暂无数据" v-else></el-empty>
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2413,7 +2503,7 @@
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="handleCancel" size="small">取 消</el-button>
|
|
<el-button @click="handleCancel" size="small">取 消</el-button>
|
|
- <el-button type="primary" @click="handleConfirm" size="small">确 定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="handleConfirm" size="small">筛 选</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -3841,9 +3931,11 @@ clearSearch1() {
|
|
this.isSearch = true;
|
|
this.isSearch = true;
|
|
this.searchtreeLoad = true;
|
|
this.searchtreeLoad = true;
|
|
getQueryValueByNodeType({
|
|
getQueryValueByNodeType({
|
|
|
|
+ ...this.filterForm,
|
|
queryValue: this.filterText,
|
|
queryValue: this.filterText,
|
|
wbsId: this.id,
|
|
wbsId: this.id,
|
|
projectId: this.projectid,
|
|
projectId: this.projectid,
|
|
|
|
+
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
let arr = [];
|
|
let arr = [];
|
|
if (Array.isArray(res.data.data)) {
|
|
if (Array.isArray(res.data.data)) {
|