Commit 65d609a2 by xue_wengang

任务新增,删除组件无用代码

parent a58f3c03
......@@ -48,6 +48,9 @@ export default {
col: "2",
},
{
col: "2",
},
{
name: "录入时间:",
id: "asjfssjKssj",
type: "dates",
......@@ -68,9 +71,9 @@ export default {
codeOptions: [],
codeTree: "CODE_AJLB",
},
{
col: "2",
col: "2",
},
{
name: "简要案情:",
......@@ -81,10 +84,10 @@ export default {
placeholder: "请输入",
col: "3",
},
{
col: "2",
{
col: "2",
},
{
{
name: "任务名称:",
id: "rwmc",
type: "text",
......@@ -105,14 +108,9 @@ export default {
codeTree: "CODE_XSJSBD_RWLXDM",
},
{
name: "任务描述:",
id: "rwxq",
type: "textarea",
value: "",
placeholder: "请输入",
col: "3",
col: "2",
},
{
{
name: "接收人姓名:",
id: "jsrXm",
type: "setValue",
......@@ -122,6 +120,17 @@ export default {
col: "2",
},
{
col: "2",
},
{
name: "任务描述:",
id: "rwxq",
type: "textarea",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "图片列表:",
id: "picList",
type: "file",
......@@ -145,23 +154,6 @@ export default {
formLabelAlign: {
// lrsj: this.$moment().format("YYYY-MM-DD HH:mm:ss"),
},
Breadcrumb: [
{
name: "号码线索管理",
to: "/hmxsGl",
isActive: false,
},
{
name: "号码线索管理",
to: "/hmxsGl",
isActive: false,
},
{
name: "新增号码线索",
to: "/addHmxs",
isActive: true,
},
],
jsrList: [],
};
},
......@@ -200,28 +192,95 @@ export default {
});
},
submit(params) {
debugger;
let self = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
addBdrw(params)
.then((res) => {
debugger;
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
this.$router.push("queryRwbd");
loading.close();
},
});
})
.catch((res) => {
loading.close();
});
let str = this.formLabelAlign.rwlxdm;
if (str == "01" || str == "02") {
debugger
if (self.formLabelAlign.picList.length > 0) {
addBdrw(params)
.then((res) => {
debugger;
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
this.$router.push("queryRwbd");
loading.close();
},
});
})
.catch((res) => {
loading.close();
});
} else {
self
.$confirm("请上传图片", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
loading.close();
});
}
} else if (str == "04") {
if (
self.formLabelAlign.picList.length > 0 &&
self.formLabelAlign.videoList.length > 0
) {
addBdrw(params)
.then((res) => {
debugger;
self
.$confirm("保存成功", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "success",
})
.then(() => {
self.$router.push("queryRwbd");
loading.close();
});
})
.catch((res) => {
loading.close();
});
} else {
self
.$confirm("请上传图片和视频", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
loading.close();
});
}
}else{
addBdrw(params)
.then((res) => {
debugger;
self
.$confirm("保存成功", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "success",
})
.then(() => {
self.$router.push("queryRwbd");
loading.close();
});
})
.catch((res) => {
loading.close();
});
}
},
getJsr(val) {
let type = "";
......@@ -248,12 +307,11 @@ export default {
jsrDwdm: item.unitcode,
});
});
self.$set(self.propFormField[0].data[4], "codeOptions", arr);
self.$set(self.propFormField[0].data[11], "codeOptions", arr);
});
},
},
created() {
this.$store.commit("user/SET_Breadcrumb", this.Breadcrumb);
this.getJsr();
},
watch: {
......
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