|
|
@@ -61,14 +61,14 @@ |
|
|
|
|
|
|
|
<view |
|
|
|
v-if="item.Status != '1'" |
|
|
|
@click="action('edit', item.Id)" |
|
|
|
@click="action('edit', item.Id, item)" |
|
|
|
class="customlist-banner-action-btn line-blue text-sm" |
|
|
|
style="border: currentColor 1px solid"> |
|
|
|
<l-icon type="edit" /> |
|
|
|
编辑 |
|
|
|
</view> |
|
|
|
|
|
|
|
<view @click="action('view', item.Id)" |
|
|
|
<view @click="action('view', item.Id, item)" |
|
|
|
class="customlist-banner-action-btn line-blue text-sm" |
|
|
|
style="border: currentColor 1px solid"> |
|
|
|
<l-icon type="search" /> |
|
|
@@ -266,7 +266,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 点击「编辑」、「查看」、「添加」、「删除」按钮 |
|
|
|
async action(type, id = '') { |
|
|
|
async action(type, id = '',item) { |
|
|
|
switch (type) { |
|
|
|
case 'view': |
|
|
|
this.NAV_TO(`./single?type=view&id=${id}`) |
|
|
@@ -277,7 +277,7 @@ export default { |
|
|
|
return |
|
|
|
|
|
|
|
case 'edit': |
|
|
|
this.NAV_TO(`./single?type=edit&id=${id}`) |
|
|
|
this.NAV_TO(`./single?type=edit&id=${id}`,item,true) |
|
|
|
return |
|
|
|
case 'submit': |
|
|
|
if (!(await this.CONFIRM('提交项目', '是否确认提交该项?', true))) { |
|
|
|