Procházet zdrojové kódy

Merge branch 'feature/work-test' of http://git.tjyourong.com.cn/ctop/adsp-vue into feature/work-test

liubei@c-top.com.cn před 3 roky
rodič
revize
e27ddd683d

+ 14 - 2
src/views/dashboard/managerStatistics.vue

@@ -475,7 +475,7 @@ function getData(data, sumValue) {
                     name: data[i].name,
                 },
                 {
-                    value: sumValue - data[i].value,
+                    value: sumValue - (data[i].value * 0.75).toFixed(3),
                     name: '',
                     itemStyle: {
                         color: 'rgba(0,0,0,0)',
@@ -697,6 +697,7 @@ export default {
                     if (between > 90) {
                         this.$message.error('时间选择不可超过90天')
                     } else {
+                        this.topType = 'b'
                         this.getData()
                     }
                 } else {
@@ -1034,7 +1035,18 @@ export default {
                 color: ['#016DDA', '#23A0E4', '#51C0F0', '#6BE0E0', '#24DFBE', '#04E893'],
                 grid: {
                     top: '18%',
-                    bottom: barData.length == 5 ? '48%' : barData.length == 3 ? '60%' : '48%',
+                    bottom:
+                        barData.length == 5
+                            ? '48%'
+                            : barData.length == 3
+                            ? '60%'
+                            : barData.length == 4
+                            ? '54%'
+                            : barData.length == 2
+                            ? '66%'
+                            : barData.length == 1
+                            ? '72%'
+                            : '48%',
                     left: '25%',
                     containLabel: false,
                 },

+ 341 - 67
src/views/modules/script/index.vue

@@ -242,6 +242,7 @@
             <a-tabs v-model="tabKey" @change="tabChange">
                 <a-tab-pane :key="1" tab="脚本配置列表"> </a-tab-pane>
                 <a-tab-pane :key="2" tab="脚本数据导出列表"> </a-tab-pane>
+                <a-tab-pane :key="3" tab="脚本评分"> </a-tab-pane>
                 <a-button slot="tabBarExtraContent" type="primary" @click="newCreat(null)" v-if="tabKey == 1">
                     新建
                 </a-button>
@@ -261,7 +262,7 @@
                                 <a-range-picker
                                     v-decorator="[
                                         'timeRange',
-                                        { initialValue: [moment().subtract(1, 'months'), moment()] }
+                                        { initialValue: [moment().subtract(1, 'months'), moment()] },
                                     ]"
                                     :ranges="dateRanges"
                                     :disabled-date="disabledDate"
@@ -278,10 +279,10 @@
                             </span>
                         </a-col>
                     </a-row>
-                    <a-row :gutter="24" v-else>
+                    <a-row :gutter="24" v-else-if="tabKey === 2">
                         <a-col :md="6" :sm="6" :xxl="6">
                             <a-form-item label="选择来源">
-                                <a-select v-decorator="['source_code']" mode="multiple" style="width: 100%;">
+                                <a-select v-decorator="['source_code']" mode="multiple" style="width: 100%">
                                     <a-select-option value="1">内部创意</a-select-option
                                     ><a-select-option value="2">巨量创意</a-select-option
                                     ><a-select-option value="3">开眼快创</a-select-option>
@@ -298,7 +299,7 @@
                                 <a-range-picker
                                     v-decorator="[
                                         'timeRange',
-                                        { initialValue: [moment().subtract(1, 'months'), moment()] }
+                                        { initialValue: [moment().subtract(1, 'months'), moment()] },
                                     ]"
                                     :ranges="dateRanges"
                                     :disabled-date="disabledDateThen"
@@ -330,13 +331,59 @@
                             </a-form-item>
                         </a-col> -->
                     </a-row>
+                    <a-row :gutter="24" v-else-if="tabKey === 3">
+                        <a-col :md="6" :sm="6" :xxl="6">
+                            <a-form-item label="时间选择">
+                                <a-range-picker
+                                    v-decorator="[
+                                        'timeRange',
+                                        { initialValue: [moment().subtract(1, 'months'), moment()] },
+                                    ]"
+                                    :ranges="dateRanges"
+                                    :disabled-date="disabledDate"
+                                />
+                            </a-form-item>
+                        </a-col>
+                        <a-col :md="6" :sm="6" :xxl="6">
+                            <a-form-item label="关键字">
+                                <a-input v-decorator="['search_word']" placeholder="请输入关键字" />
+                            </a-form-item>
+                        </a-col>
+                        <a-col :md="6" :sm="6" :xxl="6">
+                            <a-form-item label="上传人">
+                                <a-input v-decorator="['user_name']" placeholder="请输入上传人" />
+                            </a-form-item>
+                        </a-col>
+                        <a-col :md="6" :sm="6" :xxl="6">
+                            <a-form-item label="评分">
+                                <a-select v-decorator="['script_level']" mode="multiple" style="width: 100%">
+                                    <a-select-option :value="1">优</a-select-option
+                                    ><a-select-option :value="2">良</a-select-option
+                                    ><a-select-option :value="3">低质</a-select-option>
+                                </a-select>
+                            </a-form-item>
+                        </a-col>
+
+                        <a-col :md="6" :sm="6" :xxl="6">
+                            <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
+                                <a-button type="primary" icon="search" @click="handleQueryList">查询</a-button>
+                                <a-button type="primary" @click="handleResetForm" icon="reload" class="middle-button"
+                                    >重置</a-button
+                                >
+                            </span>
+                        </a-col>
+                    </a-row>
                 </a-form>
             </div>
         </a-card>
 
-        <a-row style="margin-bottom:15px;margin-top:12px">
+        <a-row style="margin-bottom: 15px; margin-top: 12px">
             <a-col :span="24">
-                <div class="tableBody" style="min-height:200px;padding-bottom: 50px">
+                <div class="tableBody" style="min-height: 200px; padding-bottom: 50px">
+                    <div style="width: 100%; display: flex; justify-content: flex-end; margin-bottom: 10px">
+                        <a-button type="primary" @click="scoreVisible = true" v-if="tabKey === 3">去评分</a-button>
+                    </div>
+
                     <a-table
                         :columns="columns"
                         :dataSource="dataSource"
@@ -344,12 +391,14 @@
                         :loading="dataLoading"
                         bordered
                         size="middle"
-                        style="word-break: break-all;font-size:16px;font-weight:600"
+                        style="word-break: break-all; font-size: 16px; font-weight: 600"
                         id="outTable"
                         ref="accountTable"
                         rowKey="number"
                         :customRow="rowClick"
-                        :rowSelection="tabKey == 1 ? null : { selectedRowKeys, onChange: onSelectChange }"
+                        :rowSelection="
+                            tabKey == 1 || tabKey == 3 ? null : { selectedRowKeys, onChange: onSelectChange }
+                        "
                     >
                         <span slot="query_word" slot-scope="text, record">
                             {{ Array.isArray(text) ? text.join() : text }}
@@ -363,11 +412,31 @@
                         <span slot="action" slot-scope="text, record">
                             <a @click.stop="deleteScript(record)">删除</a>
                         </span>
+                        <span slot="start_time" slot-scope="text, record">
+                            {{ text.split('T').join('   ') }}
+                        </span>
+                        <span slot="script_text" slot-scope="text, record">
+                            {{ text.slice(0, 25) + '......' }}
+                        </span>
+                        <span slot="scriptActive" slot-scope="text, record">
+                            <a
+                                @click.stop="
+                                    detailsVisible = true
+                                    detailsData = record
+                                "
+                                :disabled="userInfo().id != record.user_id"
+                                >查看详情</a
+                            >
+                            <a-divider type="vertical" />
+                            <a @click.stop="deleteScriptScore(record)" :disabled="userInfo().id != record.user_id"
+                                >删除</a
+                            >
+                        </span>
                     </a-table>
                     <a-pagination
                         size="small"
                         :showTotal="ipagination.showTotal"
-                        style="float: right;margin-top:10px"
+                        style="float: right; margin-top: 10px"
                         v-if="dataSource.length > 0"
                         showQuickJumper
                         show-size-changer
@@ -406,6 +475,107 @@
                 </div>
             </div> -->
         </a-modal>
+        <a-modal
+            v-if="scoreVisible"
+            title="脚本评分"
+            :visible="scoreVisible"
+            dialog-class="web-url-modal"
+            :footer="null"
+            @cancel="scoreVisible = false"
+            :width="1000"
+        >
+            <h3>评分规则:</h3>
+            <a-table ref="table" size="middle" bordered :dataSource="scoreData" :pagination="false">
+                <a-table-column key="score" data-index="score" title="评分" align="center" />
+                <a-table-column key="you" data-index="you" title="评分<=70" align="center" />
+                <a-table-column key="liang" data-index="liang" title="70<评分<=90" align="center" />
+                <a-table-column key="cha" data-index="cha" title="90<评分<=100" align="center" />
+            </a-table>
+            <span style="color: red; margin: 10px 0; display: block"
+                >注意事项:该打分模型适用于淘特产品,其他产品使用效果未知</span
+            >
+            <h3>脚本输入区:</h3>
+            <a-textarea
+                v-model="scoreValue"
+                placeholder="请输入脚本内容,多于100字的脚本评分会更有价值"
+                :auto-size="{ minRows: 3, maxRows: 5 }"
+                @change="scoreResults = undefined"
+            />
+            <div style="width: 100%; display: flex; justify-content: flex-end; margin-top: 10px">
+                <a-button type="primary" @click="getScore" v-if="!scoreResults" :loading="scoreLoading">评分</a-button>
+            </div>
+            <div v-if="!!scoreResults">
+                <h3>评分结果展示:</h3>
+                <div
+                    style="
+                        width: 100%;
+                        border: 1px solid #d9d9d9;
+                        border-radius: 4px;
+                        display: flex;
+                        padding: 5px;
+                    "
+                >
+                    <span style="font-size: 30px; font-weight: 700; margin-right: 20px">
+                        {{ scoreResults.script_level == 1 ? '优' : scoreResults.script_level == 2 ? '良' : '低质' }}
+                    </span>
+                    <div>
+                        <p style="margin-bottom: 0px">
+                            该脚本评分为:{{ scoreResults.script_score ? scoreResults.script_score : '-' }}分
+                        </p>
+                        <p>
+                            使用该脚本后,素材累计消耗达到2W+概率为:{{
+                                (scoreResults.high_quality_prob * 100).toFixed(2) + '%'
+                            }}
+                        </p>
+                    </div>
+                </div>
+            </div>
+        </a-modal>
+        <a-modal
+            v-if="detailsVisible"
+            title="脚本详情"
+            :visible="detailsVisible"
+            dialog-class="web-url-modal"
+            :footer="null"
+            @cancel="detailsVisible = false"
+            :width="1000"
+        >
+            <div v-if="!!detailsData">
+                <h3>脚本输入区:</h3>
+                <a-textarea
+                    disabled
+                    v-model="detailsData.script_text"
+                    placeholder="请输入脚本内容,多于100字的脚本评分会更有价值"
+                    :auto-size="{ minRows: 3, maxRows: 5 }"
+                />
+                <div style="margin-top: 10px">
+                    <h3>评分结果展示:</h3>
+                    <div
+                        style="
+                            width: 100%;
+                            border: 1px solid #d9d9d9;
+                            border-radius: 4px;
+                            display: flex;
+                            padding: 5px;
+                        "
+                    >
+                        <span style="font-size: 30px; font-weight: 700; margin-right: 20px">
+                            {{ detailsData.script_level == 1 ? '优' : detailsData.script_level == 2 ? '良' : '低质' }}
+                        </span>
+                        <div>
+                            <p style="margin-bottom: 0px">
+                                该脚本评分为:{{ detailsData.script_score ? detailsData.script_score : '-' }}分
+                            </p>
+                            <p>
+                                使用该脚本后,素材累计消耗达到2W+概率为:{{
+                                    (detailsData.high_quality_prob * 100).toFixed(2) + '%'
+                                }}
+                            </p>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </a-modal>
     </div>
 </template>
 
@@ -442,36 +612,36 @@ let TTcolumns = [
         dataIndex: 'query_word',
         scopedSlots: { customRender: 'query_word' },
         align: 'center',
-        key: 'query_word'
+        key: 'query_word',
     },
     {
         title: '推荐词',
         dataIndex: 'recommended_word',
         scopedSlots: { customRender: 'recommended_word' },
         align: 'center',
-        key: 'recommended_word'
+        key: 'recommended_word',
     },
     {
         title: '创建时间',
         dataIndex: 'create_time',
         scopedSlots: { customRender: 'create_time' },
         align: 'center',
-        key: 'create_time'
+        key: 'create_time',
     },
     {
         title: '创建人',
         dataIndex: 'operator',
         scopedSlots: { customRender: 'operator' },
         align: 'center',
-        key: 'operator'
+        key: 'operator',
     },
     {
         title: '操作',
         dataIndex: 'action',
         scopedSlots: { customRender: 'action' },
         align: 'center',
-        key: 'action'
-    }
+        key: 'action',
+    },
 ]
 
 let KScolumns = [
@@ -480,36 +650,91 @@ let KScolumns = [
         dataIndex: 'source_name',
         scopedSlots: { customRender: 'source_name' },
         align: 'center',
-        key: 'source_name'
+        key: 'source_name',
     },
     {
         title: '关键字',
         dataIndex: 'query_word',
         scopedSlots: { customRender: 'query_word' },
         align: 'center',
-        key: 'query_word'
+        key: 'query_word',
     },
     {
         title: '时间',
         dataIndex: 'stat_date',
         scopedSlots: { customRender: 'stat_date' },
         align: 'center',
-        key: 'stat_date'
+        key: 'stat_date',
     },
     {
         title: '数据量级',
         dataIndex: 'script_num',
         scopedSlots: { customRender: 'script_num' },
         align: 'center',
-        key: 'script_num'
+        key: 'script_num',
     },
     {
         title: '状态',
         dataIndex: 'task_status',
         scopedSlots: { customRender: 'task_status' },
         align: 'center',
-        key: 'task_status'
-    }
+        key: 'task_status',
+    },
+]
+
+let scriptColumns = [
+    {
+        title: '脚本id',
+        dataIndex: 'script_hash',
+        scopedSlots: { customRender: 'script_hash' },
+        align: 'center',
+        key: 'script_hash',
+    },
+    {
+        title: '时间',
+        dataIndex: 'start_time',
+        scopedSlots: { customRender: 'start_time' },
+        align: 'center',
+        key: 'start_time',
+    },
+    {
+        title: '脚本内容',
+        dataIndex: 'script_text',
+        scopedSlots: { customRender: 'script_text' },
+        align: 'center',
+        key: 'script_text',
+        width: 500,
+    },
+    {
+        title: '上传人',
+        dataIndex: 'user_name',
+        scopedSlots: { customRender: 'user_name' },
+        align: 'center',
+        key: 'user_name',
+    },
+    {
+        title: '等级',
+        dataIndex: 'script_level',
+        // scopedSlots: { customRender: 'script_level' },
+        align: 'center',
+        key: 'script_level',
+        customRender: function (text) {
+            if (text === 1) {
+                return '优'
+            } else if (text === 2) {
+                return '良'
+            } else {
+                return '低质'
+            }
+        },
+    },
+    {
+        title: '操作',
+        dataIndex: 'scriptActive',
+        scopedSlots: { customRender: 'scriptActive' },
+        align: 'center',
+        key: 'scriptActive',
+    },
 ]
 
 export default {
@@ -519,7 +744,7 @@ export default {
         checkBoxGroup,
         selectCheckAll,
         selectTreeAccount,
-        keyWord
+        keyWord,
     },
 
     data() {
@@ -547,23 +772,34 @@ export default {
             exportloading: false,
             dateRange: [moment().subtract(1, 'weeks'), moment()],
             noImg: require('@/assets/noImg.png'),
+            scoreData: [
+                {
+                    score: '素材消耗达到2W+的概率',
+                    you: '30%左右',
+                    liang: '45%左右',
+                    cha: '60%左右',
+                },
+            ],
+            scoreValue: undefined,
+            scoreResults: undefined,
+            scoreLoading: false,
             validationRules: {
                 bid: [
                     {
                         required: true,
-                        message: '出价信息必须填写'
+                        message: '出价信息必须填写',
                         // validator: this.validateBid,
-                    }
-                ]
+                    },
+                ],
             },
             dateRanges: {
                 昨天: [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
                 近三天: [moment().subtract(2, 'days'), moment()],
                 近一周: [moment().subtract(6, 'days'), moment()],
                 近14天: [moment().subtract(13, 'days'), moment()],
-                近一月: [moment().subtract(1, 'months'), moment()]
+                近一月: [moment().subtract(1, 'months'), moment()],
             },
-            rowClick: record => {
+            rowClick: (record) => {
                 return {
                     on: {
                         click: () => {
@@ -572,8 +808,8 @@ export default {
                                 this.config_id = record.config_id
                                 this.tabChange(this.tabKey)
                             }
-                        }
-                    }
+                        },
+                    },
                 }
             },
             ipagination: {
@@ -592,7 +828,7 @@ export default {
                     // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
                     this.ipagination.current = current
                     this.ipagination.pageSize = pageSize
-                }
+                },
             },
             value: 'valid',
             KSaccountList: [],
