فهرست منبع

1.修改字典操作顺序
2.修改编译报错信息

zangkai 5 سال پیش
والد
کامیت
9d6179625f

+ 1 - 1
frontend_web/src/views/course/index.vue

@@ -300,7 +300,7 @@ export default {
       this.search.page.current = val
       this.initDatas()
     },
-    // 详情 
+    // 详情
     handleDetail (course) {
       this.$router.push({ path: '/course/detail', query: { CourseId: course.Id, Year: course.Year, Term: course.Term, Class: course.ClassId } })
     },

+ 0 - 3
frontend_web/src/views/demo/page1/index.vue

@@ -360,7 +360,6 @@ export default {
     },
     // class
     initDatas_class () {
-      let _this = this
       let params = {
         _currentPage: this.currpage,
         _size: this.size
@@ -373,8 +372,6 @@ export default {
         })
     },
     initSelectYear (year) {
-      var myDate = new Date()
-      var year = myDate.getFullYear()// 获取当前年
       for (let i = 0; i < 5; i++) {
         this.years.push({ value: (year - i), label: (year - i) + '年' })
       }

+ 4 - 4
frontend_web/src/views/duty/detail/index.vue

@@ -156,6 +156,9 @@
 </template>
 <script>
 // 总列数
+import { mapState, mapActions } from 'vuex'
+import DutyApi from '@/api/duty'
+import itemDetailApi from '@/api/sysadmin/itemdetail'
 const columnNum = 9
 // 固定列数
 const fixRowHeadNum = 2
@@ -171,9 +174,6 @@ const columnProperty = [
   'Saturday',
   'Sunday'
 ]
-import { mapState, mapActions } from 'vuex'
-import DutyApi from '@/api/duty'
-import itemDetailApi from '@/api/sysadmin/itemdetail'
 export default {
   name: 'dutyEdit',
   data () {
@@ -279,7 +279,7 @@ export default {
       if (this.dutyDetail.Id) {
         DutyApi.Saves({ DataList: this.list, DutyId: this.dutyDetail.Id })
           .then(res => {
-            console.log(res, 11111111111)
+            // console.log(res, 11111111111)
             // if (res.code == 0) {
             //   _this.$message({
             //     type: 'success',

+ 12 - 11
frontend_web/src/views/sysadmin/item/components/command.vue

@@ -5,16 +5,17 @@
                icon="el-icon-edit"
                circle
                @click="handleEdit"></el-button>
-    <el-button size="mini"
-               type="danger"
-               icon="el-icon-delete"
-               circle
-               @click="handleDelete()"></el-button>
     <el-button size="mini"
                type="info"
                icon="el-icon-notebook-2"
                circle
                @click="handleDetail()"></el-button>
+    <el-button size="mini"
+               type="danger"
+               icon="el-icon-delete"
+               circle
+               @click="handleDelete()"></el-button>
+
   </div>
 </template>
 
@@ -32,6 +33,12 @@ export default Vue.extend({
       let id = this.params.data['Id']
       this.params.context.page.handleEdit(id)
     },
+    handleDetail () {
+      let Id = parseInt(this.params.data['Id'])
+      let name = this.params.data['FullName']
+      let ItemCode = this.params.data['Code']
+      this.$router.push({ path: '/sysadmin/itemdetail', query: { Id: Id, name: name, ItemCode: ItemCode } })
+    },
     handleDelete () {
       let id = this.params.data['Id']
       let _this = this
@@ -42,12 +49,6 @@ export default Vue.extend({
       }).then(() => {
         this.params.context.page.handleDelete(id)
       }).catch(() => { })
-    },
-    handleDetail () {
-      let Id = parseInt(this.params.data['Id'])
-      let name = this.params.data['FullName']
-      let ItemCode = this.params.data['Code']
-      this.$router.push({ path: '/sysadmin/itemdetail', query: { Id: Id, name: name, ItemCode: ItemCode } })
     }
   }
 })