Browse Source

配方模板延时搅拌编辑默认值为0

duanxiaoduan 1 year ago
parent
commit
16023a23b1
2 changed files with 7 additions and 3 deletions
  1. 2 2
      .env.development
  2. 5 1
      src/views/formulationPlan/recipeTemplate/index.vue

+ 2 - 2
.env.development

@@ -4,9 +4,9 @@ ENV = 'development'
 # base api
 # 测试线
 # VUE_APP_BASE_API = 'http://192.168.1.70:8082/'
-# VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
+VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
 # 白少后台本地
-VUE_APP_BASE_API = 'http://192.168.1.77:8081/'
+# VUE_APP_BASE_API = 'http://192.168.1.77:8081/'
 # VUE_APP_BASE_API = 'http://192.168.1.93/'
 # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
 # to control whether the babel-plugin-dynamic-import-node plugin is enabled.

+ 5 - 1
src/views/formulationPlan/recipeTemplate/index.vue

@@ -2509,6 +2509,10 @@ export default {
           setTimeout(() => {
             this.isokDisable = false
           }, 1000)
+          console.log(row.autosecond,'======')
+          if(row.autosecond == null || row.autosecond == undefined || isNaN(row.autosecond)){
+            row.autosecond = '0'
+          }
           this.table2.temp.pastureid = row.pastureid
           this.table2.temp.ftid = this.table2.getdataListParm.parammaps.ftid
           this.table2.temp.fid = row.fid
@@ -3350,7 +3354,7 @@ export default {
       })
     },
     handleGetUd(){
-      MessageBox.confirm('是否获取UD栏舍?', {
+      MessageBox.confirm('是否上传配方?', {
         confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
       }).then(() => {
         let url = 'authdata/gm/udfeedtemplet/push'