Pārlūkot izejas kodu

Merge branch '0601optimize' of http://git.dayaedu.com/molingzhide/dy-admin-manager into 0601optimize

lex-xin 4 gadi atpakaļ
vecāks
revīzija
106cd5fc17

+ 27 - 3
src/views/categroyManager/insideSetting/addressManager.vue

@@ -16,6 +16,7 @@
         :inline="true"
         class="searchForm"
         @submit="search"
+        @reset="onReset"
         :model="searchForm"
       >
         <el-form-item>
@@ -42,7 +43,19 @@
           </el-select>
         </el-form-item>
         <el-form-item>
+          <el-select
+            v-model.trim="searchForm.publicFlag"
+            clearable
+            filterable
+            placeholder="可用状态"
+          >
+            <el-option label="个人" value="0"></el-option>
+            <el-option label="公用" value="1"></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item>
           <el-button native-type="submit" type="danger">搜索</el-button>
+           <el-button native-type="reset" type="primary">重置</el-button>
         </el-form-item>
       </save-form>
       <!-- 列表 -->
@@ -69,7 +82,7 @@
           </el-table-column>
           <el-table-column align="center" label="可用状态" width="120px">
             <template slot-scope="scope">
-              {{ scope.row.userId ? scope.row.userName : "公共" }}
+              {{ scope.row.userId ? scope.row.realName : "公共" }}
             </template>
           </el-table-column>
           <el-table-column align="center" width="120px" label="租赁费用">
@@ -204,6 +217,7 @@
           </el-select>
         </el-form-item>
         <el-form-item
+          v-if="formActionTitle == 'update'"
           prop="user"
           label="可用状态"
           :label-width="formLabelWidth"
