|
|
@ -9,7 +9,7 @@ |
|
|
|
clearable |
|
|
|
placeholder="请选择剧本标题" |
|
|
|
@change="queryLc" |
|
|
|
@visible-change='foucsLc' |
|
|
|
@visible-change="foucsLc" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in jbData" |
|
|
@ -173,7 +173,9 @@ |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialog.Visible = false">取 消</el-button> |
|
|
|
<el-button v-if="type != 'view'" type="primary" @click="subMitForm()">确 定</el-button> |
|
|
|
<el-button v-if="type != 'view'" type="primary" @click="subMitForm()" |
|
|
|
>确 定</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
@ -202,10 +204,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
scenarioId: [{ required: true, message: "请选择剧本", trigger: "blur" }], |
|
|
|
processId: [ |
|
|
|
{ required: true, message: "请选择流程", trigger: "blur" } |
|
|
|
scenarioId: [ |
|
|
|
{ required: true, message: "请选择剧本", trigger: "blur" } |
|
|
|
], |
|
|
|
processId: [{ required: true, message: "请选择流程", trigger: "blur" }], |
|
|
|
content: [{ required: true, message: "请输入内容", trigger: "blur" }] |
|
|
|
}, |
|
|
|
form: {}, |
|
|
@ -219,7 +221,7 @@ export default { |
|
|
|
lcData: [], |
|
|
|
total: 0, |
|
|
|
type: "add", |
|
|
|
data:{} |
|
|
|
data: {} |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@ -240,7 +242,6 @@ export default { |
|
|
|
}, |
|
|
|
//获取流程列表 |
|
|
|
async queryFindList() { |
|
|
|
|
|
|
|
try { |
|
|
|
let res = await queryFindList(this.data); |
|
|
|
// console.log(res.data, "流程列表"); |
|
|
@ -249,31 +250,31 @@ export default { |
|
|
|
console.log(err); |
|
|
|
} |
|
|
|
}, |
|
|
|
queryLc(val){ |
|
|
|
queryLc(val) { |
|
|
|
this.data = { |
|
|
|
scenarioId:val |
|
|
|
} |
|
|
|
delete this.queryParams.query.processId |
|
|
|
this.queryFindList() |
|
|
|
scenarioId: val |
|
|
|
}; |
|
|
|
delete this.queryParams.query.processId; |
|
|
|
this.queryFindList(); |
|
|
|
}, |
|
|
|
chageLc(val){ |
|
|
|
console.log(val) |
|
|
|
chageLc(val) { |
|
|
|
console.log(val); |
|
|
|
this.data = { |
|
|
|
scenarioId:val |
|
|
|
} |
|
|
|
delete this.form.processId |
|
|
|
// this.form.processId = |
|
|
|
this.queryFindList() |
|
|
|
scenarioId: val |
|
|
|
}; |
|
|
|
delete this.form.processId; |
|
|
|
// this.form.processId = |
|
|
|
this.queryFindList(); |
|
|
|
}, |
|
|
|
foucsLc(){ |
|
|
|
console.log(11110) |
|
|
|
foucsLc() { |
|
|
|
console.log(11110); |
|
|
|
}, |
|
|
|
//获取Tips列表 |
|
|
|
async queryTipsList() { |
|
|
|
this.loading = true; |
|
|
|
console.log(this.$route.query.type,41231231) |
|
|
|
if(this.$route.query.type == 'sceinfo'){ |
|
|
|
this.queryParams.query.scenarioId = this.$route.query.scenarioId |
|
|
|
console.log(this.$route.query.type, 41231231); |
|
|
|
if (this.$route.query.type == "sceinfo") { |
|
|
|
this.queryParams.query.scenarioId = this.$route.query.scenarioId; |
|
|
|
} |
|
|
|
try { |
|
|
|
let res = await queryTipsList(this.queryParams); |
|
|
@ -298,15 +299,15 @@ export default { |
|
|
|
content: undefined |
|
|
|
} |
|
|
|
}; |
|
|
|
this.data = {} |
|
|
|
this.queryFindList() |
|
|
|
this.data = {}; |
|
|
|
this.queryFindList(); |
|
|
|
this.queryTipsList(); |
|
|
|
}, |
|
|
|
// 新增 |
|
|
|
handleAdd() { |
|
|
|
this.dialog.title = "新增"; |
|
|
|
this.type = 'add' |
|
|
|
this.form = {} |
|
|
|
this.type = "add"; |
|
|
|
this.form = {}; |
|
|
|
this.disabled = false; |
|
|
|
this.dialog.Visible = true; |
|
|
|
}, |
|
|
@ -329,7 +330,7 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.type == 'edit'){ |
|
|
|
if (this.type == "edit") { |
|
|
|
let res = await updateTipsList(this.form); |
|
|
|
if (res.code == 200) { |
|
|
|
this.$message.success("编辑成功"); |
|
|
@ -370,10 +371,16 @@ export default { |
|
|
|
//编辑 |
|
|
|
handleEdit(row) { |
|
|
|
this.queryTipsDetail(row.id); |
|
|
|
this.dialog.title = "编辑"; |
|
|
|
this.type = "edit"; |
|
|
|
this.disabled = false; |
|
|
|
this.dialog.Visible = true; |
|
|
|
this.data = { |
|
|
|
scenarioId: row.scenarioId |
|
|
|
}; |
|
|
|
this.queryFindList(); |
|
|
|
setTimeout(() => { |
|
|
|
this.dialog.title = "编辑"; |
|
|
|
this.type = "edit"; |
|
|
|
this.disabled = false; |
|
|
|
this.dialog.Visible = true; |
|
|
|
}, 500); |
|
|
|
}, |
|
|
|
//删除 |
|
|
|
async hanDel(row) { |
|
|
@ -386,7 +393,7 @@ export default { |
|
|
|
let res = await deteleTipsList(row.id); |
|
|
|
if (res.code == 200) { |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.queryList(); |
|
|
|
this.queryTipsList(); |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
|