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,47 +389,22 @@ export default {
if (this.data.length < 1) { if (this.data.length < 1) {
this.$message.warning("请输入征求意见搞"); this.$message.warning("请输入征求意见搞");
} else { } else {
var a = 0; this.isSubmit = true;
var b = 0; var json = this.json;
// var c = 0 json.oldinfo = this.oldData;
for (let s1 = 0; s1 < this.data.length; s1++) { json.commentText = this.commentText;
if (!this.data[s1].chapterNumber) { json.introduce = true;
a++; this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
this.$router.push("/processCenter");
} }
if (!this.data[s1].chapterName) { this.isSubmit = false;
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;
var json = this.json;
json.oldinfo = this.oldData;
json.commentText = this.commentText;
json.introduce = true;
console.log(json);
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
this.$router.push("/processCenter");
}
this.isSubmit = false;
});
}
} }
}, },
getData() { getData() {
@@ -729,17 +729,21 @@ export default {
this.standModel = false; this.standModel = false;
} else { } else {
if (this.standList.length >= 1) { if (this.standList.length >= 1) {
this.pastProject.forEach(item => { if (this.pastProject === null){
this.standList.map(items => { this.dataList = this.standList;
if( item.productLine === items.productLine){ }else {
items.distributePersonId = item.distributePersonId this.pastProject.forEach(item => {
items.distributePerson = item.distributePerson this.standList.map(items => {
} if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
})
}) })
}) 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,17 +704,21 @@ export default {
this.standModel = false; this.standModel = false;
} else { } else {
if (this.standList.length >= 1) { if (this.standList.length >= 1) {
this.pastProject.forEach(item => { if (this.pastProject === null){
this.standList.map(items => { this.dataList = this.standList;
if( item.productLine === items.productLine){ }else {
items.distributePersonId = item.distributePersonId this.pastProject.forEach(item => {
items.distributePerson = item.distributePerson this.standList.map(items => {
} if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
})
}) })
}) 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'