|
@@ -137,7 +137,7 @@
|
|
|
size="small"
|
|
size="small"
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- height="650"
|
|
|
|
|
|
|
+ height="640"
|
|
|
border
|
|
border
|
|
|
:header-cell-style="{
|
|
:header-cell-style="{
|
|
|
background: '#F2F7FC',
|
|
background: '#F2F7FC',
|
|
@@ -638,24 +638,16 @@
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submit">确 定</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="submit" :disabled="btnDisabled"
|
|
|
|
|
+ >确 定</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog title="附件" :visible.sync="fileDialog" width="50%">
|
|
<el-dialog title="附件" :visible.sync="fileDialog" width="50%">
|
|
|
- <div class="block">
|
|
|
|
|
- <el-carousel trigger="click" height="1200px" :autoplay="false">
|
|
|
|
|
- <el-carousel-item
|
|
|
|
|
- v-for="item in showFileList"
|
|
|
|
|
- :key="item.url"
|
|
|
|
|
- style="height: 1200px; overflow-y: auto"
|
|
|
|
|
- >
|
|
|
|
|
- <div
|
|
|
|
|
- style="
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- margin-bottom: 10px;
|
|
|
|
|
- "
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <div class="block" style="height: 700px">
|
|
|
|
|
+ <el-carousel trigger="click" :autoplay="false">
|
|
|
|
|
+ <el-carousel-item v-for="item in showFileList" :key="item.url">
|
|
|
|
|
+ <div style="display: flex; justify-content: center">
|
|
|
<kt-button
|
|
<kt-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
icon="el-icon-download"
|
|
icon="el-icon-download"
|
|
@@ -1094,7 +1086,7 @@ export default {
|
|
|
messageDialog: false,
|
|
messageDialog: false,
|
|
|
tableDialog: false,
|
|
tableDialog: false,
|
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
|
-
|
|
|
|
|
|
|
+ btnDisabled: false,
|
|
|
base: process.env.BASE_URL,
|
|
base: process.env.BASE_URL,
|
|
|
form: {
|
|
form: {
|
|
|
contractCode: "",
|
|
contractCode: "",
|
|
@@ -1414,6 +1406,7 @@ export default {
|
|
|
this.$api.contract
|
|
this.$api.contract
|
|
|
.copyContractList({
|
|
.copyContractList({
|
|
|
id: row.id,
|
|
id: row.id,
|
|
|
|
|
+ isView: true,
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -1494,6 +1487,7 @@ export default {
|
|
|
submit() {
|
|
submit() {
|
|
|
this.$refs["ruleForm"].validate((valid) => {
|
|
this.$refs["ruleForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
|
+ this.btnDisabled = true;
|
|
|
if (this.operation != "supplement") {
|
|
if (this.operation != "supplement") {
|
|
|
this.$api.contract
|
|
this.$api.contract
|
|
|
.constractSave({
|
|
.constractSave({
|
|
@@ -1519,12 +1513,14 @@ export default {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg);
|
|
this.$message.success(res.msg);
|
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
|
|
|
+ this.btnDisabled = false;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.ruleForm.clearValidate();
|
|
this.$refs.ruleForm.clearValidate();
|
|
|
});
|
|
});
|
|
|
this.getList();
|
|
this.getList();
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
this.$message.error(res.msg);
|
|
|
|
|
+ this.btnDisabled = false;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
@@ -1553,9 +1549,12 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.ruleForm.clearValidate();
|
|
this.$refs.ruleForm.clearValidate();
|
|
|
});
|
|
});
|
|
|
|
|
+ this.btnDisabled = false;
|
|
|
|
|
+
|
|
|
this.getList();
|
|
this.getList();
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
this.$message.error(res.msg);
|
|
|
|
|
+ this.btnDisabled = false;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -1771,4 +1770,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+/deep/ .el-carousel__container {
|
|
|
|
|
+ height: 700px !important;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|