Преглед на файлове

给新增设备添加部位信息失败

3254194295 преди 2 години
родител
ревизия
901e490ebb
променени са 3 файла, в които са добавени 14 реда и са изтрити 4 реда
  1. 7 1
      src/views/check/checkjob/CheckJob.vue
  2. 6 2
      src/views/part/info/PartInfo.vue
  3. 1 1
      src/views/part/info/modules/BaseForm.vue

+ 7 - 1
src/views/check/checkjob/CheckJob.vue

@@ -107,7 +107,6 @@
         </a-form>
       </div>
     </a-card>
-
     <a-card :bordered="false">
       <div v-show="visible">
         <div class="table-operator" style="margin-bottom: 16px;">
@@ -456,6 +455,9 @@ export default {
     this.tableOption()
   },
   methods: {
+    ddd () {
+      alert(111)
+    },
     tableOption () {
       if (!this.optionAlertShow) {
         this.options = {
@@ -543,6 +545,7 @@ export default {
       this.$refs.table.refresh(true)
     },
     handleSeven () {
+      alert(555)
       var now = new Date()
       var nowTime = now.getTime()
       var day = now.getDay()
@@ -625,6 +628,8 @@ export default {
       })
     },
     handleTuiCalendar () {
+      alert(111)
+      console.log(11)
       const that = this
       queryTuiCalendarIgnores({ type: 2 }).then(res => {
         const a = document.createElement('a')
@@ -641,6 +646,7 @@ export default {
       })
     },
     doExport () {
+      alert(1211)
       const parameter = {
         ...this.queryParam,
         searchStartTime: this.queryParam.searchStartTime,

+ 6 - 2
src/views/part/info/PartInfo.vue

@@ -19,7 +19,7 @@
     </div>
 
     <div class="table-operator" style="margin-bottom: 8px;">
-      <a-button v-if="$auth('part-infos-add')" type="primary" icon="plus" @click="$refs.baseModal.base()">新增</a-button>
+      <a-button v-if="$auth('part-infos-add')" type="primary" icon="plus" @click="handleAdd">新增</a-button>
       <a-button style="margin-left: 8px" v-if="$auth('part-infos-export')" type="primary" icon="download" @click="doExport">导出</a-button>
       <a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('part-infos-del')">
         <a-menu slot="overlay">
@@ -96,7 +96,6 @@ export default {
       // 查询参数
       queryParam: {
         sbId: this.$route.query.id
-
       },
       statusMap: {},
       unitMap: {},
@@ -155,6 +154,7 @@ export default {
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
+        this.sbId = this.queryParam.sbId
         parameter = {
           ...parameter,
           ...this.queryParam,
@@ -213,6 +213,10 @@ export default {
         this.optionAlertShow = false
       }
     },
+    handleAdd () {
+      const param = { sbId: this.sbId }
+      this.$refs.baseModal.base(param)
+    },
     batchDelete (id) {
       let ids = []
       if (this.BaseTool.String.isBlank(id)) {

+ 1 - 1
src/views/part/info/modules/BaseForm.vue

@@ -173,7 +173,7 @@ export default {
           this.confirmLoading = false
           return
         }
-        values.sbId = this.sbId
+        console.log(values)
         if (this.BaseTool.String.isBlank(values.id)) {
           addPartInfo(values)
             .then(() => {