Просмотр исходного кода

fix: 更新开发环境代理地址并添加表格选择完成事件

liujt 7 месяцев назад
Родитель
Сommit
9373a655bb

+ 10 - 0
src/views/saleManage/saleOrder/invoice/components/selectStockLedger/selectStockLedgerDialog.vue

@@ -50,6 +50,7 @@
             class="dict-table"
             @cell-click="cellClick"
             :selection.sync="selection"
+            @done="onDone"
           >
             <template v-slot:action="{ row }">
               <el-radio class="radio" v-model="radio" :label="row.id"
@@ -225,6 +226,15 @@
       }
     },
     methods: {
+      onDone(res) {
+        const ids = this.currentItem.batchStockId;
+        console.log('ids', ids);
+        // this.$refs.table.setSelectedRowKeys(ids);
+        console.log('res:', res);
+        this.$nextTick(() => {
+            this.$refs.table.setSelectedRowKeys([ids]);
+        });
+      },
       getDictV(code, val) {
         if (!this.dictList[code]) return '';
         return this.dictList[code].find((item) => item.value == val)?.label;

+ 1 - 1
vue.config.js

@@ -36,7 +36,7 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.1.3:18086', //开发
+        target: 'http://192.168.1.251:18086', //开发
         // target: 'http://192.168.1.251:18186', //测试
         // target: 'http://192.168.1.23:18086',//罗
         // target: 'http://192.168.1.144:18086',//付