Commit 74c5c92c authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt

parents 832f4f68 a4285b5c
import Api from '@/plugins/request';
export default {
//批量生成序列号并返回
serialcode(params) {
return Api.post(`${systemUrl}/cache/generate_serialcode`, params);
},
}
\ No newline at end of file
<template>
<div class="input-code">
<Input v-model="codeValue" clearable required>
<Button slot="append" @click="codeClick">自动生成</Button>
</Input>
</div>
</template>
<script>
import Api from "./api";
export default {
name:"inputCode",
data() {
return {
codeValue: this.value,
select: "",
};
},
model: {
prop: "value",
event: "on-change",
},
props: {
value:[String],
code: {
type: String,
default: "",
},
type: {
type: String,
},
},
mounted() {
// this.codeValue=this.value;
},
methods: {
// 生成临时编号code
getSerialcode() {
Api.serialcode({
code: this.code,
}).then((r) => {
if (r.result) {
this.codeValue = r.result[0];
this.$emit("on-change", this.codeValue);
}
});
},
codeClick() {
this.getSerialcode();
},
},
watch: {
value(v) {
this.codeValue = v;
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<img :src="downUrl + src" />
</template>
<script>
export default {
props: ["src"],
data() {
return {
path: "",
downUrl: fileUrlDown,
};
},
mounted() {
if (this.src) {
this.path = downUrl + v;
}
},
watch: {
src(v) {
if (v) {
this.path = downUrl + v;
}
},
},
};
</script>
\ No newline at end of file
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
</Col> </Col>
<Col span="3" class="dcm-right"> <Col span="3" class="dcm-right">
<div class="img-touxiang"> <div class="img-touxiang">
<img :src="downUrl + avatorPath" v-if="avatorPath" /> <Pictrue :src="avatorPath" v-if="avatorPath" />
<!-- <img :src="downUrl + avatorPath" v-if="avatorPath" /> -->
<img <img
src="@/assets/images/files_header.png" src="@/assets/images/files_header.png"
v-else v-else
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
<p> <p>
<Tree :data="result"></Tree> <Tree :data="result"></Tree>
</p> </p>
<p>
<inputCode v-model="data"/>
</p>
</div> </div>
</template> </template>
...@@ -27,6 +30,7 @@ export default { ...@@ -27,6 +30,7 @@ export default {
data() { data() {
return { return {
model: [], model: [],
data:"ddd",
result: [ result: [
{ {
title: "五二九纵", title: "五二九纵",
......
...@@ -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();
...@@ -348,7 +345,7 @@ export default { ...@@ -348,7 +345,7 @@ export default {
}, },
methods: { methods: {
tebleSet() { tebleSet() {
Api.getChildren({ id: 582 }).then((r) => { Api.getChildren({ id: 673 }).then((r) => {
if (r.result) { if (r.result) {
this.codeList = r.result; this.codeList = r.result;
} }
...@@ -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: [],
...@@ -372,7 +367,7 @@ export default { ...@@ -372,7 +367,7 @@ export default {
}); });
}, },
tebleSet() { tebleSet() {
Api.getChildren({ id: 582 }).then((r) => { Api.getChildren({ id: 673}).then((r) => {
if (r.result) { if (r.result) {
this.codeList = r.result; this.codeList = r.result;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="mb10 pt5"> <div class="mb10 pt5">
<Input <Input
v-model.trim="searchValue" v-model.trim="searchValue"
placeholder="请输入库位名称" placeholder="请输入分类名称"
clearable clearable
style="width: 240px" style="width: 240px"
/> />
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
}, },
data() { data() {
return { return {
searchValue: "", //搜索库位名称 searchValue: "", //搜索名称
treeData: [], treeData: [],
treeDataOld: [], treeDataOld: [],
...@@ -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;
......
<template> <template>
<div class="document-add"> <div class="document-add">
<Form ref="form" :model="entity" :rules="rules" :label-width="120"> <Form ref="form" :model="entity" :rules="rules" :label-width="110">
<Row> <Row>
<Col span="18"> <Col span="18">
<Row> <Row>
<Col v-for="li in fileds" :key="li.field" :span="li.span"> <Col v-for="li in fileds" :key="li.field" :span="li.span">
<FormItem :label="li.title" :prop="li.name"> <FormItem :label="li.title" :prop="li.name">
<Input <Input
v-if="li.dataType == 0" v-if="li.dataType == 0 && li.field != 'code'"
v-model="entity[li.field]" v-model="entity[li.field]"
:disabled="li.field == 'code'"
:placeholder="
li.field == 'code' ? '保存后编号将自动生成' : ''
"
></Input> ></Input>
<InputCode
v-if="li.dataType == 0 && li.field == 'code'"
code="WORD"
v-model="entity[li.field]"
/>
<InputNumber <InputNumber
v-if="li.dataType == 1 || li.dataType == 2" v-if="li.dataType == 1 || li.dataType == 2"
v-model="entity[li.field]" v-model="entity[li.field]"
...@@ -172,19 +173,15 @@ ...@@ -172,19 +173,15 @@
<a href="#" @click="template" class="a-xiazai">下载模板</a> <a href="#" @click="template" class="a-xiazai">下载模板</a>
</div> </div>
</Col> </Col>
<Col :span="12"> <!-- <Col :span="12">
<FormItem :label="l('status')" prop="status"> <FormItem :label="l('status')" prop="status">
<Dictionary <Dictionary
disabled disabled
code="word.document.status" code="word.document.status"
v-model="entity.status" v-model="entity.status"
></Dictionary> ></Dictionary>
<!-- <RadioGroup v-model="entity.status">
<Radio label="0">草稿</Radio>
<Radio label="1">送审</Radio>
</RadioGroup> -->
</FormItem> </FormItem>
</Col> </Col> -->
</Row> </Row>
</Col> </Col>
<Col span="6"> <Col span="6">
...@@ -225,14 +222,13 @@ ...@@ -225,14 +222,13 @@
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
export default { export default {
name: "Add", name: "Add",
components: {}, components: {},
data() { data() {
return { return {
code: "",
// modal: false, // modal: false,
imgName: "", imgName: "",
avatorPath: "", avatorPath: "",
fileds: [], //扩展属性 fileds: [], //扩展属性
...@@ -241,6 +237,7 @@ export default { ...@@ -241,6 +237,7 @@ export default {
status: 0, status: 0,
categoryId: this.treeId, categoryId: this.treeId,
img: "", img: "",
code: "",
// title: "", // title: "",
// field: "", // field: "",
// dataType: null, // dataType: null,
...@@ -265,6 +262,7 @@ export default { ...@@ -265,6 +262,7 @@ export default {
}, },
rules: { rules: {
name: [{ required: true, message: "必填", trigger: "blur" }], name: [{ required: true, message: "必填", trigger: "blur" }],
// code: [{ required: true, message: "必填", trigger: "blur" }],
}, },
parmsName: "app=material&eid=1&name=document", parmsName: "app=material&eid=1&name=document",
parms: { parms: {
...@@ -286,6 +284,9 @@ export default { ...@@ -286,6 +284,9 @@ export default {
this.parms.eid = this.$u.guid(); this.parms.eid = this.$u.guid();
this.$refs.refmovieFile1.inputShow = false; this.$refs.refmovieFile1.inputShow = false;
}, },
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: { methods: {
imgUrl() { imgUrl() {
window.open(this.avatorPath, "_blank"); window.open(this.avatorPath, "_blank");
......
...@@ -34,4 +34,5 @@ export default { ...@@ -34,4 +34,5 @@ export default {
getcategorytemplate(params){ //获取分类的模板 getcategorytemplate(params){ //获取分类的模板
return Api.get(`${material}/documenttemplate/getcategorytemplate`,params); return Api.get(`${material}/documenttemplate/getcategorytemplate`,params);
}, },
} }
\ No newline at end of file
...@@ -110,7 +110,8 @@ ...@@ -110,7 +110,8 @@
</Col> </Col>
<Col span="4" class="dcm-right"> <Col span="4" class="dcm-right">
<div class="img-touxiang"> <div class="img-touxiang">
<img :src="downUrl + avatorPath" v-if="avatorPath" /> <!-- <img :src="downUrl + avatorPath" v-if="avatorPath" /> -->
<Pictrue :src="avatorPath" v-if="avatorPath" />
<img <img
src="@/assets/images/files_header.png" src="@/assets/images/files_header.png"
v-else v-else
...@@ -274,7 +275,7 @@ export default { ...@@ -274,7 +275,7 @@ export default {
background: #fff; background: #fff;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15); box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
border-radius: 8px; border-radius: 8px;
height: 80vh; min-height: 80vh;
h4 { h4 {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
......
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="120"> <Form ref="form" :model="entity" :rules="rules" :label-width="110">
<Row> <Row>
<Col span="18"> <Col span="18">
<Row> <Row>
<Col v-for="li in fileds" :key="li.field" :span="li.span"> <Col v-for="li in fileds" :key="li.field" :span="li.span">
<FormItem :label="li.title" :prop="li.name"> <FormItem :label="li.title" :prop="li.name">
<Input <Input
v-if="li.dataType == 0" v-if="li.dataType == 0 && li.field != 'code'"
v-model="entity[li.field]" v-model="entity[li.field]"
:disabled="li.field == 'code'"
></Input> ></Input>
<InputCode
v-if="li.dataType == 0 && li.field == 'code'"
v-model="entity[li.field]"
code="WORD"
/>
<InputNumber <InputNumber
v-if="li.dataType == 1 || li.dataType == 2" v-if="li.dataType == 1 || li.dataType == 2"
v-model="entity[li.field]" v-model="entity[li.field]"
...@@ -169,14 +173,15 @@ ...@@ -169,14 +173,15 @@
<a href="#" @click="template" class="a-xiazai">下载模板</a> <a href="#" @click="template" class="a-xiazai">下载模板</a>
</div> </div>
</Col> </Col>
<Col :span="12"> <!-- <Col :span="12">
<FormItem :label="l('status')" prop="status"> <FormItem :label="l('status')" prop="status">
<Dictionary <Dictionary
disabled
code="word.document.status" code="word.document.status"
v-model="entity.status" v-model="entity.status"
></Dictionary> ></Dictionary>
</FormItem> </FormItem>
</Col> </Col> -->
<!-- <Col :span="24" style="text-align: right;"> <!-- <Col :span="24" style="text-align: right;">
<FormItem> <FormItem>
<Button type="primary" @click="handleSubmit" v-noClick>保存</Button> <Button type="primary" @click="handleSubmit" v-noClick>保存</Button>
...@@ -243,6 +248,9 @@ export default { ...@@ -243,6 +248,9 @@ export default {
this.parms.eid = this.$u.guid(); this.parms.eid = this.$u.guid();
this.$refs.refmovieFile1.inputShow = false; this.$refs.refmovieFile1.inputShow = false;
}, },
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: { methods: {
imgUrl() { imgUrl() {
window.open(this.avatorPath, "_blank"); window.open(this.avatorPath, "_blank");
......
...@@ -42,7 +42,13 @@ ...@@ -42,7 +42,13 @@
</a> </a>
</div> </div>
<Content :class="!showMenu ? 'con_bord' : ''"> <Content :class="!showMenu ? 'con_bord' : ''">
<Word ref="dataTable" :treeId="treeId" :addShow="addShow" :ids="ids" :workFlowIds="workFlowIds"/> <Word
ref="dataTable"
:treeId="treeId"
:addShow="addShow"
:ids="ids"
:workFlowIds="workFlowIds"
/>
</Content> </Content>
</Layout> </Layout>
</div> </div>
...@@ -70,7 +76,7 @@ export default { ...@@ -70,7 +76,7 @@ export default {
treeId: 0, treeId: 0,
addShow: false, addShow: false,
ids: [], ids: [],
workFlowIds:'' workFlowIds: "",
}; };
}, },
mounted() { mounted() {
...@@ -108,8 +114,8 @@ export default { ...@@ -108,8 +114,8 @@ export default {
let data = { let data = {
conditions: [ conditions: [
{ {
fieldName: "", fieldName: "status",
fieldValue: "", fieldValue: "1",
conditionalType: "Equal", conditionalType: "Equal",
}, },
], ],
...@@ -145,7 +151,7 @@ export default { ...@@ -145,7 +151,7 @@ export default {
// console.log(a) // console.log(a)
console.log(b); console.log(b);
this.treeId = b.id; this.treeId = b.id;
this.workFlowIds=b.workFlowIds //流程id this.workFlowIds = b.workFlowIds; //流程id
// if (b.children.length == 0) { //判断最底层才能添加文档 // if (b.children.length == 0) { //判断最底层才能添加文档
// this.addShow = true; // this.addShow = true;
// this.$refs.dataTable.$refs.grid.reload(this.easySearch); // this.$refs.dataTable.$refs.grid.reload(this.easySearch);
......
<template> <template>
<div class=".detail-document"> <div class=".detail-document">
{{ workFlowIds }}
<div class="body-document" v-if="eid != 0"> <div class="body-document" v-if="eid != 0">
<h4>详细信息</h4> <h4>详细信息</h4>
<Row> <Row>
...@@ -42,9 +41,9 @@ ...@@ -42,9 +41,9 @@
<Filed :span="12" :name="l('creatorUserId') + ':'"> <Filed :span="12" :name="l('creatorUserId') + ':'">
<User :value="entity.creatorUserId" /> <User :value="entity.creatorUserId" />
</Filed> </Filed>
<Filed :span="12" :name="l('status') + ':'">{{ <Filed :span="12" :name="l('status') + ':'">
entity.status == 0 ? "草稿" : "送审" <state code="word.document.status" :value="entity.status" />
}}</Filed> </Filed>
<Filed :span="24" :name="l('filePath') + ':'"> <Filed :span="24" :name="l('filePath') + ':'">
<files ref="refFile" :parms="parms" :showList="false" /> <files ref="refFile" :parms="parms" :showList="false" />
</Filed> </Filed>
...@@ -53,7 +52,8 @@ ...@@ -53,7 +52,8 @@
</Col> </Col>
<Col span="4" class="dcm-right"> <Col span="4" class="dcm-right">
<div class="img-touxiang"> <div class="img-touxiang">
<img :src="downUrl + avatorPath" v-if="avatorPath" /> <!-- <img :src="downUrl + avatorPath" v-if="avatorPath" /> -->
<Pictrue :src="avatorPath" v-if="avatorPath" />
<img <img
src="@/assets/images/files_header.png" src="@/assets/images/files_header.png"
v-else v-else
...@@ -340,7 +340,7 @@ export default { ...@@ -340,7 +340,7 @@ export default {
background: #fff; background: #fff;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15); box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
border-radius: 8px; border-radius: 8px;
min-height: 310px;
h4 { h4 {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"> <FormItem prop="keys">
<Input <Input
placeholder="请输入关键字引用的文档名称/文档名称" placeholder="请输入文档名称/编号"
v-model="easySearch.keys.value" v-model="easySearch.keys.value"
/> />
</FormItem> </FormItem>
...@@ -44,17 +44,19 @@ ...@@ -44,17 +44,19 @@
<div class="body-card"> <div class="body-card">
<Row class="title-i"> <Row class="title-i">
<Col :span="12"> <Col :span="12">
<Ellipsis :text="row.name" :length="12" tooltip /> <Ellipsis :text="row.name" :length="18" tooltip />
</Col> </Col>
<Col :span="12" class="btn-click">{{ row.code }}</Col> <Col :span="12" class="btn-click">
<Ellipsis :text="row.code" :length="18" tooltip
/></Col>
</Row> </Row>
<Row class="row-down" :gutter="10"> <Row class="row-down" :gutter="10">
<Col span="7"> <Col span="7">
<div class="img-i"> <div class="img-i">
<img :src="downUrl + row.img" v-if="row.img" /> <!-- <img :src="downUrl + row.img" v-if="row.img" /> -->
<!-- onerror="this.src='/imgicon/chan_Pin.png'" --> <Pictrue :src="row.img" v-if="row.img" />
<img <img
src="@/assets/imgicon/chan_Pin.png" src="@/assets/images/files_header.png"
v-else v-else
width="100%" width="100%"
height="100%" height="100%"
...@@ -98,7 +100,7 @@ ...@@ -98,7 +100,7 @@
<Modal <Modal
v-model="modal" v-model="modal"
:title="title" :title="title"
width="1200" width="1300"
footer-hide footer-hide
:mask-closable="false" :mask-closable="false"
:fullscreen="fullscreen" :fullscreen="fullscreen"
...@@ -124,7 +126,7 @@ export default { ...@@ -124,7 +126,7 @@ export default {
action: Api.index, action: Api.index,
fullscreen: false, fullscreen: false,
easySearch: { easySearch: {
keys: { op: "refName,name", value: null }, keys: { op: "name,code", value: null },
categoryId: { categoryId: {
op: "In", op: "In",
value: this.ids, value: this.ids,
...@@ -134,7 +136,7 @@ export default { ...@@ -134,7 +136,7 @@ export default {
title: "新增", title: "新增",
detail: null, detail: null,
curId: 0, curId: 0,
downUrl: fileUrlDown,
columns: [ columns: [
{ {
type: "selection", type: "selection",
...@@ -152,9 +154,10 @@ export default { ...@@ -152,9 +154,10 @@ export default {
{ {
key: "creationTime", key: "creationTime",
title: this.l("creationTime"), title: this.l("creationTime"),
align: "left", align: "center",
easy: true, easy: true,
high: true, high: true,
width: 180,
}, },
{ {
key: "code", key: "code",
...@@ -165,27 +168,30 @@ export default { ...@@ -165,27 +168,30 @@ export default {
{ {
key: "status", key: "status",
title: this.l("status"), title: this.l("status"),
align: "left", align: "center",
high: true, high: true,
code: "word.document.status", code: "word.document.status",
width: 120,
}, },
{ {
key: "version", key: "version",
title: this.l("revision"), title: this.l("revision"),
align: "left", align: "center",
high: true, high: true,
width: 120,
}, },
{ {
key: "creatorUserId", key: "creatorUserId",
title: this.l("creatorUserId"), title: this.l("creatorUserId"),
align: "left", align: "center",
high: true, high: true,
type: "user", type: "user",
width: 120,
}, },
{ {
title: "操作", title: "操作",
key: "action", key: "action",
width: 180, width: 200,
align: "left", align: "left",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
...@@ -406,7 +412,7 @@ export default { ...@@ -406,7 +412,7 @@ export default {
height: 110px; height: 110px;
.img-i { .img-i {
width: 90px; width: 90px;
background: #eee; // background: #eee;
height: 90px; height: 90px;
img { img {
width: 90px; width: 90px;
......
...@@ -65,6 +65,10 @@ import OutputTime from '@/components/page/outputTime.vue' ...@@ -65,6 +65,10 @@ import OutputTime from '@/components/page/outputTime.vue'
import ViewerImg from '@/components/page/viewer.vue' import ViewerImg from '@/components/page/viewer.vue'
import ImportExcel from '@/components/page/import/process.vue' import ImportExcel from '@/components/page/import/process.vue'
import CustomProperties from '@/components/page/customProperties.vue' import CustomProperties from '@/components/page/customProperties.vue'
import InputCode from '@/components/page/inputCode.vue'
import Pictrue from '@/components/page/pictrue.vue'
// import FormMaking from 'form-making' // import FormMaking from 'form-making'
...@@ -135,6 +139,9 @@ Vue.component("StoreTree", StoreTree) ...@@ -135,6 +139,9 @@ Vue.component("StoreTree", StoreTree)
Vue.component("StoreSelect", StoreSelect) Vue.component("StoreSelect", StoreSelect)
Vue.component("ImportExcel",ImportExcel) Vue.component("ImportExcel",ImportExcel)
Vue.component("CustomProperties",CustomProperties) Vue.component("CustomProperties",CustomProperties)
Vue.component("InputCode",InputCode)
Vue.component("Pictrue",Pictrue)
//注入mock //注入mock
......
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