@@ -375,6 +389,7 @@ export default {
       searchForm: {
         search: null,
         organId: null,
+        publicFlag:null,
       },
       searchLsit: [],
       tableList: [],
@@ -533,7 +548,7 @@ export default {
       }
     },
     onCooperationChange(value) {
-      this.form.organId = null
+      this.form.organId = null;
       this.cooperationList.forEach((item) => {
         if (item.value == value) {
           // this.selectOrganId = item.organId
@@ -614,6 +629,7 @@ export default {
       let params = {
         search: searchForm.search ? searchForm.search : null,
         organId: searchForm.organId ? searchForm.organId : null,
+        publicFlag:searchForm.publicFlag ? searchForm.publicFlag : null,
         rows: this.pageInfo.limit,
         page: this.pageInfo.page,
       };
@@ -677,7 +693,7 @@ export default {
           subsidy: row.subsidy, // 课酬补贴
           organId: row.organId,
           longitudeLatitude: row.longitudeLatitude,
-          user:row.userName?row.userName:'公共'
+          user: row.realName ? row.realName : "公共",
         };
       }
     },
@@ -743,6 +759,14 @@ export default {
       this.pageInfo.page = 1;
       this.getList();
     },
+    onReset(){
+      this.searchForm = {
+        search: null,
+        organId: null,
+        publicFlag:null,
+      }
+      this.search()
+    }
   },
 };
 </script>

+ 56 - 36
src/views/reaplceMusicPlayer/modals/detail.vue

@@ -96,18 +96,24 @@
           prop="mobileNo"
           label="联系电话"
         ></el-table-column>
-        <!-- <el-table-column
-          align="center"
-          prop="question1"
-          label="是否参加市赛"
-        >
-        </el-table-column> -->
-        <el-table-column
-          align="center"
-          label="是否置换"
-        >
+        <el-table-column align="center" prop="actualAmount" label="现金">
+          <template slot-scope="scope">
+            <div>
+              {{ scope.row.actualAmount | moneyFormat }}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column align="center" prop="balance" label="余额">
+          <template slot-scope="scope">
+            <div>
+              {{ scope.row.balance | moneyFormat }}
+            </div>
+          </template>
+        </el-table-column>
+
+        <el-table-column align="center" label="是否置换">
           <template slot-scope="scope">
-            {{ scope.row.instrumentsId ? '是' : '否' }}
+            {{ scope.row.instrumentsId ? "是" : "否" }}
           </template>
         </el-table-column>
         <el-table-column
@@ -144,14 +150,24 @@
           </template>
         </el-table-column>
 
-        <el-table-column align="center" prop="studentId" label="操作" width="150px">
+        <el-table-column
+          align="center"
+          prop="studentId"
+          label="操作"
+          width="150px"
+        >
           <template slot-scope="scope">
             <div>
               <el-button
                 type="text"
                 @click="openFlagMusic(scope.row)"
-                v-if="scope.row.openFlag == 0 && scope.row.instrumentsId && permission('replacementInstrumentActivity/updateOpenFlag')"
-                >开启缴费</el-button>
+                v-if="
+                  scope.row.openFlag == 0 &&
+                  scope.row.instrumentsId &&
+                  permission('replacementInstrumentActivity/updateOpenFlag')
+                "
+                >开启缴费</el-button
+              >
               <el-button
                 type="text"
                 @click="resetMusic(scope.row)"
@@ -196,7 +212,11 @@
 <script>
 import pagination from "@/components/Pagination/index";
 import resetInfo from "./resetInfo";
-import { getInstrumentSoundList, getInstrumentActivityList, updateOpenFlag } from "../api";
+import {
+  getInstrumentSoundList,
+  getInstrumentActivityList,
+  updateOpenFlag,
+} from "../api";
 import ItemVue from "@/layout/components/Sidebar/Item.vue";
 import Tooltip from "@/components/Tooltip/index";
 import { permission } from "@/utils/directivePage";
@@ -221,8 +241,8 @@ export default {
         specification: "",
         search: "",
         subjectId: "",
-        hasYesFirstAnswer: '',
-        hasInstrumentsId: ''
+        hasYesFirstAnswer: "",
+        hasInstrumentsId: "",
       },
       tableList: [],
       rules: {
@@ -235,7 +255,7 @@ export default {
       dialogVisible: false,
       branchList: [],
       resetRow: null,
-      soundList:soundList
+      soundList: soundList,
     };
   },
   mounted() {
@@ -254,11 +274,11 @@ export default {
           page: this.rules.page,
           rows: this.rules.limit,
         });
-         let temp = res.data.rows || []
-          temp.forEach(item => {
-              let questionResult = item.questionResult.split('')
-              item.question1 = questionResult[0] == 1 ? '是' : '否'
-          })
+        let temp = res.data.rows || [];
+        temp.forEach((item) => {
+          let questionResult = item.questionResult.split("");
+          item.question1 = questionResult[0] == 1 ? "是" : "否";
+        });
         this.tableList = temp;
         this.rules.total = res.data.total;
       } catch (e) {}
@@ -269,22 +289,22 @@ export default {
     },
     openFlagMusic(row) {
       // 开启缴费
-      this.$confirm('您是否开启缴费?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
+      this.$confirm("您是否开启缴费?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
       }).then(async () => {
         try {
           await updateOpenFlag({
             Id: row.id,
-            openFlag: 1
-          })
-          this.$message.success('开启成功')
-          this.getList()
+            openFlag: 1,
+          });
+          this.$message.success("开启成功");
+          this.getList();
         } catch {
           //
         }
-      })
+      });
     },
     onReSet() {
       this.$refs.searchForm.resetFields();
@@ -328,10 +348,10 @@ export default {
   },
   filters: {
     openFlagStatus(val) {
-      let template = ['否', '是']
-      return template[val]
-    }
-  }
+      let template = ["否", "是"];
+      return template[val];
+    },
+  },
 };
 </script>
 

+ 2 - 2
vue.config.js

@@ -20,8 +20,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'http://192.168.3.139:8000' // 箭河
 // let target = 'http://192.168.3.148:8000' //邹璇
 // let target = 'http://192.168.3.57:8000' //勇哥
-// let target = 'http://dev.dayaedu.com' // 开发环境
-let target = 'https://test.dayaedu.com' //测试环境
+let target = 'http://dev.dayaedu.com' // 开发环境
+// let target = 'https://test.dayaedu.com' //测试环境
 // let target = 'http://192.168.3.134' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {