su
su1124
2024-04-25 c66654e2a64fff2848f8aa25547324e55c8572d1
src/views/system/biapqianzidian/index.vue
@@ -196,7 +196,8 @@
  getInfo,
  addTjAdviceKjbq,
  updateTjAdviceKjbq,
  updateQybzTjAdviceKjbqById
  updateQybzTjAdviceKjbqById,
  deletedTjAdviceKjbq
} from "@/api/system/biaoqianzidian";
export default {
@@ -291,6 +292,9 @@
            1;
        });
        this.biaoqianList = response.data.records;
        // this.biaoqianList.forEach(item=>{
        //     console.log(this.biaoqianList);
        // })
        this.total = response.data.total;
        this.loading = false;
      });
@@ -298,11 +302,12 @@
    // 开关事件
    changeSwitch(row) {
      this.rows = row;
      let qybz = row.qyzt;
      let text = row.qyzt === "0" ? "启用" : "停用";
      this.$modal
        .confirm('确认要"' + text + '""' + row.kjbq + '"模板吗?')
        .then(function () {
          return updateQybzTjAdviceKjbqById(row.id, row.qyzt);
          return updateQybzTjAdviceKjbqById(row.id, qybz);
        })
        .then(() => {
          this.$modal.msgSuccess(text + "成功");
@@ -372,9 +377,9 @@
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除体检流水编号为"' + ids + '"的数据项?')
        .confirm('是否确认删除标签字典编号为"' + ids + '"的数据项?')
        .then(function () {
          return delSendTemplate(ids);
          return deletedTjAdviceKjbq(ids);
        })
        .then(() => {
          this.getList();