mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化代码
This commit is contained in:
parent
e2fdddc754
commit
04c2b7c996
@ -71,7 +71,7 @@
|
||||
function (json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
let data = res.data;
|
||||
if (_json.code == 200) {
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
$('#addJobModel').modal('hide');
|
||||
vc.component.clearAddJobInfo();
|
||||
@ -127,7 +127,7 @@
|
||||
function (json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
let data = _json.data;
|
||||
if (_json.code == 200) {
|
||||
if (_json.code == 0) {
|
||||
data.forEach(item => {
|
||||
item.value = "";
|
||||
});
|
||||
|
||||
@ -75,7 +75,7 @@
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
let _json = JSON.parse(json);
|
||||
let data = res.data;
|
||||
if (_json.code == 200) {
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
$('#editJobModel').modal('hide');
|
||||
vc.component.refreshEditJobInfo();
|
||||
@ -104,7 +104,7 @@
|
||||
console.log('task.listTaskTemplate', json);
|
||||
let _json = JSON.parse(json);
|
||||
let data = _json.data;
|
||||
if (_json.code == 200) {
|
||||
if (_json.code == 0) {
|
||||
$that.editJobInfo.templates = data;
|
||||
return;
|
||||
}
|
||||
@ -129,7 +129,7 @@
|
||||
function (json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
let data = _json.data;
|
||||
if (_json.code == 200) {
|
||||
if (_json.code == 0) {
|
||||
data.forEach(item => {
|
||||
$that.editJobInfo.taskAttr.forEach(tmd => {
|
||||
if(item.specCd == tmd.specCd && item.templateId == $that.editJobInfo.templateId){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user