|
@@ -4,13 +4,27 @@
|
|
|
<toolList @iconCli="iconCli" :tooltit="tooltit"></toolList>
|
|
|
<div class="search">
|
|
|
<el-select v-model="advstatus" @change="advchange">
|
|
|
- <el-option v-for="items in advopt" :key="items.id" :label="items.name" :value="items.id">
|
|
|
+ <el-option
|
|
|
+ v-for="items in advopt"
|
|
|
+ :key="items.id"
|
|
|
+ :label="items.name"
|
|
|
+ :value="items.id"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="tabbox">
|
|
|
- <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
|
|
|
- tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
|
|
|
+ <el-table
|
|
|
+ height="calc(100% - 40px)"
|
|
|
+ class="com-table"
|
|
|
+ ref="multipleTable"
|
|
|
+ :data="tableData"
|
|
|
+ tooltip-effect="dark"
|
|
|
+ size="small"
|
|
|
+ border
|
|
|
+ style="width: 100%"
|
|
|
+ v-loading="loading"
|
|
|
+ >
|
|
|
<el-table-column prop="process_id" label="工单编号">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="need_name" label="工单标题"> </el-table-column>
|
|
@@ -22,9 +36,19 @@
|
|
|
<el-table-column prop="taskName" label="状态"> </el-table-column>
|
|
|
<el-table-column label="操作" width="120px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="primary" @click="dialogCheck(scope.row, 1)">查看</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ @click="dialogCheck(scope.row, 1)"
|
|
|
+ >查看</el-button
|
|
|
+ >
|
|
|
<!--<el-button size="mini" type="danger" v-if="scope.row.sts==3"-->
|
|
|
- <el-button size="mini" v-if="scope.row.status === '1'" type="danger" @click="dialogCheck(scope.row, 2)">审核
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ v-if="scope.row.status === '1'"
|
|
|
+ type="danger"
|
|
|
+ @click="dialogCheck(scope.row, 2)"
|
|
|
+ >审核
|
|
|
</el-button>
|
|
|
<!-- <el-button
|
|
|
v-if="
|
|
@@ -38,12 +62,24 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
|
|
|
- :total="total">
|
|
|
+ <el-pagination
|
|
|
+ class="pageBox"
|
|
|
+ @current-change="currchange"
|
|
|
+ layout="prev, pager, next"
|
|
|
+ background
|
|
|
+ :total="total"
|
|
|
+ >
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
- <el-dialog title="广告管理" v-if="dialogStatus" :visible.sync="dialogStatus" width="80%" :destroy-on-close="true"
|
|
|
- :modal-append-to-body="false" :close-on-click-modal="false">
|
|
|
+ <el-dialog
|
|
|
+ title="广告管理"
|
|
|
+ v-if="dialogStatus"
|
|
|
+ :visible.sync="dialogStatus"
|
|
|
+ width="80%"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ :modal-append-to-body="false"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
<div>
|
|
|
<advert
|
|
|
v-if="typestatsu === 2"
|
|
@@ -56,8 +92,14 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="定稿素材" :visible.sync="dialogStatusc" width="50%" :destroy-on-close="true"
|
|
|
- :modal-append-to-body="false" :close-on-click-modal="false">
|
|
|
+ <el-dialog
|
|
|
+ title="定稿素材"
|
|
|
+ :visible.sync="dialogStatusc"
|
|
|
+ width="50%"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ :modal-append-to-body="false"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
<!-- <el-form>
|
|
|
<el-form-item class="info-line online">
|
|
|
<span>素材类型</span>
|
|
@@ -94,8 +136,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- draftStatus:true,
|
|
|
- clickStatus:"",
|
|
|
+ draftStatus: true,
|
|
|
+ clickStatus: "",
|
|
|
tooltit: "广告管理",
|
|
|
auditStatus: false,
|
|
|
fullscreen: false,
|
|
@@ -148,11 +190,17 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
//我的待办
|
|
|
- getQueryList() {
|
|
|
+ getQueryList(e) {
|
|
|
let list = {
|
|
|
tableName: this.tableName,
|
|
|
};
|
|
|
+ if (e.id) {
|
|
|
+ list.taskId = e.id;
|
|
|
+ }
|
|
|
getTodoBase(this.pageSize, "", list).then((res) => {
|
|
|
+ if (e.id) {
|
|
|
+ this.dialogCheck(res.data.data[0], 2);
|
|
|
+ }
|
|
|
this.tableData = res.data.data;
|
|
|
this.tableData.map((item) => {
|
|
|
item.status = "1";
|
|
@@ -299,11 +347,11 @@ export default {
|
|
|
//获取列表
|
|
|
getList(e) {
|
|
|
console.log(e);
|
|
|
- switch (e) {
|
|
|
+ switch (e.type) {
|
|
|
//我的待办
|
|
|
case "0":
|
|
|
this.auditStatus = true;
|
|
|
- this.getQueryList();
|
|
|
+ this.getQueryList(e);
|
|
|
break;
|
|
|
//我的已办
|
|
|
case "1":
|
|
@@ -411,19 +459,18 @@ export default {
|
|
|
this.getList(this.clickStatus);
|
|
|
},
|
|
|
advchange(e) {
|
|
|
- this.total = 0
|
|
|
- this.pageSize = 1
|
|
|
- this.clickStatus = e
|
|
|
+ this.total = 0;
|
|
|
+ this.pageSize = 1;
|
|
|
+ this.clickStatus = e;
|
|
|
this.getList(this.clickStatus);
|
|
|
},
|
|
|
//处理申请
|
|
|
dialogCheck(n, v) {
|
|
|
-
|
|
|
if (v == 1) {
|
|
|
this.changeinfo = false;
|
|
|
- this.saveStatus = false
|
|
|
+ this.saveStatus = false;
|
|
|
} else {
|
|
|
- if(n.taskName == "科室经理审批"){
|
|
|
+ if (n.taskName == "起草") {
|
|
|
this.draftStatus = false;
|
|
|
}
|
|
|
this.changeinfo = true;
|
|
@@ -541,14 +588,26 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.userInfo = JSON.parse(window.sessionStorage.userInfo);
|
|
|
- this.advstatus = String(this.$route.query.type);
|
|
|
- this.clickStatus = this.$route.query.type;
|
|
|
- this.getList(this.advstatus);
|
|
|
+ console.log(this.$route.query);
|
|
|
+ if (this.$route.query.id) {
|
|
|
+ this.advstatus = "0";
|
|
|
+ this.clickStatus = "0";
|
|
|
+ this.getList({
|
|
|
+ id: this.$route.query.id,
|
|
|
+ type: "0",
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.advstatus = String(this.$route.query.type);
|
|
|
+ this.clickStatus = this.$route.query.type;
|
|
|
+ this.getList({
|
|
|
+ type: this.advstatus,
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
this.ctrlbtn();
|
|
|
this.gettype();
|
|
|
},
|
|
|
- created() { },
|
|
|
+ created() {},
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|