|
|
<!DOCTYPE html>
|
|
|
<style>
|
|
|
.btn-long {
|
|
|
width: 120px;
|
...
|
...
|
@@ -173,20 +174,16 @@ |
|
|
var searchType = 1;
|
|
|
var checkType = 1;
|
|
|
var data = paramObject.mkData;
|
|
|
var submitUrl = "/grassArticle/publishArticle";
|
|
|
$(function () {
|
|
|
console.log(data);
|
|
|
if(data && data.editFlag == 1){
|
|
|
$("#draftBotton").hide();
|
|
|
$("#timerBotton").hide();
|
|
|
$("#operateType").val(1);
|
|
|
$("#draftType").val(2);
|
|
|
submitUrl = "/grassArticle/editArticle";
|
|
|
}
|
|
|
|
|
|
if (data && data.draftEditFlag == 1) {
|
|
|
$("#draftType").val(1);
|
|
|
submitUrl = "/grassArticle/updateArticleDraft";
|
|
|
}
|
|
|
if (data){
|
|
|
$("#articleUid").textbox("setValue", data.authorUid);
|
...
|
...
|
@@ -434,8 +431,12 @@ |
|
|
iconCls: "icon-save",
|
|
|
width:200,
|
|
|
onClick: function () {
|
|
|
var url = serverContextPath+"/grassArticle/publishArticle";
|
|
|
if (data && data.editFlag == 1) {
|
|
|
url = serverContextPath+"/grassArticle/editArticle";
|
|
|
}
|
|
|
$("#publishArticleForm").form("submit",{
|
|
|
url : serverContextPath+"/grassArticle/publishArticle",
|
|
|
url : url,
|
|
|
onSubmit : function(param) {
|
|
|
;
|
|
|
if (!$("#publishArticleForm").form("validate")) {
|
...
|
...
|
@@ -515,10 +516,13 @@ |
|
|
iconCls: "icon-save",
|
|
|
width:200,
|
|
|
onClick: function () {
|
|
|
var url = serverContextPath+"/grassArticle/saveArticleDraft";
|
|
|
if (data && data.draftEditFlag == 1) {
|
|
|
url = "/grassArticle/updateArticleDraft";
|
|
|
}
|
|
|
$("#publishArticleForm").form("submit",{
|
|
|
url : serverContextPath+"/grassArticle/saveArticleDraft",
|
|
|
url : url,
|
|
|
onSubmit : function(param) {
|
|
|
;
|
|
|
if (!$("#publishArticleForm").form("validate")) {
|
|
|
return false;
|
|
|
|
...
|
...
|
@@ -751,8 +755,7 @@ |
|
|
}
|
|
|
|
|
|
function buildgood(index,obj) {
|
|
|
|
|
|
var data = checkedItemsObj[obj.productSkn];
|
|
|
var data = checkedItemsObj[obj];
|
|
|
$("#good"+index).html(gooddiv(data));
|
|
|
$div = $("#good"+(index+1));
|
|
|
$("#good"+index).after('<div id="good'+(index+1)+'"style="float: left;margin-left: 30px;width: 300px"> </div>');
|
...
|
...
|
@@ -846,7 +849,7 @@ |
|
|
}
|
|
|
}
|
|
|
function removeSingleItemById(id) {
|
|
|
debugger
|
|
|
|
|
|
var k = findCheckedItem(id);
|
|
|
if (k != -1) {
|
|
|
checkedItems.splice(k, 1);
|
...
|
...
|
@@ -855,7 +858,7 @@ |
|
|
|
|
|
|
|
|
function initGoods(skns,type) {
|
|
|
debugger
|
|
|
|
|
|
var url=serverContextPath+"/grassArticle/queryGoods";
|
|
|
// var url = contextPath+"/search/queryGoods";
|
|
|
var query ='';
|
...
|
...
|
@@ -878,7 +881,6 @@ |
|
|
url : url+params,
|
|
|
async : false,
|
|
|
success : function(data){
|
|
|
debugger
|
|
|
if(data.code == 200){
|
|
|
for (var i=0; i<data.data.list.length;i++){
|
|
|
var rowdata = data.data.list[i]
|
...
|
...
|
|