Browse Source

解决冲突

GaoYuPeng 3 years ago
parent
commit
dfec0bd501

+ 2 - 1
.env

@@ -4,7 +4,8 @@
4
 VUE_APP_TITLE=D2Admin
4
 VUE_APP_TITLE=D2Admin
5
 
5
 
6
 # 网络请求公用地址
6
 # 网络请求公用地址
7
-VUE_APP_API=http://101.36.160.140:21023/api/
7
+VUE_APP_API=/api/
8
+; VUE_APP_API=http://101.36.160.140:21023/
8
 
9
 
9
 # 仓库地址
10
 # 仓库地址
10
 VUE_APP_REPO=https://github.com/d2-projects/d2-admin-start-kit
11
 VUE_APP_REPO=https://github.com/d2-projects/d2-admin-start-kit

+ 0 - 3
.env.development

@@ -3,6 +3,3 @@
3
 # 页面 title 前缀
3
 # 页面 title 前缀
4
 VUE_APP_TITLE=数量监测智能眼系统
4
 VUE_APP_TITLE=数量监测智能眼系统
5
 
5
 
6
-
7
-# 网络请求公用地址
8
-VUE_APP_API=http://101.36.160.140:21023/api/

+ 2 - 23
src/App.vue

@@ -25,28 +25,7 @@ export default {
25
 
25
 
26
 <style lang="scss">
26
 <style lang="scss">
27
 @import '~@/assets/style/public-class.scss';
27
 @import '~@/assets/style/public-class.scss';
28
-/* //分页整体样式
29
-.el-pagination{
30
-  margin-top: 20px;
31
-  display:flex;
32
-justify-content: flex-end;
33
-}
34
-//分页总共几页样式
35
-.el-pagination__total {
36
-  color:#FFF !important
37
-}
38
-//label样式
39
-.el-form-item__label{
40
-  color:#fff !important
41
-}
42
-//树形节点选中后的颜色
43
- .el-tree-node:focus>.el-tree-node__content {
44
-    background-color:#0064b9 !important;
45
-    border-radius:20px;
46
-}
47
-//树形节点鼠标移上去的颜色
48
-.el-tree-node__content:hover {
49
-     background-color:#91a8bc !important;
50
-} */
28
+
29
+
51
 
30
 
52
 </style>
31
 </style>

+ 1 - 0
src/api/index.js

@@ -5,6 +5,7 @@ import * as tools from './tools'
5
 
5
 
6
 const files = require.context('./modules', true, /\.api\.js$/)
6
 const files = require.context('./modules', true, /\.api\.js$/)
7
 const generators = files.keys().map(key => files(key).default)
7
 const generators = files.keys().map(key => files(key).default)
8
+console.log(files.keys(),"///")
8
 
9
 
9
 export default assign({}, ...map(generators, generator => generator({
10
 export default assign({}, ...map(generators, generator => generator({
10
   service,
11
   service,

+ 29 - 0
src/api/modules/paramManage/hardParam.api.js

@@ -0,0 +1,29 @@
1
+
2
+  //硬件参数
3
+export default ({request}) => ({
4
+  //左侧树
5
+
6
+//列表
7
+ hardParam(data = {}) {
8
+
9
+
10
+  return request({
11
+    url: `hdParemeter/getPage`,
12
+    method: 'post',
13
+    data
14
+  })
15
+
16
+  },
17
+
18
+  //新增
19
+  addHardParam(data = {}) {
20
+
21
+
22
+    return request({
23
+      url: `hdParemeter/save`,
24
+      method: 'post',
25
+      data
26
+    })
27
+  
28
+    }
29
+})

+ 3 - 2
src/api/service.js

@@ -33,7 +33,7 @@ function createService () {
33
       } else {
33
       } else {
34
         // 有 code 代表这是一个后端接口 可以进行进一步的判断
34
         // 有 code 代表这是一个后端接口 可以进行进一步的判断
35
         switch (code) {
35
         switch (code) {
36
-          case 0:
36
+          case 200:
37
             // [ 示例 ] code === 0 代表没有错误
37
             // [ 示例 ] code === 0 代表没有错误
38
             return dataAxios.data
38
             return dataAxios.data
39
           case 'xxx':
39
           case 'xxx':
@@ -83,7 +83,8 @@ function createRequestFunction (service) {
83
         'Content-Type': get(config, 'headers.Content-Type', 'application/json')
83
         'Content-Type': get(config, 'headers.Content-Type', 'application/json')
84
       },
84
       },
85
       timeout: 5000,
85
       timeout: 5000,
86
-      baseURL: process.env.VUE_APP_API,
86
+      // baseURL: process.env.VUE_APP_API,
87
+      baseURL: '/api',
87
       data: {}
88
       data: {}
88
     }
89
     }
89
     return service(Object.assign(configDefault, config))
90
     return service(Object.assign(configDefault, config))

BIN
src/assets/images/logo.png


+ 16 - 0
src/assets/style/public-class.scss

@@ -153,3 +153,19 @@ $sizes: (0, 5, 10, 15, 20);
153
 .el-table__body tr.hover-row>td.el-table__cell{
153
 .el-table__body tr.hover-row>td.el-table__cell{
154
   background:hsl(204, 66%, 23%) !important;
154
   background:hsl(204, 66%, 23%) !important;
155
 }
155
 }
156
+//弹框样式
157
+#dialogStyle .el-dialog{
158
+  background: #092a51;
159
+}
160
+#dialogStyle .el-dialog__header{
161
+  background:#3a8ee6;
162
+}
163
+#dialogStyle .el-dialog__title,#dialogStyle .el-form-item__label{
164
+  // color:#9bbbe3;
165
+  color:#fff;
166
+}
167
+// #dialogStyle .el-input__inner{
168
+//   background:#1d3b6b;
169
+//   border:1px solid #345684;
170
+//   opacity: 12.5;
171
+// }

+ 5 - 0
src/main.js

@@ -16,6 +16,11 @@ import { frameInRoutes } from '@/router/routes'
16
 import * as echarts from "echarts"
16
 import * as echarts from "echarts"
17
 Vue.prototype.$echarts = echarts
17
 Vue.prototype.$echarts = echarts
18
 
18
 
19
+
20
+// axios
21
+import axios from 'axios'
22
+Vue.prototype.$axios = axios;
23
+
19
 // 核心插件
24
 // 核心插件
20
 Vue.use(d2Admin)
25
 Vue.use(d2Admin)
21
 
26
 

+ 328 - 9
src/views/demo/parameManagement/dataDictionary/index.vue

@@ -1,14 +1,333 @@
1
 <template>
1
 <template>
2
-    <div>
3
-         <d2-container>
4
-    <template slot="header">参数设置/数据字典</template>
5
- 数据字典
6
-  </d2-container>
7
-      
8
-    </div>
2
+  <div>
3
+    <d2-container>
4
+      <template slot="header"
5
+        ><div class="nav">当前所在位置:首页>数据字典</div></template
6
+      >
7
+      <div>
8
+        <div class="right_main">
9
+          <div class="right_title">
10
+            <i
11
+              class="fa fa-book"
12
+              aria-hidden="true"
13
+              style="padding-right: 5px"
14
+            ></i
15
+            >数据字典
16
+          </div>
17
+          <div class="right_table">
18
+            <el-form
19
+              :inline="true"
20
+              :model="formInline"
21
+              class="demo-form-inline"
22
+              id="formLabel"
23
+            >
24
+              <div class="searchRow">
25
+                <div>
26
+                  <el-form-item label="字典名称:">
27
+                    <el-cascader :options="options"></el-cascader>
28
+                  </el-form-item>
29
+
30
+                  <el-form-item>
31
+                    <el-button
32
+                      type="primary"
33
+                      icon="el-icon-search"
34
+                      @click="search"
35
+                      >查询</el-button
36
+                    >
37
+                  </el-form-item>
38
+
39
+                  <el-form-item>
40
+                    <el-button
41
+                      type="primary"
42
+                      icon="el-icon-refresh-left"
43
+                      @click="reset"
44
+                      >重置</el-button
45
+                    >
46
+                  </el-form-item>
47
+                </div>
48
+                <div>
49
+                  <el-form-item>
50
+                    <el-button
51
+                      type="primary"
52
+                      icon="el-icon-plus"
53
+                      @click="addDic"
54
+                      >新建字典</el-button
55
+                    >
56
+                  </el-form-item>
57
+                </div>
58
+              </div>
59
+            </el-form>
60
+
61
+            <el-table
62
+              :data="dataDictionaryList"
63
+              border
64
+              style="width: 100%"
65
+              row-key="id"
66
+              lazy
67
+              :load="load"
68
+              :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
69
+              :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }"
70
+            >
71
+              <el-table-column
72
+                prop="branchOffice"
73
+                label="字典名称"
74
+                align="center"
75
+              >
76
+              </el-table-column>
77
+              <el-table-column
78
+                prop="directLibrary"
79
+                label="字典标识"
80
+                align="center"
81
+              >
82
+              </el-table-column>
83
+              <el-table-column
84
+                prop="subTreasury"
85
+                label="使用状态"
86
+                align="center"
87
+              >
88
+              </el-table-column>
89
+              <el-table-column prop="cfName" label="更新时间" align="center">
90
+              </el-table-column>
91
+
92
+              <el-table-column align="center" label="操作" width="180">
93
+                <template slot-scope="scope">
94
+                  <el-button
95
+                    @click="handleCheck(scope.row)"
96
+                    type="text"
97
+                    size="small"
98
+                    icon="el-icon-circle-check"
99
+                    >添加子项</el-button
100
+                  >
101
+                  <el-button type="text" size="small" icon="el-icon-edit"
102
+                    >修改</el-button
103
+                  >
104
+                </template>
105
+              </el-table-column>
106
+            </el-table>
107
+            <!-- <pagination
108
+        
109
+          :total="total"
110
+          :page.sync="listQuery.page"
111
+          :limit.sync="listQuery.limit"
112
+          @pagination="getList"
113
+        /> -->
114
+          </div>
115
+        </div>
116
+      </div>
117
+    </d2-container>
118
+
119
+
120
+    <!-- //字典弹框 -->
121
+    <el-dialog title="新建字典" :visible.sync="dicDialog" id="dialogStyle">
122
+  <el-form :model="form" id="dialogForm" :rules="rules">
123
+    <el-form-item label="字典标识:" :label-width="formLabelWidth" prop="kkk">
124
+      <el-input v-model="form.kkk" autocomplete="off"></el-input>
125
+    </el-form-item>
126
+     <el-form-item label="字典名称:" :label-width="formLabelWidth" prop="name">
127
+      <el-input v-model="form.name" autocomplete="off"></el-input>
128
+    </el-form-item>
129
+     <el-form-item label="描述:" :label-width="formLabelWidth" prop="name">
130
+      <el-input v-model="form.name" autocomplete="off"></el-input>
131
+    </el-form-item>
132
+     <el-form-item label="字典状态:" :label-width="formLabelWidth" prop="name">
133
+      <el-input v-model="form.name" autocomplete="off"></el-input>
134
+    </el-form-item>
135
+   
136
+  </el-form>
137
+  <div slot="footer" class="dialog-footer">
138
+    <el-button @click="dicDialog = false">取 消</el-button>
139
+    <el-button type="primary" @click="defined()">确 定</el-button>
140
+  </div>
141
+</el-dialog>
142
+  </div>
9
 </template>
143
 </template>
10
 <script>
144
 <script>
145
+// 引入分页
146
+import Pagination from "@/components/pagination";
11
 export default {
147
 export default {
12
-  name:"dataDictionary"
148
+  name: "dataDictionary",
149
+  components: { Pagination },
150
+  data() {
151
+    return {
152
+    
153
+      //初始化弹框状态时关闭的
154
+      dicDialog:false,
155
+      //label宽度
156
+      formLabelWidth:"120px",
157
+      //options
158
+      options: [
159
+        {
160
+          value: "zhinan",
161
+          label: "指南",
162
+
163
+          children: [
164
+            {
165
+              value: "shejiyuanze",
166
+              label: "设计原则",
167
+              children: [
168
+                {
169
+                  value: "yizhi",
170
+                  label: "一致",
171
+                },
172
+                {
173
+                  value: "fankui",
174
+                  label: "反馈",
175
+                },
176
+                {
177
+                  value: "xiaolv",
178
+                  label: "效率",
179
+                },
180
+                {
181
+                  value: "kekong",
182
+                  label: "可控",
183
+                },
184
+              ],
185
+            },
186
+          ],
187
+        },
188
+      ],
189
+
190
+      //头部查询条件
191
+      formInline: {
192
+        cfName: "",
193
+        scanTime: "",
194
+      },
195
+      //表格字段
196
+      dataDictionaryList: [
197
+        {
198
+          id: 1,
199
+          branchOffice: "中储粮河南分公司",
200
+          directLibrary: "商丘直属库",
201
+          subTreasury: "宁陵粮油储备公司",
202
+          cfName: "1号仓",
203
+          keeper: "白端静",
204
+          lxfs: "13531314569",
205
+          lastScan: "2019-08-21 16:11:59",
206
+          cfState: "出库",
207
+          hasChildren: true,
208
+        },
209
+      ],
210
+
211
+      // 日期插件
212
+      //
213
+      pickerOptions: {
214
+        shortcuts: [
215
+          {
216
+            text: "最近一周",
217
+            onClick(picker) {
218
+              const end = new Date();
219
+              const start = new Date();
220
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
221
+              picker.$emit("pick", [start, end]);
222
+            },
223
+          },
224
+          {
225
+            text: "最近一个月",
226
+            onClick(picker) {
227
+              const end = new Date();
228
+              const start = new Date();
229
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
230
+              picker.$emit("pick", [start, end]);
231
+            },
232
+          },
233
+          {
234
+            text: "最近三个月",
235
+            onClick(picker) {
236
+              const end = new Date();
237
+              const start = new Date();
238
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
239
+              picker.$emit("pick", [start, end]);
240
+            },
241
+          },
242
+        ],
243
+      },
244
+      //分页
245
+      total: 30,
246
+      listQuery: {
247
+        page: 1,
248
+        limit: 10,
249
+        importance: undefined,
250
+        title: undefined,
251
+        type: undefined,
252
+        sort: "+id",
253
+      },
254
+      //弹框初始化数据
255
+      form:{
256
+        kkk:"",
257
+        name:"",
258
+      },
259
+      //验证规则
260
+      rules:{
261
+        kkk:[ {required:true,message:"请输入字典数据名称",trigger:"blur"}],
262
+        name:[ {required:true,message:"请输入字典数据名称",trigger:"blur"}]
263
+      }
264
+       
265
+     
266
+    };
267
+  },
268
+  methods: {
269
+    search() {},
270
+    reset() {},
271
+    getList() {},
272
+    //查看
273
+    handleCheck() {
274
+      this.$router.push({
275
+        path: "/warehouseInfo-check",
276
+      });
277
+    },
278
+    //表格数的子节点加载
279
+    load(tree, treeNode, resolve) {
280
+      setTimeout(() => {
281
+        resolve([
282
+          {
283
+            id: 11,
284
+            branchOffice: "中储粮河南分公司",
285
+            directLibrary: "商丘直属库",
286
+            subTreasury: "宁陵粮油储备公司",
287
+            cfName: "1号仓",
288
+            keeper: "白端静",
289
+            lxfs: "13531314569",
290
+            lastScan: "2019-08-21 16:11:59",
291
+            cfState: "出库",
292
+          },
293
+          {
294
+            id: 12,
295
+            branchOffice: "中储粮河南分公司",
296
+            directLibrary: "商丘直属库",
297
+            subTreasury: "宁陵粮油储备公司",
298
+            cfName: "1号仓",
299
+            keeper: "白端静",
300
+            lxfs: "13531314569",
301
+            lastScan: "2019-08-21 16:11:59",
302
+            cfState: "出库",
303
+          },
304
+        ]);
305
+      }, 1000);
306
+    },
307
+    //新建字典
308
+    addDic() {
309
+      this.dicDialog=true;
310
+    },
311
+    //点击弹框确定按钮
312
+    defined(){
313
+     this.dicDialog=false;
314
+    }
315
+  },
316
+};
317
+</script>
318
+<style lang="scss" scoped>
319
+.nav {
320
+  color: #fff;
321
+  font-size: 14px;
322
+
323
+  background: #004a93;
13
 }
324
 }
14
-</script>
325
+.searchRow {
326
+  display: flex;
327
+  justify-content: space-between;
328
+}
329
+// #dialogForm .el-form-item .el-form-item_label{
330
+//   color:#000;
331
+// }
332
+
333
+</style>

+ 197 - 108
src/views/demo/parameManagement/hardwareParame/index.vue

@@ -3,7 +3,7 @@
3
     <d2-container>
3
     <d2-container>
4
       <!-- <template slot="header">首页/硬件参数</template> -->
4
       <!-- <template slot="header">首页/硬件参数</template> -->
5
       <div class="main">
5
       <div class="main">
6
-       <div class="left">
6
+        <div class="left">
7
           <el-input placeholder="输入关键字进行过滤" v-model="filterText">
7
           <el-input placeholder="输入关键字进行过滤" v-model="filterText">
8
           </el-input>
8
           </el-input>
9
 
9
 
@@ -17,115 +17,156 @@
17
             ref="tree"
17
             ref="tree"
18
           >
18
           >
19
             <span class="custom-tree-node" slot-scope="{ node, data }">
19
             <span class="custom-tree-node" slot-scope="{ node, data }">
20
-              <span v-if="node.level==1"> <i :class="node.icon"></i>{{ node.label }} </span>
21
-               <span v-if="node.level==2"> <i :class="node.icon"></i>{{ node.label }} </span>
22
-                <span v-if="node.level==3"> <i :class="node.icon"></i>{{ node.label }} </span>
23
-                 <span v-if="node.level==4"> <i></i>{{ node.label }} </span>
20
+              <span v-if="node.level == 1">
21
+                <i :class="node.icon"></i>{{ node.label }}
22
+              </span>
23
+              <span v-if="node.level == 2">
24
+                <i :class="node.icon"></i>{{ node.label }}
25
+              </span>
26
+              <span v-if="node.level == 3">
27
+                <i :class="node.icon"></i>{{ node.label }}
28
+              </span>
29
+              <span v-if="node.level == 4"> <i></i>{{ node.label }} </span>
24
             </span>
30
             </span>
25
           </el-tree>
31
           </el-tree>
26
         </div>
32
         </div>
27
         <div class="right">
33
         <div class="right">
28
           <div class="nav">当前所在位置:首页>硬件参数</div>
34
           <div class="nav">当前所在位置:首页>硬件参数</div>
29
           <div class="right_main">
35
           <div class="right_main">
30
-            <div class="right_title"><i class="fa fa-cog" aria-hidden="true" style="padding-right:5px"></i>硬件参数</div>
36
+            <div class="right_title">
37
+              <i
38
+                class="fa fa-cog"
39
+                aria-hidden="true"
40
+                style="padding-right: 5px"
41
+              ></i
42
+              >硬件参数
43
+            </div>
31
             <div class="right_table">
44
             <div class="right_table">
32
-          <el-form :inline="true" :model="formInline" class="demo-form-inline" id="formLabel">
33
-            <el-form-item label="设备名称:">
34
-              <el-input
35
-                v-model="formInline.sbName"
36
-                placeholder="请输入"
37
-              ></el-input>
38
-            </el-form-item>
39
-            <el-form-item>
40
-              <el-button type="primary" icon="el-icon-search" @click="search"
41
-                >查询</el-button
45
+              <el-form
46
+                :inline="true"
47
+                :model="formInline"
48
+                class="demo-form-inline"
49
+                id="formLabel"
42
               >
50
               >
43
-            </el-form-item>
51
+                <el-form-item label="设备名称:">
52
+                  <el-input
53
+                    v-model="formInline.deviceName"
54
+                    placeholder="请输入"
55
+                  ></el-input>
56
+                </el-form-item>
57
+                <el-form-item>
58
+                  <el-button
59
+                    type="primary"
60
+                    icon="el-icon-search"
61
+                    @click="search"
62
+                    >查询</el-button
63
+                  >
64
+                </el-form-item>
44
 
65
 
45
-            <el-form-item>
46
-              <el-button
47
-                type="primary"
48
-                icon="el-icon-refresh-left"
49
-                @click="reset"
50
-                >重置</el-button
66
+                <el-form-item>
67
+                  <el-button
68
+                    type="primary"
69
+                    icon="el-icon-refresh-left"
70
+                    @click="reset"
71
+                    >重置</el-button
72
+                  >
73
+                </el-form-item>
74
+              </el-form>
75
+              <div class="addBtn">
76
+                <el-button
77
+                  type="primary"
78
+                  icon="el-icon-plus"
79
+                  @click="addTantou()"
80
+                  >新增激光探头</el-button
81
+                >
82
+              </div>
83
+              <el-table
84
+                :data="hardwareList"
85
+                border
86
+                style="width: 100%"
87
+                :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }"
51
               >
88
               >
52
-            </el-form-item>
53
-          </el-form>
54
-          <div class="addBtn">
55
-            <el-button type="primary" icon="el-icon-plus" @click="addTantou"
56
-              >新增激光探头</el-button
57
-            >
58
-          </div>
59
-          <el-table :data="hardwareList" border style="width: 100%" :header-cell-style="{background:'#0064b9',color:'#c9f5fa'}">
60
-            <el-table-column
61
-              align="center"
62
-              label="序号"
63
-              type="index"
64
-              width="100px"
65
-              :index="indexMethod"
66
-              show-overflow-tooltip
67
-            ></el-table-column>
89
+                <el-table-column
90
+                  align="center"
91
+                  label="序号"
92
+                  type="index"
93
+                  width="100px"
94
+                  :index="indexMethod"
95
+                  show-overflow-tooltip
96
+                ></el-table-column>
68
 
97
 
69
-            <el-table-column
70
-              prop="directLibrary"
71
-              label="设备名称"
72
-              align="center"
73
-            >
74
-            </el-table-column>
75
-            <el-table-column prop="subTreasury" label="设备编号" align="center">
76
-            </el-table-column>
77
-            <el-table-column prop="cfName" label="设备IP" align="center">
78
-            </el-table-column>
79
-            <el-table-column align="center" label="操作" width="180">
80
-              <template slot-scope="scope">
81
-                <el-button type="text" size="small" icon="el-icon-edit"
82
-                  >编辑</el-button
83
-                >
84
-                <el-button type="text" size="small" icon="el-icon-delete"
85
-                  >删除</el-button
98
+                <el-table-column
99
+                  prop="deviceName"
100
+                  label="设备名称"
101
+                  align="center"
86
                 >
102
                 >
87
-              </template>
88
-            </el-table-column>
89
-          </el-table>
90
-          </div>
103
+                </el-table-column>
104
+                <el-table-column prop="Port" label="设备编号" align="center">
105
+                </el-table-column>
106
+                <el-table-column prop="ipAdress" label="设备IP" align="center">
107
+                </el-table-column>
108
+                <el-table-column align="center" label="操作" width="180">
109
+                  <template slot-scope="scope">
110
+                    <el-button type="text" size="small" icon="el-icon-edit"
111
+                      >编辑</el-button
112
+                    >
113
+                    <el-button type="text" size="small" icon="el-icon-delete"
114
+                      >删除</el-button
115
+                    >
116
+                  </template>
117
+                </el-table-column>
118
+              </el-table>
119
+              <el-pagination
120
+                @size-change="handleSizeChange"
121
+                @current-change="handleCurrentChange"
122
+                :page-sizes="[10, 20, 30, 40]"
123
+                :page-size="pagination.pageSize"
124
+                layout="total, sizes, prev, pager, next, jumper"
125
+                :total="pagination.total"
126
+              >
127
+              </el-pagination>
128
+            </div>
91
           </div>
129
           </div>
92
         </div>
130
         </div>
93
       </div>
131
       </div>
94
     </d2-container>
132
     </d2-container>
95
 
133
 
96
-
97
-
98
-
99
     <!-- //弹框 -->
134
     <!-- //弹框 -->
100
-    <el-dialog title="新增探头" :visible.sync="dialogTantou">
101
-  <el-form :model="dialog">
102
-    <el-form-item label="设备名称:" :label-width="formLabelWidth">
103
-      <el-input v-model="dialog.name" autocomplete="off"></el-input>
104
-    </el-form-item>
105
-    <el-form-item label="设备IP:" :label-width="formLabelWidth">
106
-      <el-input v-model="dialog.name" autocomplete="off"></el-input>
107
-    </el-form-item>
108
-     <el-form-item label="设备编码:" :label-width="formLabelWidth">
109
-      <el-input v-model="dialog.name" autocomplete="off"></el-input>
110
-    </el-form-item>
111
-  </el-form>
112
-  <div slot="footer" class="dialog-footer">
113
-    <el-button @click="dialogTantou = false">取 消</el-button>
114
-    <el-button type="primary" @click="determine()">确 定</el-button>
115
-  </div>
116
-</el-dialog>
117
-
135
+    <el-dialog :title="title" :visible.sync="dialogTantou" id="dialogStyle">
136
+      <el-form :model="dialog">
137
+        <el-form-item label="设备名称:" :label-width="formLabelWidth">
138
+          <el-input v-model="dialog.deviceName" autocomplete="off"></el-input>
139
+        </el-form-item>
140
+        <el-form-item label="设备IP:" :label-width="formLabelWidth">
141
+          <el-input v-model="dialog.ipAdress" autocomplete="off"></el-input>
142
+        </el-form-item>
143
+        <el-form-item label="设备编码:" :label-width="formLabelWidth">
144
+          <el-input v-model="dialog.Port" autocomplete="off"></el-input>
145
+        </el-form-item>
146
+      </el-form>
147
+      <div slot="footer" class="dialog-footer">
148
+        <el-button @click="dialogTantou = false">取 消</el-button>
149
+        <el-button type="primary" @click="determine()">确 定</el-button>
150
+      </div>
151
+    </el-dialog>
118
   </div>
152
   </div>
119
 </template>
153
 </template>
120
 <script>
154
 <script>
155
+import api from "@/api";
121
 export default {
156
 export default {
122
   name: "hardwareParame",
157
   name: "hardwareParame",
123
   data() {
158
   data() {
124
     return {
159
     return {
160
+      //初始化弹框标题
161
+      title: "",
162
+      //仓房id
163
+      houseId: "",
164
+      //设备名称
165
+      deviceName: "",
125
       // label宽度
166
       // label宽度
126
-      formLabelWidth: '120px',
167
+      formLabelWidth: "120px",
127
       // 弹框默认关闭
168
       // 弹框默认关闭
128
-      dialogTantou:false,
169
+      dialogTantou: false,
129
       filterText: "",
170
       filterText: "",
130
       //默认展开的节点
171
       //默认展开的节点
131
       defaultProps: {
172
       defaultProps: {
@@ -188,24 +229,32 @@ export default {
188
       //
229
       //
189
 
230
 
190
       formInline: {
231
       formInline: {
191
-        sbNames: "",
232
+        deviceNames: "",
192
       },
233
       },
193
       //表格字段
234
       //表格字段
194
       hardwareList: [
235
       hardwareList: [
195
         {
236
         {
196
-          directLibrary: "",
197
-          subTreasury: "",
198
-          cfName: "",
199
-          scanStart: "",
200
-          scanEnd: "",
201
-
202
-          cfState: "",
237
+          deviceName: "",
238
+          port: "",
239
+          ipAdress: "",
203
         },
240
         },
204
       ],
241
       ],
205
       //弹框字段
242
       //弹框字段
206
-      dialog:{
207
-        name:""
208
-      }
243
+      dialog: {
244
+        deviceName: "",
245
+          port: "",
246
+          ipAdress: "",
247
+      },
248
+      //分页
249
+
250
+      pagination: {
251
+        //当前页数
252
+        curPage: 1,
253
+        //每页显示的条数
254
+        pageSize: 10,
255
+        //总条数
256
+        total: 0,
257
+      },
209
     };
258
     };
210
   },
259
   },
211
   watch: {
260
   watch: {
@@ -214,6 +263,34 @@ export default {
214
     },
263
     },
215
   },
264
   },
216
   methods: {
265
   methods: {
266
+    //获取列表数据
267
+    getList() {
268
+      var condition = {
269
+        houseId: 1,
270
+        deviceName: "",
271
+      };
272
+      condition = JSON.stringify(condition);
273
+      var data = {
274
+        pageIndex: this.pagination.curPage,
275
+        pageSize: this.pagination.pageSize,
276
+        condition: condition,
277
+      };
278
+      api
279
+        .hardParam(data)
280
+        .then((res) => {
281
+          if (res.code == 200) {
282
+            this.hardwareList = res.data.records;
283
+            this.pagination.pageSize = res.data.size;
284
+            this.pagination.total = res.data.total;
285
+          }
286
+        })
287
+        .catch((err) => {
288
+          console.log(err);
289
+        });
290
+    },
291
+    //新增
292
+    addList(){},
293
+
217
     filterNode(value, data) {
294
     filterNode(value, data) {
218
       if (!value) return true;
295
       if (!value) return true;
219
       return data.label.indexOf(value) !== -1;
296
       return data.label.indexOf(value) !== -1;
@@ -222,16 +299,31 @@ export default {
222
     reset() {},
299
     reset() {},
223
     //新增
300
     //新增
224
     addTantou() {
301
     addTantou() {
225
-      this.dialogTantou=true;
302
+      this.title = "新增硬件参数";
303
+      this.dialogTantou = true;
226
     },
304
     },
227
     //表格序号
305
     //表格序号
228
     indexMethod(index) {
306
     indexMethod(index) {
229
-      // return (
230
-      //   (this.pagination.curPage - 1) * this.pagination.pageSize + index + 1
231
-      // );
307
+      return (
308
+        (this.pagination.curPage - 1) * this.pagination.pageSize + index + 1
309
+      );
310
+    },
311
+    //当前页改变时
312
+    handleCurrentChange(val) {
313
+      this.pagination.curPage = val;
314
+      this.getList();
315
+    },
316
+    //每页显示的页数改变时
317
+    handleSizeChange(val) {
318
+      this.pagination.pageSize = val;
319
+      this.getList();
232
     },
320
     },
233
     //弹框确定按钮
321
     //弹框确定按钮
234
-    determine(){}
322
+    determine() {},
323
+  },
324
+  mounted() {
325
+    console.log("aaaa");
326
+    this.getList();
235
   },
327
   },
236
 };
328
 };
237
 </script>
329
 </script>
@@ -242,22 +334,19 @@ export default {
242
   .left {
334
   .left {
243
     width: 250px;
335
     width: 250px;
244
     height: 100%;
336
     height: 100%;
245
-   background: #163d79;
246
-
337
+    background: #163d79;
247
   }
338
   }
248
- .right {
339
+  .right {
249
     margin-left: 20px;
340
     margin-left: 20px;
250
-    width:calc(100% - 250px);
341
+    width: calc(100% - 250px);
251
     .nav {
342
     .nav {
252
       padding: 10px 0 10px 10px;
343
       padding: 10px 0 10px 10px;
253
-      color:#FFF;
344
+      color: #fff;
345
+
346
+      font-size: 14px;
254
 
347
 
255
-      font-size:14px;
256
-  
257
       background: #004a93;
348
       background: #004a93;
258
     }
349
     }
259
- 
260
-
261
   }
350
   }
262
   .addBtn {
351
   .addBtn {
263
     margin-bottom: 20px;
352
     margin-bottom: 20px;

+ 231 - 215
src/views/demo/warehouseShow/warehouseInfo/warehouseInfo-check.vue

@@ -1,197 +1,204 @@
1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <d2-container>
3
     <d2-container>
4
-      <template slot="header">
5
-        <div class="title">
6
-          <div class="titleLeft">首页/仓房详情</div>
7
-          <div>
8
-            <el-button
9
-              type="primary"
10
-              icon="el-icon-arrow-left"
11
-              @click="goBack()"
12
-              >返回</el-button
13
-            >
14
-          </div>
15
-        </div>
16
-      </template>
4
+      <!-- <template slot="header"
5
+        ><div class="nav">当前所在位置:首页>仓房信息</div></template
6
+      > -->
17
       <div class="main">
7
       <div class="main">
18
-        <div class="head">
19
-          <div class="backImg"></div>
20
-          <div>保管员信息</div>
21
-        </div>
22
-
23
-        <el-form :inline="true" :model="form" class="demo-form-inline" label-width="130px">
24
-          <div class="middle">
25
-            <el-form-item label="姓名:">
26
-              <el-select v-model="form.name" placeholder="请选择">
27
-                <el-option
28
-                  v-for="item in nameList"
29
-                  :key="item.value"
30
-                  :label="item.label"
31
-                  :value="item.value"
32
-                >
33
-                </el-option>
34
-              </el-select>
35
-            </el-form-item>
36
-            <el-form-item label="联系方式">
37
-              <el-input v-model="form.lxfs"></el-input>
38
-            </el-form-item>
39
-          </div>
40
-          <div class="head">
41
-            <div class="backImg"></div>
42
-            <div>仓房信息</div>
43
-          </div>
44
-          <div class="middle">
45
-            <el-form-item label="仓房状态">
46
-              <el-radio-group v-model="form.cfState">
47
-                <el-radio :label="0">入库</el-radio>
48
-                <el-radio :label="1">出库</el-radio>
49
-                <el-radio :label="2">库存</el-radio>
50
-                <el-radio :label="3">空仓</el-radio>
51
-              </el-radio-group>
52
-            </el-form-item>
53
-            <el-row>
54
-              <el-col :span="12">
55
-                <el-form-item label="所属仓库:">
56
-                  <el-select v-model="form.warehouse" placeholder="请选择">
57
-                    <el-option label="区域一" value="shanghai"></el-option>
58
-                    <el-option label="区域二" value="beijing"></el-option>
59
-                  </el-select>
60
-                </el-form-item>
61
-              </el-col>
62
-              <el-col :span="12">
63
-                <el-form-item label="仓房名称:">
64
-                  <el-input v-model="form.cfName"></el-input>
65
-                </el-form-item>
66
-              </el-col>
67
-            </el-row>
68
-            <el-row>
69
-              <el-col :span="12">
70
-                <el-form-item label="仓房类型:">
71
-                  <el-select v-model="form.cfType" placeholder="请选择">
72
-                    <el-option label="区域一" value="shanghai"></el-option>
73
-                    <el-option label="区域二" value="beijing"></el-option>
8
+        <div class="right_main">
9
+          <!-- <div class="right_title">
10
+            <i
11
+              class="fa fa-university"
12
+              aria-hidden="true"
13
+              style="padding-right: 5px"
14
+            ></i
15
+            >仓房信息
16
+          </div> -->
17
+          <div class="right_table">
18
+            <div class="head">
19
+              <div class="backImg"></div>
20
+              <div>保管员信息</div>
21
+            </div>
22
+            <el-form :inline="true" :model="form" class="demo-form-inline">
23
+              <div class="middle">
24
+                <el-form-item label="姓名:">
25
+                  <el-select v-model="form.name" placeholder="请选择">
26
+                    <el-option
27
+                      v-for="item in nameList"
28
+                      :key="item.value"
29
+                      :label="item.label"
30
+                      :value="item.value"
31
+                    >
32
+                    </el-option>
74
                   </el-select>
33
                   </el-select>
75
                 </el-form-item>
34
                 </el-form-item>
76
-              </el-col>
77
-              <el-col :span="12">
78
-                <el-form-item label="创建时间:">
79
-                  <el-input v-model="form.creatTime"></el-input>
35
+                <el-form-item label="联系方式:">
36
+                  <el-input v-model="form.lxfs"></el-input>
80
                 </el-form-item>
37
                 </el-form-item>
81
-              </el-col>
82
-            </el-row>
83
-            <el-row>
84
-              <el-col :span="12">
85
-                <el-form-item label="装粮线高度:">
86
-                  <el-input v-model="form.sjcr">
87
-                    <template slot="append">米</template>
88
-                  </el-input>
38
+              </div>
39
+              <div class="head">
40
+                <div class="backImg"></div>
41
+                <div>仓房信息</div>
42
+              </div>
43
+              <div class="middle">
44
+                <el-form-item label="仓房状态">
45
+                  <el-radio-group v-model="form.cfState">
46
+                    <el-radio :label="0">入库</el-radio>
47
+                    <el-radio :label="1">出库</el-radio>
48
+                    <el-radio :label="2">库存</el-radio>
49
+                    <el-radio :label="3">空仓</el-radio>
50
+                  </el-radio-group>
89
                 </el-form-item>
51
                 </el-form-item>
90
-              </el-col>
91
-              <el-col :span="12">
92
-                <el-form-item label="设计仓容:">
93
-                  <el-input v-model="form.sjcr">
94
-                    <template slot="append">吨</template>
95
-                  </el-input>
96
-                </el-form-item>
97
-              </el-col>
98
-            </el-row>
99
-            <el-row>
100
-              <el-col :span="12">
101
-                <el-form-item label="长:">
102
-                  <el-input v-model="form.sjcr">
103
-                    <template slot="append">米</template>
104
-                  </el-input>
105
-                </el-form-item>
106
-              </el-col>
107
-              <el-col :span="12">
108
-                <el-form-item label="宽:">
109
-                  <el-input v-model="form.sjcr">
110
-                    <template slot="append">米</template>
111
-                  </el-input>
112
-                </el-form-item>
113
-              </el-col>
114
-            </el-row>
52
+                <el-row>
53
+                  <el-col :span="12">
54
+                    <el-form-item label="所属仓库:">
55
+                      <el-select v-model="form.warehouse" placeholder="请选择">
56
+                        <el-option label="区域一" value="shanghai"></el-option>
57
+                        <el-option label="区域二" value="beijing"></el-option>
58
+                      </el-select>
59
+                    </el-form-item>
60
+                  </el-col>
61
+                  <el-col :span="12">
62
+                    <el-form-item label="仓房名称:">
63
+                      <el-input v-model="form.cfName"></el-input>
64
+                    </el-form-item>
65
+                  </el-col>
66
+                </el-row>
67
+                <el-row>
68
+                  <el-col :span="12">
69
+                    <el-form-item label="仓房类型:">
70
+                      <el-select v-model="form.cfType" placeholder="请选择">
71
+                        <el-option label="区域一" value="shanghai"></el-option>
72
+                        <el-option label="区域二" value="beijing"></el-option>
73
+                      </el-select>
74
+                    </el-form-item>
75
+                  </el-col>
76
+                  <el-col :span="12">
77
+                    <el-form-item label="创建时间:">
78
+                      <el-input v-model="form.creatTime"></el-input>
79
+                    </el-form-item>
80
+                  </el-col>
81
+                </el-row>
82
+                <el-row>
83
+                  <el-col :span="12">
84
+                    <el-form-item label="装粮线高度:">
85
+                      <el-input v-model="form.sjcr">
86
+                        <template slot="append">米</template>
87
+                      </el-input>
88
+                    </el-form-item>
89
+                  </el-col>
90
+                  <el-col :span="12">
91
+                    <el-form-item label="设计仓容:">
92
+                      <el-input v-model="form.sjcr">
93
+                        <template slot="append">吨</template>
94
+                      </el-input>
95
+                    </el-form-item>
96
+                  </el-col>
97
+                </el-row>
98
+                <el-row>
99
+                  <el-col :span="12">
100
+                    <el-form-item label="长:">
101
+                      <el-input v-model="form.sjcr">
102
+                        <template slot="append">米</template>
103
+                      </el-input>
104
+                    </el-form-item>
105
+                  </el-col>
106
+                  <el-col :span="12">
107
+                    <el-form-item label="宽:">
108
+                      <el-input v-model="form.sjcr">
109
+                        <template slot="append">米</template>
110
+                      </el-input>
111
+                    </el-form-item>
112
+                  </el-col>
113
+                </el-row>
115
 
114
 
116
-            <el-row>
117
-              <el-col :span="12">
118
-                <el-form-item label="仓内体积:">
119
-                  <el-input v-model="form.sjcr">
120
-                    <template slot="append">立方米</template>
121
-                  </el-input>
122
-                </el-form-item>
123
-              </el-col>
124
-              <el-col :span="12">
125
-                <el-form-item label="最近一次修改时间:">
126
-                  <el-input v-model="form.sjcr"> </el-input>
127
-                </el-form-item>
128
-              </el-col>
129
-            </el-row>
130
-          </div>
131
-        </el-form>
132
-        <div class="bottom">
133
-          <div class="bottomHead">
134
-            <div class="backImg"></div>
135
-            <div>粮食信息</div>
136
-          </div>
137
-          <div>
138
-            <el-button type="primary" icon="el-icon-plus" @click="add()">添加</el-button>
139
-          </div>
140
-        </div>
141
-        <el-table :data="lsxxList" border style="width: 100%; margin-top: 10px">
142
-          <el-table-column prop="varieties" label="品种" align="center">
143
-            <template slot-scope="scope">
144
-              <el-select
145
-                v-model="scope.row.varieties"
146
-                placeholder="请选择"
147
-              >
148
-                <el-option label="小麦" value="xiaomai"></el-option>
149
-                <el-option label="大豆" value="dadou"></el-option>
115
+                <el-row>
116
+                  <el-col :span="12">
117
+                    <el-form-item label="仓内体积:">
118
+                      <el-input v-model="form.sjcr">
119
+                        <template slot="append">立方米</template>
120
+                      </el-input>
121
+                    </el-form-item>
122
+                  </el-col>
123
+                  <el-col :span="12">
124
+                    <el-form-item label="最近一次修改时间:">
125
+                      <el-input v-model="form.sjcr"> </el-input>
126
+                    </el-form-item>
127
+                  </el-col>
128
+                </el-row>
129
+              </div>
130
+            </el-form>
131
+            <div class="bottom">
132
+              <div class="bottomHead">
133
+                <div class="backImg"></div>
134
+                <div>粮食信息</div>
135
+              </div>
136
+              <div>
137
+                <el-button type="primary" icon="el-icon-plus" @click="add()"
138
+                  >添加</el-button
139
+                >
140
+              </div>
141
+            </div>
142
+            <el-table
143
+            id="table"
144
+              :data="lsxxList"
145
+              border
146
+              style="width: 100%; margin-top: 10px"
147
+              :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }"
148
+            >
149
+              <el-table-column prop="varieties" label="品种" align="center">
150
+                <template slot-scope="scope">
151
+                  <el-select v-model="scope.row.varieties" placeholder="请选择" class="tableInput">
152
+                    <el-option label="小麦" value="xiaomai"></el-option>
153
+                    <el-option label="大豆" value="dadou"></el-option>
150
 
154
 
151
-                <el-option label="粳稻" value="jingdao"></el-option>
152
-                <el-option label="籼稻" value="xiandao"></el-option>
153
-                <el-option label="玉米" value="yumi"></el-option>
154
-              </el-select>
155
-            </template>
156
-          </el-table-column>
157
-          <el-table-column
158
-            prop="cnlsrz"
159
-            label="仓内粮食容重(公斤/立方米)"
160
-            align="center"
161
-          >
162
-          <template slot-scope="scope">
163
-              <el-input v-model="scope.row.cnlsrz" placeholder="请输入"></el-input>
164
-            </template>
165
-          </el-table-column>
166
-          <el-table-column prop="grade" label="等级" align="center">
167
-                 <template slot-scope="scope">
168
-              <el-select
169
-                v-model="scope.row.grade"
170
-                placeholder="请选择"
155
+                    <el-option label="粳稻" value="jingdao"></el-option>
156
+                    <el-option label="籼稻" value="xiandao"></el-option>
157
+                    <el-option label="玉米" value="yumi"></el-option>
158
+                  </el-select>
159
+                </template>
160
+              </el-table-column>
161
+              <el-table-column
162
+                prop="cnlsrz"
163
+                label="仓内粮食容重(公斤/立方米)"
164
+                align="center"
171
               >
165
               >
172
-                <el-option label="一等" value="first"></el-option>
173
-                <el-option label="二等" value="second"></el-option>
166
+                <template slot-scope="scope">
167
+                  <el-input
168
+                    v-model="scope.row.cnlsrz"
169
+                    placeholder="请输入"
170
+                    class="tableInput"
171
+                  ></el-input>
172
+                </template>
173
+              </el-table-column>
174
+              <el-table-column prop="grade" label="等级" align="center">
175
+                <template slot-scope="scope">
176
+                  <el-select v-model="scope.row.grade" placeholder="请选择" class="tableInput">
177
+                    <el-option label="一等" value="first"></el-option>
178
+                    <el-option label="二等" value="second"></el-option>
174
 
179
 
175
-                <el-option label="三等" value="third"></el-option>
176
-                <el-option label="四等" value="fourth"></el-option>
177
-                <el-option label="五等" value="fifth"></el-option>
178
-                <el-option label="等外" value="other"></el-option>
179
-              </el-select>
180
-            </template>
181
-          </el-table-column>
182
-          <el-table-column prop="rksj" label="首次入库时间" align="center">
183
-          </el-table-column>
184
-          <el-table-column align="center" label="操作">
185
-            <template slot-scope="scope">
186
-              <el-button type="text" size="small" icon="el-icon-edit"
187
-                >编辑</el-button
188
-              >
189
-              <el-button type="text" size="small" icon="el-icon-delete"
190
-                >删除</el-button
191
-              >
192
-            </template>
193
-          </el-table-column>
194
-        </el-table>
180
+                    <el-option label="三等" value="third"></el-option>
181
+                    <el-option label="四等" value="fourth"></el-option>
182
+                    <el-option label="五等" value="fifth"></el-option>
183
+                    <el-option label="等外" value="other"></el-option>
184
+                  </el-select>
185
+                </template>
186
+              </el-table-column>
187
+              <el-table-column prop="rksj" label="首次入库时间" align="center">
188
+              </el-table-column>
189
+              <el-table-column align="center" label="操作">
190
+                <template slot-scope="scope">
191
+                  <el-button type="text" size="small" icon="el-icon-edit"
192
+                    >编辑</el-button
193
+                  >
194
+                  <el-button type="text" size="small" icon="el-icon-delete"
195
+                    >删除</el-button
196
+                  >
197
+                </template>
198
+              </el-table-column>
199
+            </el-table>
200
+          </div>
201
+        </div>
195
       </div>
202
       </div>
196
     </d2-container>
203
     </d2-container>
197
   </div>
204
   </div>
@@ -217,32 +224,25 @@ export default {
217
         lxfs: "",
224
         lxfs: "",
218
       },
225
       },
219
       //粮食信息表格列表
226
       //粮食信息表格列表
220
-      lsxxList:[
221
-          {
222
-              varieties:"",
223
-              cnlsrz:"",
224
-              grade:"",
225
-              rksj:""
226
-
227
-          }
228
-      ]
229
-
227
+      lsxxList: [
228
+        {
229
+          varieties: "",
230
+          cnlsrz: "",
231
+          grade: "",
232
+          rksj: "",
233
+        },
234
+      ],
230
     };
235
     };
231
   },
236
   },
232
   methods: {
237
   methods: {
233
-      //返回按钮
238
+    //返回按钮
234
     goBack() {
239
     goBack() {
235
       window.history.go(-1);
240
       window.history.go(-1);
236
     },
241
     },
237
     //粮食信息添加
242
     //粮食信息添加
238
-    add(){
239
-        this.lsxxList.push(
240
-            {varieties:"",
241
-              cnlsrz:"",
242
-              grade:"",
243
-              rksj:""}
244
-              )
245
-    }
243
+    add() {
244
+      this.lsxxList.push({ varieties: "", cnlsrz: "", grade: "", rksj: "" });
245
+    },
246
   },
246
   },
247
 };
247
 };
248
 </script>
248
 </script>
@@ -255,7 +255,7 @@ export default {
255
   }
255
   }
256
 }
256
 }
257
 .main {
257
 .main {
258
-  color: #fff;
258
+color: #9bbbe3;
259
   .head,
259
   .head,
260
   .bottomHead {
260
   .bottomHead {
261
     height: 25px;
261
     height: 25px;
@@ -264,9 +264,10 @@ export default {
264
     display: flex;
264
     display: flex;
265
 
265
 
266
     .backImg {
266
     .backImg {
267
-      width: 10px;
268
-      height: 20px;
269
-      background: blue;
267
+      width: 5px;
268
+      height: 15px;
269
+      background: rgb(59, 103, 213);
270
+      border-radius:3px;
270
       margin-right: 10px;
271
       margin-right: 10px;
271
     }
272
     }
272
   }
273
   }
@@ -280,14 +281,29 @@ export default {
280
     display: flex;
281
     display: flex;
281
     justify-content: space-between;
282
     justify-content: space-between;
282
   }
283
   }
283
-  ::v-deep .el-form--inline .el-form-item__label{
284
-      width:130px;
285
-      }
286
- 
284
+  ::v-deep .el-form--inline .el-form-item__label {
285
+    width: 130px;
286
+    color: #9bbbe3;
287
+  }
288
+  .el-select,
289
+  .el-input {
290
+    width:300px;
291
+  }
292
+  ::v-deep .el-input__inner{
293
+    background:#1d3b6b;
294
+    border:1px solid #345684;
295
+    opacity: 12.5;
296
+  }
297
+   ::v-deep .el-input-group__append{
298
+     background:#1d3b6b;
299
+    border:1px solid #345684;
300
+    opacity: 12.5;
301
+  }
302
+ #table .tableInput{
303
+    width: 100%;
304
+   
305
+  }
306
+
307
+
287
 }
308
 }
288
-</style>
289
-<style >
290
-/* .el-form--inline .el-form-item__label{
291
-       width:130px; 
292
-  } */
293
-</style>
309
+</style>

+ 11 - 1
vue.config.js

@@ -38,7 +38,17 @@ module.exports = {
38
   lintOnSave: true,
38
   lintOnSave: true,
39
   devServer: {
39
   devServer: {
40
     publicPath, // 和 publicPath 保持一致
40
     publicPath, // 和 publicPath 保持一致
41
-    disableHostCheck: process.env.NODE_ENV === 'development' // 关闭 host check,方便使用 ngrok 之类的内网转发工具
41
+    disableHostCheck: process.env.NODE_ENV === 'development', // 关闭 host check,方便使用 ngrok 之类的内网转发工具
42
+    proxy: {
43
+      '/api': {
44
+        target: ' http://101.36.160.140:21023',
45
+        ws: true,
46
+        changeOrigin: true,
47
+        pathRewrite: {
48
+          '^/api': ''
49
+        }
50
+      }
51
+    }
42
   },
52
   },
43
   css: {
53
   css: {
44
     loaderOptions: {
54
     loaderOptions: {