石广澎
2024-01-05 b2429057ae17e9f5b357435b0bff5f6cc0040b69
admin-web/src/views/stock/ledger/alertQuery/index.vue
@@ -40,12 +40,12 @@
          placeholder: '请选择',
          defaultValue: '',
          options: [],
          cascader: [{key: 'baseGoodsModelsId', queryKey: 'goodsTemplatesId'}],
          cascader: [{key: 'goodsTemplateId', queryKey: 'categoryId'}],
          optionsConfig: {
            label: 'label',
            value: 'id',
            url: SettingIplatform.apiBaseURL + '/pc/base/category/select/tree',
            props: {checkStrictly: false}
            props: {checkStrictly: false, emitPath: false, value: 'id'}
          },
        },
        {
@@ -174,22 +174,22 @@
  methods: {
    del(row) {
      this.$modal
        .confirm('是否确认删除名称为"' + row.name + '"的机构吗?')
        .then(function () {
          finsystenant.del({id: row.id}).then((res) => {
          .confirm('是否确认删除名称为"' + row.name + '"的机构吗?')
          .then(function () {
            finsystenant.del({id: row.id}).then((res) => {
            });
          })
          .then((res) => {
            this.$message.success('删除成功!');
            this.search();
          })
          .catch(() => {
          });
        })
        .then((res) => {
          this.$message.success('删除成功!');
          this.search();
        })
        .catch(() => {
        });
    },
    // 查询table列表
    search(pageNum) {
      if (pageNum != undefined) {
        this.$refs.myTable.search(pageNum);
        this.$refs.myTable.search({pageNum});
      } else {
        this.$refs.myTable.search();
      }