| | |
| | | <el-input v-model="propform.title" placeholder="请输入名称标题" /> |
| | | </el-form-item> |
| | | <el-form-item label="快捷标签" prop="kjbq"> |
| | | <span slot="label" style="display:inline-block;border-bottom: 2px solid blue;" @click="handleQuery"> |
| | | <span |
| | | slot="label" |
| | | style="display: inline-block; border-bottom: 2px solid blue" |
| | | @click="handleQuery" |
| | | > |
| | | 快捷标签 |
| | | </span> |
| | | <el-checkbox-group |
| | |
| | | <el-button type="primary" @click="handleOk">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="添加快捷标签" :visible.sync="kjbqopen" width="500px" append-to-body> |
| | | <el-dialog |
| | | title="添加快捷标签" |
| | | :visible.sync="kjbqopen" |
| | | width="500px" |
| | | append-to-body |
| | | > |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-form-item label="名称" prop="kjbq"> |
| | | <el-input v-model="form.kjbq" placeholder="请输入名称" /> |
| | |
| | | <script> |
| | | import { |
| | | getTjAdviceKjbqByFl, |
| | | addCyTjAdvice,addTjAdviceKjbq |
| | | addCyTjAdvice, |
| | | addTjAdviceKjbq, |
| | | } from "@/api/system/biaoqianzidian"; |
| | | import { getInfo } from "@/api/login"; |
| | | export default { |
| | | name: "createproposal", |
| | | props: { |
| | | textarea1: String, |
| | | creatobj: Object, |
| | | }, |
| | | data() { |
| | | return { |
| | | deptId:"", |
| | | isZjs: 0, |
| | | propform: { |
| | | advice: "", |
| | | kjbq: [], |
| | | }, |
| | | form:{ |
| | | |
| | | }, |
| | | form: {}, |
| | | kjbqopen: false, |
| | | open: false, |
| | | openone: false, |
| | |
| | | }; |
| | | }, |
| | | watch: { |
| | | |
| | | textarea1(val, newVla) { |
| | | this.propform.advice = val; |
| | | creatobj(val, newVla) { |
| | | console.log(val, 111); |
| | | this.propform.advice = val.proParentList; |
| | | this.isZjs = val.isZj; |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.propform.kjbq =[] |
| | | this.getList() |
| | | this.propform.kjbq = []; |
| | | this.getList(); |
| | | }, |
| | | |
| | | created() { |
| | | this.getList() |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | getList() { |
| | |
| | | getInfo().then((res) => { |
| | | this.form.userId = res.user.userId; |
| | | this.queryParams.userId = res.user.userId; |
| | | this.deptId = res.user.deptId; |
| | | console.log(this.deptId); |
| | | getTjAdviceKjbqByFl(this.queryParams).then((res) => { |
| | | if (res.data) { |
| | | this.dataList = res.data.records; |
| | |
| | | } |
| | | }); |
| | | }, |
| | | handleCheckedCitiesChange(val) { |
| | | |
| | | }, |
| | | handleCheckedCitiesChange(val) {}, |
| | | handleOk() { |
| | | console.log(this.isZjs); |
| | | |
| | | if (this.isZjs == 0) { |
| | | let data = { |
| | | title: this.propform.title, |
| | | isZj: 1, |
| | | isZj: this.isZjs, |
| | | kjbq: this.propform.kjbq.toString(), |
| | | advice: this.propform.advice, |
| | | }; |
| | |
| | | this.open = false; |
| | | } |
| | | }); |
| | | } else { |
| | | let data = { |
| | | deptId:this.deptId, |
| | | title: this.propform.title, |
| | | isZj: this.isZjs, |
| | | kjbq: this.propform.kjbq.toString(), |
| | | advice: this.propform.advice, |
| | | }; |
| | | addCyTjAdvice(data).then((res) => { |
| | | if (res.code == 200) { |
| | | this.open = false; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // if (this.list.length != 0) { |
| | | // this.$emit("event1", this.list); |