|
@@ -63,8 +63,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
|
<div style="margin: 16px;">
|
|
<div style="margin: 16px;">
|
|
|
- <van-button @click="addPro" block native-type="submit" round type="primary">
|
|
|
|
|
- 提交
|
|
|
|
|
|
|
+ <van-button @click="addPro" :disabled="isButtonDisabled" block native-type="submit" round type="primary">
|
|
|
|
|
+ 保存
|
|
|
</van-button>
|
|
</van-button>
|
|
|
</div>
|
|
</div>
|
|
|
</van-form>
|
|
</van-form>
|
|
@@ -78,13 +78,14 @@
|
|
|
import { showSuccessToast, showFailToast } from 'vant';
|
|
import { showSuccessToast, showFailToast } from 'vant';
|
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
|
import {computed, onMounted, ref, watch} from "vue";
|
|
import {computed, onMounted, ref, watch} from "vue";
|
|
|
-import {useRoute} from "vue-router";
|
|
|
|
|
|
|
+import {useRoute,useRouter} from "vue-router";
|
|
|
import { useAppStore } from '@/stores/app';
|
|
import { useAppStore } from '@/stores/app';
|
|
|
import {useUserStore} from "@/stores/user";
|
|
import {useUserStore} from "@/stores/user";
|
|
|
import request from "@/utils/request";
|
|
import request from "@/utils/request";
|
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
|
|
+const isButtonDisabled = ref(false);
|
|
|
const pblm = ref({});
|
|
const pblm = ref({});
|
|
|
const tacObjPblmstb = ref({
|
|
const tacObjPblmstb = ref({
|
|
|
});
|
|
});
|
|
@@ -105,6 +106,7 @@ const pickerValue = ref([])
|
|
|
const pickerValue1 = ref([])
|
|
const pickerValue1 = ref([])
|
|
|
const pickerValue2 = ref([])
|
|
const pickerValue2 = ref([])
|
|
|
const router = useRoute();
|
|
const router = useRoute();
|
|
|
|
|
+const router1 = useRouter();
|
|
|
const parSectino = ref([]);
|
|
const parSectino = ref([]);
|
|
|
const subjectList = ref([]);
|
|
const subjectList = ref([]);
|
|
|
const picContent = ref('');
|
|
const picContent = ref('');
|
|
@@ -181,6 +183,7 @@ async function getSelection(){
|
|
|
}
|
|
}
|
|
|
const parData = ref({});
|
|
const parData = ref({});
|
|
|
async function addPro(){
|
|
async function addPro(){
|
|
|
|
|
+ isButtonDisabled.value = true;
|
|
|
var a = {
|
|
var a = {
|
|
|
"villType": "0",
|
|
"villType": "0",
|
|
|
"objId": "f4006678339a41ee80e673b99b94c73b",
|
|
"objId": "f4006678339a41ee80e673b99b94c73b",
|
|
@@ -233,13 +236,14 @@ async function addPro(){
|
|
|
uploadFileToServer(item, res.data.pblmId)
|
|
uploadFileToServer(item, res.data.pblmId)
|
|
|
})
|
|
})
|
|
|
showSuccessToast('添加成功!');
|
|
showSuccessToast('添加成功!');
|
|
|
- // tacObjPblmstb.value = {}
|
|
|
|
|
- // fileList.value = []
|
|
|
|
|
|
|
+ router1.go(-1)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
else{
|
|
else{
|
|
|
- showFailToast('请选择一个问题描述!')
|
|
|
|
|
|
|
+ isButtonDisabled.value = false;
|
|
|
|
|
+ showFailToast('请选择一个问题描述!')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
const dataURLtoBlob = (dataURL) => {
|
|
const dataURLtoBlob = (dataURL) => {
|