Browse Source

市场客户资料修改部分代码

yuanrf 1 year ago
parent
commit
1d9773ecaa

+ 6 - 1
src/components/MCR/MarketCustomerResourcesHome.vue

@@ -91,6 +91,11 @@
                     <el-table-column prop="birthday" label="生日">
                     <el-table-column prop="birthday" label="生日">
                     </el-table-column>
                     </el-table-column>
                     <el-table-column prop="weight" label="权重">
                     <el-table-column prop="weight" label="权重">
+                        <template slot-scope="scope">
+                            <span v-if="scope.row.weight == '393'">A</span>
+                            <span v-else-if="scope.row.weight == '392'">B</span>
+                            <span v-else-if="scope.row.weight == '391'">C</span>
+                        </template>
                     </el-table-column>
                     </el-table-column>
                     <el-table-column prop="ascribedDepartment" label="业务归属">
                     <el-table-column prop="ascribedDepartment" label="业务归属">
                         <template slot-scope="scope">
                         <template slot-scope="scope">
@@ -234,7 +239,7 @@ export default {
             //初始化界面数据
             //初始化界面数据
             this.$axios.post('/api/MarketCustomerResources/QueryNewClientData', this.pageloadData, {
             this.$axios.post('/api/MarketCustomerResources/QueryNewClientData', this.pageloadData, {
                 headers: {
                 headers: {
-                    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IkZ1dHVyZSIsImV4cCI6MTY3OTU0MjgwNSwiaXNzIjoiT0FTeXN0ZW0uY29tIiwiYXVkIjoiT0FTeXN0ZW0uY29tIn0.iy5SUInq1p3yjZultRPyzCa2ekLeepSdMLxvPwXY6MI',
+                    'Authorization': that.token,
                 }
                 }
             }).then(resp => {
             }).then(resp => {
                 if (resp.data.code == 200) {
                 if (resp.data.code == 200) {

+ 2 - 2
src/components/MCR/MarketCustomerResourcesOperation.vue

@@ -293,7 +293,7 @@ export default {
             //初始化界面数据
             //初始化界面数据
             this.$axios.post('/api/MarketCustomerResources/QuerySelectAndSingleData', { Id: this.requestData.id }, {
             this.$axios.post('/api/MarketCustomerResources/QuerySelectAndSingleData', { Id: this.requestData.id }, {
                 headers: {
                 headers: {
-                    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IkZ1dHVyZSIsImV4cCI6MTY3OTU0MjgwNSwiaXNzIjoiT0FTeXN0ZW0uY29tIiwiYXVkIjoiT0FTeXN0ZW0uY29tIn0.iy5SUInq1p3yjZultRPyzCa2ekLeepSdMLxvPwXY6MI',
+                    'Authorization': that.token,
                 }
                 }
             }).then(resp => {
             }).then(resp => {
                 console.log(resp);
                 console.log(resp);
@@ -362,7 +362,7 @@ export default {
 
 
                 this.$axios.post('/api/MarketCustomerResources/NewClientOp', this.requestData, {
                 this.$axios.post('/api/MarketCustomerResources/NewClientOp', this.requestData, {
                     headers: {
                     headers: {
-                        'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IkZ1dHVyZSIsImV4cCI6MTY3OTU0MjgwNSwiaXNzIjoiT0FTeXN0ZW0uY29tIiwiYXVkIjoiT0FTeXN0ZW0uY29tIn0.iy5SUInq1p3yjZultRPyzCa2ekLeepSdMLxvPwXY6MI',
+                        'Authorization': that.token,
                     }
                     }
                 }).then(resp => {
                 }).then(resp => {
                     if (resp.data.code == 200) {
                     if (resp.data.code == 200) {