|
|
@@ -84,6 +84,15 @@
|
|
|
</van-uploader> -->
|
|
|
|
|
|
<div class="bottom">
|
|
|
+ <van-button
|
|
|
+ @click="save"
|
|
|
+ class="preview"
|
|
|
+ color="#ffcf6a"
|
|
|
+ block
|
|
|
+ round
|
|
|
+ style="margin-right:12px"
|
|
|
+ >暂存</van-button
|
|
|
+ >
|
|
|
<!-- <van-button
|
|
|
@click="$refs.preview.init()"
|
|
|
class="preview"
|
|
|
@@ -169,7 +178,32 @@ export default {
|
|
|
};
|
|
|
});
|
|
|
});
|
|
|
- this.submitList = subList;
|
|
|
+
|
|
|
+ this.$http
|
|
|
+ .post(
|
|
|
+ "/rateExpertAudit/all",
|
|
|
+ {
|
|
|
+ query: {
|
|
|
+ rateId: this.$route.query.rateId
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { body: "json" }
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ res.content.forEach(item => {
|
|
|
+ subList[item.type] = {
|
|
|
+ ...item,
|
|
|
+ imgs: item.img.map(img => {
|
|
|
+ return {
|
|
|
+ url: img
|
|
|
+ };
|
|
|
+ })
|
|
|
+ };
|
|
|
+ });
|
|
|
+
|
|
|
+ this.submitList = subList;
|
|
|
+ // this.rateList = res.content;
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
afterRead(file, detail) {
|
|
|
@@ -227,6 +261,24 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ save() {
|
|
|
+ let form = { ...this.form };
|
|
|
+ this.$toast.loading({
|
|
|
+ message: "加载中...",
|
|
|
+ forbidClick: true
|
|
|
+ });
|
|
|
+ this.$http
|
|
|
+ .post("/rateExpertAudit/batchSave", {
|
|
|
+ audits: JSON.stringify(this.subJson)
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$toast.success("成功");
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.$message.error(e.error);
|
|
|
+ });
|
|
|
+ },
|
|
|
submit() {
|
|
|
let form = { ...this.form };
|
|
|
this.$toast.loading({
|