Browse Source

修复草稿bug

lyn7568 5 years ago
parent
commit
4388e9427d
2 changed files with 15 additions and 4 deletions
  1. 10 4
      js/teamManage.js
  2. 5 0
      js/unPatentList.js

+ 10 - 4
js/teamManage.js

@ -299,8 +299,6 @@ $(function () {
299 299
			})
300 300
		},
301 301
		unpatentListVal = function (isbind) {
302
			console.log(tId)
303
304 302
			var aimId = "proUnPatent",
305 303
				newStr = "尚未关联任何非专利成果"
306 304
			oAjax("/ajax/team/resResult", {
@ -311,11 +309,16 @@ $(function () {
311 309
				var $info = res.data.data;
312 310
				$("#showUnPatent").html("")
313 311
				if ($info.length > 0) {
312
314 313
					if (res.data.total > 0 && res.data.total < 99) {
315 314
						$("#unpatCount").text(res.data.total);
315
						if (res.data.total == 0 || res.data.total == 1) {
316
							$("#unpatCount").text('');
317
						}
316 318
					}
319
317 320
					if (res.data.total > 99) {
318
						$("#unpatCount").text("99+");
321
						// $("#unpatCount").text("99+");
319 322
					}
320 323
					$("#" + aimId).show()
321 324
					for (var i = 0; i < $info.length; i++) {
@ -873,10 +876,13 @@ $(function () {
873 876
			$('.queStep').on('click', '.setAdmin', function () {
874 877
				var pid = $(this).attr("data-id")
875 878
				$.MsgBox.Confirm("提示", "此操作会退出登录,您将是去对该团队的管理权,确认设置团队秘书?", function () {
879
					console.log(tId)
880
					console.log(pid)
876 881
					oAjax("/ajax/team/secretary", {
877 882
						id: tId,
878
						professor: pid
883
						newPro:pid
879 884
					}, "post", function (data) {
885
						
880 886
						if (data.success) {
881 887
							exit()
882 888
							location.href = "index.html"

+ 5 - 0
js/unPatentList.js

@ -108,6 +108,11 @@ $(document).ready(function () {
108 108
109 109
			}
110 110
			$oStr.find(".editThis").attr("data-state", $data[i].status);
111
			var caogao = $('.draftLable').html()
112
			if (caogao == '草稿') {
113
				$('.deteleThis3').css('display','none')
114
			}
115
111 116
		}
112 117
	}
113 118