Commit 49f77cf2 49f77cf2c4dd1e1a5fb02fbc80031026074641f9 by zhanghao

commit

1 parent 3faad008
...@@ -14,7 +14,7 @@ module.exports = { ...@@ -14,7 +14,7 @@ module.exports = {
14 14
15 // Various Dev Server settings 15 // Various Dev Server settings
16 host: 'localhost', // can be overwritten by process.env.HOST 16 host: 'localhost', // can be overwritten by process.env.HOST
17 port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined 17 port: 8090, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18 autoOpenBrowser: false, 18 autoOpenBrowser: false,
19 errorOverlay: true, 19 errorOverlay: true,
20 notifyOnErrors: true, 20 notifyOnErrors: true,
......
...@@ -1269,6 +1269,14 @@ ...@@ -1269,6 +1269,14 @@
1269 "qs": "6.7.0", 1269 "qs": "6.7.0",
1270 "raw-body": "2.4.0", 1270 "raw-body": "2.4.0",
1271 "type-is": "~1.6.17" 1271 "type-is": "~1.6.17"
1272 },
1273 "dependencies": {
1274 "qs": {
1275 "version": "6.7.0",
1276 "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
1277 "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==",
1278 "dev": true
1279 }
1272 } 1280 }
1273 }, 1281 },
1274 "bonjour": { 1282 "bonjour": {
...@@ -3841,6 +3849,14 @@ ...@@ -3841,6 +3849,14 @@
3841 "type-is": "~1.6.18", 3849 "type-is": "~1.6.18",
3842 "utils-merge": "1.0.1", 3850 "utils-merge": "1.0.1",
3843 "vary": "~1.1.2" 3851 "vary": "~1.1.2"
3852 },
3853 "dependencies": {
3854 "qs": {
3855 "version": "6.7.0",
3856 "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
3857 "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==",
3858 "dev": true
3859 }
3844 } 3860 }
3845 }, 3861 },
3846 "ext": { 3862 "ext": {
...@@ -8909,10 +8925,9 @@ ...@@ -8909,10 +8925,9 @@
8909 "dev": true 8925 "dev": true
8910 }, 8926 },
8911 "qs": { 8927 "qs": {
8912 "version": "6.7.0", 8928 "version": "6.9.4",
8913 "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 8929 "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz",
8914 "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", 8930 "integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ=="
8915 "dev": true
8916 }, 8931 },
8917 "query-string": { 8932 "query-string": {
8918 "version": "4.3.4", 8933 "version": "4.3.4",
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
12 "dependencies": { 12 "dependencies": {
13 "axios": "^0.20.0", 13 "axios": "^0.20.0",
14 "element-ui": "^2.13.2", 14 "element-ui": "^2.13.2",
15 "qs": "^6.9.4",
15 "vue": "^2.5.2", 16 "vue": "^2.5.2",
16 "vue-router": "^3.0.1" 17 "vue-router": "^3.0.1"
17 }, 18 },
......
...@@ -6,9 +6,12 @@ import router from './router' ...@@ -6,9 +6,12 @@ import router from './router'
6 import axios from 'axios' 6 import axios from 'axios'
7 import Element from 'element-ui'; 7 import Element from 'element-ui';
8 import 'element-ui/lib/theme-chalk/index.css'; 8 import 'element-ui/lib/theme-chalk/index.css';
9 import qs from 'qs'
9 10
10 Vue.config.productionTip = false 11 Vue.config.productionTip = false
11 Vue.prototype.$http = axios 12 Vue.prototype.$http = axios
13 Vue.prototype.$qs=qs
14 axios.defaults.baseURL = 'http://192.168.8.216:9090'
12 15
13 Vue.use(Element, { size: 'small', zIndex: 3000 }); 16 Vue.use(Element, { size: 'small', zIndex: 3000 });
14 17
......
...@@ -2,18 +2,29 @@ ...@@ -2,18 +2,29 @@
2 <div> 2 <div>
3 <el-row> 3 <el-row>
4 <el-col :span="8"> 4 <el-col :span="8">
5 <el-card class="box-card" shadow="always"> 5 <el-form ref="form" :model="deleteClues" label-width="0px">
6 <el-card class="yellowgreen" shadow="always">
6 <div slot="header" class="clearfix"> 7 <div slot="header" class="clearfix">
7 <span>卡片名称</span> 8 <span>删除指定UID的线索</span>
8 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
9 </div> 9 </div>
10 <div v-for="o in 4" :key="o" class="text item"> 10 <div class="text item">
11 {{'列表内容 ' + o }} 11 <el-form-item>
12 <el-input placeholder="代理人UID" v-model="deleteClues.agentUid" clearable></el-input>
13 </el-form-item>
14 <div style="margin: 15px 0;"></div>
15 <el-form-item>
16 <el-input placeholder="该代理人名下的健康坊用户UID" v-model="deleteClues.customUid" clearable></el-input>
17 </el-form-item>
18 <div style="margin: 15px 0;"></div>
19 <el-form-item>
20 <el-button round @click="onSubmit">删除线索</el-button>
21 </el-form-item>
12 </div> 22 </div>
13 </el-card> 23 </el-card>
24 </el-form>
14 </el-col> 25 </el-col>
15 <el-col :span="8"> 26 <el-col :span="8">
16 <el-card class="box-card" shadow="always"> 27 <el-card class="darkred" shadow="always">
17 <div slot="header" class="clearfix"> 28 <div slot="header" class="clearfix">
18 <span>卡片名称</span> 29 <span>卡片名称</span>
19 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> 30 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
...@@ -24,7 +35,7 @@ ...@@ -24,7 +35,7 @@
24 </el-card> 35 </el-card>
25 </el-col> 36 </el-col>
26 <el-col :span="8"> 37 <el-col :span="8">
27 <el-card class="box-card" shadow="always"> 38 <el-card class="blue" shadow="always">
28 <div slot="header" class="clearfix"> 39 <div slot="header" class="clearfix">
29 <span>卡片名称</span> 40 <span>卡片名称</span>
30 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> 41 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
...@@ -37,7 +48,7 @@ ...@@ -37,7 +48,7 @@
37 </el-row> 48 </el-row>
38 <el-row> 49 <el-row>
39 <el-col> 50 <el-col>
40 <el-card class="box-card" shadow="always"> 51 <el-card class="aquamarine" shadow="always">
41 <div slot="header" class="clearfix"> 52 <div slot="header" class="clearfix">
42 <span>卡片名称</span> 53 <span>卡片名称</span>
43 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> 54 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
...@@ -69,9 +80,75 @@ ...@@ -69,9 +80,75 @@
69 clear: both 80 clear: both
70 } 81 }
71 82
72 .box-card { 83 .yellowgreen {
73 width: 440px; 84 width: calc(100% - 20px);
74 padding: 0px; 85 padding: 0px;
75 background-color: yellowgreen; 86 background-color: yellowgreen;
76 } 87 }
88
89 .darkred {
90 width: calc(100% - 20px);
91 padding: 0px;
92 background-color: darkkhaki;
93 }
94
95 .blue {
96 width: calc(100% - 20px);
97 padding: 0px;
98 background-color: deepskyblue;
99 }
100
101 .aquamarine {
102 width: calc(440px);
103 padding: 0px;
104 background-color: aquamarine;
105 }
77 </style> 106 </style>
107
108 <script>
109 export default {
110 data() {
111 return {
112 deleteClues: {
113 agentUid: '',
114 customUid: ''
115 }
116 }
117 },
118 methods: {
119 onSubmit() {
120 let config = {
121 headers: {
122 'Content-Type': 'application/x-www-form-urlencoded'
123 }
124 }
125 this.$http.get('/tool/money/delete?'+this.$qs.stringify({
126 uid: this.deleteClues.agentUid,
127 ref_id: this.deleteClues.customUid
128 }),config).then((res)=>{
129 console.log(res);
130 if(res.data=='success') {
131 this.$message({
132 showClose: true,
133 message: '删除线索成功',
134 type: 'success'
135 });
136 } else {
137 this.$message({
138 showClose: true,
139 message: '删除线索失败',
140 type: 'error'
141 });
142 }
143 }).catch(error=>{
144 console.log(error);
145 this.$message({
146 showClose: true,
147 message: '服务器抛出异常',
148 type: 'error'
149 });
150 })
151 }
152 }
153 }
154 </script>
......