Commit ec01d980 authored by 仇晓婷's avatar 仇晓婷

文档分类

parent e1f72a3b
...@@ -30,28 +30,7 @@ ...@@ -30,28 +30,7 @@
<Input v-model="entity.englishName"></Input> <Input v-model="entity.englishName"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('inheritCategoryId')"
prop="inheritCategoryId"
v-if="row.id"
>
<!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1"></Radio>
<Radio label="0"></Radio>
</RadioGroup>
</FormItem>
</Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('templateId')" prop="templateId"> <FormItem :label="l('templateId')" prop="templateId">
<Select <Select
...@@ -80,18 +59,33 @@ ...@@ -80,18 +59,33 @@
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
type="radio"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="24"> <Col :span="24">
<FormItem :label="l('description')" prop="description"> <FormItem :label="l('description')" prop="description">
<Input v-model="entity.description" type="textarea" :rows="5"></Input> <Input v-model="entity.description" type="textarea" :rows="5"></Input>
</FormItem> </FormItem>
</Col> </Col>
<!-- <Col :span="24"> <Col :span="12" v-if="eid != 0">
<FormItem :label="l('templateId')" prop="templateId"> <FormItem label="扩展属性" prop="inheritCategoryId">
<Input v-model="entity.templateId"></Input> <!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1">继承</Radio>
<Radio label="0">自定义</Radio>
</RadioGroup>
</FormItem> </FormItem>
</Col>--> </Col>
<Col :span="24" v-if="inherit == 0"> <Col :span="24" v-if="inherit == '0'">
<Divider orientation="left">扩展属性</Divider> <Divider orientation="left">扩展属性</Divider>
<Table :columns="columns" :data="checkList" border> <Table :columns="columns" :data="checkList" border>
<template slot-scope="{ row, index }" slot="title"> <template slot-scope="{ row, index }" slot="title">
...@@ -198,16 +192,15 @@ export default { ...@@ -198,16 +192,15 @@ export default {
type: 0, type: 0,
englishFullName: "", englishFullName: "",
englishName: "", englishName: "",
status: 0, status: 1,
description: "", description: "",
inheritCategoryId: "0", //0否,是,row的id值 inheritCategoryId: "0", //0否,是,row的id值
template: "", template: "",
templateId: "", templateId: "",
}, },
inherit: "0", inherit: this.eid ? "1" : "0",
rules: { rules: {
name: [{ required: true, message: "必填", trigger: "blur" }], name: [{ required: true, message: "必填", trigger: "blur" }],
workFlowIds: [{ required: true, message: "必填", trigger: "change" }],
}, },
checkList: [ checkList: [
{ {
...@@ -341,6 +334,10 @@ export default { ...@@ -341,6 +334,10 @@ export default {
row: Object, row: Object,
eid: Number, eid: Number,
}, },
created() {
// console.log(this.row.id);
console.log(this.eid);
},
mounted() { mounted() {
this.tebleSet(); this.tebleSet();
this.loadTemplate(); this.loadTemplate();
...@@ -435,10 +432,10 @@ export default { ...@@ -435,10 +432,10 @@ export default {
handleSubmit() { handleSubmit() {
this.$refs.form.validate((v) => { this.$refs.form.validate((v) => {
if (v) { if (v) {
if (this.row.id) { if (this.eid) {
this.entity.upId = this.row.id; this.entity.upId = this.eid;
this.entity.level = this.row.level; this.entity.level = this.row.level;
this.entity.inheritCategoryId = this.row.id; this.entity.inheritCategoryId = this.eid;
} else { } else {
this.entity.upId = 0; this.entity.upId = 0;
this.entity.level = 1; this.entity.level = 1;
...@@ -485,6 +482,5 @@ export default { ...@@ -485,6 +482,5 @@ export default {
return this.$t(key); return this.$t(key);
}, },
}, },
watch: {},
}; };
</script> </script>
\ No newline at end of file
...@@ -31,28 +31,7 @@ ...@@ -31,28 +31,7 @@
<Input v-model="entity.englishName"></Input> <Input v-model="entity.englishName"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('inheritCategoryId')"
prop="inheritCategoryId"
v-if="entity.upId != 0"
>
<!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1"></Radio>
<Radio label="0"></Radio>
</RadioGroup>
</FormItem>
</Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('templateId')" prop="templateId"> <FormItem :label="l('templateId')" prop="templateId">
<Select <Select
...@@ -81,17 +60,32 @@ ...@@ -81,17 +60,32 @@
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
type="radio"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="24"> <Col :span="24">
<FormItem :label="l('description')" prop="description"> <FormItem :label="l('description')" prop="description">
<Input v-model="entity.description" type="textarea" :rows="5"></Input> <Input v-model="entity.description" type="textarea" :rows="5"></Input>
</FormItem> </FormItem>
</Col> </Col>
<!-- <Col :span="24"> <Col :span="12" v-if="eid != 0">
<FormItem :label="l('templateId')" prop="templateId"> <FormItem label="扩展属性" prop="inheritCategoryId">
<Input v-model="entity.templateId"></Input> <!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1">继承</Radio>
<Radio label="0">自定义</Radio>
</RadioGroup>
</FormItem> </FormItem>
</Col>--> </Col>
<Col :span="24" v-if="inherit == 0"> <Col :span="24" v-if="inherit == 0">
<Divider orientation="left">扩展属性</Divider> <Divider orientation="left">扩展属性</Divider>
<Table :columns="columns" :data="checkList" border> <Table :columns="columns" :data="checkList" border>
...@@ -189,10 +183,11 @@ export default { ...@@ -189,10 +183,11 @@ export default {
return { return {
parmsName: "app=material&eid=1&name=documentTemplate", parmsName: "app=material&eid=1&name=documentTemplate",
codeList: [], codeList: [],
entity: {}, entity: {
status:'1'
},
rules: { rules: {
name: [{ required: true, message: "必填", trigger: "blur" }], name: [{ required: true, message: "必填", trigger: "blur" }],
workFlowIds: [{ required: true, message: "必填", trigger: "change" }],
}, },
templates: [], templates: [],
workFlows: [], workFlows: [],
......
...@@ -223,13 +223,15 @@ export default { ...@@ -223,13 +223,15 @@ export default {
res, res,
0, 0,
(u) => { (u) => {
u.expand = true; // console.log(u);
u.expanded = false;
u.selected = false; u.selected = false;
u.checked = false; u.checked = false;
}, },
"upId" "upId"
); );
this.treeData = this.$u.clone(data); this.treeData = this.$u.clone(data);
console.log(this.treeData);
}); });
}, },
//查询 //查询
...@@ -253,7 +255,7 @@ export default { ...@@ -253,7 +255,7 @@ export default {
this.modal = true; this.modal = true;
}, },
addrow(row) { addrow(row) {
this.curId = 0; this.curId = row.id;
this.row = row; this.row = row;
this.detail = () => import("./add"); this.detail = () => import("./add");
this.modal = true; this.modal = true;
......
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