Commit 2365608a by 庄欣

ok

parent 57a0ea77
...@@ -113,3 +113,6 @@ ...@@ -113,3 +113,6 @@
padding-left: 10px; padding-left: 10px;
} }
#__extend_fast_quote #__extend_fastquote_container #_____mp_fastquote input[disabled] {
background-color: rgb(194 194 195) !important;
}
\ No newline at end of file
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<label>使用本组作品的张数</label> <label>使用本组作品的张数</label>
<input type="number" value="1" id="quoteCount" class="form-control"/> <input type="number" value="1" id="quoteCount" class="form-control"/>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>使用时间</label> <label>使用时间</label>
<input type="text" id="today" class="form-control"/> <input type="text" id="today" class="form-control"/>
...@@ -42,6 +43,10 @@ ...@@ -42,6 +43,10 @@
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>过审时间</label>
<input type="text" id="passTime" class="form-control" disabled/>
</div>
<div class="form-group">
<label>责编</label> <label>责编</label>
<select class="form-control" id="admins"> <select class="form-control" id="admins">
......
...@@ -185,6 +185,18 @@ function removeLoading() { ...@@ -185,6 +185,18 @@ function removeLoading() {
mask.remove(); mask.remove();
} }
function assertStatus() {
var statusDom = document.getElementById("status");
var passTimeDom = document.getElementById("passTime");
if (parseInt(statusDom.value) === 1) {
passTimeDom.value = getToday();
passTimeDom.removeAttribute("disabled");
} else {
passTimeDom.value = ""
passTimeDom.setAttribute("disabled", "disabled");
}
}
function goNext() { function goNext() {
var todayInput = document.getElementById("today"); var todayInput = document.getElementById("today");
var channelDom = document.getElementById("channelId"); var channelDom = document.getElementById("channelId");
...@@ -193,6 +205,11 @@ function goNext() { ...@@ -193,6 +205,11 @@ function goNext() {
var quoteCountDom = document.getElementById("quoteCount"); var quoteCountDom = document.getElementById("quoteCount");
var statusDom = document.getElementById("status"); var statusDom = document.getElementById("status");
var worksDom = document.getElementById("worksId"); var worksDom = document.getElementById("worksId");
var passTimeDom = document.getElementById("passTime");
statusDom.onchange = function() {
assertStatus();
}
assertStatus();
getChannels(function(res) { getChannels(function(res) {
var channels = res; var channels = res;
for (var i in channels) { for (var i in channels) {
...@@ -239,6 +256,7 @@ function goNext() { ...@@ -239,6 +256,7 @@ function goNext() {
"quote_count": quoteCountDom.value, "quote_count": quoteCountDom.value,
"status": statusDom.value, "status": statusDom.value,
"works_id": worksDom.value, "works_id": worksDom.value,
"pass_time": passTimeDom.value
}; };
if (isNaN(postData['works_id']) || postData['works_id'] <= 0) { if (isNaN(postData['works_id']) || postData['works_id'] <= 0) {
addError("作品id解析失败", true) addError("作品id解析失败", true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment