flat:添加识别原因
This commit is contained in:
@@ -10,9 +10,14 @@
|
||||
@input="searchInputChange" v-model="searchInput" clearable>
|
||||
</el-input>
|
||||
</div>
|
||||
<el-button type="primary" style="width: 80px" size="small" :disabled="pushState" @click="onSubmit">
|
||||
{{ pushState ? '推送中...' : rightTabs ? '推送岗位' : '推送政策' }}
|
||||
</el-button>
|
||||
<div>
|
||||
<el-button type="primary" style="width: 80px" size="small" @click="informationPush">
|
||||
推送信息
|
||||
</el-button>
|
||||
<el-button type="primary" style="width: 80px" size="small" :disabled="pushState" @click="onSubmit">
|
||||
{{ pushState ? '推送中...' : rightTabs ? '推送岗位' : '推送政策' }}
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-right relative">
|
||||
<avue-crud height="900" ref="crud2" :data="rightDataList"
|
||||
@@ -55,7 +60,9 @@ import {
|
||||
getSearchAllByUserId,
|
||||
pushPolicyUserServe,
|
||||
pushPostUserServe,
|
||||
getListAllByPolicy
|
||||
getListAllByPolicy, phoneUpdate,
|
||||
getMsgContent,
|
||||
pushMsg
|
||||
} from "@/api/tenant/serve.js";
|
||||
import TextTooltip from "@/components/text-tooltip/index.vue";
|
||||
import {debounce} from '@/util/util'
|
||||
@@ -147,6 +154,7 @@ export default {
|
||||
props: {
|
||||
visible: Boolean,
|
||||
rowData: {default: null, type: Function},
|
||||
phoneItem: {default: {}, type: Object},
|
||||
changeVisible: {default: null, type: Function},
|
||||
},
|
||||
computed: {
|
||||
@@ -160,6 +168,30 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
async informationPush() {
|
||||
let resData = await getMsgContent()
|
||||
if (resData.status === 200 && resData.data.code === 200) {
|
||||
const data = resData.data
|
||||
this.$confirm(data.msg, {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(async (type) => {
|
||||
if (type === 'confirm') {
|
||||
pushMsg({
|
||||
serveUserId: this.phoneItem.serveUserId,
|
||||
id: this.phoneItem.id
|
||||
}).then((res) => {
|
||||
this.$message.success('推送成功');
|
||||
}).cache(() => {
|
||||
this.$message.error('推送失败');
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.error('获取模板失败');
|
||||
}
|
||||
},
|
||||
changeTabs(type) {
|
||||
this.rightDataList = []
|
||||
this.rightTabs = type
|
||||
|
||||
Reference in New Issue
Block a user