Sfoglia il codice sorgente

文案库 添加 编辑删除搜索

jiayufei 4 anni fa
parent
commit
e57e6e2290

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

@@ -18,6 +18,7 @@
                     </a-form-item>
                     <a-form-item label="状态">
                         <a-select v-model="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>
@@ -297,7 +298,7 @@ export default {
                     value: '大图竖图'
                 }
             ],
-            searchStatus: 0,
+            searchStatus: 2,
             controlLoading: true,
             adBudgetShowTitle: false,
             budgetVisible: false,
@@ -528,14 +529,14 @@ export default {
         },
         handleResetList() {
             this.acountId = '';
-            this.searchStatus = 0;
+            this.searchStatus = 2;
             this.controlLoading = true;
             this.handleInitTable();
         },
         handleInitTable() {
             const paramsData = {
                 accountId: this.acountId,
-                status: this.searchStatus,
+                status: this.searchStatus === 2 ? '' : this.searchStatus,
                 loginUserId: this.userInfo().id,
                 pageNo: this.tablePag.page,
                 pageSize: this.tablePag.size

+ 8 - 8
src/views/modules/copy-library/copy-library.vue

@@ -89,9 +89,9 @@
                         :scroll="{x: 1500}"
                     >
                         <span slot="currencyAction" slot-scope="text, record">
-                            <a @click="handleCurrencyEdit(record)">编辑</a>
+                            <a :disabled="record.status === '已删除'" @click="handleCurrencyEdit(record)">编辑</a>
                             <a-divider type="vertical"/>
-                            <a @click="handleCurrencyDelete(record)">删除</a>
+                            <a :disabled="record.status === '已删除'" @click="handleCurrencyDelete(record)">删除</a>
                         </span>
                     </a-table>
                     <a-pagination
@@ -118,9 +118,9 @@
                         :scroll="{x: 1500}"
                     >
                         <span slot="appointAction" slot-scope="text, record">
-                            <a @click="handleCurrencyEdit(record)">编辑</a>
+                            <a :disabled="record.status === '已删除'" @click="handleCurrencyEdit(record)">编辑</a>
                             <a-divider type="vertical"/>
-                            <a @click="handleAppointDelete(record)">删除</a>
+                            <a :disabled="record.status === '已删除'" @click="handleAppointDelete(record)">删除</a>
                         </span>
                     </a-table>
                     <a-pagination
@@ -763,8 +763,8 @@ export default {
         handleCurrencyDelete(data) {
             let that = this;
             this.$confirm({
-                title: '删除提示',
-                content: '是否删除该条数据',
+                content: '确定是否删除该条文案',
+                iconType: 'exclamation-circle',
                 onOk() {
                     deleteAction(urlAcount + '/bytedance-api/advertiser/bytedanceGeneralCopywriter/delete', {id: data.id}).then(result => {
                         if (result.code === 0) {
@@ -783,8 +783,8 @@ export default {
         handleAppointDelete(data) {
             let that = this;
             this.$confirm({
-                title: '删除提示',
-                content: '是否删除该条数据',
+                content: '确定是否删除该条文案',
+                iconType: 'exclamation-circle',
                 onOk() {
                     deleteAction(urlAcount + '/bytedance-api/ctop/bytedanceVideoSlogenInfo/deleteBySlogenAndProjectId', {
                         slogan: data.slogan,