Commit 4d1e0015 authored by 吴卿华's avatar 吴卿华

借支申请修改

parent 7408da4d
...@@ -592,10 +592,7 @@ export default { ...@@ -592,10 +592,7 @@ export default {
fileList: [], fileList: [],
}; };
}, },
listRemove(e) {
this.fileList = [];
this.form.attachmentUrl = "";
},
created() { created() {
this.getTreeselect(); this.getTreeselect();
this.getList(); this.getList();
...@@ -610,6 +607,10 @@ export default { ...@@ -610,6 +607,10 @@ export default {
}, },
}, },
methods: { methods: {
listRemove(e) {
this.fileList = [];
this.form.attachmentUrl = "";
},
getFileInfo(res) { getFileInfo(res) {
this.form.attachmentUrl = res.url; this.form.attachmentUrl = res.url;
this.fileList = [ this.fileList = [
...@@ -723,12 +724,12 @@ export default { ...@@ -723,12 +724,12 @@ export default {
this.title = "详情信息"; this.title = "详情信息";
}); });
this.form.attachmentUrl = this.form.attachmentUrl; this.form.attachmentUrl = this.form.attachmentUrl;
this.fileList = [ // this.fileList = [
{ // {
name: res.fileName, // name: res.fileName,
url: uploadfile, // url: uploadfile,
}, // },
]; // ];
treeselect().then((response) => { treeselect().then((response) => {
......
...@@ -35,41 +35,41 @@ ...@@ -35,41 +35,41 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <!-- <el-row :gutter="10" class="mb8">-->
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="primary" <!-- type="primary"-->
plain <!-- plain-->
icon="el-icon-plus" <!-- icon="el-icon-plus"-->
size="mini" <!-- size="mini"-->
@click="handleAdd" <!-- @click="handleAdd"-->
v-hasPermi="['system:notice:add']" <!-- v-hasPermi="['system:notice:add']"-->
>新增</el-button> <!-- >新增</el-button>-->
</el-col> <!-- </el-col>-->
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="success" <!-- type="success"-->
plain <!-- plain-->
icon="el-icon-edit" <!-- icon="el-icon-edit"-->
size="mini" <!-- size="mini"-->
:disabled="single" <!-- :disabled="single"-->
@click="handleUpdate" <!-- @click="handleUpdate"-->
v-hasPermi="['system:notice:edit']" <!-- v-hasPermi="['system:notice:edit']"-->
>修改</el-button> <!-- >修改</el-button>-->
</el-col> <!-- </el-col>-->
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="danger" <!-- type="danger"-->
plain <!-- plain-->
icon="el-icon-delete" <!-- icon="el-icon-delete"-->
size="mini" <!-- size="mini"-->
:disabled="multiple" <!-- :disabled="multiple"-->
@click="handleDelete" <!-- @click="handleDelete"-->
v-hasPermi="['system:notice:remove']" <!-- v-hasPermi="['system:notice:remove']"-->
>删除</el-button> <!-- >删除</el-button>-->
</el-col> <!-- </el-col>-->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
</el-row> <!-- </el-row>-->
<el-table v-loading="loading" :data="noticeList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="noticeList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -79,31 +79,36 @@ ...@@ -79,31 +79,36 @@
align="center" align="center"
prop="noticeTitle" prop="noticeTitle"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="公告内容" label="公告内容"
align="center" align="center"
prop="noticeContent" prop="noticeContent"
:show-overflow-tooltip="true" >
/> <template slot-scope="scope">
<span>{{scope.row.noticeContent}}</span>
<span v-if="scope.row.noticeContent == null">-</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="公告类型" label="公告类型"
align="center" align="center"
prop="noticeType" prop="noticeType"
:formatter="typeFormat" :formatter="typeFormat"
width="100"
/>
<el-table-column
label="状态"
align="center"
prop="status"
:formatter="statusFormat"
width="100"
/> />
<el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope">
<span v-if="scope.row.status == 0">未读</span>
<span v-if="scope.row.status == 1">已读</span>
<span v-if="scope.row.status == null">-</span>
</template>
</el-table-column>
<!-- <el-table-column label="创建者" align="center" prop="createBy" width="100" />--> <!-- <el-table-column label="创建者" align="center" prop="createBy" width="100" />-->
<el-table-column label="创建时间" align="center" prop="createTime" width="100"> <el-table-column label="创建时间" align="center" prop="createTime" >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> <span>{{scope.row.createTime}}</span>
<span v-if="scope.row.createTime == null">-</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">--> <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
......
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