master
lion 1 year ago
parent 7cb61e41b0
commit 64f6f335eb

@ -78,11 +78,24 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>成果资料
</div>
<div class="xy-table-item-content">
<el-upload :disabled="isdisabled" :action="action" multiple class='upload-demo' :file-list="fileList"
<el-upload v-if="!isdisabled" :action="action" multiple class='upload-demo' :file-list="fileList"
ref="pictureUpload" style="width:400px" :auto-upload="true" :data="uploadOther"
:on-success="handlesuccess" :on-remove="handleRemove">
<el-button size="small" type="primary">点击上传</el-button>
</el-upload>
</el-upload>
<div v-else>
<div v-for="item in fileList">
<div style="color:#2D8cF0;cursor: pointer;">
{{item.name}}
<el-link target="_blank" style="margin:0 10px;" @click="toshowFile(item.url)" type="primary">
预览
</el-link>
<el-link target="_blank" @click="base.downLoadFileUrl(item.id)" type="primary">
下载
</el-link>
</div>
</div>
</div>
</div>
</div>
</template>
@ -135,11 +148,12 @@
</template>
</xy-dialog>
<viewFile ref='viewFile'></viewFile>
</div>
</template>
<script>
<script>
import viewFile from '@/components/viewFile/viewFile.vue'
import {
Message
} from 'element-ui'
@ -157,7 +171,7 @@
} from "@/api/task/unit.js";
export default {
components: {
viewFile,
},
data() {
return {
@ -235,7 +249,12 @@
created() {
this.uploadOther.token = getToken();
},
methods: {
methods: {
toshowFile(url) {
console.log("url", url)
this.$refs.viewFile.url = url
this.$refs.viewFile.diaShow = true
},
setDate(e1, e2) {
},

@ -97,17 +97,18 @@
},
submit() {
let uArr = []
if(!this.form.title){
this.$Message.warning("请输入提醒内容")
return
}
if(this.checkList.length>0){
this.checkList.map(item=>{
this.form.users.push({
uArr.push({
user_id:item
})
})
this.form.users = uArr
}else{
this.$Message.warning("请选择接收人")
return
@ -129,7 +130,9 @@
if (newVal) {
} else {
this.id = ''
this.id = ''
this.checkList = []
this.checkArr = []
this.$refs['dialog'].reset()
}
},

@ -87,8 +87,10 @@
<template v-else>
<!-- 任务是发给部门的只有指定部门科长能看见需要再次分发人员 -->
<!-- 转办就给 责任人 -->
<!-- 任务发给部门的科长责任人都能进行任务分解任务转办执行任务的操作 -->
<div v-if="scope.row.notices.length==0 && !(scope.row.audit_status==3||scope.row.audit_status==5) || scope.row.type==4">
<!-- 任务发给部门的科长责任人都能进行任务分解任务转办执行任务的操作 -->
<!-- 责任人 督办提醒 只提醒一次 任务未完成 -->
<div v-if="scope.row.notices.length==0 && !(scope.row.audit_status==3||scope.row.audit_status==5) && scope.row.main_admin_id==stateObj.login_id">
<Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small"
@click="sendNotice(scope.row)">督办提醒</Button>
</div>

Loading…
Cancel
Save