智慧农业后台管理页面
修复任务管理,用编辑按钮点开已完成任务后,再点击新增无法编辑的问题
1 files modified
5 ■■■■■ changed files
src/views/task/task.vue 5 ●●●●● patch | view | raw | blame | history
src/views/task/task.vue
@@ -575,7 +575,6 @@
  watch: {
    "form.stockId": {
      handler(val) {
        console.log(val)
        var stockIdcolumn = this.findObject(this.option.column, "stockNum");
        if (val != "") {
          stockIdcolumn.display = true;
@@ -657,7 +656,6 @@
      //获取农资
      selectStockFa(this.$farmId).then((res) => {
        if (res.data.code == 200) {
          console.log(res,1111111111111)
          var stockIdcolumn = that.findObject(that.option.column, "stockId");
          stockIdcolumn.dicData = res.data.data;
        }
@@ -732,6 +730,9 @@
        });
    },
    beforeOpen(done, type) {
      if(["add"].includes(type)){
        this.option.disabled=false
      }
      if (["edit", "view"].includes(type)) {
        getDetail(this.form.id).then(res => {
          this.form = res.data.data;