|
@@ -422,13 +422,16 @@
|
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
|
>编辑元素公式
|
|
|
</el-link>
|
|
|
- <el-button
|
|
|
- class="mg-l-10"
|
|
|
- type="text"
|
|
|
- :loading="handlesyncLoad"
|
|
|
- @click="handlesync(scope.$index, scope.row)"
|
|
|
- >表单同步
|
|
|
+
|
|
|
+ <el-dropdown @command="handleCommand">
|
|
|
+ <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-button
|
|
|
class="mg-l-10"
|
|
|
type="text"
|
|
@@ -1967,9 +1970,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <div class="table-box">
|
|
|
+ <div class="table-box" v-if="isShowTable">
|
|
|
<h4 style="margin-left: 4px;">表单预览</h4>
|
|
|
<el-table
|
|
|
+
|
|
|
size="small"
|
|
|
:data="preTableData"
|
|
|
stripe
|
|
@@ -2432,7 +2436,8 @@ export default {
|
|
|
{name:'待审批',value:'3'},
|
|
|
{name:'已审批',value:'4'},
|
|
|
],
|
|
|
- isShowLeft:true
|
|
|
+ isShowLeft:true,
|
|
|
+ isShowTable:false,
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -2833,16 +2838,7 @@ export default {
|
|
|
|
|
|
//表单同步
|
|
|
handlesync(index, row) {
|
|
|
- this.handlesyncLoad = true;
|
|
|
- syncCurrentFormInProject({ pKeyId: row.pkeyId })
|
|
|
- .then((res) => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- this.$message.success("操作成功");
|
|
|
- }
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- this.handlesyncLoad = false;
|
|
|
- });
|
|
|
+
|
|
|
},
|
|
|
//搜索 筛选
|
|
|
searchFormulaName() {
|
|
@@ -4094,6 +4090,7 @@ export default {
|
|
|
this.syncForm.size='1'
|
|
|
this.proSyncTag=true
|
|
|
this.isShowLeft=false
|
|
|
+ this.isShowTable=true
|
|
|
|
|
|
},
|
|
|
syncProjectHandle(data) {
|
|
@@ -4133,6 +4130,7 @@ export default {
|
|
|
this.syncForm.size='2'
|
|
|
this.proSyncTag=true
|
|
|
this.isShowLeft=false
|
|
|
+ this.isShowTable=true
|
|
|
|
|
|
},
|
|
|
typeTreeLoadNode(node, resolve) {
|
|
@@ -4675,6 +4673,7 @@ export default {
|
|
|
console.log('项目数据同步');
|
|
|
this.proSyncTag=true
|
|
|
this.isShowLeft=true
|
|
|
+ this.isShowTable=false
|
|
|
},
|
|
|
closeProSyncTag(){
|
|
|
|
|
@@ -4687,6 +4686,29 @@ export default {
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
|
+ },
|
|
|
+ handleCommand(command){
|
|
|
+ // this.$message('click on item ' + command);
|
|
|
+ if(command=='a'){
|
|
|
+
|
|
|
+ this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ confirmButtonText: "删除",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ }).then(() => {
|
|
|
+ console.log(111111111111);
|
|
|
+
|
|
|
+ });
|
|
|
+ }else if(command=='b'){
|
|
|
+ this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ confirmButtonText: "删除",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ }).then(() => {
|
|
|
+ console.log(111111111111);
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
},
|