Browse Source

配方干物质到体况评分改多条数据复制

Epans 2 years ago
parent
commit
979e8ec964

+ 5 - 5
.env.development

@@ -5,12 +5,12 @@ ENV = 'development'
 # 测试线
 # VUE_APP_BASE_API = 'http://210.16.189.72:8081/'
 
-<<<<<<< HEAD
-=======
+ 
+# VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
 
-# 测试连这个1111
->>>>>>> 0b4eb5e13920ae5c62cff4a41331a02241eb8c77
-VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
+
+  VUE_APP_BASE_API = 'http://lhpc81.kptyun.com/'
+ 
 
 # 沙巍
 # VUE_APP_BASE_API = 'http://192.168.1.56:8081/'

BIN
dist.zip → dist20220420liuhuan.zip


+ 2 - 37
src/views/customboard/addboard/index.vue

@@ -349,43 +349,8 @@ export default {
 
 <style lang="scss" scoped>
 .container {
-  display: flex;
+ 
   min-height: calc(100vh - 62px);
-  // align-items: stretch;
-  .dashboard-list {
-    width: 250px;
-    min-height: 100%;
-    padding: 20px 10px;
-    /deep/ .el-card__header {
-      div {
-        display: flex;
-        justify-content: space-between;
-        font-size: 14px;
-        color: #606266;
-        i {
-          cursor: pointer;
-        }
-      }
-      padding: 5px 0px;
-    }
-    .dashboard-list-item {
-      display: flex;
-      justify-content: space-between;
-      line-height: 35px;
-      font-size: 14px;
-      cursor: pointer;
-      color: #606266;
-      i {
-        margin-right: 10px;
-        line-height: 35px;
-      }
-    }
-    .high-light-dashboard {
-      color: #205cd8;
-    }
-  }
-  .dashboard-wrapper {
-    width: 100%;
-  }
+  
 }
 </style>

+ 47 - 1
src/views/shedProduction/dungScores/index.vue

@@ -777,7 +777,7 @@ export default {
           this.requestParam.parammaps.id = this.selectList[0].id
           PostDataByName(this.requestParam).then(response => {
             if (response.msg === 'fail') {
-              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
             } else {
               this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
               this.getList()
@@ -790,6 +790,52 @@ export default {
         this.$message({ type: 'error', message: '请选择一条粪便评分', duration: 2000 })
       }
     },
+
+
+    // 改成多条,后端接口未改正确,先注释
+    //  handleCopy() {
+    //   console.log('点击了复制')
+    //   if (this.selectList.length == 0) {
+    //     this.$message({ type: 'error', message: '请选择粪便评分', duration: 2000 })
+    //   } else  {
+    //     MessageBox.confirm('是否确认复制此信息?', {
+    //       confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
+    //     }).then(() => {
+     
+    //       var send_data = {
+    //         "common":{"returnmap":"0"},
+    //         "data":[
+    //           {
+    //             "name":"insertSpotList",
+    //             "resultmaps":{
+    //               "list":this.selectList
+    //             },
+    //             "children":[
+    //                 {
+    //                   "name":"copyDungscore","type":"e",
+    //                   "parammaps":{
+    //                     "pastureid":"@insertSpotList.pastureid"
+    //                   }
+    //                 }
+    //             ]
+    //           }
+    //         ]
+    //       }
+    //       ExecDataByConfig(send_data).then(response => {
+    //         if (response.msg === 'fail') {     
+    //           this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+    //         } else {
+    //           this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
+    //           this.getList()
+    //         }
+    //       })
+    //     }).catch(() => {
+    //       this.$message({ type: 'info', message: '已取消复制' })
+    //     })
+    //   } 
+    // },
+
+
     // 导出
     handleExport(item) {
       if (item == 1) {

+ 127 - 83
src/views/shedProduction/fecalScreen/index.vue

@@ -24,7 +24,7 @@
           <el-dropdown-item @click.native="handleExport(1)">导出模板</el-dropdown-item>
           <el-dropdown-item @click.native="handleExport(2)">导出数据</el-dropdown-item>
         </el-dropdown-menu>
-      </el-dropdown>
+      </el-dropdown>
       <el-button class="export" style="float: right;" @click="handleHistoryRecord">历史记录</el-button>
     </div>
     <div class="table">
@@ -83,7 +83,7 @@
         <el-table-column label="操作" align="center" width="80" class-name="small-padding fixed-width" fixed="right">
           <template slot-scope="{row}">
             <el-button v-if="isRoleEdit" icon="el-icon-edit-outline" class="miniSuccess" @click="handleUpdate(row)" />
-            <span v-if="isRoleEdit" class="centerSpan">|</span>
+            <span v-if="isRoleEdit" class="centerSpan">|</span>
             <el-button v-if="isRoleEdit" class="miniDanger" icon="el-icon-delete" @click="handleRowDelete(row)" />
           </template>
         </el-table-column>
@@ -93,18 +93,18 @@
 
     <!-- 新增/编辑 -->
     <el-dialog :fullscreen="dialogFull" :visible.sync="create.dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <template slot="title">
-        <div class="avue-crud__dialog__header">
-          <span class="el-dialog__title">
-            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
-            {{ textMap[create.dialogStatus] }}
-          </span>
-          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
-            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
-            <svg-icon v-else icon-class="fullscreen" />
-          </div>
-        </div>
-      </template>
+      <template slot="title">
+        <div class="avue-crud__dialog__header">
+          <span class="el-dialog__title">
+            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
+            {{ textMap[create.dialogStatus] }}
+          </span>
+          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
+            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
+            <svg-icon v-else icon-class="fullscreen" />
+          </div>
+        </div>
+      </template>
       <div class="app-add">
         <el-form ref="temp" :rules="create.rules" :model="create.temp" label-position="right" label-width="150px" style="width: 100%;margin:0 auto 50px">
           <el-row>
@@ -199,29 +199,29 @@
           <el-button v-if="create.dialogStatus==='create' || create.dialogStatus==='update'" class="save" :disabled="isokDisable" @click="create.dialogStatus==='create'?createData():updateData()">确认</el-button>
         </div>
       </div>
-    </el-dialog>
-    <!-- 历史记录 -->
-    <el-dialog :fullscreen="dialogFull" :destroy-on-close="true" :visible.sync="historyRecord.dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <template slot="title">
-        <div class="avue-crud__dialog__header">
-          <span class="el-dialog__title">
-            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
-            {{ textMap[historyRecord.dialogStatus] }}
-          </span>
-          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
-            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
-            <svg-icon v-else icon-class="fullscreen" />
-          </div>
-        </div>
-      </template>
-      <div class="historyRecord">
-        <keep-alive>
-          <component :is="historyRecord.myComponent" ref="historyRecord" />
-        </keep-alive>
-        <div slot="footer" class="dialog-footer">
-          <el-button class="cancelClose cancelClose1" @click="historyRecord.dialogFormVisible = false; ">关闭</el-button>
-        </div>
-      </div>
+    </el-dialog>
+    <!-- 历史记录 -->
+    <el-dialog :fullscreen="dialogFull" :destroy-on-close="true" :visible.sync="historyRecord.dialogFormVisible" :close-on-click-modal="false" width="90%">
+      <template slot="title">
+        <div class="avue-crud__dialog__header">
+          <span class="el-dialog__title">
+            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
+            {{ textMap[historyRecord.dialogStatus] }}
+          </span>
+          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
+            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
+            <svg-icon v-else icon-class="fullscreen" />
+          </div>
+        </div>
+      </template>
+      <div class="historyRecord">
+        <keep-alive>
+          <component :is="historyRecord.myComponent" ref="historyRecord" />
+        </keep-alive>
+        <div slot="footer" class="dialog-footer">
+          <el-button class="cancelClose cancelClose1" @click="historyRecord.dialogFormVisible = false; ">关闭</el-button>
+        </div>
+      </div>
     </el-dialog>
   </div>
 </template>
@@ -238,7 +238,7 @@ export default {
   name: 'FecalScreen',
   components: { Pagination },
   data() {
-    return {
+    return {
       dialogFull: false,
       isRoleEdit: [],
       requestParams: [
@@ -310,15 +310,15 @@ export default {
       },
       textMap: {
         create: '新增',
-        update: '编辑',
+        update: '编辑',
         historyRecord: '历史记录'
       },
-      historyRecord: {
-        dialogFormVisible: false,
-        dialogStatus: '',
-        myComponent: null
-      },
-      requestParam: {},
+      historyRecord: {
+        dialogFormVisible: false,
+        dialogStatus: '',
+        myComponent: null
+      },
+      requestParam: {},
       requestParam2: {},
       download: {
         getdataListParm: {
@@ -520,7 +520,7 @@ export default {
     handleCreate() {
       console.log('点击了新增')
       this.resetTemp()
-      this.getNoteTakerList()
+      this.getNoteTakerList()
       this.dialogFull = false
       this.create.dialogStatus = 'create'
       this.create.dialogFormVisible = true
@@ -551,36 +551,36 @@ export default {
             console.log('新增保存发送参数', this.requestParam)
             if (response.msg !== 'fail') {
               this.saveData()
-            } else {
-              const checkStr = new RegExp('Duplicate entry :pbto')
-              if (checkStr.test(response.data)) {
-                this.$notify({ title: '保存失败', message: '同一栏舍不可重复录入', type: 'warning', duration: 2000 })
-              } else {
-                this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+            } else {
+              const checkStr = new RegExp('Duplicate entry :pbto')
+              if (checkStr.test(response.data)) {
+                this.$notify({ title: '保存失败', message: '同一栏舍不可重复录入', type: 'warning', duration: 2000 })
+              } else {
+                this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
               }
             }
           })
         }
       })
-    },
-    saveData() {
-      this.requestParam2.name = 'insertDungHistory'
-      this.create.temp.pastureid = Cookies.get('pastureid')
-      this.create.temp.changetime = parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}')
-      this.create.temp.species = 'fps'
-      this.create.temp.fourrate = ''
-      this.create.temp.fourweight = ''
-      this.requestParam2.parammaps = this.create.temp
-      PostDataByName(this.requestParam2).then(response => {
-        console.log('新增保存发送参数', this.requestParam1)
-        if (response.msg !== 'fail') {
-          this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
-          this.create.dialogFormVisible = false
-          this.getList()
-        } else {
-          this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-        }
-      })
+    },
+    saveData() {
+      this.requestParam2.name = 'insertDungHistory'
+      this.create.temp.pastureid = Cookies.get('pastureid')
+      this.create.temp.changetime = parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}')
+      this.create.temp.species = 'fps'
+      this.create.temp.fourrate = ''
+      this.create.temp.fourweight = ''
+      this.requestParam2.parammaps = this.create.temp
+      PostDataByName(this.requestParam2).then(response => {
+        console.log('新增保存发送参数', this.requestParam1)
+        if (response.msg !== 'fail') {
+          this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
+          this.create.dialogFormVisible = false
+          this.getList()
+        } else {
+          this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+        }
+      })
     },
     createDataAgain() {
       console.log('点击了新增保存')
@@ -607,7 +607,7 @@ export default {
           PostDataByName(this.requestParam).then(response => {
             console.log('新增保存发送参数', this.requestParam)
             if (response.msg !== 'fail') {
-              this.saveData()
+              this.saveData()
               this.resetTemp()
               this.getList()
               this.getNoteTakerList()
@@ -626,7 +626,7 @@ export default {
       this.create.temp = Object.assign({}, row)
       this.create.temp.id = row.id
 
-      this.getNoteTakerList()
+      this.getNoteTakerList()
       this.dialogFull = false
       this.create.dialogStatus = 'update'
       this.create.dialogFormVisible = true
@@ -655,7 +655,7 @@ export default {
           PostDataByName(this.requestParam).then(response => {
             console.log('新增保存发送参数', this.requestParam)
             if (response.msg !== 'fail') {
-              this.saveData()
+              this.saveData()
               this.getList()
             } else {
               this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
@@ -749,6 +749,50 @@ export default {
         this.$message({ type: 'error', message: '请选择一条粪便筛', duration: 2000 })
       }
     },
+
+
+     // 改成多条,后端接口未改正确,先注释
+    //  handleCopy() {
+    //   console.log('点击了复制')
+    //   if (this.selectList.length == 0) {
+    //     this.$message({ type: 'error', message: '请选择粪便筛', duration: 2000 })
+    //   } else  {
+    //     MessageBox.confirm('是否确认复制此信息?', {
+    //       confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
+    //     }).then(() => {
+     
+    //       var send_data = {
+    //         "common":{"returnmap":"0"},
+    //         "data":[
+    //           {
+    //             "name":"insertSpotList",
+    //             "resultmaps":{
+    //               "list":this.selectList
+    //             },
+    //             "children":[
+    //                 {
+    //                   "name":"copyDungsieve","type":"e",
+    //                   "parammaps":{
+    //                     "pastureid":"@insertSpotList.pastureid"
+    //                   }
+    //                 }
+    //             ]
+    //           }
+    //         ]
+    //       }
+    //       ExecDataByConfig(send_data).then(response => {
+    //         if (response.msg === 'fail') {     
+    //           this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+    //         } else {
+    //           this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
+    //           this.getList()
+    //         }
+    //       })
+    //     }).catch(() => {
+    //       this.$message({ type: 'info', message: '已取消复制' })
+    //     })
+    //   } 
+    // },
     // 导出
     handleExport(item) {
       if (item == 1) {
@@ -851,15 +895,15 @@ export default {
           }
         })
       )
-    },
-    handleHistoryRecord() {
-      console.log('点击历史记录')
-      this.dialogFull = false
-      this.historyRecord.dialogStatus = 'historyRecord'
-      this.historyRecord.dialogFormVisible = true
-      const vue = this
-      var myComponent = () => import('./historyRecord.vue')
-      return vue.historyRecord.myComponent = myComponent
+    },
+    handleHistoryRecord() {
+      console.log('点击历史记录')
+      this.dialogFull = false
+      this.historyRecord.dialogStatus = 'historyRecord'
+      this.historyRecord.dialogFormVisible = true
+      const vue = this
+      var myComponent = () => import('./historyRecord.vue')
+      return vue.historyRecord.myComponent = myComponent
     }
 
   }

+ 52 - 0
src/views/shedProduction/formulaDryMatter/index.vue

@@ -750,6 +750,58 @@ export default {
         this.$message({ type: 'error', message: '请选择一条配方干物质', duration: 2000 })
       }
     },
+
+
+    // 改成多条,后端接口未改正确,先注释
+    //  handleCopy() {
+    //   console.log('点击了复制')
+    //   if (this.selectList.length == 0) {
+    //     this.$message({ type: 'error', message: '请选择配方干物质', duration: 2000 })
+    //   } else  {
+    //     MessageBox.confirm('是否确认复制此信息?', {
+    //       confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
+    //     }).then(() => {
+     
+    //       var send_data = {
+    //         "common":{"returnmap":"0"},
+    //         "data":[
+    //           {
+    //             "name":"insertSpotList",
+    //             "resultmaps":{
+    //               "list":this.selectList
+    //             },
+    //             "children":[
+    //                 {
+    //                   "name":"copyFtdry","type":"e",
+    //                   "parammaps":{
+    //                     "pastureid":"@insertSpotList.pastureid"
+    //                   }
+    //                 }
+    //             ]
+    //           }
+    //         ]
+    //       }
+    //       ExecDataByConfig(send_data).then(response => {
+    //         if (response.msg === 'fail') {
+    //           const barid = new RegExp("key 'barid'")
+    //           if (barid.test(response.data)) {
+    //             this.$notify({ type: 'warning', message: '该栏舍该班次今日配方干物质已存在,不可重复生成', duration: 2000 })
+    //             return
+    //           }
+    //           this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+    //         } else {
+    //           this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
+    //           this.getList()
+    //         }
+    //       })
+    //     }).catch(() => {
+    //       this.$message({ type: 'info', message: '已取消复制' })
+    //     })
+    //   } 
+    // },
+ 
+
+
     // 导出
     handleExport(item) {
       if (item == 1) {

+ 113 - 69
src/views/shedProduction/pennsylvaniaSieve/index.vue

@@ -26,7 +26,7 @@
           <el-dropdown-item @click.native="handleExport(1)">导出模板</el-dropdown-item>
           <el-dropdown-item @click.native="handleExport(2)">导出数据</el-dropdown-item>
         </el-dropdown-menu>
-      </el-dropdown>
+      </el-dropdown>
       <el-button class="export" style="float: right;" @click="handleHistoryRecord">历史记录</el-button>
     </div>
     <div class="table">
@@ -94,7 +94,7 @@
         <el-table-column label="操作" align="center" width="70" class-name="small-padding fixed-width" fixed="right">
           <template slot-scope="{row}">
             <el-button v-if="isRoleEdit" class="miniSuccess" icon="el-icon-edit-outline" @click="handleUpdate(row)" />
-            <span v-if="isRoleEdit" class="centerSpan">|</span>
+            <span v-if="isRoleEdit" class="centerSpan">|</span>
             <el-button v-if="isRoleEdit" class="miniDanger" icon="el-icon-delete" @click="handleRowDelete(row)" />
           </template>
         </el-table-column>
@@ -104,18 +104,18 @@
 
     <!-- 新增/编辑 -->
     <el-dialog :fullscreen="dialogFull" :visible.sync="create.dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <template slot="title">
-        <div class="avue-crud__dialog__header">
-          <span class="el-dialog__title">
-            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
-            {{ textMap[create.dialogStatus] }}
-          </span>
-          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
-            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
-            <svg-icon v-else icon-class="fullscreen" />
-          </div>
-        </div>
-      </template>
+      <template slot="title">
+        <div class="avue-crud__dialog__header">
+          <span class="el-dialog__title">
+            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
+            {{ textMap[create.dialogStatus] }}
+          </span>
+          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
+            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
+            <svg-icon v-else icon-class="fullscreen" />
+          </div>
+        </div>
+      </template>
       <div class="app-add">
         <el-form ref="temp" :rules="create.rules" :model="create.temp" label-position="right" label-width="150px" style="width: 100%;margin:0 auto 50px">
           <el-row>
@@ -228,29 +228,29 @@
           <el-button v-if="create.dialogStatus==='create' || create.dialogStatus==='update'" class="save" :disabled="isokDisable" @click="create.dialogStatus==='create'?createData():updateData()">确认</el-button>
         </div>
       </div>
-    </el-dialog>
-    <!-- 历史记录 -->
-    <el-dialog :fullscreen="dialogFull" :destroy-on-close="true" :visible.sync="historyRecord.dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <template slot="title">
-        <div class="avue-crud__dialog__header">
-          <span class="el-dialog__title">
-            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
-            {{ textMap[historyRecord.dialogStatus] }}
-          </span>
-          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
-            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
-            <svg-icon v-else icon-class="fullscreen" />
-          </div>
-        </div>
-      </template>
-      <div class="historyRecord">
-        <keep-alive>
-          <component :is="historyRecord.myComponent" ref="historyRecord" />
-        </keep-alive>
-        <div slot="footer" class="dialog-footer">
-          <el-button class="cancelClose cancelClose1" @click="historyRecord.dialogFormVisible = false; ">关闭</el-button>
-        </div>
-      </div>
+    </el-dialog>
+    <!-- 历史记录 -->
+    <el-dialog :fullscreen="dialogFull" :destroy-on-close="true" :visible.sync="historyRecord.dialogFormVisible" :close-on-click-modal="false" width="90%">
+      <template slot="title">
+        <div class="avue-crud__dialog__header">
+          <span class="el-dialog__title">
+            <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px" />
+            {{ textMap[historyRecord.dialogStatus] }}
+          </span>
+          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
+            <svg-icon v-if="dialogFull" icon-class="exit-fullscreen" />
+            <svg-icon v-else icon-class="fullscreen" />
+          </div>
+        </div>
+      </template>
+      <div class="historyRecord">
+        <keep-alive>
+          <component :is="historyRecord.myComponent" ref="historyRecord" />
+        </keep-alive>
+        <div slot="footer" class="dialog-footer">
+          <el-button class="cancelClose cancelClose1" @click="historyRecord.dialogFormVisible = false; ">关闭</el-button>
+        </div>
+      </div>
     </el-dialog>
   </div>
 </template>
@@ -267,7 +267,7 @@ export default {
   name: 'PennsylvaniaSieve',
   components: { Pagination },
   data() {
-    return {
+    return {
       dialogFull: false,
       isRoleEdit: [],
       requestParams: [
@@ -341,13 +341,13 @@ export default {
       },
       textMap: {
         create: '新增',
-        update: '编辑',
+        update: '编辑',
         historyRecord: '历史记录'
       },
-      historyRecord: {
-        dialogFormVisible: false,
-        dialogStatus: '',
-        myComponent: null
+      historyRecord: {
+        dialogFormVisible: false,
+        dialogStatus: '',
+        myComponent: null
       },
       requestParam: {},
       requestParam2: {},
@@ -558,7 +558,7 @@ export default {
     handleCreate() {
       console.log('点击了新增')
       this.resetTemp()
-      this.getNoteTakerList()
+      this.getNoteTakerList()
       this.dialogFull = false
       this.create.dialogStatus = 'create'
       this.create.dialogFormVisible = true
@@ -589,11 +589,11 @@ export default {
             console.log('新增保存发送参数', this.requestParam)
             if (response.msg !== 'fail') {
               this.saveData()
-            } else {
-              const checkStr = new RegExp('Duplicate entry :btop')
-              if (checkStr.test(response.data)) {
-                this.$notify({ title: '保存失败', message: '同一栏舍同一班次不可重复录入', type: 'warning', duration: 2000 })
-              } else {
+            } else {
+              const checkStr = new RegExp('Duplicate entry :btop')
+              if (checkStr.test(response.data)) {
+                this.$notify({ title: '保存失败', message: '同一栏舍同一班次不可重复录入', type: 'warning', duration: 2000 })
+              } else {
                 this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
               }
             }
@@ -656,22 +656,22 @@ export default {
 
     // 编辑
     handleUpdate(row) {
-      console.log('点击了编辑', row)
-      // row.times
-      if (row.times == '第一班') {
-        row.times = '1'
-      } else if (row.times == '第二班') {
-        row.times = '2'
-      } else if (row.times == '第三班') {
-        row.times = '3'
-      } else if (row.times == '第四班') {
-        row.times = '4'
+      console.log('点击了编辑', row)
+      // row.times
+      if (row.times == '第一班') {
+        row.times = '1'
+      } else if (row.times == '第二班') {
+        row.times = '2'
+      } else if (row.times == '第三班') {
+        row.times = '3'
+      } else if (row.times == '第四班') {
+        row.times = '4'
       }
       row.barid = String(row.barid)
       this.create.temp = Object.assign({}, row)
       this.create.temp.id = row.id
 
-      this.getNoteTakerList()
+      this.getNoteTakerList()
       this.dialogFull = false
       this.create.dialogStatus = 'update'
       this.create.dialogFormVisible = true
@@ -794,6 +794,50 @@ export default {
         this.$message({ type: 'error', message: '请选择一条宾州筛', duration: 2000 })
       }
     },
+
+    // 改成多条,后端接口未改正确,先注释
+    //  handleCopy() {
+    //   console.log('点击了复制')
+    //   if (this.selectList.length == 0) {
+    //     this.$message({ type: 'error', message: '请选择宾州筛质', duration: 2000 })
+    //   } else  {
+    //     MessageBox.confirm('是否确认复制此信息?', {
+    //       confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
+    //     }).then(() => {
+     
+    //       var send_data = {
+    //         "common":{"returnmap":"0"},
+    //         "data":[
+    //           {
+    //             "name":"insertSpotList",
+    //             "resultmaps":{
+    //               "list":this.selectList
+    //             },
+    //             "children":[
+    //                 {
+    //                   "name":"copyPennsieve","type":"e",
+    //                   "parammaps":{
+    //                     "pastureid":"@insertSpotList.pastureid"
+    //                   }
+    //                 }
+    //             ]
+    //           }
+    //         ]
+    //       }
+    //       ExecDataByConfig(send_data).then(response => {
+    //         if (response.msg === 'fail') {     
+    //           this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+    //         } else {
+    //           this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
+    //           this.getList()
+    //         }
+    //       })
+    //     }).catch(() => {
+    //       this.$message({ type: 'info', message: '已取消复制' })
+    //     })
+    //   } 
+    // },
+
     // 导出
     handleExport(item) {
       if (item == 1) {
@@ -896,15 +940,15 @@ export default {
           }
         })
       )
-    },
-    handleHistoryRecord() {
-      console.log('点击历史记录')
-      this.dialogFull = false
-      this.historyRecord.dialogStatus = 'historyRecord'
-      this.historyRecord.dialogFormVisible = true
-      const vue = this
-      var myComponent = () => import('./historyRecord.vue')
-      return vue.historyRecord.myComponent = myComponent
+    },
+    handleHistoryRecord() {
+      console.log('点击历史记录')
+      this.dialogFull = false
+      this.historyRecord.dialogStatus = 'historyRecord'
+      this.historyRecord.dialogFormVisible = true
+      const vue = this
+      var myComponent = () => import('./historyRecord.vue')
+      return vue.historyRecord.myComponent = myComponent
     }
 
   }

+ 46 - 0
src/views/shedProduction/physicalConditionScore/index.vue

@@ -818,6 +818,52 @@ export default {
         this.$message({ type: 'error', message: '请选择一条体况评分', duration: 2000 })
       }
     },
+
+
+    // 改成多条,后端接口未改正确,先注释
+    //  handleCopy() {
+    //   console.log('点击了复制')
+    //   if (this.selectList.length == 0) {
+    //     this.$message({ type: 'error', message: '请选择体况评分', duration: 2000 })
+    //   } else  {
+    //     MessageBox.confirm('是否确认复制此信息?', {
+    //       confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
+    //     }).then(() => {
+     
+    //       var send_data = {
+    //         "common":{"returnmap":"0"},
+    //         "data":[
+    //           {
+    //             "name":"insertSpotList",
+    //             "resultmaps":{
+    //               "list":this.selectList
+    //             },
+    //             "children":[
+    //                 {
+    //                   "name":"copyBodyscore","type":"e",
+    //                   "parammaps":{
+    //                     "pastureid":"@insertSpotList.pastureid"
+    //                   }
+    //                 }
+    //             ]
+    //           }
+    //         ]
+    //       }
+    //       ExecDataByConfig(send_data).then(response => {
+    //         if (response.msg === 'fail') {     
+    //           this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+    //         } else {
+    //           this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
+    //           this.getList()
+    //         }
+    //       })
+    //     }).catch(() => {
+    //       this.$message({ type: 'info', message: '已取消复制' })
+    //     })
+    //   } 
+    // },
+
+
     // 导出
     handleExport(item) {
       if (item == 1) {

+ 46 - 2
src/views/systemManagement/customboard2/Addboard2/index.vue

@@ -1,7 +1,27 @@
 <template>
 
-  <div v-loading="loading" class="container" style="position:relactive">
-  
+  <div   class="container" style="position:relactive">
+
+<!-- 
+    <div v-show="editBtn" style="position:absolute;top:170px;right:100px;z-index:1">
+   
+      <el-button v-if="isRoleEdit" class="successBorder" :loading="control_btn_l" @click="control_edit()">
+        {{ control_btn }}
+      </el-button>
+    </div> -->
+
+    <el-card  body-style="padding: 0px;" class="dashboard-list" shadow="never">
+     
+      <ul>
+       111
+      </ul>
+    </el-card>
+ 
+ <draggable v-model="barSortList" group="itxst"   animation="300" :group="{name: 'dashboard',pull: true}" @start="onStart" @end="onEnd">
+                    <transition-group>
+                        <div class = "board" style = ""   v-for="item in barSortList"  key="1">{{item.title}}</div>
+                    </transition-group>
+                </draggable>
   </div>
 
 </template>
@@ -18,6 +38,14 @@ export default {
   data() {
     return {
       isRoleEdit: [],
+
+      barSortList: [
+
+        {title:'图标1'},
+        {title:'图标1'},
+        {title:'图标1'},
+       ],
+
       isEdit: 'view',
       dashboardList: [],
       currentDashboard: undefined,
@@ -47,6 +75,17 @@ export default {
 
   methods: {
 
+
+
+
+       onStart(){
+      console.log(2222)
+    },
+    onEnd(){
+      console.log(this.barSortList)
+
+  
+    },
      
 
     getList() {
@@ -64,6 +103,11 @@ export default {
   }
 }
 </script>
+<style>
+.board{
+  width:300px;height:300px;border:1px soild #333;display:inline-block;background: #2ed1f9;padding: 5px 5px;margin-right: 15px;margin-bottom: 15px;
+}
+</style>
 
 <style lang="scss" scoped>
 .container {

+ 1 - 7
src/views/systemManagement/customboard2/ChartPanel2/index.vue

@@ -238,13 +238,7 @@ export default {
   components: { Pagination, draggable  },
   data() {
     return {
-      arr1: [
-                        { id: 1, name: "ce111" },
-                        { id: 2, name: "ce12221" },
-                        { id: 3, name: "ce133311" },
-                        { id: 5, name: "ce11441" },
-                        { id: 4, name: "ce1411" }
-                    ],
+      
       chartType:'line',
       chartTypeList:[
           // {type:'table', desc:"表格:任意维度数据" ,icon:'chart_table',isUse:true,id:0},