소스 검색

7-4提交

zhaoxiaohai 3 년 전
부모
커밋
dc1d15bf8c

+ 117 - 76
src/HManagement/accountManage/modules/list.vue

@@ -1,25 +1,63 @@
 <template>
   <div class="container normal-panel">
     <!-- 表格搜索 -->
-    <div class="flex-align-center search-panel" style="margin-bottom:16px">
+    <div class="flex-align-center search-panel" style="margin-bottom: 16px">
       <div class="flex-align-center">
         <p>搜索:</p>
-        <el-input size="small" placeholder="请输入查询内容" @blur="listData('search')" @clear="listData('search')" v-model="param.content.where.condition" prefix-icon="el-icon-search" clearable></el-input>
+        <el-input
+          size="small"
+          placeholder="请输入查询内容"
+          @blur="listData('search')"
+          @clear="listData('search')"
+          v-model="param.content.where.condition"
+          prefix-icon="el-icon-search"
+          clearable
+        ></el-input>
       </div>
-      <div class="flex-align-center" style="margin-left:30px">
+      <div class="flex-align-center" style="margin-left: 30px">
         <p>状态:</p>
-        <el-select style="width:120px;" size="small" v-model="status" placeholder="请选择" @change="listData('search')">
-          <el-option v-for="item in select" :label="item.remarks" :value="item.value" :key="item.index"></el-option>
+        <el-select
+          style="width: 120px"
+          size="small"
+          v-model="status"
+          placeholder="请选择"
+          @change="listData('search')"
+        >
+          <el-option
+            v-for="item in select"
+            :label="item.remarks"
+            :value="item.value"
+            :key="item.index"
+          ></el-option>
         </el-select>
       </div>
     </div>
     <!-- 表格主题 -->
-    <tableLayout :layout="tablecols" :data="list" :opwidth="200" :custom="true" :height="tableHieght">
+    <tableLayout
+      :layout="tablecols"
+      :data="list"
+      :opwidth="200"
+      :custom="true"
+      :height="tableHieght"
+    >
       <template v-slot:customcol="scope">
         <p v-if="scope.column.columnname === 'status'">
-          <span :style="scope.column.data.status === 'ACTIVE'?'color:#52C41A':'color:#FF3B30'">{{scope.column.data.status === 'ACTIVE'?'启用':scope.column.data.status === 'INACTIVE'?'停用':'其他'}}</span>
+          <span
+            :style="
+              scope.column.data.status === 'ACTIVE'
+                ? 'color:#52C41A'
+                : 'color:#FF3B30'
+            "
+            >{{
+              scope.column.data.status === "ACTIVE"
+                ? "启用"
+                : scope.column.data.status === "INACTIVE"
+                ? "停用"
+                : "其他"
+            }}</span
+          >
         </p>
-        <p v-else>{{scope.column.data[scope.column.columnname]}}</p>
+        <p v-else>{{ scope.column.data[scope.column.columnname] }}</p>
       </template>
       <template v-slot:opreation="scope">
         <slot name="detail" :data="scope.data"></slot>
@@ -29,7 +67,7 @@
         <slot name="del" :data="scope.data"></slot>
       </template>
     </tableLayout>
-    <div style="margin-top:16px;text-align:right">
+    <div style="margin-top: 16px; text-align: right">
       <el-pagination
         background
         small
@@ -38,105 +76,108 @@
         :current-page="currentPage"
         :page-size="param.content.pageSize"
         layout="total, prev, pager, next, jumper"
-        :total="total">
+        :total="total"
+      >
       </el-pagination>
     </div>
   </div>
 </template>
 
 <script>
