Commit bef3646d by zhaopanyu

zpy

parent 8c09c6d0
import request from "@/utils/request";
// 首页查询
export function getListcx(id) {
export function getListcx(data) {
return request({
url: "/system/zyyq/" + id,
url: "/system/zb/list",
method: "get",
data,
});
}
//单条详情
export function getListdt() {
export function getListdt(id) {
return request({
url: "/system/zyyq/list",
url: "/system/zb/" + id,
method: "get",
});
}
......@@ -692,6 +692,7 @@ export default {
id: id,
fbzt: zt
}
updateCb(list).then(response => {
if (zt === '1') {
this.$modal.msgSuccess("已发布");
......@@ -801,7 +802,19 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateCb(this.form).then(response => {
let list = this.form
list.tdjs = Base64.encode(this.form.tdjs)
list.cpjj = Base64.encode(this.form.cpjj)
list.gntd = Base64.encode(this.form.gntd)
list.yycx = Base64.encode(this.form.yycx)
list.yfjs = Base64.encode(this.form.yfjs)
list.fwts = Base64.encode(this.form.fwts)
list.fwal = Base64.encode(this.form.fwal)
updateCb(list).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
......@@ -820,10 +833,7 @@ export default {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
}).catch(error => {
console.error("添加失败:", error);
this.$modal.msgError("新增失败,请重试!");
});;
});
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment