jtui3.0 1.1.42 → 1.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300262,6 +300262,11 @@ function MttPanelHook(props, isListen = true) {
300262
300262
  //修改操作
300263
300263
  modify_handler: async (params, item, level) => {
300264
300264
  const path = item.submit + item.path;
300265
+
300266
+ if (queryParmasOut.value) {
300267
+ params = Object.assign(params, queryParmasOut.value);
300268
+ }
300269
+
300265
300270
  const {
300266
300271
  data
300267
300272
  } = await props.axios.post(path, params);
@@ -300314,6 +300319,8 @@ function MttPanelHook(props, isListen = true) {
300314
300319
 
300315
300320
  ElMessage.warning("修改失败[" + msg + "]");
300316
300321
  }
300322
+
300323
+ queryParmasOut.value = null;
300317
300324
  },
300318
300325
  // 下载文件
300319
300326
  download_handler: row => {
@@ -300346,18 +300353,22 @@ function MttPanelHook(props, isListen = true) {
300346
300353
  }).catch(() => {});
300347
300354
  },
300348
300355
  exec_handler: async (params, item, level) => {
300349
- console.log(item);
300350
300356
  const path = item.submit + item.path;
300351
300357
  ElMessageBox.confirm("请确认开始执行操作?", "提示", {
300352
300358
  confirmButtonText: "确定",
300353
300359
  cancelButtonText: "取消",
300354
300360
  type: "warning"
300355
300361
  }).then(async () => {
300362
+ if (queryParmasOut.value) {
300363
+ params = Object.assign(params, queryParmasOut.value);
300364
+ }
300365
+
300356
300366
  const {
300357
300367
  data
300358
300368
  } = await props.axios.post(path, model_all.value);
300359
300369
  hideModal();
300360
300370
  handlerCallBack(data, level, 'exec', item);
300371
+ queryParmasOut.value = null;
300361
300372
  }).catch(() => {});
300362
300373
  }
300363
300374
  }; //parentId寻找父级