|
@@ -423,7 +423,7 @@
|
|
|
>编辑元素公式
|
|
|
</el-link>
|
|
|
|
|
|
- <el-dropdown @command="handleCommand">
|
|
|
+ <el-dropdown @command="handleCommand($event,scope.row)">
|
|
|
<el-button type="text" class="mg-l-10">
|
|
|
表单同步<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
@@ -4839,8 +4839,6 @@ export default {
|
|
|
this.saveProTagLoading=false
|
|
|
},
|
|
|
handleCheckAllChange(val) {
|
|
|
- // this.syncForm.type = val ? this.typeOptions : [];
|
|
|
- // this.isIndeterminate = false;
|
|
|
this.syncForm.type = val ? this.typeOptions.map(item => item.dictKey) : [];
|
|
|
this.isIndeterminate = false;
|
|
|
},
|
|
@@ -4860,30 +4858,35 @@ export default {
|
|
|
this.syncForm.formIds=arr.join(',')
|
|
|
}
|
|
|
},
|
|
|
- handleCommand(command){
|
|
|
+ handleCommand(command,row){
|
|
|
// this.$message('click on item ' + command);
|
|
|
- if(command=='a'){
|
|
|
-
|
|
|
- this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
|
|
|
+ console.log(row,'row');
|
|
|
+
|
|
|
+ this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- }).then(() => {
|
|
|
- console.log(111111111111);
|
|
|
+ }).then(() => {
|
|
|
+ addSync({
|
|
|
+ projectId:this.projectid,
|
|
|
+ range:command.name==='a'?3:4,
|
|
|
+ nodeId:this.curTreeData.primaryKeyId,
|
|
|
+ nodeName:this.curTreeData.title,
|
|
|
+ formIds:row.id,
|
|
|
+ }
|
|
|
+ ).then((res) => {
|
|
|
+ this.saveProTagLoading=false
|
|
|
+ if(res.data.code==200){
|
|
|
+ this.$message.success(res.data.msg)
|
|
|
+ this.closeProSyncTag()
|
|
|
|
|
|
- });
|
|
|
- }else if(command=='b'){
|
|
|
- this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
|
|
|
- distinguishCancelAndClose: true,
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- }).then(() => {
|
|
|
- console.log(111111111111);
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.data.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- });
|
|
|
- }
|
|
|
+ });
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
watch: {
|
|
|
"GLExcelFrom.search"(val) {
|