@@ -619,6 +855,7 @@ export default {
             loading: false,
             TTcolumns,
             KScolumns,
+            scriptColumns,
             columns: [...TTcolumns],
             dataSource: [],
 
@@ -647,7 +884,10 @@ export default {
             againLoading: false,
             accountProjectDetail: null,
             regionData: [{ label: '不限', value: 'unlimited' }],
-            ageData: [{ label: '不限', value: 'unlimited' }]
+            ageData: [{ label: '不限', value: 'unlimited' }],
+            scoreVisible: false,
+            detailsVisible: false,
+            detailsData: undefined,
         }
     },
     methods: {
@@ -664,7 +904,30 @@ export default {
                     params.user_id = item.user_id
                     params.operator = item.operator
                     that.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/delete_script_config/', params).then(
-                        res => {
+                        (res) => {
+                            if (res.success) {
+                                const paramsData = that.form.getFieldsValue()
+                                that.handleGetTableList(paramsData)
+                            }
+                        }
+                    )
+                },
+                onCancel() {},
+            })
+        },
+        deleteScriptScore(item) {
+            let that = this
+            this.$confirm({
+                title: '确定要删除此条脚本评分信息?',
+                content: '',
+                onOk() {
+                    var params = {}
+                    params.unique_id = item.unique_id
+                    params.user_id = item.user_id
+                    params.user_name = item.user_name
+
+                    that.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/delete_script_score', params).then(
+                        (res) => {
                             if (res.success) {
                                 const paramsData = that.form.getFieldsValue()
                                 that.handleGetTableList(paramsData)
@@ -672,25 +935,25 @@ export default {
                         }
                     )
                 },
-                onCancel() {}
+                onCancel() {},
             })
         },
         handleOkDownLoad() {
             this.selectionRows = tqFun(this.selectionRowsAll)
             if (this.selectionRows.length > 0) {
                 this.downLoading = true
-                let params = this.selectionRows.map(item => {
+                let params = this.selectionRows.map((item) => {
                     return {
                         source_code: item.source_name == '内部创意' ? 1 : item.source_name == '巨量创意' ? 2 : 3,
                         query_word: item.query_word,
-                        stat_date: item.stat_date
+                        stat_date: item.stat_date,
                     }
                 })
 
-                downFilePost(process.env.VUE_APP_BASE_SCRIPT_URL + '/export_script_file/', params).then(res => {
+                downFilePost(process.env.VUE_APP_BASE_SCRIPT_URL + '/export_script_file/', params).then((res) => {
                     this.downLoading = false
                     let blob = new Blob([res], {
-                        type: 'application/vnd.openxmlformats-officedocument.spre1adsheetml.sheet'
+                        type: 'application/vnd.openxmlformats-officedocument.spre1adsheetml.sheet',
                     })
                     let downloadElement = document.createElement('a')
                     let href = window.URL.createObjectURL(blob) //创建下载的链接
@@ -746,7 +1009,7 @@ export default {
                 params.query_word_pair = this.creativeTag
                 params.operator = this.userInfo().realname
                 params.user_id = this.userInfo().id
-                this.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/add_script_config/', params).then(res => {
+                this.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/add_script_config/', params).then((res) => {
                     if (res.success) {
                         this.handleCancelAll()
                         this.creativeTag = []
@@ -758,7 +1021,7 @@ export default {
             }
         },
         handleTagsClose(removedTag) {
-            const tags = this.creativeTag.filter(tag => tag !== removedTag)
+            const tags = this.creativeTag.filter((tag) => tag !== removedTag)
             this.creativeTag = tags
         },
         getData(className) {
@@ -777,7 +1040,7 @@ export default {
             }
             this.selectedRowKeysAll[this.ipagination.current - 1] = selectedRowKeys
             this.selectionRowsAll[this.ipagination.current - 1] = selectionRows
-            console.log(this.selectedRowKeysAll,this.selectionRowsAll)
+            console.log(this.selectedRowKeysAll, this.selectionRowsAll)
         },
         getDataSource(current, pageSize) {
             console.log(pageSize)
@@ -837,7 +1100,7 @@ export default {
                         ? moment(data.timeRange[1]).format('YYYY-MM-DD')
                         : null,
                 page_num: this.ipagination.current,
-                page_size: this.ipagination.pageSize
+                page_size: this.ipagination.pageSize,
                 // userId: this.userInfo().id
             }
             if (this.tabKey == 2 && this.config_id) {
@@ -846,7 +1109,7 @@ export default {
             this.dataSource = []
             this.dataLoading = true
             this.postDataAction(this.url, paramsData)
-                .then(result => {
+                .then((result) => {
                     this.dataLoading = false
                     if (result.success) {
                         this.dataSource = result.result || []
@@ -861,11 +1124,29 @@ export default {
                         this.$message.error(result.message)
                     }
                 })
-                .catch(error => {
+                .catch((error) => {
                     this.dataLoading = false
                     console.log(error, 'eeee')
                 })
         },
+        score() {},
+        getScore() {
+            if (!!this.scoreValue) {
+                this.scoreLoading = true
+                var params = {}
+                params.user_name = this.userInfo().realname
+                params.user_id = this.userInfo().id
+                params.script = this.scoreValue
+                this.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/get_script_score', params).then((res) => {
+                    this.scoreLoading = false
+                    if (res.success) {
+                        this.scoreResults = res.result
+                    }
+                })
+            } else {
+                this.$message.error('请输入脚本')
+            }
+        },
         getAccountNoProject() {
             this.projectId = undefined
             const paramsData = this.form.getFieldsValue()
@@ -884,18 +1165,20 @@ export default {
         tabChange(key) {
             this.ipagination.current = 1
             this.ipagination.pageSize = 10
-
-            this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
+            this.form.resetFields()
+            this.columns = this.tabKey == 1 ? [...TTcolumns] : this.tabKey == 2 ? [...KScolumns] : [...scriptColumns]
             this.url =
                 this.tabKey == 1
                     ? process.env.VUE_APP_BASE_SCRIPT_URL + '/get_script_config_lst/'
-                    : process.env.VUE_APP_BASE_SCRIPT_URL + '/get_query_word_task_info_lst/'
+                    : this.tabKey == 2
+                    ? process.env.VUE_APP_BASE_SCRIPT_URL + '/get_query_word_task_info_lst/'
+                    : process.env.VUE_APP_BASE_SCRIPT_URL + '/get_script_score_lst/'
             if (this.tabKey == 1) {
                 this.config_id = null
             }
             this.selectedRowKeys = []
             this.selectionRows = []
-            this.form.resetFields()
+
             const paramsData = this.form.getFieldsValue()
             this.handleGetTableList(paramsData)
         },
@@ -908,22 +1191,16 @@ export default {
                 this.accountDisabled = false
             }
         },
-
-        // table区域的tab切换
-        tableTabChange(key) {
-            if (key == 1) {
-                this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
-                this.target = 'new'
-            } else {
-                this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
-                this.target = 'valid'
-            }
-        }
     },
     watch: {
         dateValue(newName, oldName) {
             this.search()
-        }
+        },
+        scoreVisible(n, o) {
+            if (!n) {
+                this.tabChange(3)
+            }
+        },
     },
     computed: {
         newDate() {
@@ -934,13 +1211,13 @@ export default {
             var d = myDate.getDate() //获取当前日(1-31)
             var day = myDate.getHours()
             return day
-        }
+        },
     },
     mounted() {
         const paramsData = this.form.getFieldsValue()
         this.handleGetTableList(paramsData)
     },
-    activated: function() {},
+    activated: function () {},
 
     filters: {
         toPercentage(val) {
@@ -976,10 +1253,7 @@ export default {
                     let numberStr = val.toString()
                     let str = numberStr.split('.')
 
-                    let str0 = str[0]
-                        .substr(1)
-                        .split('')
-                        .reverse()
+                    let str0 = str[0].substr(1).split('').reverse()
                     for (let i = 0; i < str0.length; i++) {
                         if ((i + 1) % 4 === 0) {
                             str0.splice(i, 0, ',')
@@ -1018,7 +1292,7 @@ export default {
             } else {
                 return '-'
             }
-        }
-    }
+        },
+    },
 }
 </script>