|
@ -10,7 +10,7 @@ |
|
|
@click="save">保存</el-button> |
|
|
@click="save">保存</el-button> |
|
|
<el-button v-if="showFrom==='customize'" |
|
|
<el-button v-if="showFrom==='customize'" |
|
|
type="danger" |
|
|
type="danger" |
|
|
@click="publish">发布</el-button> |
|
|
@click="handelPublish">发布</el-button> |
|
|
<span v-if="showFrom==='customize'" |
|
|
<span v-if="showFrom==='customize'" |
|
|
style="margin-left:20px; color:#aaa; font-size:13px">({{ wxIndex.customerName }} - )</span> |
|
|
style="margin-left:20px; color:#aaa; font-size:13px">({{ wxIndex.customerName }} - )</span> |
|
|
<span style="margin-left:20px; color:#aaa; font-size:13px">({{ wxIndex.clientType===1 ? '工作端' : '居民端' }})</span> |
|
|
<span style="margin-left:20px; color:#aaa; font-size:13px">({{ wxIndex.clientType===1 ? '工作端' : '居民端' }})</span> |
|
@ -460,7 +460,7 @@ export default { |
|
|
|
|
|
|
|
|
async publish (componentList) { |
|
|
async publish (componentList) { |
|
|
const { wxIndex: { clientType, customerId } } = this |
|
|
const { wxIndex: { clientType, customerId } } = this |
|
|
const { data, code, msg } = await requestPost(this.publish, { clientType, customerId, componentList }) |
|
|
const { data, code, msg } = await requestPost(this.publishUrl, { clientType, customerId, componentList }) |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.lastSavedCptList = cloneDeep(this.cptList) |
|
|
this.lastSavedCptList = cloneDeep(this.cptList) |
|
|
return this.$message.success('发布成功') |
|
|
return this.$message.success('发布成功') |
|
|