修改文件权限
This commit is contained in:
@ -147,6 +147,8 @@ public class SysContractServiceImpl implements ISysContractService {
|
|||||||
}
|
}
|
||||||
doc.close();
|
doc.close();
|
||||||
|
|
||||||
|
Runtime.getRuntime().exec("chmod 644 " + filePath);
|
||||||
|
|
||||||
info.setCode(1);
|
info.setCode(1);
|
||||||
info.setMsg("success");
|
info.setMsg("success");
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {getFile, signContract} from "@/api/custom/contract";
|
import {getFile, signContract} from "@/api/custom/contract";
|
||||||
import {digitUppercase, parseTime} from "../../../utils/ruoyi";
|
import {digitUppercase} from "../../../utils/ruoyi";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'sign',
|
name: 'sign',
|
||||||
@ -197,12 +197,9 @@
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.form.signDate = parseTime(new Date(), '{y}-{m}-{d}');
|
|
||||||
console.log(this.form)
|
|
||||||
signContract(this.form).then(result => {
|
signContract(this.form).then(result => {
|
||||||
if (result.code === 200) {
|
if (result.code === 200) {
|
||||||
this.$router.push(result.url);
|
window.location.href = window.location.origin + result.url;
|
||||||
// console.log(result);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user