修改自定义返回值

master
vip 5 years ago
parent a0c6f99723
commit 7651500038
  1. 7
      pom.xml
  2. 19
      src/main/webapp/WEB-INF/manager/cms/category/form.ftl
  3. 5
      src/main/webapp/WEB-INF/manager/cms/content/form.ftl
  4. 5
      src/main/webapp/WEB-INF/manager/cms/content/main.ftl
  5. 5
      src/main/webapp/WEB-INF/manager/index.ftl

@ -3,9 +3,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>net.mingsoft</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>ms-pom</artifactId>
<version>2.2.2.RELEASE</version> <version>2.0.0-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>net.mingsoft</groupId> <groupId>net.mingsoft</groupId>
@ -35,7 +35,6 @@
<dependency> <dependency>
<groupId>net.mingsoft</groupId> <groupId>net.mingsoft</groupId>
<artifactId>ms-mpeople</artifactId> <artifactId>ms-mpeople</artifactId>
<version>1.0.28</version>
</dependency> </dependency>
<!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 --> <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->

@ -418,7 +418,9 @@
ms.http.get(ms.manager + "/mdiy/model/list.do", { ms.http.get(ms.manager + "/mdiy/model/list.do", {
modelType: 'zdymx_wz' modelType: 'zdymx_wz'
}).then(function (data) { }).then(function (data) {
that.mdiyModelIdOptions = data.data.rows; if(data.result){
that.mdiyModelIdOptions = data.data.rows;
}
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });
@ -460,10 +462,12 @@
ms.http.post(ms.manager + "/cms/content/list.do", { ms.http.post(ms.manager + "/cms/content/list.do", {
contentCategoryId: id contentCategoryId: id
}).then(function (data) { }).then(function (data) {
if (data.data.total > 0) { if(data.result){
that.categoryTypeDisabled = true; if (data.data.total > 0) {
} else { that.categoryTypeDisabled = true;
that.categoryTypeDisabled = false; } else {
that.categoryTypeDisabled = false;
}
} }
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
@ -494,7 +498,10 @@
dictType: '栏目属性', dictType: '栏目属性',
pageSize: 99999 pageSize: 99999
}).then(function (res) { }).then(function (res) {
that.categoryFlagOptions = res.rows; if(res.result){
res = res.data;
that.categoryFlagOptions = res.rows;
}
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });

@ -543,7 +543,10 @@
dictType: '文章属性', dictType: '文章属性',
pageSize: 99999 pageSize: 99999
}).then(function (data) { }).then(function (data) {
that.contentTypeOptions = data.rows; if(data.result){
data = data.data;
that.contentTypeOptions = data.rows;
}
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });

@ -456,7 +456,10 @@
dictType: '文章属性', dictType: '文章属性',
pageSize: 99999 pageSize: 99999
}).then(function (data) { }).then(function (data) {
that.contentTypeOptions = data.rows; if(data.result){
data = data.data;
that.contentTypeOptions = data.rows;
}
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });

@ -507,7 +507,10 @@
dictList: function () { dictList: function () {
var that = this; var that = this;
ms.http.get(ms.base + '/mdiy/dict/list.do', {dictType: '消息类型', pageSize: 99999}).then(function (res) { ms.http.get(ms.base + '/mdiy/dict/list.do', {dictType: '消息类型', pageSize: 99999}).then(function (res) {
that.messageTypeList = res.rows; if(res.result){
res = res.data;
that.messageTypeList = res.rows;
}
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });

Loading…
Cancel
Save