删除多余代码

This commit is contained in:
shijingjing
2022-06-27 09:03:16 +08:00
parent 54127cc668
commit a3cb513b57

View File

@@ -27,26 +27,8 @@
<el-form-item label="发送范围" style="width: 100%"> <el-form-item label="发送范围" style="width: 100%">
<select-dept-user v-model="form.deptList" v-bind="$props" :source="form.messageSource"/> <select-dept-user v-model="form.deptList" v-bind="$props" :source="form.messageSource"/>
<!-- <ai-wechat-selecter slot="append" refs="addTags" :instance="instance" isChooseUnit isStrictly v-model="orgNameList" @change="getSelectPerson">
<el-button size="small" type="info">选择组织</el-button>
</ai-wechat-selecter> -->
<!-- </el-input> -->
<!-- <ai-table-select nodeName="name" :instance="instance" extra="serialNo" searchKey="name" :action="`/app/wxcp/wxdepartment/listAllByCorp`"
@select="organizationSelect" multiple/> -->
<!-- v => formData.serialNo = v.map(e=> e.serialNo).toString() -->
</el-form-item> </el-form-item>
<!-- <el-form-item label="标签选择" style="width: 100%" v-if="form.messageSource == 2">
<div class="tags" v-for="items in subTags" :key="items.id">
<div class="tag_title">{{ items.name }}</div>
<div class="tag_item">
<el-checkbox-group v-model="tags">
<el-checkbox v-for="item in items.tagList" :key="item.id" :label="item.id">{{ item.name }}</el-checkbox>
</el-checkbox-group>
</div>
</div>
</el-form-item> -->
</el-form> </el-form>
</template> </template>
</ai-card> </ai-card>
@@ -94,7 +76,6 @@
<ai-wrapper> <ai-wrapper>
<ai-info-item label="创建者" :value="data.userName" isLine></ai-info-item> <ai-info-item label="创建者" :value="data.userName" isLine></ai-info-item>
<!-- <ai-info-item label="发送类型" :value="data.messageSource" isLine>{{ data.messageSource | format }}</ai-info-item> --> <!-- <ai-info-item label="发送类型" :value="data.messageSource" isLine>{{ data.messageSource | format }}</ai-info-item> -->
<!-- <ai-info-item label="发送时间" :value="data.sendTime" isLine v-if="data.messageSource == 1"></ai-info-item> -->
</ai-wrapper> </ai-wrapper>
<ai-wrapper v-for="item in data.fileList" :key="item.id"> <ai-wrapper v-for="item in data.fileList" :key="item.id">
@@ -170,10 +151,10 @@ export default {
imgs: [], imgs: [],
videos: [], videos: [],
files: [], files: [],
orgIdList: '', // orgIdList: '',
orgNameList: [], // orgNameList: [],
orgSelect: '', // orgSelect: '',
orgAllList: [], // orgAllList: [],
rules: { rules: {
content: [{required: true, message: '请输入群发内容'}], content: [{required: true, message: '请输入群发内容'}],
messageSource: [{required: true, message: '请选择群发方式'}], messageSource: [{required: true, message: '请选择群发方式'}],
@@ -193,13 +174,13 @@ export default {
return this.form.areaId = this.areaId.toString(); return this.form.areaId = this.areaId.toString();
}, },
}, },
watch: { // watch: {
orgNameList: { // orgNameList: {
handler: function (v) { // handler: function (v) {
this.orgSelect = `已选择${v.length}个组织` // this.orgSelect = `已选择${v.length}个组织`
} // }
} // }
}, // },
created() { created() {
if (this.$route.query.id) { if (this.$route.query.id) {
@@ -208,46 +189,22 @@ export default {
this.areaRootId = [this.user.info.areaId.substr(0, 6), '000000'].join("") this.areaRootId = [this.user.info.areaId.substr(0, 6), '000000'].join("")
}, },
filters: {
format(value) {
if (value == 0) {
return '立即发送'
} else if (value == 1) {
return '定时发送'
}
}
},
methods: { methods: {
handleAreaSelect(v) { handleAreaSelect(v) {
this.areaName = v?.[0]?.label this.areaName = v?.[0]?.label
}, },
getSelectPerson(val) {
console.log(val);
this.orgNameList = val?.map(item => item.name)
this.orgIdList = val?.map(e => e.id).toString();
// this.orgAllList = val
this.form.deptList = val?.map(o => {
return {
corpId: o.corpId,
// objList: ,
// tagId: ,
}
})
this.getSubTags()
},
organizationSelect(value) {
console.log(value);
},
// 标签 // 标签
getSubTags() { // getSubTags() {
this.instance.post(`/app/wxcp/wxgroupchattag/listAllByCorp?dvcpId=${this.orgIdList}`).then(res => { // this.instance.post(`/app/wxcp/wxgroupchattag/listAllByCorp?dvcpId=${this.orgIdList}`).then(res => {
if (res?.data) { // if (res?.data) {
console.log(res); // console.log(res);
this.subTags = res.data.records // this.subTags = res.data.records
} // }
}) // })
}, // },
getInfo() { getInfo() {
this.instance.post(`/app/pushmessage/detail?id=${this.$route.query.id}`).then(res => { this.instance.post(`/app/pushmessage/detail?id=${this.$route.query.id}`).then(res => {
if (res?.data) { if (res?.data) {