|
@@ -130,10 +130,7 @@
|
|
|
class="numInputs"
|
|
class="numInputs"
|
|
|
type="age"
|
|
type="age"
|
|
|
v-model.number="listData.classHours"
|
|
v-model.number="listData.classHours"
|
|
|
- ><template slot="append" v-if="listData.goodsType !== 2"
|
|
|
|
|
- >节</template
|
|
|
|
|
- ></el-input
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<!-- <el-form-item
|
|
<!-- <el-form-item
|
|
|
label="科目/类目"
|
|
label="科目/类目"
|
|
@@ -231,11 +228,12 @@
|
|
|
<el-form-item label="商品有效期" prop="timeArrays">
|
|
<el-form-item label="商品有效期" prop="timeArrays">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="listData.timeArrays"
|
|
v-model="listData.timeArrays"
|
|
|
- type="daterange"
|
|
|
|
|
|
|
+ type="datetimerange"
|
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
|
range-separator="至"
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
|
|
|
+ @change="changeDataTime(listData.timeArrays)"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -492,13 +490,14 @@
|
|
|
<el-form-item label="学习有效期" required style="margin-top: 12px">
|
|
<el-form-item label="学习有效期" required style="margin-top: 12px">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="listData.studyTimeArrays"
|
|
v-model="listData.studyTimeArrays"
|
|
|
- type="daterange"
|
|
|
|
|
|
|
+ type="datetimerange"
|
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
|
range-separator="至"
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
|
|
|
+ @change="changeDataTimeStudy(listData.studyTimeArrays)"
|
|
|
>
|
|
>
|
|
|
- </el-date-picker> </el-form-item
|
|
|
|
|
|
|
+ </el-date-picker></el-form-item
|
|
|
></el-form>
|
|
></el-form>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="listData.goodsType === 3">
|
|
<div v-if="listData.goodsType === 3">
|
|
@@ -539,11 +538,12 @@
|
|
|
<el-form-item label="使用有效期" prop="openStudentTime">
|
|
<el-form-item label="使用有效期" prop="openStudentTime">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="listData.openStudentTime"
|
|
v-model="listData.openStudentTime"
|
|
|
- type="daterange"
|
|
|
|
|
|
|
+ type="datetimerange"
|
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
|
range-separator="至"
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
|
|
|
+ @change="changeDataTimeStudent(listData.openStudentTime)"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -588,11 +588,12 @@
|
|
|
<el-form-item label="使用有效期" prop="openStudentTime">
|
|
<el-form-item label="使用有效期" prop="openStudentTime">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="listData.openStudentTime"
|
|
v-model="listData.openStudentTime"
|
|
|
- type="daterange"
|
|
|
|
|
|
|
+ type="datetimerange"
|
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
|
range-separator="至"
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
|
|
|
+ @change="changeDataTimeStudent(listData.openStudentTime)"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -601,43 +602,43 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="listData.goodsType === 1 || listData.goodsType === 2">
|
|
<div v-if="listData.goodsType === 1 || listData.goodsType === 2">
|
|
|
- <h5
|
|
|
|
|
- class="fengs"
|
|
|
|
|
- v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
|
|
- >
|
|
|
|
|
- 颁发证书
|
|
|
|
|
- </h5>
|
|
|
|
|
- <div
|
|
|
|
|
- class="dis_fs"
|
|
|
|
|
- v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
|
|
- >
|
|
|
|
|
- <el-popover placement="bottom" trigger="click">
|
|
|
|
|
- <el-checkbox-group v-model="listData.certificateIds">
|
|
|
|
|
- <el-checkbox
|
|
|
|
|
- v-for="(item, index) in certificateOption"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- :label="item.id"
|
|
|
|
|
- >{{ item.certificateName }}</el-checkbox
|
|
|
|
|
|
|
+ <h5
|
|
|
|
|
+ class="fengs"
|
|
|
|
|
+ v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
|
|
+ >
|
|
|
|
|
+ 颁发证书
|
|
|
|
|
+ </h5>
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="dis_fs"
|
|
|
|
|
+ v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-popover placement="bottom" trigger="click">
|
|
|
|
|
+ <el-checkbox-group v-model="listData.certificateIds">
|
|
|
|
|
+ <el-checkbox
|
|
|
|
|
+ v-for="(item, index) in certificateOption"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :label="item.id"
|
|
|
|
|
+ >{{ item.certificateName }}</el-checkbox
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-checkbox-group>
|
|
|
|
|
+ <el-button slot="reference" size="small">选择证书</el-button>
|
|
|
|
|
+ </el-popover>
|
|
|
|
|
+ <ul>
|
|
|
|
|
+ <li
|
|
|
|
|
+ class="boxlefs"
|
|
|
|
|
+ v-for="item in listData.certificateIds"
|
|
|
|
|
+ :key="item"
|
|
|
>
|
|
>
|
|
|
- </el-checkbox-group>
|
|
|
|
|
- <el-button slot="reference" size="small">选择证书</el-button>
|
|
|
|
|
- </el-popover>
|
|
|
|
|
- <ul>
|
|
|
|
|
- <li
|
|
|
|
|
- class="boxlefs"
|
|
|
|
|
- v-for="item in listData.certificateIds"
|
|
|
|
|
- :key="item"
|
|
|
|
|
- >
|
|
|
|
|
- {{ checkListName(item) }}
|
|
|
|
|
- <i
|
|
|
|
|
- class="el-icon-error"
|
|
|
|
|
- style="color: #f56c6c"
|
|
|
|
|
- @click="clearBtns(item)"
|
|
|
|
|
- ></i>
|
|
|
|
|
- </li>
|
|
|
|
|
- <div style="clear: both"></div>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ {{ checkListName(item) }}
|
|
|
|
|
+ <i
|
|
|
|
|
+ class="el-icon-error"
|
|
|
|
|
+ style="color: #f56c6c"
|
|
|
|
|
+ @click="clearBtns(item)"
|
|
|
|
|
+ ></i>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <div style="clear: both"></div>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<h5>商品包装介绍</h5>
|
|
<h5>商品包装介绍</h5>
|
|
@@ -696,10 +697,18 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div style="text-align: center; margin-top: 20px">
|
|
<div style="text-align: center; margin-top: 20px">
|
|
|
<el-button @click="backPage" size="mini">取消</el-button>
|
|
<el-button @click="backPage" size="mini">取消</el-button>
|
|
|
- <el-button type="primary" @click="submit('listData', 1)" size="mini" :loading="disabledBtn"
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ @click="submit('listData', 1)"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :loading="disabledBtn"
|
|
|
>保存</el-button
|
|
>保存</el-button
|
|
|
>
|
|
>
|
|
|
- <el-button type="primary" @click="submit('listData', 2)" size="mini" :loading="disabledBtn"
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ @click="submit('listData', 2)"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :loading="disabledBtn"
|
|
|
>上架</el-button
|
|
>上架</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
@@ -1133,7 +1142,11 @@
|
|
|
<el-radio-group
|
|
<el-radio-group
|
|
|
v-model="photoVideoList.photographConfig.photograph"
|
|
v-model="photoVideoList.photographConfig.photograph"
|
|
|
>
|
|
>
|
|
|
- <el-radio :label="1" @change="photoVideoList.photographConfig.intervalTime.push(0)">是</el-radio>
|
|
|
|
|
|
|
+ <el-radio
|
|
|
|
|
+ :label="1"
|
|
|
|
|
+ @change="photoVideoList.photographConfig.intervalTime = [0]"
|
|
|
|
|
+ >是</el-radio
|
|
|
|
|
+ >
|
|
|
<el-radio
|
|
<el-radio
|
|
|
:label="0"
|
|
:label="0"
|
|
|
@change="photoVideoList.photographConfig.intervalTime = []"
|
|
@change="photoVideoList.photographConfig.intervalTime = []"
|
|
@@ -1148,7 +1161,7 @@
|
|
|
>添加</el-button
|
|
>添加</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
- <ul>
|
|
|
|
|
|
|
+ <ul v-if="photoVideoList.photographConfig.photograph === 1">
|
|
|
<li
|
|
<li
|
|
|
v-for="(items, indexs) in photoVideoList.photographConfig
|
|
v-for="(items, indexs) in photoVideoList.photographConfig
|
|
|
.intervalTime"
|
|
.intervalTime"
|
|
@@ -1173,14 +1186,20 @@
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="width: 1px; background-color: #000; margin: 0px 14px"></div>
|
|
|
|
|
|
|
+ <!-- <div style="width: 1px; background-color: #000; margin: 0px 14px"></div>
|
|
|
<div>
|
|
<div>
|
|
|
<h4>课程章节-关联题卷-拍照</h4>
|
|
<h4>课程章节-关联题卷-拍照</h4>
|
|
|
<div>
|
|
<div>
|
|
|
<el-radio-group
|
|
<el-radio-group
|
|
|
v-model="photoVideoList.goodsPhotographExamConfig.photograph"
|
|
v-model="photoVideoList.goodsPhotographExamConfig.photograph"
|
|
|
>
|
|
>
|
|
|
- <el-radio :label="1" @change="photoVideoList.goodsPhotographExamConfig.intervalTime.push(0)">是</el-radio>
|
|
|
|
|
|
|
+ <el-radio
|
|
|
|
|
+ :label="1"
|
|
|
|
|
+ @change="
|
|
|
|
|
+ photoVideoList.goodsPhotographExamConfig.intervalTime = [0]
|
|
|
|
|
+ "
|
|
|
|
|
+ >是</el-radio
|
|
|
|
|
+ >
|
|
|
<el-radio
|
|
<el-radio
|
|
|
:label="0"
|
|
:label="0"
|
|
|
@change="
|
|
@change="
|
|
@@ -1199,7 +1218,7 @@
|
|
|
>添加</el-button
|
|
>添加</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
- <ul>
|
|
|
|
|
|
|
+ <ul v-if="photoVideoList.goodsPhotographExamConfig.photograph === 1">
|
|
|
<li
|
|
<li
|
|
|
v-for="(items, indexs) in photoVideoList.goodsPhotographExamConfig
|
|
v-for="(items, indexs) in photoVideoList.goodsPhotographExamConfig
|
|
|
.intervalTime"
|
|
.intervalTime"
|
|
@@ -1228,7 +1247,7 @@
|
|
|
>
|
|
>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogPhoto = false">取消</el-button>
|
|
<el-button @click="dialogPhoto = false">取消</el-button>
|
|
@@ -1337,7 +1356,7 @@ export default {
|
|
|
components: { searchBoxNew, Editor, pagination, poppleSet, poppleSetTk },
|
|
components: { searchBoxNew, Editor, pagination, poppleSet, poppleSetTk },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- disabledBtn:false,
|
|
|
|
|
|
|
+ disabledBtn: false,
|
|
|
photoVideoList: {
|
|
photoVideoList: {
|
|
|
playConfig: {
|
|
playConfig: {
|
|
|
autoPlay: 0,
|
|
autoPlay: 0,
|
|
@@ -1659,7 +1678,7 @@ export default {
|
|
|
examType: 1,
|
|
examType: 1,
|
|
|
educationTypeId: "",
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
businessId: "",
|
|
|
- names:""
|
|
|
|
|
|
|
+ names: "",
|
|
|
},
|
|
},
|
|
|
formList3: [
|
|
formList3: [
|
|
|
// {
|
|
// {
|
|
@@ -1673,18 +1692,18 @@ export default {
|
|
|
// scope: "businessLevel",
|
|
// scope: "businessLevel",
|
|
|
// edu: "educationTypeId",
|
|
// edu: "educationTypeId",
|
|
|
// },
|
|
// },
|
|
|
- {
|
|
|
|
|
- prop: "schoolId",
|
|
|
|
|
- placeholder: "院校",
|
|
|
|
|
- scope: "schoolList",
|
|
|
|
|
- edu: "educationTypeId",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: "majorId",
|
|
|
|
|
- placeholder: "专业",
|
|
|
|
|
- scope: "Professional",
|
|
|
|
|
- edu: "educationTypeId",
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: "schoolId",
|
|
|
|
|
+ // placeholder: "院校",
|
|
|
|
|
+ // scope: "schoolList",
|
|
|
|
|
+ // edu: "educationTypeId",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: "majorId",
|
|
|
|
|
+ // placeholder: "专业",
|
|
|
|
|
+ // scope: "Professional",
|
|
|
|
|
+ // edu: "educationTypeId",
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
prop: "examType",
|
|
prop: "examType",
|
|
|
placeholder: "题卷类型",
|
|
placeholder: "题卷类型",
|
|
@@ -1746,7 +1765,7 @@ export default {
|
|
|
formDatas: {
|
|
formDatas: {
|
|
|
status: 1,
|
|
status: 1,
|
|
|
pageSize: 10, //每页多少条数据
|
|
pageSize: 10, //每页多少条数据
|
|
|
- currentPage: 1, //当前页码
|
|
|
|
|
|
|
+ pageNum: 1, //当前页码
|
|
|
educationTypeId: "",
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
businessId: "",
|
|
|
publishStatus: 1,
|
|
publishStatus: 1,
|
|
@@ -1874,6 +1893,7 @@ export default {
|
|
|
],
|
|
],
|
|
|
examConfigList: [],
|
|
examConfigList: [],
|
|
|
// 题库商品表格数据------------------------------------------------------------------------end
|
|
// 题库商品表格数据------------------------------------------------------------------------end
|
|
|
|
|
+ copySetInfo: [], //备份
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -1895,6 +1915,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
listConfig().then((res) => {
|
|
listConfig().then((res) => {
|
|
|
|
|
+ this.copySetInfo = JSON.parse(JSON.stringify(res.rows));
|
|
|
for (let i = 0; i < res.rows.length; i++) {
|
|
for (let i = 0; i < res.rows.length; i++) {
|
|
|
if (res.rows[i].configKey == "sys.play.autoPlay") {
|
|
if (res.rows[i].configKey == "sys.play.autoPlay") {
|
|
|
//自动播放
|
|
//自动播放
|
|
@@ -1948,6 +1969,24 @@ export default {
|
|
|
// this.getJyData();
|
|
// this.getJyData();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changeDataTime(arr) {
|
|
|
|
|
+ if (arr && arr[0] === arr[1]) {
|
|
|
|
|
+ this.$message.warning("开始时间与结束时间不允许相同");
|
|
|
|
|
+ this.listData.timeArrays = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ changeDataTimeStudy(arr) {
|
|
|
|
|
+ if (arr && arr[0] === arr[1]) {
|
|
|
|
|
+ this.$message.warning("开始时间与结束时间不允许相同");
|
|
|
|
|
+ this.listData.studyTimeArrays = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ changeDataTimeStudent(arr) {
|
|
|
|
|
+ if (arr && arr[0] === arr[1]) {
|
|
|
|
|
+ this.$message.warning("开始时间与结束时间不允许相同");
|
|
|
|
|
+ this.listData.openStudentTime = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
getGoodsId(index, row) {
|
|
getGoodsId(index, row) {
|
|
|
this.goodsId = row.goodsId;
|
|
this.goodsId = row.goodsId;
|
|
|
this.goodsNames = row.goodsName;
|
|
this.goodsNames = row.goodsName;
|
|
@@ -2011,6 +2050,76 @@ export default {
|
|
|
},
|
|
},
|
|
|
//打开播放和拍照设置窗口
|
|
//打开播放和拍照设置窗口
|
|
|
openPZ() {
|
|
openPZ() {
|
|
|
|
|
+ if (this.listData.playConfig) {
|
|
|
|
|
+ this.photoVideoList.playConfig = JSON.parse(
|
|
|
|
|
+ JSON.stringify(this.listData.playConfig)
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for (let i = 0; i < this.copySetInfo.length; i++) {
|
|
|
|
|
+ if (this.copySetInfo[i].configKey == "sys.play.autoPlay") {
|
|
|
|
|
+ //自动播放
|
|
|
|
|
+ this.photoVideoList.playConfig.autoPlay = Number(
|
|
|
|
|
+ this.copySetInfo[i].configValue
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.copySetInfo[i].configKey == "sys.play.drag") {
|
|
|
|
|
+ //"进度条拖拉"
|
|
|
|
|
+ this.photoVideoList.playConfig.drag = Number(
|
|
|
|
|
+ this.copySetInfo[i].configValue
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.copySetInfo[i].configKey == "sys.play.speed") {
|
|
|
|
|
+ //"倍速播放"
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.photoVideoList.playConfig,
|
|
|
|
|
+ "speed",
|
|
|
|
|
+ Number(this.copySetInfo[i].configValue)
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.listData.photographConfig) {
|
|
|
|
|
+ this.photoVideoList.photographConfig = JSON.parse(
|
|
|
|
|
+ JSON.stringify(this.listData.photographConfig)
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for (let i = 0; i < this.copySetInfo.length; i++) {
|
|
|
|
|
+ if (this.copySetInfo[i].configKey == "sys.course.photograph") {
|
|
|
|
|
+ //"课程拍照"
|
|
|
|
|
+ this.photoVideoList.photographConfig.photograph = Number(
|
|
|
|
|
+ this.copySetInfo[i].configValue
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.copySetInfo[i].configKey == "sys.course.intervalTime") {
|
|
|
|
|
+ //"间隔时间设置"
|
|
|
|
|
+ if (this.copySetInfo[i].configValue) {
|
|
|
|
|
+ this.photoVideoList.photographConfig.intervalTime =
|
|
|
|
|
+ this.copySetInfo[i].configValue.split(",").map(Number);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.listData.goodsPhotographExamConfig) {
|
|
|
|
|
+ this.photoVideoList.goodsPhotographExamConfig = JSON.parse(
|
|
|
|
|
+ JSON.stringify(this.listData.goodsPhotographExamConfig)
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for (let i = 0; i < this.copySetInfo.length; i++) {
|
|
|
|
|
+ if (this.copySetInfo[i].configKey == "sys.paper.photograph") {
|
|
|
|
|
+ //"章节试卷拍照"
|
|
|
|
|
+ this.photoVideoList.goodsPhotographExamConfig.photograph = Number(
|
|
|
|
|
+ this.copySetInfo[i].configValue
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.copySetInfo[i].configKey == "sys.paper.intervalNumber") {
|
|
|
|
|
+ //"间隔数量设置"
|
|
|
|
|
+ if (this.copySetInfo[i].configValue) {
|
|
|
|
|
+ this.photoVideoList.goodsPhotographExamConfig.intervalTime =
|
|
|
|
|
+ this.copySetInfo[i].configValue.split(",").map(Number);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
// if (this.listData.playConfig) {
|
|
// if (this.listData.playConfig) {
|
|
|
// this.photoVideoList.playConfig = JSON.parse(
|
|
// this.photoVideoList.playConfig = JSON.parse(
|
|
|
// JSON.stringify(this.listData.playConfig)
|
|
// JSON.stringify(this.listData.playConfig)
|
|
@@ -2374,7 +2483,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
rulesTableSumbit(int) {
|
|
rulesTableSumbit(int) {
|
|
|
- this.disabledBtn = true
|
|
|
|
|
|
|
+ this.disabledBtn = true;
|
|
|
var datas = JSON.parse(JSON.stringify(this.listData));
|
|
var datas = JSON.parse(JSON.stringify(this.listData));
|
|
|
if (int === 2) {
|
|
if (int === 2) {
|
|
|
datas.goodsStatus = 1;
|
|
datas.goodsStatus = 1;
|
|
@@ -2385,7 +2494,7 @@ export default {
|
|
|
if (datas.goodsType === 1 || datas.goodsType === 2) {
|
|
if (datas.goodsType === 1 || datas.goodsType === 2) {
|
|
|
if (!datas.studyTimeArrays.length) {
|
|
if (!datas.studyTimeArrays.length) {
|
|
|
this.$message.warning("请选择学习有效期");
|
|
this.$message.warning("请选择学习有效期");
|
|
|
- this.disabledBtn = false
|
|
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
return;
|
|
return;
|
|
|
} else {
|
|
} else {
|
|
|
datas.studyStartTime = this.$methodsTools.time10to13(
|
|
datas.studyStartTime = this.$methodsTools.time10to13(
|
|
@@ -2416,7 +2525,7 @@ export default {
|
|
|
if (this.listData.goodsType === 3 || this.listData.goodsType === 4) {
|
|
if (this.listData.goodsType === 3 || this.listData.goodsType === 4) {
|
|
|
if (!datas.makeGoodsId) {
|
|
if (!datas.makeGoodsId) {
|
|
|
this.$message.warning("请选择关联商品");
|
|
this.$message.warning("请选择关联商品");
|
|
|
- this.disabledBtn = false
|
|
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
datas.makeStartTime = this.$methodsTools.time10to13(
|
|
datas.makeStartTime = this.$methodsTools.time10to13(
|
|
@@ -2443,7 +2552,21 @@ export default {
|
|
|
datas.goodsPhotographExamConfig.intervalTime =
|
|
datas.goodsPhotographExamConfig.intervalTime =
|
|
|
datas.goodsPhotographExamConfig.intervalTime.toString();
|
|
datas.goodsPhotographExamConfig.intervalTime.toString();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
|
|
|
+ if (!this.tableData[i].sort && this.tableData[i].sort !== 0) {
|
|
|
|
|
+ this.$message.warning(`课程内容第${i + 1}条请输入排序`);
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ let arr = this.tableData.map((items) => {
|
|
|
|
|
+ return items.sort;
|
|
|
|
|
+ });
|
|
|
|
|
+ if (new Set(arr).size != arr.length) {
|
|
|
|
|
+ this.$message.warning("排序不允许有重复值");
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
var courseIdList = [];
|
|
var courseIdList = [];
|
|
|
this.tableData.map((item) => {
|
|
this.tableData.map((item) => {
|
|
|
courseIdList.push({
|
|
courseIdList.push({
|
|
@@ -2466,15 +2589,33 @@ export default {
|
|
|
if (!this.listData.handoutsId) {
|
|
if (!this.listData.handoutsId) {
|
|
|
datas.handoutsId = 0;
|
|
datas.handoutsId = 0;
|
|
|
}
|
|
}
|
|
|
- this.$api.addGoods(datas).then((res) => {
|
|
|
|
|
- this.$message.success("新增成功");
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$router.go(-1);
|
|
|
|
|
- }, 300);
|
|
|
|
|
- }).catch(()=>{
|
|
|
|
|
- this.disabledBtn = false
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$api
|
|
|
|
|
+ .addGoods(datas)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.$message.success("新增成功");
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
|
+ }, 300);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ });
|
|
|
} else if (this.listData.goodsType === 2) {
|
|
} else if (this.listData.goodsType === 2) {
|
|
|
|
|
+ for (let i = 0; i < this.tableData2.length; i++) {
|
|
|
|
|
+ if (!this.tableData2[i].sort && this.tableData2[i].sort !== 0) {
|
|
|
|
|
+ this.$message.warning(`题卷内容第${i + 1}条请输入排序`);
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ let arr = this.tableData2.map((items) => {
|
|
|
|
|
+ return items.sort;
|
|
|
|
|
+ });
|
|
|
|
|
+ if (new Set(arr).size != arr.length) {
|
|
|
|
|
+ this.$message.warning("排序不允许有重复值");
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
var courseIdList = [];
|
|
var courseIdList = [];
|
|
|
this.tableData2.map((item) => {
|
|
this.tableData2.map((item) => {
|
|
|
if (item.type === 1) {
|
|
if (item.type === 1) {
|
|
@@ -2510,32 +2651,41 @@ export default {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
datas.examConfigList = examConfigListArray;
|
|
datas.examConfigList = examConfigListArray;
|
|
|
- this.$api.addGoodsbank(datas).then((res) => {
|
|
|
|
|
- this.$message.success("新增成功");
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$router.go(-1);
|
|
|
|
|
- }, 300);
|
|
|
|
|
- }).catch(()=>{
|
|
|
|
|
- this.disabledBtn = false
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$api
|
|
|
|
|
+ .addGoodsbank(datas)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.$message.success("新增成功");
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
|
+ }, 300);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ });
|
|
|
} else if (this.listData.goodsType === 3) {
|
|
} else if (this.listData.goodsType === 3) {
|
|
|
- this.$api.addGoodsmake(datas).then((res) => {
|
|
|
|
|
- this.$message.success("新增成功");
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$router.go(-1);
|
|
|
|
|
- }, 300);
|
|
|
|
|
- }).catch(()=>{
|
|
|
|
|
- this.disabledBtn = false
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$api
|
|
|
|
|
+ .addGoodsmake(datas)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.$message.success("新增成功");
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
|
+ }, 300);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ });
|
|
|
} else if (this.listData.goodsType === 4) {
|
|
} else if (this.listData.goodsType === 4) {
|
|
|
- this.$api.addGoodsfront(datas).then((res) => {
|
|
|
|
|
- this.$message.success("新增成功");
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$router.go(-1);
|
|
|
|
|
- }, 300);
|
|
|
|
|
- }).catch(()=>{
|
|
|
|
|
- this.disabledBtn = false
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$api
|
|
|
|
|
+ .addGoodsfront(datas)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.$message.success("新增成功");
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
|
+ }, 300);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.disabledBtn = false;
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -2812,7 +2962,7 @@ export default {
|
|
|
aList.push(item.moduleExamId);
|
|
aList.push(item.moduleExamId);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- for(let k = 0; k < res.rows.length;k++){
|
|
|
|
|
|
|
+ for (let k = 0; k < res.rows.length; k++) {
|
|
|
res.rows[k].ids = 1 + "-" + res.rows[k].moduleExamId;
|
|
res.rows[k].ids = 1 + "-" + res.rows[k].moduleExamId;
|
|
|
res.rows[k].type = 1;
|
|
res.rows[k].type = 1;
|
|
|
res.rows[k].name = res.rows[k].moduleName;
|
|
res.rows[k].name = res.rows[k].moduleName;
|
|
@@ -2841,7 +2991,7 @@ export default {
|
|
|
aList.push(item.chapterExamId);
|
|
aList.push(item.chapterExamId);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- for(let k = 0; k < res.rows.length;k++){
|
|
|
|
|
|
|
+ for (let k = 0; k < res.rows.length; k++) {
|
|
|
res.rows[k].ids = 2 + "-" + res.rows[k].chapterExamId;
|
|
res.rows[k].ids = 2 + "-" + res.rows[k].chapterExamId;
|
|
|
res.rows[k].sort = 0;
|
|
res.rows[k].sort = 0;
|
|
|
res.rows[k].type = 2;
|
|
res.rows[k].type = 2;
|
|
@@ -2869,7 +3019,7 @@ export default {
|
|
|
aList.push(item.examId);
|
|
aList.push(item.examId);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- for(let k = 0; k < res.rows.length;k++){
|
|
|
|
|
|
|
+ for (let k = 0; k < res.rows.length; k++) {
|
|
|
res.rows[k].ids = 3 + "-" + res.rows[k].examId;
|
|
res.rows[k].ids = 3 + "-" + res.rows[k].examId;
|
|
|
res.rows[k].sort = 0;
|
|
res.rows[k].sort = 0;
|
|
|
res.rows[k].type = 3;
|
|
res.rows[k].type = 3;
|
|
@@ -2970,7 +3120,7 @@ export default {
|
|
|
this.activeLists2 = lis;
|
|
this.activeLists2 = lis;
|
|
|
},
|
|
},
|
|
|
checkboxT2(row, index) {
|
|
checkboxT2(row, index) {
|
|
|
- const asrty = row.ids.split("-").map(Number)[0]
|
|
|
|
|
|
|
+ const asrty = row.ids.split("-").map(Number)[0];
|
|
|
if (asrty === 1) {
|
|
if (asrty === 1) {
|
|
|
if (this.disCheckList2.moduleCheck.indexOf(row.moduleExamId) !== -1) {
|
|
if (this.disCheckList2.moduleCheck.indexOf(row.moduleExamId) !== -1) {
|
|
|
return false;
|
|
return false;
|
|
@@ -3004,7 +3154,7 @@ export default {
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
.dis_f {
|
|
.dis_f {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
|
|
|
|
+ justify-content: space-around;
|
|
|
& h4 {
|
|
& h4 {
|
|
|
margin: 10px 0px;
|
|
margin: 10px 0px;
|
|
|
}
|
|
}
|