-import tableLayout from '../../../components/dynamic-table'
+import tableLayout from "../../../components/dynamic-table";
 export default {
-  components:{
-    tableLayout
+  components: {
+    tableLayout,
   },
-  data () {
+  data() {
     return {
-      param:{
-        "classname": "webmanage.users.users",
-        "method": "query_userList",
-        "content": {
-          "pageNumber": 1,
-          "pageSize": 20,
-          "where":{
-            "condition":"",
-            "status":''
-          }
-        }
+      param: {
+        classname: "webmanage.users.users",
+        method: "query_userList",
+        content: {
+          pageNumber: 1,
+          pageSize: 20,
+          where: {
+            condition: "",
+            status: "",
+          },
+        },
       },
-      status:'ALL',
-      select:[],
-      tablecols:[],
-      list:[],
-      total:0,
-      currentPage:0,
-      value:''
-    }
+      status: "ALL",
+      select: [],
+      tablecols: [],
+      list: [],
+      total: 0,
+      currentPage: 0,
+      value: "",
+    };
   },
-  methods:{
-    listData (issearch) {
-      issearch === 'search'?this.param.content.pageNumber = 1:''
+  methods: {
+    listData(issearch) {
+      issearch === "search" ? (this.param.content.pageNumber = 1) : "";
 
-      this.param.content.where.status = this.status === 'ALL'? '':this.status
+      this.param.content.where.status =
+        this.status === "ALL" ? "" : this.status;
 
-      this.$api.requested(this.param).then(res=>{
-        this.list = res.data
-        this.total = res.total
+      this.$api.requested(this.param).then((res) => {
+        this.list = res.data;
+        this.total = res.total;
         console.log(this.total);
-        
-        this.currentPage = res.pageNumber
-      })
+
+        this.currentPage = res.pageNumber;
+      });
     },
-    async userstatus () {
+    async userstatus() {
       let param = {
-        "classname": "sysmanage.develop.optiontype.optiontype",
-        "method": "optiontypeselect",
-        "content": {
-            "pageNumber": 1,
-            "pageSize": 20,
-            "typename": "userstatus",
-            "parameter": {
-            }
-        }
-      }
-      const res = await this.$api.requested(param)
-      this.select = res.data
+        classname: "sysmanage.develop.optiontype.optiontype",
+        method: "optiontypeselect",
+        content: {
+          pageNumber: 1,
+          pageSize: 20,
+          typename: "userstatus",
+          parameter: {},
+        },
+      };
+      const res = await this.$api.requested(param);
+      this.select = res.data;
     },
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);
-      this.param.content.pageSize = val
-      this.listData()
+      this.param.content.pageSize = val;
+      this.listData();
     },
     handleCurrentChange(val) {
       // console.log(`当前页: ${val}`);
-      this.param.content.pageNumber = val
-      this.listData()
+      this.param.content.pageNumber = val;
+      this.listData();
+    },
+    handleSelectionChange(selecttion) {
+      this.$emit("handleSelectionChange", selecttion);
     },
-    handleSelectionChange (selecttion) {
-      this.$emit('handleSelectionChange',selecttion)
-    }
   },
-  mounted () {
-    this.listData()
-    this.userstatus()
-    this.tablecols = this.tool.tabelCol(this.$route.name).accountTable.tablecols
-  }
-}
-
+  mounted() {
+    this.listData();
+    this.userstatus();
+    this.tablecols = this.tool.tabelCol(
+      this.$route.name
+    ).accountTable.tablecols;
+  },
+};
 </script>
 <style>
-.el-input-group__append, .el-input-group__prepend{
-  background-color: #4F7BFD ;
+.el-input-group__append,
+.el-input-group__prepend {
+  background-color: #4f7bfd;
   color: #fff;
-  border: 1px solid #4F7BFD;
+  border: 1px solid #4f7bfd;
   cursor: pointer;
 }
 </style>
 <style scoped>
-.search-panel p{
+.search-panel p {
   flex: 1 0 auto;
-  width:40px;
-  font-size:14px
+  width: 40px;
+  font-size: 14px;
 }
 </style>
 

+ 45 - 18
src/HManagement/archives_sc/index.vue

@@ -3,16 +3,45 @@
     <!-- 课程列表 -->
     <list ref="list">
       <!-- 新增课程 -->
-      <el-button slot="add" icon="el-icon-plus" type="primary" size="small" @click="$router.push({path:'/archives_scadd'})">新 增</el-button>
+      <el-button
+        slot="add"
+        icon="el-icon-plus"
+        type="primary"
+        size="small"
+        @click="$router.push({ path: '/archives_scadd' })"
+        >新 增</el-button
+      >
       <el-button slot="detail" type="text" size="small">详 情</el-button>
       <template v-slot:edit="scope">
-        <el-button slot="edit" type="text" size="small" class="inline-16" @click="$router.push({path:'/archives_scedit',query:{id:scope.data.data.sat_coursewareid}})">编 辑</el-button>
+        <el-button
+          slot="edit"
+          type="text"
+          size="small"
+          class="inline-16"
+          @click="
+            $router.push({
+              path: '/archives_scedit',
+              query: { id: scope.data.data.sat_coursewareid },
+            })
+          "
+          >编 辑</el-button
+        >
       </template>
       <template v-slot:release="scope">
         <release :data="scope.data.data" @onSuccess="onSuccess"></release>
       </template>
       <template v-slot:data_statistics="scope">
-        <el-button type="text" size="small" @click="$router.push({path:'/archives_sc_analysis',query:{id:scope.data.data.sat_coursewareid}})">数据分析</el-button>
+        <el-button
+          type="text"
+          size="small"
+          @click="
+            $router.push({
+              path: '/archives_sc_analysis',
+              query: { id: scope.data.data.sat_coursewareid },
+            })
+          "
+          >数据分析</el-button
+        >
       </template>
       <template v-slot:del="scope">
         <on-del :data="scope.data.data" @onSuccess="onSuccess"></on-del>
@@ -22,26 +51,24 @@
 </template>
 
 <script>
-import list from './list/list.vue'
-import release from './list/modules/release.vue'
-import onDel from './list/modules/delete.vue'
+import list from "./list/list.vue";
+import release from "./list/modules/release.vue";
+import onDel from "./list/modules/delete.vue";
 
 export default {
-  components:{
+  components: {
     list,
     release,
-    onDel
+    onDel,
   },
-  methods:{
-    onSuccess () {
-      this.$refs.list.listData()
-    }
+  methods: {
+    onSuccess() {
+      this.$refs.list.listData();
+    },
   },
-  created () {
-    
-  }
-}
-
+  created() {},
+};
 </script>
-<style>
+
+<style scoped>
 </style>

BIN
yos.rar


BIN
yos.zip


+ 0 - 1
yos/css/250.9d5c997c.css

@@ -1 +0,0 @@
-.title[data-v-0e4e8f4b]{height:20px;line-height:20px;font-size:14px;text-indent:7px;font-weight:700;color:#333;margin-bottom:20px;border-left:4px solid #3874f6}.mb-40[data-v-0e4e8f4b]{margin-bottom:40px}

+ 0 - 1
yos/css/380.9d5c997c.css

@@ -1 +0,0 @@
-.title[data-v-0e4e8f4b]{height:20px;line-height:20px;font-size:14px;text-indent:7px;font-weight:700;color:#333;margin-bottom:20px;border-left:4px solid #3874f6}.mb-40[data-v-0e4e8f4b]{margin-bottom:40px}

+ 0 - 1
yos/css/628.6ba9c916.css

@@ -1 +0,0 @@
-.el-input-group__append,.el-input-group__prepend{background-color:#4f7bfd;color:#fff;border:1px solid #4f7bfd;cursor:pointer}.search-panel p[data-v-761553c6]{flex:1 0 auto;width:40px;font-size:14px}.dialog-footer[data-v-2aabbbe0],.dialog-footer[data-v-48c8820a]{margin-top:32px;text-align:center}.role_panel{padding:10px;border:1px solid #ebe3e3;font-size:.875rem;cursor:pointer;border-radius:4px;color:#666;transition:.2s linear}.on[data-v-0096b51c]{border:1px solid #4f7bfd;background:#4f7bfd;color:#fff}.title[data-v-0e4e8f4b]{height:20px;line-height:20px;font-size:14px;text-indent:7px;font-weight:700;color:#333;margin-bottom:20px;border-left:4px solid #3874f6}.mb-40[data-v-0e4e8f4b]{margin-bottom:40px}.borderRight[data-v-4cff6729]{border-right:1px solid #ccc}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/css/about.4cda0a1b.css


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/css/app.6e80de32.css


BIN
yos/favicon.ico


BIN
yos/fonts/element-icons.f1a45d74.ttf


BIN
yos/fonts/element-icons.ff18efd1.woff


BIN
yos/img/bg.e258adac.png


+ 0 - 1
yos/img/more.58cd973b.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><defs><style>.a{fill:none;}.b{fill:#fff;}</style></defs><g transform="translate(-262.326 -384.891)"><rect class="a" width="22" height="22" transform="translate(262.326 384.891)"/><g transform="translate(63.177 -349.635)"><rect class="b" width="22" height="2" rx="1" transform="translate(199.149 735.525)"/><rect class="b" width="22" height="2" rx="1" transform="translate(199.149 744.166)"/><rect class="b" width="22" height="2" rx="1" transform="translate(199.149 752.806)"/></g></g></svg>

+ 0 - 1
yos/img/work_station.550df9c4.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.a{fill:none;}.b{fill:#fff;}</style></defs><g transform="translate(80 -466)"><rect class="a" width="30" height="30" transform="translate(-80 466)"/><path class="b" d="M86.087,724.24l-4.151,4.15a2.607,2.607,0,0,1-3.688,0L74.1,724.24a2.608,2.608,0,0,1,0-3.689l4.151-4.151a2.607,2.607,0,0,1,3.688,0l4.151,4.151a2.608,2.608,0,0,1,0,3.689Zm-16.757,17.4H63.46a2.608,2.608,0,0,1-2.609-2.609v-5.87a2.609,2.609,0,0,1,2.609-2.609h5.87a2.609,2.609,0,0,1,2.609,2.609v5.87a2.608,2.608,0,0,1-2.609,2.609Zm0-13.7H63.46a2.609,2.609,0,0,1-2.609-2.609v-5.87a2.608,2.608,0,0,1,2.609-2.609h5.87a2.609,2.609,0,0,1,2.609,2.609v5.87a2.609,2.609,0,0,1-2.609,2.609Zm7.827,2.609h5.87a2.609,2.609,0,0,1,2.609,2.609v5.87a2.608,2.608,0,0,1-2.609,2.609h-5.87a2.608,2.608,0,0,1-2.609-2.609v-5.87a2.609,2.609,0,0,1,2.609-2.609Zm0,0" transform="translate(-138.851 -247.636)"/></g></svg>

+ 0 - 1
yos/index.html

@@ -1 +0,0 @@
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>yos_manage</title><script defer="defer" type="module" src="js/chunk-vendors.c9090366.js"></script><script defer="defer" type="module" src="js/app.355d6dd4.js"></script><link href="css/app.6e80de32.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.7ae3c426.js" nomodule></script><script defer="defer" src="js/app-legacy.aefdb83c.js" nomodule></script></head><body><noscript><strong>We're sorry but yos_manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/250.748d9d27.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/380-legacy.9e5898f1.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/628-legacy.6fd929cd.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/628.8b846ef5.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/about-legacy.b0124e2e.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/about.8ef2253b.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/app-legacy.aefdb83c.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/app.355d6dd4.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/chunk-vendors-legacy.7ae3c426.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
yos/js/chunk-vendors.c9090366.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.