Merge branch 'develop' into 'test'

Develop

See merge request LAWS/laws-system-front-FOTON!150
This commit is contained in:
王夏晖
2021-09-22 09:14:54 +08:00
5 changed files with 46 additions and 63 deletions
@@ -44,7 +44,7 @@
class="common-button-primary" class="common-button-primary"
icon="el-icon-s-promotion" icon="el-icon-s-promotion"
@click="handleTransfer" @click="handleTransfer"
:loading="transferLoading" :loading="submitLoading"
v-if="showTransfer" v-if="showTransfer"
>转办</el-button> >转办</el-button>
<el-button <el-button
@@ -389,35 +389,11 @@ export default {
if (this.data.length < 1) { if (this.data.length < 1) {
this.$message.warning("请输入征求意见搞"); this.$message.warning("请输入征求意见搞");
} else { } else {
var a = 0;
var b = 0;
// var c = 0
for (let s1 = 0; s1 < this.data.length; s1++) {
if (!this.data[s1].chapterNumber) {
a++;
}
if (!this.data[s1].chapterName) {
b++;
}
// if (!this.data[s1].commentText) {
// c++
// }
}
if (a > 0) {
this.$message.warning("请输入章节编号");
} else if (b > 0) {
this.$message.warning("请输入章节名称");
}
// else if (c > 0) {
// this.$message.warning('请输入意见内容')
// }
else {
this.isSubmit = true; this.isSubmit = true;
var json = this.json; var json = this.json;
json.oldinfo = this.oldData; json.oldinfo = this.oldData;
json.commentText = this.commentText; json.commentText = this.commentText;
json.introduce = true; json.introduce = true;
console.log(json);
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json), json: JSON.stringify(json),
taskId: this.taskIds, taskId: this.taskIds,
@@ -430,7 +406,6 @@ export default {
this.isSubmit = false; this.isSubmit = false;
}); });
} }
}
}, },
getData() { getData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@@ -729,6 +729,9 @@ export default {
this.standModel = false; this.standModel = false;
} else { } else {
if (this.standList.length >= 1) { if (this.standList.length >= 1) {
if (this.pastProject === null){
this.dataList = this.standList;
}else {
this.pastProject.forEach(item => { this.pastProject.forEach(item => {
this.standList.map(items => { this.standList.map(items => {
if( item.productLine === items.productLine){ if( item.productLine === items.productLine){
@@ -737,9 +740,10 @@ export default {
} }
}) })
}) })
this.dataList = this.standList; this.dataList = this.standList
this.roleForm.directorUser = this.dataList[0].uname; }
this.listForm.dataList = this.standList; this.listForm.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.standModel = false; this.standModel = false;
} else { } else {
this.$message.warning("请选择一条数据进行添加"); this.$message.warning("请选择一条数据进行添加");
@@ -704,6 +704,9 @@ export default {
this.standModel = false; this.standModel = false;
} else { } else {
if (this.standList.length >= 1) { if (this.standList.length >= 1) {
if (this.pastProject === null){
this.dataList = this.standList;
}else {
this.pastProject.forEach(item => { this.pastProject.forEach(item => {
this.standList.map(items => { this.standList.map(items => {
if( item.productLine === items.productLine){ if( item.productLine === items.productLine){
@@ -712,9 +715,10 @@ export default {
} }
}) })
}) })
this.dataList = this.standList; this.dataList = this.standList
this.roleForm.directorUser = this.dataList[0].uname; }
this.listForm.dataList = this.standList; this.listForm.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.standModel = false; this.standModel = false;
} else { } else {
this.$message.warning("请选择一条数据进行添加"); this.$message.warning("请选择一条数据进行添加");
+4 -4
View File
@@ -4,10 +4,10 @@
* @date: 2018-09-04 17:47:46 * @date: 2018-09-04 17:47:46
*/ */
// 服务器地址 // 服务器地址
const devIp = '62.234.136.153' // const devIp = '62.234.136.153'
const devInterfacePORT = '8033' // const devInterfacePORT = '8033'
// const devIp = '10.5.103.101' const devIp = '192.168.10.247'
// const devInterfacePORT = '9999' const devInterfacePORT = '9999'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
const simpleFilePath = 'att/attFile/upload' const simpleFilePath = 'att/attFile/upload'