|
|
@@ -199,12 +199,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="flex mg-t-20" v-if="leftType == 5 || leftType == 4">
|
|
|
- <span>当前项目信息表</span>
|
|
|
- <el-button type="text" style="margin-left: 10px" icon="el-icon-edit-outline" class="text-icon"
|
|
|
- @click="editEditElementForm"></el-button>
|
|
|
- <el-button v-if="isNodeType" type="text" icon="el-icon-sort" class="text-icon"
|
|
|
- @click="privateTableSort()"></el-button>
|
|
|
-
|
|
|
+ <span>当前项目信息表</span>
|
|
|
+ <el-button type="text" style="margin-left: 10px" icon="el-icon-edit-outline" class="text-icon"
|
|
|
+ @click="editEditElementForm"></el-button>
|
|
|
+ <el-button v-if="isNodeType" type="text" icon="el-icon-sort" class="text-icon"
|
|
|
+ @click="privateTableSort()"></el-button>
|
|
|
</div>
|
|
|
<template v-if="leftType == 5">
|
|
|
<div style="
|
|
|
@@ -226,20 +225,26 @@
|
|
|
<span v-else>{{ scope.row.tableName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="leftType === 5" align="center" prop="elementTotal" width="80"
|
|
|
- label="字段总量"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="elementTotal" width="80" 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" v-if="leftType === 4">
|
|
|
+ <!-- <el-table-column label="是否关联清表" prop="isLinkTable" align="center" v-if="leftType === 4">
|
|
|
<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 align="center" prop="tableOwner" :formatter="formatOwner"
|
|
|
- label="所属方"></el-table-column>
|
|
|
- <el-table-column label="操作" align="center" width="500" v-if="leftType == 4">
|
|
|
+ <el-table-column align="center" prop="htmlElementError" :formatter="formatOwner"
|
|
|
+ label="是否存在错误key">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.htmlElementError == 0">否</span>
|
|
|
+ <span v-else-if="scope.row.htmlElementError == 1">是</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column label="操作" align="center" width="500" v-if="leftType == 4">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link type="primary" @click="Associationlist(scope)">关联清表
|
|
|
</el-link>
|
|
|
@@ -274,8 +279,8 @@
|
|
|
<el-link class="mg-l-10" type="danger" @click="handleDelete(scope.$index, scope.row)">删除表单
|
|
|
</el-link>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" align="center" width="500" v-if="leftType == 5">
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column label="操作" align="center" width="500">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" @click="handlePreview(scope.$index, scope.row)">预览
|
|
|
</el-button>
|
|
|
@@ -318,8 +323,8 @@
|
|
|
<span v-else>否</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="tableOwner" :formatter="formatOwner"
|
|
|
- label="所属方"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="tableOwner" :formatter="formatOwner" label="所属方">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" @click="handlePreview(scope.$index, scope.row)">预览
|
|
|
@@ -350,15 +355,21 @@
|
|
|
<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" v-if="leftType === 4">
|
|
|
+ <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="500" v-if="leftType == 4">
|
|
|
+ <el-table-column align="center" prop="tableOwner" :formatter="formatOwner" label="所属方">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" prop="htmlElementError" :formatter="formatOwner" label="是否存在错误key">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.htmlElementError == 0">否</span>
|
|
|
+ <span v-else-if="scope.row.htmlElementError == 1">是</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" width="500">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link type="primary" @click="Associationlist(scope)">关联清表
|
|
|
</el-link>
|
|
|
@@ -402,7 +413,7 @@
|
|
|
</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" width="500" v-if="leftType == 5">
|
|
|
+ <!-- <el-table-column label="操作" align="center" width="500" v-if="leftType == 5">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" @click="handlePreview(scope.$index, scope.row)">预览
|
|
|
</el-button>
|
|
|
@@ -426,7 +437,7 @@
|
|
|
@click="handleDelete(scope.$index, scope.row)">删除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -499,8 +510,8 @@
|
|
|
<span v-else>否</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="tableOwner" :formatter="formatOwner"
|
|
|
- label="所属方"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="tableOwner" :formatter="formatOwner" label="所属方">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link type="primary" @click="Associationlist(scope)">关联清表
|
|
|
@@ -1075,7 +1086,7 @@
|
|
|
@hideDialog="formulaCompVisible = false" :pkeyId="curEleTable.pkeyId" v-if="formulaCompVisible"></FormulaEdit>
|
|
|
</el-dialog>
|
|
|
<!-- 全局公式 -->
|
|
|
- <!-- <el-dialog
|
|
|
+ <el-dialog
|
|
|
title=""
|
|
|
:visible.sync="formulaCompVisible1"
|
|
|
fullscreen
|
|
|
@@ -1097,7 +1108,7 @@
|
|
|
v-if="formulaCompVisible1"
|
|
|
>
|
|
|
</FormulaEditone>
|
|
|
- </el-dialog> -->
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<!-- 编辑元素 -->
|
|
|
<el-dialog title=" " :visible.sync="editElementVisible" fullscreen append-to-body class="full-dialog">
|
|
|
@@ -1779,7 +1790,7 @@ export default {
|
|
|
return !data.hasChildren;
|
|
|
},
|
|
|
},
|
|
|
- leftType: 5,
|
|
|
+ leftType: 5, // 5 表单设置 4 元素设置
|
|
|
curTreeData: {},
|
|
|
curTreeNode: {},
|
|
|
tableData: [],
|
|
|
@@ -3236,34 +3247,34 @@ export default {
|
|
|
},
|
|
|
|
|
|
//跳转到公式配置页面
|
|
|
- // 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.formulaCurRow = row;
|
|
|
this.formulaCurRow.globaltype = type;
|
|
|
- // 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.istableType = true;
|
|
|
- console.log(this.formulaCurRow, "this.formulaCurRow.elementType");
|
|
|
+ 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.formulaCurRow = row;
|
|
|
+ // this.formulaCurRow.globaltype = type;
|
|
|
+ // // 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.istableType = true;
|
|
|
+ // console.log(this.formulaCurRow, "this.formulaCurRow.elementType");
|
|
|
+ // },
|
|
|
//关闭公式弹窗
|
|
|
closeformulaComp() {
|
|
|
console.log("关闭");
|