瀏覽代碼

文案库 添加 编辑删除搜索

jiayufei 4 年之前
父節點
當前提交
e8006106e5

+ 2 - 2
src/views/modules/account-config/account-config-server.js

@@ -5,6 +5,6 @@
 
 // export const urlAcount = 'http://118.24.244.213:8080'; // 线上
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
-// export const urlAcount = 'http://192.168.1.43:8080'; // 子安
-export const urlAcount = 'http://139.186.165.84:8080'; // 测试
+export const urlAcount = 'http://192.168.1.43:8080'; // 子安
+// export const urlAcount = 'http://139.186.165.84:8080'; // 测试
 // export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 3 - 1
src/views/modules/account-config/account-config.vue

@@ -612,12 +612,14 @@ export default {
             const paramsData = {
                 id: data.id,
                 state: checked ? 0 : 1,
-                accountId: data.accountId
+                accountId: data.accountId,
+                creativeImageMode: data.creativeImageMode
             };
             const forDate = new FormData();
             forDate.append('id', paramsData.id);
             forDate.append('state', paramsData.state);
             forDate.append('accountId', paramsData.accountId);
+            forDate.append('creativeImageMode', paramsData.creativeImageMode);
             putAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/updStaById', forDate).then(result => {
                 if (result.code === 0) {
                     this.$message.success(result.message);

+ 2 - 2
src/views/modules/copy-library/copy-library-server.js

@@ -6,5 +6,5 @@
 // export const urlAcount = 'http://118.24.244.213:8080'; // 线上
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://192.168.1.43:8080'; // 子安
-export const urlAcount = 'http://139.186.165.84:8080'; // 测试
-// export const urlAcount = 'http://192.168.1.8:8080'; // 学超
+// export const urlAcount = 'http://139.186.165.84:8080'; // 测试
+export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 106 - 7
src/views/modules/copy-library/copy-library.vue

@@ -61,6 +61,13 @@
                             @change="handleLaunchData"
                         />
                     </a-form-item>
+                    <a-form-item label="状态">
+                        <a-select v-model="configForm.searchStatus" style="width: 100px">
+                            <a-select-option :value="2">不限</a-select-option>
+                            <a-select-option :value="0">已删除</a-select-option>
+                            <a-select-option :value="1">可投放</a-select-option>
+                        </a-select>
+                    </a-form-item>
                     <a-form-item class="form-handle-btn">
                         <a-button type="default" class="reset-class" @click="handleResetList">重置</a-button>
                         <a-button type="primary" @click="handleQueryList">查询</a-button>
@@ -81,6 +88,11 @@
                         :pagination="false"
                         :scroll="{x: 1500}"
                     >
+                        <span slot="currencyAction" slot-scope="text, record">
+                            <a @click="handleCurrencyEdit(record)">编辑</a>
+                            <a-divider type="vertical"/>
+                            <a @click="handleCurrencyDelete(record)">删除</a>
+                        </span>
                     </a-table>
                     <a-pagination
                         class="pagin-table-class"
@@ -105,6 +117,11 @@
                         :pagination="false"
                         :scroll="{x: 1500}"
                     >
+                        <span slot="appointAction" slot-scope="text, record">
+                            <a @click="handleAppointEdit(record)">编辑</a>
+                            <a-divider type="vertical"/>
+                            <a @click="handleAppointDelete(record)">删除</a>
+                        </span>
                     </a-table>
                     <a-pagination
                         class="pagin-table-class"
@@ -333,7 +350,7 @@
 import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
 
 import moment from 'moment';
-import {getAction, postFileAction, postAction} from '@/api/manage';
+import {getAction, postFileAction, postAction, deleteAction} from '@/api/manage';
 import {mapGetters} from 'vuex';
 import {urlAcount} from './copy-library-server.js';
 let COS = require('cos-js-sdk-v5');
@@ -416,7 +433,8 @@ export default {
                 acountId: '',
                 num: '',
                 adConvertId: undefined,
-                launchDateRange: []
+                launchDateRange: [],
+                searchStatus: 2
             },
             currencyPag: {
                 page: 1,
@@ -432,6 +450,12 @@ export default {
                     dataIndex: 'textCopywriter'
                 },
                 {
+                    title: '状态',
+                    align: 'center',
+                    width: 150,
+                    dataIndex: 'status'
+                },
+                {
                     title: '相关创意',
                     align: 'center',
                     width: 150,
@@ -499,6 +523,14 @@ export default {
                     align: 'center',
                     width: 150,
                     sorter: (a, b) => a.costConvert - b.costConvert
+                },
+                {
+                    title: '操作',
+                    dataIndex: 'currencyAction',
+                    align: 'center',
+                    width: 150,
+                    fixed: 'right',
+                    scopedSlots: {customRender: 'currencyAction'}
                 }
             ],
             appointColumns: [
@@ -509,6 +541,12 @@ export default {
                     dataIndex: 'slogan'
                 },
                 {
+                    title: '状态',
+                    align: 'center',
+                    width: 150,
+                    dataIndex: 'status'
+                },
+                {
                     title: '相关创意',
                     align: 'center',
                     width: 150,
@@ -576,6 +614,14 @@ export default {
                     align: 'center',
                     width: 150,
                     sorter: (a, b) => a.costConvert - b.costConvert
+                },
+                {
+                    title: '操作',
+                    dataIndex: 'appointAction',
+                    align: 'center',
+                    width: 150,
+                    fixed: 'right',
+                    scopedSlots: {customRender: 'appointAction'}
                 }
             ],
             appointData: [],
@@ -587,7 +633,7 @@ export default {
             masterPag: {
                 page: 1,
                 size: 10
-            },
+            }, 
             defaultFormList: [],
             titleFiledResult: 0,
             examinForm: this.$form.createForm(this),
@@ -623,6 +669,49 @@ export default {
     },
     methods: {
         ...mapGetters(['nickname', 'avatar', 'userInfo']),
+        handleGetCurrencyEditData() {
+            
+        },
+        handleCurrencyDelete(data) {
+            let that = this;
+            this.$confirm({
+                title: '删除提示',
+                content: '是否删除该条数据',
+                onOk() {
+                    deleteAction(urlAcount + '/bytedance-api/advertiser/bytedanceGeneralCopywriter/delete', {id: data.id}).then(result => {
+                        if (result.code === 0) {
+                            that.handleGetCurrencyList();
+                            that.$message.success('删除成功');
+                        }
+                        else {
+                            that.$message.error(result.message);
+                        }
+                    }).catch(error => {
+                        console.log(error, 'eeee');
+                    });
+                }
+            });
+        },
+        handleAppointDelete(data) {
+            let that = this;
+            this.$confirm({
+                title: '删除提示',
+                content: '是否删除该条数据',
+                onOk() {
+                    deleteAction(urlAcount + '/bytedance-api/ctop/bytedanceVideoSlogenInfo/delete', {id: data.id}).then(result => {
+                        if (result.code === 0) {
+                            that.handleGetAppointList();
+                            that.$message.success('删除成功');
+                        }
+                        else {
+                            that.$message.error(result.message);
+                        }
+                    }).catch(error => {
+                        console.log(error, 'eeee');
+                    });
+                }
+            });
+        },
         disabledDate(current) {
             return current > moment().subtract(1, 'day');
         },
@@ -684,7 +773,8 @@ export default {
                 acountId: '',
                 num: '',
                 adConvertId: undefined,
-                launchDateRange: []
+                launchDateRange: [],
+                searchStatus: 2
             };
             if (e === '1') {
                 this.handleGetCurrencyList();
@@ -700,12 +790,16 @@ export default {
                 userId: this.userInfo().id,
                 startTime: this.configForm.launchDateRange[0],
                 endTime: this.configForm.launchDateRange[0],
+                status: this.configForm.searchStatus === 2 ? '' : this.configForm.searchStatus,
                 pageNo: this.currencyPag.page,
                 pageSize: this.currencyPag.size
             };
             getAction(urlAcount + '/bytedance-api/advertiser/bytedanceGeneralCopywriter/queryPageListByText', paramsData).then(result => {
                 if (result.code === 0) {
-                    this.currencyData = result.result.list;
+                    this.currencyData = result.result.list ? result.result.list.map(item => {
+                        item.status = item.status === 0 ? '已删除' : '可投放';
+                        return item;
+                    }) : [];
                     this.currencyTotalAll = result.result.total || 0;
                 }
                 else {
@@ -724,12 +818,16 @@ export default {
                 keyWord: this.configForm.num,
                 startTime: this.configForm.launchDateRange[0],
                 endTime: this.configForm.launchDateRange[0],
+                status: this.configForm.searchStatus === 2 ? '' : this.configForm.searchStatus,
                 pageNo: this.appointPag.page,
                 pageSize: this.appointPag.size
             };
             getAction(urlAcount + '/bytedance-api/ctop/bytedanceVideoSlogenInfo/queryPageListByText', paramsData).then(result => {
                 if (result.code === 0) {
-                    this.appointData = result.result.list;
+                    this.appointData = result.result.list ? result.result.list.map(item => {
+                        item.status = item.status === 0 ? '已删除' : '可投放';
+                        return item;
+                    }) : [];
                     this.appointTotalAll = result.result.total || 0;
                 }
                 else {
@@ -1190,7 +1288,8 @@ export default {
                 acountId: '',
                 num: '',
                 adConvertId: undefined,
-                launchDateRange: []
+                launchDateRange: [],
+                searchStatus: 2
             };
             const page = {
                 page: 1,

+ 2 - 2
src/views/modules/user-manage-operation/user-manage-operation-server.js

@@ -3,8 +3,8 @@
  * @author jiayufei
  */
 
-//  export const urlAcount = 'http://118.24.244.213:8080'; // 线上
+ export const urlAcount = 'http://118.24.244.213:8080'; // 线上
  // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
- export const urlAcount = 'http://192.168.1.43:8080'; // 子安
+//  export const urlAcount = 'http://192.168.1.43:8080'; // 子安
 //  export const urlAcount = 'http://139.186.165.84:8080'; // 测试
 //  export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 45 - 45
vue.config.js

@@ -61,53 +61,53 @@ module.exports = {
     }
   },
 
-  devServer: {
-    hot:true,
-    // inline: true,
-    port: 3000,
-    open : true,
-    proxy: {
-      '/jeecg-boot': {
-          // target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-          // target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-        // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
-        // target: 'http://192.168.1.62:8088', //请求本地 需要jeecg-boot后台项目  英豪
-        // target: 'http://192.168.6.162:9806', //请求本地 需要jeecg-boot后台项目  祚云
-        // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.219:8081', //请求本地 需要jeecg-boot后台项目  赵西安
-        // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
-        // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
-        // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
-        // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
-        //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目
-        // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
-        // target:'http://118.24.244.213:8804',
-        // target: 'http://192.168.1.43:8806', // 子安
-        target: 'http://192.168.1.8:8806', // 学超
-      //  target:'http://139.186.165.84:8806', //测试
-        // target:'http://apipre.tjyourong.com.cn', //预生产
+	devServer: {
+		hot:true,
+		// inline: true,
+		port: 3000,
+		open : true,
+		proxy: {
+			'/jeecg-boot': {
+				// target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+				// target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+				// target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
+				// target: 'http://192.168.1.62:8088', //请求本地 需要jeecg-boot后台项目  英豪
+				// target: 'http://192.168.6.162:9806', //请求本地 需要jeecg-boot后台项目  祚云
+				// target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
+				// target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
+				// target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
+				// target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
+				// target: 'http://192.168.1.219:8081', //请求本地 需要jeecg-boot后台项目  赵西安
+				// target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
+				// target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
+				//  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+				// target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+				// target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
+				//  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目
+				// target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
+				// target:'http://118.24.244.213:8804',
+				// target: 'http://192.168.1.43:8806', // 子安
+				target: 'http://192.168.1.8:8806', // 学超
+				// target:'http://139.186.165.84:8806', //测试
+				// target:'http://apipre.tjyourong.com.cn', //预生产
 
-        ws: false,
+				ws: false,
 
-        // changeOrigin: true,
-        // pathRewrite: {
-        //     '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
-        // }
-      },
-    },
-    // before(app) {
-    //     app.get('/seller', (req, res) => {
-    //         res.json({
-    //           errno: 0,
-    //           data: appData
-    //         })//接口返回json数据,上面配置的数据seller就赋值给data请求后调用
-    //     })
-    // }
-  },
+				// changeOrigin: true,
+				// pathRewrite: {
+				//     '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
+				// }
+			},
+		},
+		// before(app) {
+		//     app.get('/seller', (req, res) => {
+		//         res.json({
+		//           errno: 0,
+		//           data: appData
+		//         })//接口返回json数据,上面配置的数据seller就赋值给data请求后调用
+		//     })
+		// }
+	},
 
   lintOnSave: undefined,
 //   publicPath:'./',