Przeglądaj źródła

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

liubei@c-top.com.cn 3 lat temu
rodzic
commit
6b65597ba7
2 zmienionych plików z 27 dodań i 32 usunięć
  1. 1 1
      .env.production
  2. 26 31
      src/views/modules/script/index.vue

+ 1 - 1
.env.production

@@ -7,7 +7,7 @@ VUE_APP_BASE_REPORT_URL = http://api.tjyourong.com.cn/reportModule
 # 线上地址 http://api.tjyourong.com.cn
 
 #脚本视频接口
-VUE_APP_BASE_SCRIPT_URL = http://114.117.193.186:31013
+VUE_APP_BASE_SCRIPT_URL = http://192.168.0.195:31013
 # 线上地址 http://114.117.193.186:31013
 # 测试地址 http://139.186.134.115:31013
 # 新测试地址 http://192.168.0.195:31013

+ 26 - 31
src/views/modules/script/index.vue

@@ -381,7 +381,16 @@
             <a-col :span="24">
                 <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>
+                        <a-button
+                            type="primary"
+                            @click="
+                                scoreVisible = true
+                                scoreResults = undefined
+                                scoreValue = undefined
+                            "
+                            v-if="tabKey === 3"
+                            >去评分</a-button
+                        >
                     </div>
 
                     <a-table
@@ -416,7 +425,7 @@
                             {{ text.split('T').join('   ') }}
                         </span>
                         <span slot="script_text" slot-scope="text, record">
-                            {{ text.slice(0, 25) + '......' }}
+                            {{ text.slice(0, 15) + '......' }}
                         </span>
                         <span slot="scriptActive" slot-scope="text, record">
                             <a
@@ -487,9 +496,9 @@
             <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-column key="you" data-index="you" title="评分<=85" align="center" />
+                <a-table-column key="liang" data-index="liang" title="85<评分<=95" align="center" />
+                <a-table-column key="cha" data-index="cha" title="95<评分<=100" align="center" />
             </a-table>
             <span style="color: red; margin: 10px 0; display: block"
                 >注意事项:该打分模型适用于淘特产品,其他产品使用效果未知</span
@@ -506,24 +515,16 @@
             </div>
             <div v-if="!!scoreResults">
                 <h3>评分结果展示:</h3>
-                <div
-                    style="
-                        width: 100%;
-                        border: 1px solid #d9d9d9;
-                        border-radius: 4px;
-                        display: flex;
-                        padding: 5px;
-                    "
-                >
+                <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 : '-' }}分
+                            该脚本评分为:{{ scoreResults.script_score ? scoreResults.script_score : '-' }}分
                         </p>
                         <p>
-                            使用该脚本后,素材累计消耗达到2W+概率为:{{
+                            使用该脚本后,素材累计消耗达到2W+概率为{{
                                 (scoreResults.high_quality_prob * 100).toFixed(2) + '%'
                             }}
                         </p>
@@ -541,7 +542,7 @@
             :width="1000"
         >
             <div v-if="!!detailsData">
-                <h3>脚本输入区:</h3>
+                <h3>脚本内容:</h3>
                 <a-textarea
                     disabled
                     v-model="detailsData.script_text"
@@ -551,23 +552,17 @@
                 <div style="margin-top: 10px">
                     <h3>评分结果展示:</h3>
                     <div
-                        style="
-                            width: 100%;
-                            border: 1px solid #d9d9d9;
-                            border-radius: 4px;
-                            display: flex;
-                            padding: 5px;
-                        "
+                        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 : '-' }}分
+                                该脚本评分为{{ detailsData.script_score ? detailsData.script_score : '-' }}分
                             </p>
                             <p>
-                                使用该脚本后,素材累计消耗达到2W+概率为:{{
+                                使用该脚本后,素材累计消耗达到2W+概率为{{
                                     (detailsData.high_quality_prob * 100).toFixed(2) + '%'
                                 }}
                             </p>
@@ -703,7 +698,7 @@ let scriptColumns = [
         scopedSlots: { customRender: 'script_text' },
         align: 'center',
         key: 'script_text',
-        width: 500,
+        // width: 500,
     },
     {
         title: '上传人',
@@ -713,7 +708,7 @@ let scriptColumns = [
         key: 'user_name',
     },
     {
-        title: '等级',
+        title: '评分等级',
         dataIndex: 'script_level',
         // scopedSlots: { customRender: 'script_level' },
         align: 'center',
@@ -775,9 +770,9 @@ export default {
             scoreData: [
                 {
                     score: '素材消耗达到2W+的概率',
-                    you: '30%左右',
-                    liang: '45%左右',
-                    cha: '60%左右',
+                    you: '19.05%',
+                    liang: '43.30%',
+                    cha: '69.16%',
                 },
             ],
             scoreValue: undefined,