|
|
|
@ -213,9 +213,9 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
} else if (obj.event === "del") {
|
|
|
|
|
allDelete(data.resourcesQuestionId);
|
|
|
|
|
} else if (obj.event === "up") {
|
|
|
|
|
upDrown(1, data.resourcesQuestionId);
|
|
|
|
|
upDrown(1, data.resourcesQuestionId,data.sourceType);
|
|
|
|
|
} else if (obj.event === "down") {
|
|
|
|
|
upDrown(2, data.resourcesQuestionId);
|
|
|
|
|
upDrown(2, data.resourcesQuestionId,data.sourceType);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -238,6 +238,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
|
|
|
|
|
//上下架
|
|
|
|
|
function upDrown(status, ids ,sourceType) {
|
|
|
|
|
console.log(sourceType)
|
|
|
|
|
layer.confirm(status == 1 ? '是否确定上架该试题?' : '是否确定下架该试题?', function (index) {
|
|
|
|
|
var ret = Common.postAjax("/jlw/resourcesQuestion/putOnShelves.json", {
|
|
|
|
|
resourcesQuestionId: ids,
|
|
|
|
|