Forráskód Böngészése

update 科研看板删除年度筛选

linweizeng 2 éve
szülő
commit
d3f34cbd25
1 módosított fájl, 11 hozzáadás és 10 törlés
  1. 11 10
      src/views/scientificPayoffs/index.vue

+ 11 - 10
src/views/scientificPayoffs/index.vue

@@ -7,10 +7,10 @@
                 <dv-decoration-5 class="center" />
                 <dv-decoration-8 class="right" :reverse="true" />
                 <div class="title">{{ titleName }}</div>
-                <div class="time">
-                    <!-- <span>年度:</span> -->
+                <!-- <div class="time">
+                    <span>年度:</span>
                     <el-date-picker v-model="month" type="year" value-format="yyyy" format="yyyy" placeholder="日期选择" style="width: 120px" :readonly="false" :editable="true" :clearable="false" @change="updateAll" />
-                </div>
+                </div> -->
                 <div class="back" @click.prevent="goBack()">
                     <dv-border-box-8>返回</dv-border-box-8>
                 </div>
@@ -276,8 +276,9 @@ export default {
 
         //接口
         //科研项目
+        // and tk.create_time_ like '%${month}%'
         getKyxmDataAndList(month) {
-            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_kyxm tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' and tk.create_time_ like '%${month}%' where ${this.likeParams}`
+            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_kyxm tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人'  where ${this.likeParams}`
             curdPost('sql', sql2).then((res2) => {
                 if (res2.state == 200) {
                     let datas = res2.variables.data
@@ -290,7 +291,7 @@ export default {
 
         //科技获奖成果
         getKjhjcgDataAndList(month) {
-            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_kjhjcg tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' and tk.create_time_ like '%${month}%' where ${this.likeParams}`
+            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_kjhjcg tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' where ${this.likeParams}`
             curdPost('sql', sql2).then((res2) => {
                 if (res2.state == 200) {
                     let datas = res2.variables.data
@@ -303,7 +304,7 @@ export default {
 
         //SCI文章统计表
         getSCIwztjbDataAndList(month) {
-            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_SCIwztjb tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' and tk.create_time_ like '%${month}%' where ${this.likeParams}`
+            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_SCIwztjb tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' where ${this.likeParams}`
             curdPost('sql', sql2).then((res2) => {
                 if (res2.state == 200) {
                     let datas = res2.variables.data
@@ -316,7 +317,7 @@ export default {
 
         //中文论文
         getZwlwDataAndList(month) {
-            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_zwlw tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' and tk.create_time_ like '%${month}%' where ${this.likeParams}`
+            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_zwlw tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' where ${this.likeParams}`
             curdPost('sql', sql2).then((res2) => {
                 if (res2.state == 200) {
                     let datas = res2.variables.data
@@ -329,7 +330,7 @@ export default {
 
         //著作
         getZhuZuoDataAndList(month) {
-            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_zz tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' and tk.create_time_ like '%${month}%' where ${this.likeParams}`
+            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_zz tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' where ${this.likeParams}`
             curdPost('sql', sql2).then((res2) => {
                 if (res2.state == 200) {
                     let datas = res2.variables.data
@@ -342,7 +343,7 @@ export default {
 
         //专利
         getZhuanLiDataAndList(month) {
-            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_zl tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' and tk.create_time_ like '%${month}%' where ${this.likeParams}`
+            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_zl tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' where ${this.likeParams}`
             curdPost('sql', sql2).then((res2) => {
                 if (res2.state == 200) {
                     let datas = res2.variables.data
@@ -355,7 +356,7 @@ export default {
 
         //继续教育项目/学术活动
         getJxjyxmxshdDataAndList(month) {
-            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_jxjyxmxshd tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' and tk.create_time_ like '%${month}%' where ${this.likeParams}`
+            let sql2 = `select ie.NAME_,count(tk.id_) as count from ibps_party_employee ie left join t_jxjyxmxshd tk on ie.ID_ = tk.xing_ming_ and tk.lei_xing_ = '个人' where ${this.likeParams}`
             curdPost('sql', sql2).then((res2) => {
                 if (res2.state == 200) {
                     let datas = res2.variables.data