|
@@ -111,7 +111,7 @@
|
|
|
{{ $methodsTools.onlyForma(timeArrays[1]) }}
|
|
|
</div>
|
|
|
<i
|
|
|
- style="margin-left: 10px; font-size: 20px; color: #E6A23C"
|
|
|
+ style="margin-left: 10px; font-size: 20px; color: #e6a23c"
|
|
|
v-show="timeArrays.length"
|
|
|
class="el-icon-warning"
|
|
|
></i>
|
|
@@ -346,7 +346,7 @@ import searchBoxNew from "@/components/searchBoxNew";
|
|
|
import pagination from "@/components/pagination";
|
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
- name:"AddClass",
|
|
|
+ name: "AddClass",
|
|
|
components: { searchBoxNew, pagination },
|
|
|
data() {
|
|
|
return {
|
|
@@ -428,7 +428,7 @@ export default {
|
|
|
{
|
|
|
label: "商品编码",
|
|
|
prop: "code",
|
|
|
- width:"130px"
|
|
|
+ width: "130px",
|
|
|
},
|
|
|
{
|
|
|
label: "年份",
|
|
@@ -437,7 +437,7 @@ export default {
|
|
|
{
|
|
|
label: "商品名称",
|
|
|
prop: "goodsName",
|
|
|
- width:"280px"
|
|
|
+ width: "280px",
|
|
|
},
|
|
|
{
|
|
|
label: "业务层级",
|
|
@@ -451,18 +451,18 @@ export default {
|
|
|
label: "商品类型",
|
|
|
prop: "goodsType",
|
|
|
scope: "goodsType",
|
|
|
- width:"100px"
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
{
|
|
|
label: "有效状态",
|
|
|
prop: "status",
|
|
|
scope: "status",
|
|
|
- width:"100px"
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
{
|
|
|
label: "商品标价",
|
|
|
prop: "standPrice",
|
|
|
- width:"100px"
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
],
|
|
|
templateRadio: "",
|
|
@@ -532,9 +532,11 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- this.$api.obtainUserList({ status: 1 }).then((res) => {
|
|
|
- this.teacherList = res.rows;
|
|
|
- });
|
|
|
+ this.$api
|
|
|
+ .obtainUserList({ status: 1, roleName: "班主任" })
|
|
|
+ .then((res) => {
|
|
|
+ this.teacherList = res.rows;
|
|
|
+ });
|
|
|
},
|
|
|
//动态获取商品类型
|
|
|
getGoodsTypes(int) {
|
|
@@ -653,9 +655,9 @@ export default {
|
|
|
data.classStartTime = this.listData.timeList[0] / 1000;
|
|
|
data.classEndTime = this.listData.timeList[1] / 1000;
|
|
|
}
|
|
|
- if(!data.timeList){
|
|
|
- data.classStartTime = null
|
|
|
- data.classEndTime = null
|
|
|
+ if (!data.timeList) {
|
|
|
+ data.classStartTime = null;
|
|
|
+ data.classEndTime = null;
|
|
|
}
|
|
|
if (data.learningStatus === 3) {
|
|
|
data.learningTimeStart = this.listData.learningTimeStart / 1000;
|
|
@@ -663,7 +665,7 @@ export default {
|
|
|
this.$api.appGradegrade(data).then((res) => {
|
|
|
this.$message.success("添加成功");
|
|
|
setTimeout(() => {
|
|
|
- this.$store.dispatch("tagsView/exitView", this.$route).then((res) => {
|
|
|
+ this.$store.dispatch("tagsView/exitView", this.$route).then((res) => {
|
|
|
this.$router.push({
|
|
|
path: "classList",
|
|
|
});
|