|
@@ -3968,6 +3968,10 @@ export default {
|
|
|
_this.selectSWorks();
|
|
|
_this.selectStudent();
|
|
|
_this.selectSLook();
|
|
|
+ if (_this.tType == 4) {
|
|
|
+ _this.pzDialog = true;
|
|
|
+ _this.selectPz();
|
|
|
+ }
|
|
|
}, 5000);
|
|
|
_this.$nextTick(function () {
|
|
|
setTimeout(() => {
|
|
@@ -4024,37 +4028,37 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- deletePz(id){
|
|
|
+ deletePz(id) {
|
|
|
this.$confirm(
|
|
|
- "确定删除此批注吗?",
|
|
|
- "提示",
|
|
|
- {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- let params = [
|
|
|
- {
|
|
|
- id: id,
|
|
|
- },
|
|
|
- ];
|
|
|
- this.ajax
|
|
|
- .post(this.$store.state.api + "deletePz", params)
|
|
|
- .then((res) => {
|
|
|
- this.$message({
|
|
|
- message: "删除成功",
|
|
|
- type: "success",
|
|
|
- });
|
|
|
- this.selectPz();
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- this.$message.error("网络异常");
|
|
|
- console.error(err);
|
|
|
+ "确定删除此批注吗?",
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ id: id,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "deletePz", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message({
|
|
|
+ message: "删除成功",
|
|
|
+ type: "success",
|
|
|
});
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
+ this.selectPz();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.$message.error("网络异常");
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => { });
|
|
|
},
|
|
|
selectPz() {
|
|
|
let params = {
|